@charset "UTF-8";
/* Material Design 3 – sanftes Farbschema aus den Buchillustrationen (Farn, Pfirsich, Lavendel, Creme) */
:root {
  --primary: #3f6b4f; --on-primary: #fff;
  --primary-container: #c8ebcf; --on-primary-container: #0f2a18;
  --secondary-container: #ffdcc6; --on-secondary-container: #331200;
  --tertiary-container: #ebdfff; --on-tertiary-container: #23153f;
  --surface: #fffbf3; --surface-low: #faf4ea; --surface-container: #f4eee3; --surface-high: #eee7da;
  --on-surface: #1e1c17; --on-surface-variant: #4c463c;
  --outline: #7d766a; --outline-variant: #d6cebf;
  --error: #b3261e; --error-container: #f9dedc; --on-error-container: #410e0b;
  --shape-s: 12px; --shape-m: 16px; --shape-l: 28px;
  --elev-1: 0 1px 2px rgb(0 0 0 / .12), 0 1px 3px 1px rgb(0 0 0 / .06);
  --elev-2: 0 1px 2px rgb(0 0 0 / .12), 0 2px 6px 2px rgb(0 0 0 / .08);
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--on-surface); background: var(--surface);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Top App Bar */
.appbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 3rem); background: var(--surface-container); box-shadow: var(--elev-1); flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .625rem; font-size: 1.25rem; font-weight: 600; color: var(--on-surface); text-decoration: none; }
.logo img { border-radius: 12px; }
.menue { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.menue a { padding: .5rem 1rem; border-radius: 100px; color: var(--on-surface-variant); text-decoration: none; font-weight: 500; white-space: nowrap; }
.menue a:hover { background: rgb(63 107 79 / .08); }
.menue a[aria-current] { background: var(--primary-container); color: var(--on-primary-container); }
.konto { display: flex; gap: .5rem; }
.navigation { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex: 1; flex-wrap: wrap; }


/* Burger-Menü: nur mit JavaScript, sonst bleibt das Menü einfach sichtbar */
.burger { display: none; }
@media (max-width: 1279px) {
  html.js .burger { display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--on-surface); }
  html.js .burger:hover { background: rgb(63 107 79 / .08); }
  .burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; } .burger span::after { top: 7px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  html.js .navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .5rem;
    padding: .5rem clamp(1rem, 4vw, 3rem) 1.25rem; background: var(--surface-container); box-shadow: var(--elev-2); border-radius: 0 0 var(--shape-l) var(--shape-l); }
  html.js .navigation.offen { display: flex; }
  html.js .menue { flex-direction: column; overflow: visible; }
  html.js .menue a { padding: .875rem 1rem; font-size: 1.0625rem; }
  html.js .konto { padding-top: .75rem; border-top: 1px solid var(--outline-variant); flex-wrap: wrap; }
  html:not(.js) .navigation { justify-content: flex-start; }
}

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
section { margin: clamp(2.5rem, 6vw, 4.5rem) 0; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.12; margin: .25rem 0 .5rem; font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 500; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; font-weight: 500; margin: 1rem 0 .5rem; }
.lead { font-size: 1.375rem; color: var(--on-surface-variant); margin: 0 0 1rem; }
.lead p { margin: 0 0 .5rem; }
.label { font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .625rem 1.5rem; border-radius: 100px;
  font-family: inherit; font-weight: 500; font-size: .9375rem; line-height: 1.2; letter-spacing: .01em; text-decoration: none; border: 0; cursor: pointer;
  transition: box-shadow .2s, background-color .2s; }
