/* LeafTick · Plant care, right on time.
   Mobile first. Eine Spalte, grosse Tippflaechen, ruhiger natuerlicher Look.
   Die Formensprache folgt dem Pflanzenstiel: weiche Kanten, Blattformen,
   ein wachsender grüner Verlauf. Alles, was auf dem Handy zählt, steht oben. */

:root {
  /* Farben aus der Logo-Marke: helles Blattgrün, Markengrün, Stielgrün, Kalk */
  --gruen-hell: #a7d356;
  --gruen-300: #7ec96f;
  --gruen-400: #4a9455;
  --gruen-500: #2e7d32;
  --gruen-600: #1b5e3a;
  --gruen-700: #12402a;
  --gold: #d4b574;
  --kalk: #fffbf4;
  --blatt-verlauf: linear-gradient(160deg, #62b96b 0%, #297d45 48%, #14522f 100%);
  --blatt-hell: #eaf0e3;
  --moos: #f7f5ee;
  --flaeche: #ffffff;
  --flaeche-alt: #f8f8f1;
  --tinte: #17231a;
  --tinte-leise: #5b6d5f;
  --rand: #e2e4d6;
  --radius: 20px;
  --radius-schmal: 12px;
  --abstand: 16px;
  --max-breite: 47rem;
  --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-oben: env(safe-area-inset-top, 0px);
  --schatten: 0 1px 2px rgba(23, 35, 26, 0.04), 0 10px 28px rgba(20, 82, 47, 0.08);
  --schatten-klein: 0 1px 2px rgba(23, 35, 26, 0.05), 0 4px 12px rgba(20, 82, 47, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --gruen-hell: #b9dd74;
    --gruen-300: #6cc583;
    --gruen-400: #52b467;
    --gruen-500: #4fa563;
    --gruen-600: #7ec96f;
    --gruen-700: #a7d356;
    --kalk: #1a2018;
    --blatt-verlauf: linear-gradient(160deg, #4fa563 0%, #2b7442 50%, #17452a 100%);
    --blatt-hell: #1b2a1c;
    --moos: #10150f;
    --flaeche: #171d15;
    --flaeche-alt: #1d241a;
    --tinte: #e9efe6;
    --tinte-leise: #a2b2a4;
    --rand: #2b3628;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.28);
    --schatten-klein: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.24);
  }
}

* { box-sizing: border-box; }

/* Das hidden-Attribut muss auch bei Elementen greifen, die sonst display
   bekommen (Knöpfe, Karten). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  padding: 0 0 calc(24px + var(--sicher-unten));
  background: var(--moos);
  color: var(--tinte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.huelle {
  width: 100%;
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 var(--abstand);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px; top: 8px;
  z-index: 20;
  background: var(--flaeche);
  padding: 10px 14px;
  border-radius: var(--radius-schmal);
}

/* ------------------------------------------------------------- Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--moos) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rand);
  padding-top: var(--sicher-oben);
}
.kopf-inhalt { min-height: 60px; display: flex; align-items: center; }

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.marke-bild {
  display: block;
  width: 150px;
  height: auto;
}
/* ------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding: 34px 0 10px;
  overflow: hidden;
}
.hero-deko {
  position: absolute;
  top: 10px;
  right: -34px;
  width: 190px;
  height: auto;
  color: var(--gruen-400);
  opacity: 0.16;
  pointer-events: none;
}
.hero-marke {
  display: block;
  width: min(320px, 84vw);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 22px rgba(20, 82, 47, 0.14));
}
.hero h1 {
  font-size: 2.05rem;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 18ch;
}
.lead {
  max-width: 44ch;
  margin: 0 0 22px;
  color: var(--tinte-leise);
}
.vertraut {
  margin: 14px 0 0;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------- Buttons */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--gruen-600);
  border-radius: 999px;
  background: var(--flaeche);
  color: var(--gruen-600);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.knopf:active { transform: scale(0.985); }
