/* Grundlayout & Farbwelt */
:root {
  --bg-page: #f9f3ef;
  --bg-card: #ffffff;
  --bg-header: #b86a4a;
  --bg-nav: #f0e3d8;
  --accent: #b86a4a;
  --accent-dark: #9c573d;
  --text-main: #333333;
  --text-muted: #777777;
  --border-soft: #e0d2c8;
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header */

header {
  background: var(--bg-header);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}

header img {
  max-width: 100%;
  height: auto;
}

header h1 {
  margin: 0.5rem 0 0.25rem;
  font-weight: 500;
}

header p {
  margin: 0;
  font-size: 0.95rem;
}

/* Navigation */

nav {
  background: var(--bg-nav);
  padding: 0.5rem 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus {
  background: var(--accent);
  color: #ffffff;
}

/* Layout */

main {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
}

section {
  margin-bottom: 2rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

section:last-of-type {
  margin-bottom: 3rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.3;
}

h2 {
  margin-bottom: 0.5rem;
}

p {
  margin: 0.4rem 0 0.6rem;
}

/* Links im Text */

a {
  color: var(--accent);
}

a:hover,
a:focus {
  text-decoration: underline;
}

 .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

/* Formulare (falls später auf der Seite) */

label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  margin-top: 0.2rem;
  border-radius: 4px;
  border: 1px solid #cccccc;
  font: inherit;
  background: #ffffff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  margin-top: 0.9rem;
  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.05s ease;
}

button:hover {
  background: var(--accent-dark);
}

button:active {
  transform: scale(0.98);
}

/* Bilder */

img {
  max-width: 100%;
  height: auto;
}

section img {
  border-radius: 6px;
}

/* Tabelle Bücher */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid #dddddd;
  padding: 0.5rem 0.6rem;
  vertical-align: top;
}

th {
  background: #f0e3d8;
  text-align: left;
  font-weight: 600;
}

td img {
  display: block;
}

/* Footer */

footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

footer a {
  color: var(--accent);
}

/* Optionale Buchliste-Klasse aus deinem HTML */

.book-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.book-list li {
  margin-bottom: 0.4rem;
}

/* Responsiv */

@media (min-width: 700px) {
  header p {
    font-size: 1rem;
  }

  section {
    padding: 1.75rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Zusatzbereiche 5‑Elemente / Mensch-Tier-Elemente / Disharmonie / Mangel / Zitat */

/* Abschnitt allgemein */
#mensch-tier-elemente {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1.5rem 1.5rem 2rem;
  background: #fff7f3;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Überschrift & Text */
#mensch-tier-elemente h2 {
  margin-top: 0;
  color: #b86a4a;
  font-size: 1.8rem;
}

#mensch-tier-elemente p {
  line-height: 1.6;
  color: #3b2a24;
}

/* Tabelle in Karten-Optik */
#mensch-tier-elemente table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.7rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* Kopfzeile als eigene Karte */
#mensch-tier-elemente thead th {
  background: #f4d1bf;
  color: #3b2a24;
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.7rem;
}

/* Head-Kanten abrunden */
#mensch-tier-elemente thead tr th:first-child {
  border-top-left-radius: 8px;
}
#mensch-tier-elemente thead tr th:last-child {
  border-top-right-radius: 8px;
}

/* Karten für jede Zeile */
#mensch-tier-elemente tbody tr {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
}

/* Rundungen an den Kanten */
#mensch-tier-elemente tbody tr td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
#mensch-tier-elemente tbody tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Zellen innerhalb der Karten */
#mensch-tier-elemente td {
  padding: 0.6rem 0.7rem;
  vertical-align: top;
  color: #3b2a24;
  border-top: 1px solid #f3e0d7;
}

/* Obere Kante einer Karte etwas hervorheben */
#mensch-tier-elemente tbody tr td:first-child {
  border-left: 1px solid #f3e0d7;
}
#mensch-tier-elemente tbody tr td:last-child {
  border-right: 1px solid #f3e0d7;
}

/* Hinweistext am Ende */
#mensch-tier-elemente .hinweis {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6b5246;
  border-top: 1px dashed #e0b29a;
  padding-top: 0.8rem;
}

/* Bereich des Elemente-Checks */
#elemente-check {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff7f3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Überschriften */
#elemente-check h2 {
  margin-top: 0;
  color: #b86a4a;
  font-size: 1.8rem;
}