.btn.filled { background: var(--primary); color: var(--on-primary); }
.btn.filled:hover { box-shadow: var(--elev-1); background: #365e45; }
.btn.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn.tonal:hover { box-shadow: var(--elev-1); }
.btn.outlined { border: 1px solid var(--outline); color: var(--primary); background: transparent; }
.btn.outlined:hover, .btn.text:hover { background: rgb(63 107 79 / .08); }
.btn.text { color: var(--primary); background: transparent; padding-inline: 1rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.cover { border-radius: var(--shape-l); box-shadow: var(--elev-2); transform: rotate(1.5deg); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .cover { max-width: 320px; margin: 0 auto; } }

/* Cards */
.card { background: var(--surface-low); border-radius: var(--shape-m); overflow: hidden; box-shadow: var(--elev-1); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card-grid .card h2, .card-grid .card h3, .card-grid .card p { padding: 0 1.25rem; }
h2.h3 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
.card-grid .card p { margin-bottom: 1.25rem; color: var(--on-surface-variant); }

/* Figuren */
.figuren { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.figur { border-radius: var(--shape-l); padding: 1.25rem; display: grid; grid-template-rows: auto 1fr; gap: .5rem; }
.figur img { height: 200px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.figur h3 { margin: 0; }
.figur p { margin: .25rem 0 0; }
.figur .rolle { font-size: .875rem; font-weight: 500; letter-spacing: .02em; opacity: .8; margin: 0; }
.figur:nth-child(4n+1) { background: var(--primary-container); color: var(--on-primary-container); }
.figur:nth-child(4n+2) { background: var(--secondary-container); color: var(--on-secondary-container); }
.figur:nth-child(4n+3) { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.figur:nth-child(4n) { background: #fff1c7; color: #2b2100; }
.figuren-band { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; text-decoration: none; color: var(--on-surface); margin-bottom: 1.25rem; }
.figuren-band figure { margin: 0; background: var(--surface-container); border-radius: var(--shape-m); padding: .75rem .5rem .5rem; text-align: center; transition: background .2s; }
.figuren-band figure:hover { background: var(--primary-container); }
.figuren-band img { height: 90px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.figuren-band figcaption { font-size: .875rem; font-weight: 500; margin-top: .25rem; }

/* Leserstimmen */
.stimmen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stimme { margin: 0; background: var(--surface-low); border-radius: var(--shape-l); padding: 1.5rem; box-shadow: var(--elev-1); position: relative; }
.stimme::before { content: "\201C"; position: absolute; top: -.25rem; left: 1rem; font-size: 4rem; color: var(--primary-container); line-height: 1; }
.stimme p { margin: .5rem 0; font-size: 1.0625rem; }
.stimme footer { color: var(--on-surface-variant); font-size: .9375rem; margin-top: .75rem; }
.leer { padding: 1.5rem; }

/* Buch */
.details { list-style: none; padding: 1rem 1.25rem; margin: 1.5rem 0 0; background: var(--surface-container); border-radius: var(--shape-m); display: grid; gap: .25rem; font-size: .9375rem; }
.kapitel-liste { list-style: none; counter-reset: k; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; }
.kapitel-liste li { counter-increment: k; background: var(--surface-low); border-radius: var(--shape-m); padding: 1rem 1.25rem 1rem 4rem; position: relative; box-shadow: var(--elev-1); display: grid; gap: .25rem; }
.kapitel-liste li::before { content: counter(k); position: absolute; left: 1rem; top: 1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); font-weight: 600; }
.kapitel-liste span { color: var(--on-surface-variant); font-size: .9375rem; }
.grosse { background: #ecebe8; border-radius: var(--shape-l); padding: clamp(1.5rem, 4vw, 3rem); }
.grosse p { max-width: 70ch; }
.hinweis { background: var(--tertiary-container); color: var(--on-tertiary-container); display: inline-block; padding: .625rem 1rem; border-radius: var(--shape-s); }

.steps { background: var(--surface-container); border-radius: var(--shape-l); padding: clamp(1.5rem, 4vw, 3rem); }
.steps ol { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .25rem; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 500; margin-bottom: .25rem; }
.steps li span { color: var(--on-surface-variant); }

/* Formulare */
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; align-items: start; }
.form { padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; }
.form h2, .form h1 { margin: 0; }
.form-inner { display: grid; gap: 1rem; }
.schmal { max-width: 520px; margin: 3rem auto; }
.schmal h1 { font-size: 1.75rem; }
.field { display: grid; gap: .25rem; font-size: .875rem; color: var(--on-surface-variant); }
.field input { font-family: inherit; font-size: 1rem; padding: .875rem 1rem; border: 1px solid var(--outline); border-radius: 4px; background: var(--surface); color: var(--on-surface); }
.field input:focus { outline: none; border: 2px solid var(--primary); padding: calc(.875rem - 1px) calc(1rem - 1px); }
.check { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; }
.check input, .antwort input { accent-color: var(--primary); width: 20px; height: 20px; margin: .1rem 0 0; flex: none; }
.fehler { background: var(--error-container); color: var(--on-error-container); padding: .75rem 1rem; border-radius: var(--shape-s); margin: 0; }
.erfolg { background: var(--primary-container); color: var(--on-primary-container); padding: .75rem 1rem; border-radius: var(--shape-s); }

/* Quiz */
.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.quiz-bild { border-radius: var(--shape-l); }
@media (max-width: 760px) { .quiz { grid-template-columns: 1fr; } .quiz-bild { display: none; } }
.antworten { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.antwort { display: flex; gap: .75rem; align-items: center; padding: .875rem 1rem; border: 1px solid var(--outline-variant); border-radius: var(--shape-s); cursor: pointer; background: var(--surface); }
.antwort:hover { background: rgb(63 107 79 / .06); }
.antwort:has(input:checked) { background: var(--primary-container); border-color: var(--primary); }

/* Exklusiver Bereich */
.willkommen { background: var(--primary-container); color: var(--on-primary-container); border-radius: var(--shape-l); padding: clamp(1.5rem, 4vw, 3rem); }
.willkommen .lead { color: inherit; }
.willkommen .erfolg { background: var(--surface); display: inline-block; margin: 0 0 .5rem; }
.kapitel { margin-top: 2rem; padding-bottom: .5rem; border-bottom: 1px solid var(--outline-variant); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.galerie.gross { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { background: var(--surface-low); border-radius: var(--shape-m); overflow: hidden; box-shadow: var(--elev-1); text-decoration: none; color: var(--on-surface); display: grid; transition: box-shadow .2s; }
.tile > a:first-child { display: grid; text-decoration: none; color: var(--on-surface); }
.tile small { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; color: var(--on-primary-container); background: var(--primary-container); padding: .05rem .4rem; border-radius: 4px; vertical-align: middle; }
.tile .jpg { padding: 0 .875rem .625rem; font-size: .8125rem; color: var(--on-surface-variant); }
.tile:hover { box-shadow: var(--elev-2); }
.tile img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; width: 100%; }
.galerie.gross .tile img { object-fit: cover; }
.tile span { padding: .625rem .875rem; font-size: .9375rem; }
.liste { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }

.text { max-width: 720px; }
.text h1 { font-size: 2rem; margin-top: 2rem; }
.text h2 { font-size: 1.25rem; margin: 1.5rem 0 .25rem; }
.text #datenschutz { font-size: 2rem; margin-top: 2.5rem; }

body > footer { text-align: center; padding: 2rem 1rem; color: var(--on-surface-variant); background: var(--surface-container); font-size: .875rem; margin-top: 3rem; }

/* Backend */
.admin h1 { font-size: 2rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.tabs a { padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--outline-variant); text-decoration: none; color: var(--on-surface-variant); font-weight: 500; }
.tabs a[aria-current] { background: var(--secondary-container); color: var(--on-secondary-container); border-color: transparent; }
.gruppe { border: 0; padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: 1rem; margin: 0 0 1rem; }
.gruppe legend { float: left; font-size: 1.25rem; font-weight: 500; margin-bottom: .25rem; }
.field textarea { font-family: inherit; font-size: 1rem; padding: .75rem 1rem; border: 1px solid var(--outline); border-radius: 4px; background: var(--surface); color: var(--on-surface); resize: vertical; }
.field textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.speichern { position: sticky; bottom: 1rem; justify-self: start; box-shadow: var(--elev-2); }
.eintrag { margin-bottom: .5rem; padding: 0 1.25rem; }
.eintrag summary { cursor: pointer; padding: 1rem 0; font-weight: 500; display: flex; align-items: center; gap: .75rem; }
.eintrag summary img { width: 40px; height: 40px; object-fit: contain; }
.eintrag[open] { padding-bottom: 1rem; }
.eintrag.neu summary { color: var(--primary); }
.vorschau { max-height: 140px; width: auto; }
.gefahr { color: var(--error); }
.gefahr:hover { background: var(--error-container); }
.tabelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--outline-variant); }
.aktionen { display: flex; gap: .25rem; }
.dateien { list-style: none; padding: 0; }
.dateien li { display: flex; justify-content: space-between; align-items: center; padding: .25rem 0; border-bottom: 1px solid var(--outline-variant); }
.upload { padding: 1.25rem; margin-bottom: 1rem; }
.field select { font-family: inherit; font-size: 1rem; padding: .75rem 1rem; border: 1px solid var(--outline); border-radius: 4px; background: var(--surface); color: var(--on-surface); }
.klein { font-size: .875rem; color: var(--on-surface-variant); }
.tabs.klein { margin-top: 0; }
.testmail { margin-top: 1rem; }
.eintrag .nr { min-width: 2.5rem; font-size: .8125rem; color: var(--on-surface-variant); font-weight: 400; }
.eintrag summary img { background: #fff; border-radius: 4px; }
.breit { max-width: 680px; }
.pruefung { list-style: none; padding: 0; display: grid; gap: .25rem; }
.pruefung .ja { color: var(--primary); }
.pruefung .nein { color: var(--error); font-weight: 500; }
.pruefung .warnung { color: #8a5a00; }
[hidden] { display: none !important; }
.schmal h2 { font-size: 1.25rem; margin: 1rem 0 0; }

/* Für die Großen */
.grosse-texte { display: grid; gap: 1.25rem; }
.text-karte { padding: clamp(1.25rem, 4vw, 2rem); background: #ecebe8; box-shadow: none; }
.text-karte h2 { margin-bottom: .5rem; }
.text-karte p { max-width: 70ch; }
.text-inhalt > :first-child { margin-top: 0; }
/* Mit Bild: links Text, rechts Bild, oben bündig; auf schmalen Bildschirmen Bild über dem Text */
.text-karte.mit-bild { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 340px); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.text-logo.als-foto { width: 100%; height: auto; border-radius: var(--shape-m); }
.text-logo.als-logo { max-width: 100%; max-height: 96px; width: auto; height: auto; }
@media (max-width: 760px) {
  .text-karte.mit-bild { grid-template-columns: 1fr; }
  .text-karte.mit-bild .text-logo { grid-row: 1; }
  .text-logo.als-foto { max-height: 280px; object-fit: cover; }
}
.linkkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.linkkarte { display: flex; gap: 1rem; padding: 1.25rem; text-decoration: none; color: var(--on-surface); transition: box-shadow .2s, background .2s; }
.linkkarte:hover { box-shadow: var(--elev-2); background: var(--surface-container); }
.logo-feld { flex: none; width: 88px; height: 88px; border-radius: var(--shape-m); display: grid; place-items: center; overflow: hidden; }
.logo-feld.als-foto img { width: 100%; height: 100%; object-fit: cover; }
.logo-feld.als-logo { background: #fff; border: 1px solid var(--outline-variant); }
.logo-feld.als-logo img { max-width: 76px; max-height: 76px; object-fit: contain; }
.logo-platzhalter { font-size: 2.25rem; font-weight: 600; color: var(--on-primary-container); background: var(--primary-container); width: 100%; height: 100%; display: grid; place-items: center; }
.link-text { display: grid; gap: .25rem; align-content: start; }
.link-text strong { font-size: 1.125rem; font-weight: 500; }
.link-text span { color: var(--on-surface-variant); font-size: .9375rem; }
.link-text .domain { color: var(--primary); font-weight: 500; font-size: .875rem; }
.grosse .btn { margin-top: .5rem; }

/* Desktop: Menü exakt mittig, Logo links, Anmelden rechts */
@media (min-width: 1280px) {
  .appbar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .navigation { display: contents; }
  .logo { justify-self: start; }
  .menue { justify-self: center; }
  .konto { justify-self: end; }
}

/* Nutzertabelle: feste Spalten, Aktionen innerhalb der Zelle */
table.nutzer { table-layout: fixed; min-width: 960px; }
table.nutzer .c-name { width: 11%; } table.nutzer .c-mail { width: 20%; } table.nutzer .c-seit { width: 10%; }
table.nutzer .c-best { width: 9%; } table.nutzer .c-frei { width: 11%; } table.nutzer .c-admin { width: 7%; } table.nutzer .c-akt { width: 32%; }
table.nutzer th { white-space: nowrap; }
table.nutzer td { vertical-align: middle; overflow-wrap: anywhere; }
table.nutzer .aktionen { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
table.nutzer .aktionen .btn { padding-inline: .625rem; min-height: 36px; }

/* Banner zur Buchfrage */
.banner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.25rem 0 0; padding: 1rem 1.25rem; border-radius: var(--shape-l);
  background: var(--secondary-container); color: var(--on-secondary-container); }
.banner img { border-radius: 12px; flex: none; }
.banner p { margin: 0; flex: 1 1 280px; font-weight: 500; }
.vorschau-hinweis { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--shape-m); background: var(--surface); color: var(--on-surface); display: grid; gap: .75rem; justify-items: start; }
.vorschau-hinweis p { margin: 0; }