.knopf:focus-visible { outline: 3px solid var(--gruen-500); outline-offset: 3px; }
.knopf[disabled] { opacity: 0.55; cursor: not-allowed; }
.text-knopf {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gruen-600);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.text-knopf:focus-visible { outline: 2px solid var(--gruen-500); outline-offset: 2px; }
.service-hinweis { margin: 10px 0 0; color: var(--tinte); }
.knopf-gross { min-height: 56px; font-size: 1.05rem; }
.knopf-schmal { width: auto; }
.knopf-symbol { width: 22px; height: 22px; flex: none; }

.knopf-haupt {
  background: var(--blatt-verlauf);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(38, 112, 58, 0.28);
}
.knopf-umriss {
  background: transparent;
  border-color: var(--rand);
  color: var(--tinte);
}
.knopf-umriss:hover { border-color: var(--gruen-500); color: var(--gruen-600); }

/* ------------------------------------------------------------- Karten */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: var(--abstand);
  margin: var(--abstand) 0;
  box-shadow: var(--schatten-klein);
}
.karte h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.nummer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50% 50% 50% 8px;
  background: var(--blatt-verlauf);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ------------------------------------------------------------- Abschnitte */
.abschnitt { margin: 40px 0; }
.abschnitt-titel {
  font-size: 1.35rem;
  margin: 0 0 18px;
  padding-bottom: 12px;
  position: relative;
}
.abschnitt-titel::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  border-radius: 2px;
  background: var(--blatt-verlauf);
}

/* --------------------------------------------- Stiel: So funktioniert es */
.stiel {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.stiel::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 22px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gruen-400), var(--gruen-300) 60%, transparent);
}
.stiel-glied {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 22px;
}
.stiel-glied:last-child { padding-bottom: 0; }
.stiel-knoten {
  position: relative;
  z-index: 1;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 10px;
  transform: rotate(-8deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blatt-verlauf);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(38, 112, 58, 0.24);
}
.stiel-knoten::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: rotate(8deg);
}
.stiel-glied h3 {
  margin: 4px 0 4px;
  font-size: 1.06rem;
}
.stiel-glied p {
  margin: 0;
  color: var(--tinte-leise);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------- Beispiel */
.beispiel { background: linear-gradient(180deg, var(--blatt-hell), var(--flaeche) 60%); }
.beispiel-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.beispiel-kopf strong { display: block; font-size: 1.08rem; }
.beispiel-liste { list-style: none; margin: 0 0 12px; padding: 0; }
.beispiel-liste li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rand);
  font-size: 0.95rem;
}
.beispiel-liste li:last-child { border-bottom: 0; }
.beispiel-datum {
  flex: none;
  min-width: 76px;
  color: var(--gruen-600);
  font-weight: 700;
  font-size: 0.86rem;
}

/* Blatt-Marke als kleines Symbol */
.blatt-marke {
  flex: none;
  width: 30px; height: 30px;
  color: var(--gruen-500);
  transform: rotate(-8deg);
  filter: drop-shadow(0 3px 6px rgba(20, 82, 47, 0.22));
}
.klein-marke { width: 24px; height: 24px; }

/* ------------------------------------------------------------- Formular */
.feld { margin: 0 0 18px; border: 0; padding: 0; }
.feld label, .feld legend {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  color: var(--tinte);
  background: var(--flaeche-alt);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-schmal);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gruen-500);
  box-shadow: 0 0 0 3px var(--blatt-hell);
}

.wahlreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl { flex: 1 1 auto; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 14px;
  border: 1.5px solid var(--rand);
  border-radius: 999px;
  background: var(--flaeche-alt);
  text-align: center;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.wahl input:checked + span {
  border-color: var(--gruen-500);
  background: var(--blatt-hell);
  color: var(--gruen-600);
  font-weight: 600;
}
.wahl input:focus-visible + span { outline: 3px solid var(--gruen-500); outline-offset: 2px; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.check input {
  width: 24px; height: 24px;
  min-width: 24px;
  margin: 2px 0 0;
  accent-color: var(--gruen-500);
}

.erweitert {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rand);
}
.erweitert summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--gruen-600);
}