#elemente-check h3 {
  color: #8b4c34;
  margin-top: 2rem;
}

/* Text */
#elemente-check p {
  line-height: 1.6;
  color: #3b2a24;
}

/* Fieldsets (Frageblöcke) */
#elemente-check fieldset {
  border: 1px solid #e0b29a;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  background: #fffaf7;
}

/* Legenden (Fragenüberschriften) */
#elemente-check legend {
  padding: 0 0.4rem;
  font-weight: 600;
  color: #8b4c34;
}

/* Labels / Radiobutton-Optionen */
#elemente-check label {
  display: block;
  margin: 0.3rem 0;
  cursor: pointer;
  color: #3b2a24;
}

/* Radiobuttons etwas absetzen */
#elemente-check input[type="radio"] {
  margin-right: 0.4rem;
}

/* Hinweistext am Ende */
#elemente-check .hinweis {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6b5246;
  border-top: 1px dashed #e0b29a;
  padding-top: 0.8rem;
}

/* Gesamter Abschnitt: leicht abgesetzter Terracotta-Block */
#elemente-mangel {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1.5rem 1.5rem 2rem;
  background: #fffaf7;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.05);
}

/* Hauptüberschrift */
#elemente-mangel h2 {
  margin-top: 0;
  color: #b86a4a;
  font-size: 1.8rem;
}

/* Fliesstext */
#elemente-mangel p {
  line-height: 1.6;
  color: #3b2a24;
}

/* Unterüberschriften als „Chips“ wie beim anderen Abschnitt */
#elemente-mangel h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #f7ddc9;
  color: #3b2a24;
  border-radius: 999px;
  font-size: 1.2rem;
}

/* erster Absatz nach h3 etwas dichter anschliessen */
#elemente-mangel h3 + p {
  margin-top: 0.6rem;
}

/* Hinweistext am Ende */
#elemente-mangel .hinweis {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: #6b5246;
  border-top: 1px dashed #e0b29a;
  padding-top: 0.8rem;
}

/* Optional: Abstand zu angrenzenden Sections */
#elemente-disharmonie + #elemente-mangel,
#elemente-mangel + #mensch-tier-elemente {
  margin-top: 3rem;
}

.elemente-zitat {
  max-width: 800px;
  margin: 2.5rem auto;
  padding: 1.2rem 1.4rem;
  background: #fff7f3;
  border-left: 4px solid #b86a4a;
  border-radius: 8px;
  font-style: italic;
  color: #3b2a24;
  line-height: 1.6;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.elemente-zitat::before {
  content: "“";
  font-size: 2rem;
  color: #e0b29a;
  margin-right: 0.3rem;
}

.elemente-zitat::after {
  content: "”";
  font-size: 2rem;
  color: #e0b29a;
  margin-left: 0.3rem;
}

/* Gesamter Abschnitt Disharmonie */
#elemente-disharmonie {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1.5rem 1.5rem 2rem;
  background: #fff7f3;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Hauptüberschrift */
#elemente-disharmonie h2 {
  margin-top: 0;
  color: #b86a4a;
  font-size: 1.8rem;
}

/* Fliesstext */
#elemente-disharmonie p {
  line-height: 1.6;
  color: #3b2a24;
}

/* Unterüberschriften als kleine Karten-Titel */
#elemente-disharmonie h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #f4d1bf;
  color: #3b2a24;
  border-radius: 999px;
  font-size: 1.2rem;
}

/* Absätze direkt nach einem h3 leicht einrücken */
#elemente-disharmonie h3 + p {
  margin-top: 0.6rem;
}

/* Hinweistext am Ende */
#elemente-disharmonie .hinweis {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: #6b5246;
  border-top: 1px dashed #e0b29a;
  padding-top: 0.8rem;
}

/* Optional: Abschnitt etwas vom restlichen Inhalt lösen */
#elemente-disharmonie + section,
section + #elemente-disharmonie {
  margin-top: 3rem;
}

.elemente-quiz .quiz-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  column-gap: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Radiobutton-Layout im Quiz korrigieren */
.elemente-quiz .quiz-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  column-gap: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Radio-Buttons NICHT auf 100% Breite ziehen */
.elemente-quiz input[type="radio"] {
  width: auto;
  margin-top: 0.2rem;
}