/* ------------------------------------------------------------- Foto */
.foto-vorschau { margin-bottom: 16px; }
.foto-vorschau img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 10px;
  box-shadow: var(--schatten);
}
.visuell-versteckt {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------- Fortschritt */
.fortschritt {
  height: 8px;
  background: var(--flaeche-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.fortschritt-balken {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: var(--blatt-verlauf);
  transition: width 0.4s ease;
}

/* ------------------------------------------------------------- Erkennung */
.ergebnis-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ergebnis-kopf h2 { margin: 0; }

.erkannt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.erkannt-name { display: flex; align-items: center; gap: 11px; }
.erkannt-name strong { font-size: 1.22rem; display: block; }
.sicherheit {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blatt-hell);
  color: var(--gruen-600);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ------------------------------------------------------------- Termine */
.termine { list-style: none; margin: 0; padding: 0; }
.termine li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--rand);
}
.termine li:last-child { border-bottom: 0; }
.termin-kasten {
  width: 26px; height: 26px;
  min-width: 26px;
  margin-top: 2px;
  accent-color: var(--gruen-500);
}
.termin-text { flex: 1; }
.termin-datum {
  font-weight: 700;
  display: block;
}
.termin-titel { display: block; }
.termin-art {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gruen-600);
  background: var(--blatt-hell);
  border-radius: 999px;
  padding: 2px 9px;
  margin-right: 7px;
}
.termin-abgewahlt { opacity: 0.4; text-decoration: line-through; }
.termin-hinweis { color: var(--tinte-leise); font-size: 0.85rem; margin: 4px 0 0; }
.termin-ki {
  color: var(--tinte-leise);
  font-style: italic;
  font-size: 0.78rem;
  white-space: nowrap;
}

.liste { padding-left: 20px; margin: 8px 0; }
.liste li { margin-bottom: 6px; }
.blaetter { list-style: none; padding-left: 0; }
.blaetter li { position: relative; padding-left: 24px; }
.blaetter li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-8deg);
  background: var(--blatt-verlauf);
}
.klein { font-size: 0.87rem; color: var(--tinte-leise); }
.fett { font-weight: 600; }
.mittig { text-align: center; }

/* ------------------------------------------------------------- Untere App-Leiste */
.klein-schaltflaechen .wahl span { min-height: 42px; font-size: 0.85rem; }

/* ------------------------------------------------------------- Fehler */
.fehler-karte { border-color: #c2685c; }
@media (prefers-color-scheme: dark) {
  .fehler-karte { border-color: #d9806f; }
}

/* ------------------------------------------------------------- Fragen */
.frage details {
  border-bottom: 1px solid var(--rand);
  padding: 2px 0;
}
.frage summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 52px;
  display: flex;
  align-items: center;
  color: var(--tinte);
}
.frage p { margin: 0 0 16px; color: var(--tinte-leise); font-size: 0.95rem; }

/* ------------------------------------------------------------- Ko-fi */
/* Der Button ist das offizielle Ko-fi-Bild, lokal ausgeliefert. Das Widget
   ist eine eigene Nachbildung der offiziellen Pille (Farbe und Maße aus dem
   Ko-fi-Snippet), damit beim Laden keine fremde Seite aufgerufen wird. */
.kofi-knopf {
  display: inline-flex;
  max-width: 100%;
  line-height: 0;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.kofi-knopf img { display: block; width: auto; height: 36px; }
.kofi-knopf:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(13, 12, 34, 0.18); }
.kofi-knopf:active { transform: scale(0.98); }
.kofi-knopf:focus-visible { outline: 3px solid var(--gruen-500); outline-offset: 3px; }

.kofi-widget {
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--sicher-unten));
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 100px;
  background: #5cb85c;
  color: #ffffff;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(13, 12, 34, 0.24);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kofi-widget:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 12, 34, 0.3); }
.kofi-widget:active { transform: scale(0.97); }
.kofi-widget:focus-visible { outline: 3px solid var(--gruen-500); outline-offset: 3px; }
.kofi-widget-logo { display: block; width: 39px; height: auto; }

/* Mit Plan liegt die App-Leiste unten. Die Pille rueckt dann nach oben,
   statt zu verschwinden: Der Dank soll genau dann sichtbar sein, wenn der
   Plan da ist. Erst auf breiten Bildschirmen (Leiste mittig, 560 px) passt
   sie wieder neben die Leiste. */
body.hat-plan .kofi-widget { bottom: calc(84px + var(--sicher-unten)); }
@media (min-width: 48rem) and (max-width: 59.99rem) {
  /* Die Leiste schwebt hier 16 px ueber dem Rand: mehr Luft fuer die Pille. */
  body.hat-plan .kofi-widget { bottom: calc(100px + var(--sicher-unten)); }
}
@media (min-width: 60rem) {
  body.hat-plan .kofi-widget { bottom: calc(18px + var(--sicher-unten)); }
}

/* ------------------------------------------------------------- App-Leiste unten */
.app-leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px 10px calc(8px + var(--sicher-unten));
  background: color-mix(in srgb, var(--flaeche) 94%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--rand);
}
.app-knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--tinte);
  font: inherit;
  font-size: clamp(0.78rem, 3.1vw, 1rem);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, transform 0.12s ease;
}
.app-knopf svg { width: 21px; height: 21px; flex: 0 0 auto; }
.app-knopf:active { transform: scale(0.98); }
.app-knopf:focus-visible { outline: 2px solid var(--gruen-500); outline-offset: 2px; }
.app-knopf-sekundaer {
  flex: 0 0 auto;
  border: 1px solid var(--rand);
  background: var(--flaeche);
  color: var(--gruen-600);
}
.app-knopf-sekundaer:hover { background: var(--flaeche-alt); }
.app-knopf-haupt {
  flex: 1 1 auto;
  background: var(--gruen-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(27, 94, 58, 0.22);
}
.app-knopf-haupt:hover { background: var(--gruen-700); }

body.hat-plan #ergebnis { padding-bottom: calc(84px + var(--sicher-unten)); }

/* Aktionsliste: erklaert jeden Weg mit Klartext */
.aktionsliste {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aktions-eintrag {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rand);
  border-radius: 14px;
  background: var(--flaeche);
  color: var(--tinte);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.aktions-eintrag:hover { border-color: var(--gruen-400); background: var(--flaeche-alt); }
.aktions-eintrag:active { transform: scale(0.99); }
.aktions-eintrag:focus-visible { outline: 2px solid var(--gruen-500); outline-offset: 2px; }
.aktions-symbol {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blatt-hell);
  color: var(--gruen-600);
}
.aktions-symbol svg { width: 21px; height: 21px; }
.aktions-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aktions-titel { font-weight: 650; font-size: 0.97rem; }
.aktions-beschreibung { font-size: 0.84rem; line-height: 1.42; color: var(--tinte-leise); }

.karte-aktion {
  background: linear-gradient(180deg, var(--blatt-hell) 0%, var(--flaeche) 150px);
  border-color: #cddfc4;
}
.karte-aktion h2 { color: var(--gruen-600); }

#abo-status:empty,
#text-status:empty { display: none; }
#abo-status, #text-status { display: block; color: var(--gruen-600); }

/* Sprungziele nicht unter dem Klebe-Kopf verschwinden lassen */
.karte,
#ergebnis,
#ladebereich,
#fehlerbereich {
  scroll-margin-top: calc(74px + var(--sicher-oben));
}

/* ------------------------------------------------------------- Fuss */
.fuss {
  margin-top: 44px;
  border-top: 1px solid var(--rand);
  background: var(--flaeche);
  padding: 26px 0 calc(26px + var(--sicher-unten));
}
.fuss-marke { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.fuss-marke-bild { display: block; width: 132px; height: auto; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.fuss-links a { color: var(--gruen-600); font-size: 0.9rem; }

/* ------------------------------------------------------------- Grosse Bildschirme */
@media (max-width: 29.99rem) {
  .marke-bild { width: 128px; }
  .kopf-note { display: none; }
}

@media (min-width: 48rem) {
  body { font-size: 18px; }
  .hero { padding: 52px 0 12px; }
  .hero-marke { width: min(360px, 60vw); margin-bottom: 24px; }
  .hero h1 { font-size: 2.9rem; max-width: 16ch; }
  .lead { font-size: 1.06rem; }
  .hero-deko { width: 280px; right: -50px; top: -20px; opacity: 0.2; }
  .karte { padding: 24px; }
  .abschnitt { margin: 56px 0; }
  .knopf-gross { width: auto; padding: 15px 32px; }
  .wahlreihe .wahl { flex: 0 1 auto; }
  .app-leiste {
    left: 50%;
    right: auto;
    bottom: 16px;
    width: min(560px, calc(100vw - 32px));
    transform: translateX(-50%);
    border: 1px solid var(--rand);
    border-radius: 20px;
    padding: 9px 10px;
    box-shadow: 0 16px 40px rgba(13, 12, 34, 0.18);
  }
  .app-knopf { font-size: 0.95rem; padding: 10px 18px; }
  body.hat-plan #ergebnis { padding-bottom: 120px; }
  .stiel { max-width: 42rem; }
  .stiel::before { left: 19px; }
}

/* ------------------------------------------------------------- Neu: Ergebnisteile */
.kopf-note {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--tinte-leise);
  letter-spacing: 0.02em;
}

.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.knopf-reihe .knopf { flex: 1 1 14rem; }

.ki-hinweis {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-schmal);
  background: var(--flaeche-alt);
  border: 1px solid var(--rand);
  font-size: 0.88rem;
  color: var(--tinte-leise);
  line-height: 1.5;
}
.ki-hinweis strong { color: var(--tinte); }
.ki-zeile { margin: 14px 0 0; }

.karte-akzent {
  background: linear-gradient(180deg, var(--blatt-hell), var(--flaeche) 70%);
  border-color: var(--gruen-300);
}
.schritte { list-style: none; margin: 0; padding: 0; }
.schritte li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rand);
}
.schritte li:last-child { border-bottom: 0; }
.schritt-datum {
  flex: none;
  min-width: 74px;
  font-weight: 700;
  color: var(--gruen-600);
  font-size: 0.9rem;
}
.schritt-text { display: flex; flex-direction: column; gap: 2px; }
.schritt-text strong { font-size: 1rem; }

.jahreslauf { margin: 0; }
.jahreslauf dt {
  font-weight: 700;
  color: var(--gruen-600);
  margin-top: 10px;
}
.jahreslauf dt:first-child { margin-top: 0; }
.jahreslauf dd { margin: 2px 0 0; }

.warnzeichen { list-style: none; margin: 0; padding: 0; }
.warnzeichen li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rand);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.warnzeichen li:last-child { border-bottom: 0; }

.beispiel-marke {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--gruen-600);
  margin: 0 0 4px;
}

.leiste-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.leiste-reihe .knopf { flex: 1 1 12rem; }

.turnstile { margin: 0 0 12px; }
.turnstile:empty { display: none; }

#quellen-liste a { color: var(--gruen-600); }

.fuss .fuss-marke-bild { width: 116px; }

@media (min-width: 48rem) {
  .knopf-reihe .knopf { flex: 0 1 auto; }
  .leiste-reihe { flex-wrap: nowrap; align-items: center; }
  .leiste-reihe .knopf { flex: 0 0 auto; }
}

/* ------------------------------------------------------------- Feinschliff Ergebnis */
.foto-bereich { margin-top: 4px; }
.beispiel-was { display: block; }

@media (max-width: 30rem) {
  .kofi-widget { right: 12px; bottom: calc(12px + var(--sicher-unten)); padding: 0 16px; height: 44px; }
  .kofi-widget-logo { width: 34px; }
  .kofi-widget { font-size: 15px; }
}

/* ------------------------------------------------------------- Steckbrief */
.eigenschaften {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 14px 0 0;
  font-size: 0.92rem;
}
.eigenschaften dt { color: var(--tinte-leise); font-weight: 600; }
.eigenschaften dd { margin: 0; }
.eigenschaften dt[hidden], .eigenschaften dd[hidden] { display: none; }
.eig-gift {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #e8b9a8;
  border-radius: var(--radius-schmal);
  background: #fff3ee;
  color: #7a2e1c;
  font-size: 0.88rem;
  line-height: 1.5;
}
.eig-gift[hidden] { display: none; }
@media (prefers-color-scheme: dark) {
  .eig-gift { background: #3a211b; border-color: #7a4436; color: #f0bfae; }
}

/* Mit Plan liegt die App-Leiste fest unten: der Fuss braucht Luft. */
body.hat-plan .fuss { padding-bottom: calc(96px + var(--sicher-unten)); }

/* ------------------------------------------------------------- Pflanzenfoto */
.pflanze-foto { margin: 14px 0 0; }
.pflanze-foto[hidden] { display: none; }
.pflanze-foto img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--blatt-hell);
  border: 1px solid var(--rand);
}
.pflanze-foto figcaption {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.4;
}
.pflanze-foto figcaption a { color: inherit; }


/* ------------------------------------------------------------- Ko-fi in der Auswertung */
/* Direkt nach den naechsten Schritten: Der Plan ist da, hier ist der Dank
   am besten aufgehoben. Gleicher Link wie ueberall, kein fremdes Skript. */
.karte-kofi {
  background: linear-gradient(135deg, #fff7d6 0%, var(--flaeche) 70%);
  border-color: #efd98a;
}
.kofi-karte-inhalt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.kofi-karte-text { flex: 1 1 16rem; min-width: 0; }
.kofi-karte-text h2 { margin-bottom: 6px; }
.kofi-karte-text p { margin: 0; }
.kofi-knopf-gross { flex: 0 0 auto; }
.kofi-knopf-gross img { height: 40px; }
@media (prefers-color-scheme: dark) {
  .karte-kofi { background: linear-gradient(135deg, #2b2a1b 0%, var(--flaeche) 70%); border-color: #5a5230; }
}

/* ------------------------------------------------------------- Fehler melden */
/* Bewusst leise: ein Textlink in der ersten Ergebniskarte und einer im Fuss.
   Kein Knopf im Kopf, damit die Seite nicht zum Meldeformular einlaedt. */
.melde-zeile { margin: 10px 0 0; }
.text-knopf-leise { font-weight: 500; color: var(--tinte-leise); }
.text-knopf-leise:hover { color: var(--gruen-600); }

.fuss-knopf {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gruen-600);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.fuss-knopf:focus-visible { outline: 2px solid var(--gruen-500); outline-offset: 2px; }

/* Das Formular als natives Dialogfeld: auf dem Handy als Blatt von unten,
   am Computer als mittige Karte. Ohne showModal (alte Browser) wird es
   ueber das open-Attribut angezeigt und bleibt dann im Fluss der Seite. */
/* Browser ohne <dialog> zeigen das Element sonst dauerhaft im Fluss. */
.melde-dialog:not([open]) { display: none; }
.melde-dialog {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  background: transparent;
  color: var(--tinte);
}
.melde-dialog[open] {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 30;
}
.melde-dialog::backdrop {
  background: rgba(16, 21, 15, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.melde-dialog form {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 18px var(--abstand) calc(18px + var(--sicher-unten));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(13, 12, 34, 0.25);
}
.melde-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.melde-kopf h2 { margin: 0; font-size: 1.3rem; }
.melde-schliessen {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rand);
  border-radius: 50%;
  background: var(--flaeche-alt);
  color: var(--tinte);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.melde-schliessen svg { width: 20px; height: 20px; }
.melde-schliessen:focus-visible { outline: 3px solid var(--gruen-500); outline-offset: 2px; }
.melde-dialog textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.45;
}
.melde-zaehler { margin: 6px 0 0; text-align: right; }
.leise { font-weight: 400; color: var(--tinte-leise); }
.melde-kontext { margin-top: 4px; }
.melde-status { margin: 8px 0 0; font-weight: 600; color: var(--gruen-600); }
.melde-status:empty { display: none; }
.melde-status.ist-fehler { color: #a3453a; }
@media (prefers-color-scheme: dark) {
  .melde-status.ist-fehler { color: #e8907f; }
}
.melde-knoepfe { margin-top: 14px; }
.melde-dialog .knopf-haupt[disabled] { opacity: 0.6; }

@media (min-width: 48rem) {
  .melde-dialog[open] {
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    max-height: none;
  }
  .melde-dialog form {
    width: min(520px, calc(100vw - 32px));
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(13, 12, 34, 0.3);
  }
}
