/* Gartenvögel – sanftes Grün, viel Luft, runde Formen.
   Schriften kommen bewusst vom System (keine externen Webfonts → keine
   Datenübertragung an Dritte, DSGVO-freundlich). */

:root {
  color-scheme: light dark;

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --schrift-titel: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;

  /* Palette hell */
  --grund: #f4f8f0;
  --grund-tief: #e7f0df;
  --flaeche: #ffffff;
  --text: #1d2e22;
  --text-leise: #56685a;
  --linie: #d5e3cc;
  --wald: #1f4a2c;
  --moos: #2f6b3f;
  --farn: #4f8f5a;
  --salbei: #9cc49a;
  --minze: #cfe6c4;
  --tau: #e6f3de;
  --honig: #e2a02e;
  --beere: #c94f34;
  --himmel: #3f8bab;

  --glanz-innen: #dff0d2;
  --glanz-aussen: #f4f8f0;

  --schatten: 0 1px 2px rgb(31 74 44 / 0.06), 0 8px 24px -12px rgb(31 74 44 / 0.25);
  --schatten-hoch: 0 2px 4px rgb(31 74 44 / 0.08), 0 22px 44px -18px rgb(31 74 44 / 0.4);
  --rund: 22px;
  --breite: 78rem;
  --lesebreite: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0f1a13;
    --grund-tief: #132219;
    --flaeche: #172a1e;
    --text: #e3eee0;
    --text-leise: #a3b8a4;
    --linie: #274233;
    --wald: #cfe6c4;
    --moos: #9fd19a;
    --farn: #86c28a;
    --salbei: #5f9265;
    --minze: #2c4a35;
    --tau: #1b3024;
    --honig: #f0b94a;
    --beere: #e2755a;
    --himmel: #6ab6d6;
    --glanz-innen: #24402d;
    --glanz-aussen: #0f1a13;
    --schatten: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 26px -14px rgb(0 0 0 / 0.7);
    --schatten-hoch: 0 2px 6px rgb(0 0 0 / 0.35), 0 24px 48px -20px rgb(0 0 0 / 0.8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(60rem 40rem at 110% -10%, var(--tau), transparent 60%),
    radial-gradient(50rem 36rem at -20% 10%, var(--grund-tief), transparent 60%),
    var(--grund);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--moos);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--farn);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--honig);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--minze);
  color: var(--wald);
}

.springen {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--wald);
  color: var(--grund);
}

.springen:focus {
  top: 1rem;
}

/* ---------- Kopf ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--grund) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
}

.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--schrift-titel);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wald);
  text-decoration: none;
}

.marke:hover {
  color: var(--wald);
}

.logo {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tau), var(--minze));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--salbei) 40%, transparent);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.marke:hover .logo {
  transform: rotate(-8deg) scale(1.06);
}

.logo-koerper { fill: var(--moos); }
.logo-schwanz { fill: var(--wald); }
.logo-fluegel { fill: var(--farn); }
.logo-brust { fill: var(--honig); }
.logo-schnabel { fill: var(--honig); }
.logo-auge { fill: var(--grund); }
.logo-bein { stroke: var(--wald); stroke-width: 2.4; stroke-linecap: round; fill: none; }

.kopf nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--moos);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--tau);
  transition: background 0.2s, color 0.2s;
}

.kopf nav a:hover {
  background: var(--minze);
  color: var(--wald);
}

/* ---------- Startseite: Held ---------- */

.held {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.held-vorzeile {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--minze);
  color: var(--wald);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.held h1 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--wald);
  background: linear-gradient(120deg, var(--wald) 10%, var(--farn) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.held-unterzeile {
  max-width: 32rem;
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-leise);
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--moos), var(--honig));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--moos) 80%, transparent);
  transition: transform 0.25s, box-shadow 0.25s;
}

.knopf::after {
  content: "↓";
  transition: transform 0.25s;
}

.knopf:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--moos) 90%, transparent);
}

.knopf:hover::after {
  transform: translateY(2px);
}

@media (prefers-color-scheme: dark) {
  .knopf,
  .knopf:hover {
    color: #0f1a13;
  }
}

.held-bild {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgb(31 74 44 / 0.12));
}

.held-kreis { fill: var(--tau); stroke: var(--minze); stroke-width: 2; }
.held-ast { fill: none; stroke: #7a5f45; stroke-width: 9; stroke-linecap: round; }
.held-zweig { stroke-width: 5; }
.held-blaetter ellipse { fill: var(--farn); }
.held-blaetter ellipse.hell { fill: var(--salbei); }
.held-beeren circle { fill: var(--beere); }

@media (prefers-color-scheme: dark) {
  .held-ast { stroke: #8a7058; }
}

.held-vogel {
  transform-box: fill-box;
  animation: wippen 5s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes wippen {
  0%, 100% { rotate: 0deg; }
  45% { rotate: -3deg; }
  55% { rotate: 1.5deg; }
}

/* ---------- Startseite: Karten ---------- */

.ratgeber {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  scroll-margin-top: 5rem;
}

.abschnitt-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--linie);
}

.abschnitt-kopf h2 {
  margin: 0 0 0.75rem;
  font-family: var(--schrift-titel);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--wald);
}

.abschnitt-kopf p {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.95rem;
}

.karten {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .karte:first-child {
    grid-column: span 2;
  }

  .karte:first-child .karte-bild {
    aspect-ratio: 2.1 / 1;
  }

  .karte:first-child .karte-bild .illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .karte:first-child h3 {
    font-size: 1.7rem;
  }
}

.karte {
  --ton: var(--farn);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.3rem;
  border-radius: var(--rund);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}

.karte:nth-child(7n + 2) { --ton: var(--moos); }
.karte:nth-child(7n + 3) { --ton: var(--honig); }
.karte:nth-child(7n + 4) { --ton: var(--himmel); }
.karte:nth-child(7n + 5) { --ton: var(--salbei); }
.karte:nth-child(7n + 6) { --ton: var(--beere); }
.karte:nth-child(7n + 0) { --ton: #6fa36b; }

.karte:nth-child(7n + 2) .karte-bild .illustration { filter: hue-rotate(16deg) saturate(1.05); }
.karte:nth-child(7n + 3) .karte-bild .illustration { filter: hue-rotate(38deg) saturate(1.15); }
.karte:nth-child(7n + 4) .karte-bild .illustration { filter: hue-rotate(-48deg) saturate(1.2); }
.karte:nth-child(7n + 5) .karte-bild .illustration { filter: hue-rotate(-18deg) saturate(1.1); }
.karte:nth-child(7n + 6) .karte-bild .illustration { filter: hue-rotate(64deg) saturate(0.85); }
.karte:nth-child(7n + 0) .karte-bild .illustration { filter: hue-rotate(-34deg); }

.karte::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--ton), color-mix(in srgb, var(--ton) 30%, var(--minze)));
}

.karte:hover {
  transform: translateY(-4px);
  box-shadow: var(--schatten-hoch);
  border-color: color-mix(in srgb, var(--ton) 45%, var(--linie));
}

.karte-blatt {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 50% 0 50% 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--ton) 25%, var(--tau)), color-mix(in srgb, var(--ton) 55%, var(--minze)));
  rotate: -45deg;
  transition: rotate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.karte:hover .karte-blatt {
  rotate: -20deg;
}

.karte h3 {
  margin: 0 0 0.6rem;
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  line-height: 1.3;
  text-wrap: balance;
}

.karte h3 a {
  color: var(--wald);
  text-decoration: none;
}

/* ganze Karte klickbar */
.karte h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.karte p {
  margin: 0 0 1rem;
  color: var(--text-leise);
  font-size: 0.98rem;
  line-height: 1.6;
}

.karte-pfeil {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  color: var(--ton);
  font-size: 0.88rem;
  font-weight: 700;
}

.karte:hover .karte-pfeil {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.karte-meta {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem !important;
}

.karte-meta > *,
.beitrag-meta > * {
  padding: 0.18rem 0.65rem;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--tau);
  color: var(--moos);
  font-weight: 600;
}

/* ---------- Artikel ---------- */

.fortschritt {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--salbei), var(--farn), var(--honig));
  animation: lesen linear both;
  animation-timeline: scroll(root);
}

@keyframes lesen {
  to { transform: scaleX(1); }
}

@supports not (animation-timeline: scroll()) {
  .fortschritt { display: none; }
}

.beitrag {
  max-width: var(--lesebreite);
  margin: clamp(1.5rem, 5vw, 3.5rem) auto 0;
  padding: 0 1.25rem;
}

.beitrag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
}

.beitrag h1 {
  margin: 0 0 1.5rem;
  font-family: var(--schrift-titel);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--wald);
  text-wrap: balance;
  hyphens: auto;
}

.beitrag h1 + p {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text);
  padding: 1.25rem 1.5rem;
  border-radius: var(--rund);
  background: linear-gradient(135deg, var(--tau), color-mix(in srgb, var(--ton, var(--minze)) 30%, var(--flaeche)));
  border: 1px solid color-mix(in srgb, var(--ton, var(--farn)) 30%, var(--linie));
  border-left: 4px solid var(--ton, var(--farn));
}

.beitrag h2 {
  position: relative;
  margin: 3rem 0 1rem;
  padding-top: 1.25rem;
  font-family: var(--schrift-titel);
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.85rem);
  line-height: 1.25;
  color: var(--wald);
  text-wrap: balance;
}

.beitrag h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ton, var(--farn)), var(--salbei));
}

.beitrag h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.15rem;
  color: var(--moos);
}

.beitrag p,
.beitrag li {
  hyphens: auto;
}

.beitrag strong {
  color: var(--wald);
  font-weight: 700;
}

.beitrag ul {
  padding-left: 0;
  list-style: none;
}

.beitrag ul li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.5rem 0;
}

.beitrag ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50% 0 50% 50%;
  rotate: -45deg;
  background: var(--farn);
}

/* Quellenverzeichnis: letzte Liste des Artikels */
.artikelseite .beitrag > ul:last-of-type {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--rund);
  background: var(--flaeche);
  border: 1px dashed var(--linie);
  font-size: 0.9rem;
  line-height: 1.5;
}

.artikelseite .beitrag > ul:last-of-type li::before {
  background: var(--salbei);
  width: 0.45rem;
  height: 0.45rem;
}

.artikelseite .beitrag > ul:last-of-type a {
  overflow-wrap: anywhere;
}

.datum {
  margin-top: 2.5rem;
  color: var(--text-leise);
  font-size: 0.9rem;
}

.zurueck {
  max-width: var(--lesebreite);
  margin: 1rem auto 4rem;
  padding: 0 1.25rem;
}

.zurueck a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--tau);
  font-weight: 600;
  text-decoration: none;
}

.zurueck a:hover {
  background: var(--minze);
}

.textseite .beitrag {
  margin-bottom: 4rem;
}

/* ---------- Fuß ---------- */

.fuss {
  position: relative;
  margin-top: 2rem;
  color: #dcebd6;
  background: #1f3a28;
}

.fuss-welle {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 50px;
  display: block;
}

.fuss-welle path {
  fill: #1f3a28;
}

.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  display: grid;
  gap: 0.4rem;
}

.fuss-marke {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f8ec;
}

.fuss-text {
  margin: 0 0 0.75rem;
  color: #a9c6a6;
  font-size: 0.95rem;
}

.fuss-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
}

.fuss-links a {
  color: #cfe6c4;
}

.fuss-links a:hover {
  color: #fff;
}

/* ---------- Klein ---------- */

@media (max-width: 760px) {
  .held {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .held-bild {
    order: -1;
    max-width: 15rem;
    margin: 0 auto -1.5rem;
  }

  .beitrag h1 + p {
    font-size: 1.08rem;
    padding: 1rem 1.1rem;
  }

  .marke {
    font-size: 1.2rem;
  }

  body {
    font-size: 1.03rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fortschritt {
    display: none;
  }
}

/* ---------- Illustrationen ---------- */

.illustration {
  display: block;
  width: 100%;
  height: auto;
}

.ill-grund { fill: var(--tau); }
.ill-kreis { fill: var(--minze); }
.ill-sommer { fill: #f6e3b4; }
.ill-wand { fill: var(--grund-tief); }
.ill-blatt { fill: var(--farn); }
.ill-blatt2 { fill: var(--salbei); }
.ill-strauch { fill: var(--moos); }
.ill-holz { fill: #b88b5e; }
.ill-holz-dunkel { fill: #7a5a40; }
.ill-akzent { fill: var(--honig); }
.ill-beere { fill: var(--beere); }
.ill-hell { fill: var(--flaeche); }
.ill-glas { fill: var(--tau); }
.ill-loch { fill: #2a1d14; }
.ill-korn { fill: #6b4a2f; }
.ill-kern { fill: #3b3a34; }
.ill-knoedel { fill: #e9cf94; }
.ill-schale { fill: var(--flaeche); }
.ill-schale-rand { fill: var(--salbei); }
.ill-blase { fill: var(--flaeche); opacity: 0.85; }
.ill-schwamm { fill: #c9923f; }
.ill-funkel { fill: var(--honig); }
.ill-fensterkreuz { stroke: var(--flaeche); stroke-width: 10; fill: none; }
.ill-gelaender { fill: var(--wald); }
.ill-ast { fill: none; stroke: #7a5a40; stroke-width: 12; stroke-linecap: round; }
.ill-schnur { stroke: #7a5a40; stroke-width: 3; }
.ill-spirale { fill: none; stroke: #5f6b62; stroke-width: 5; stroke-linecap: round; }
.ill-rinde,
.ill-maserung { fill: none; stroke: #5e4431; stroke-width: 5; stroke-linecap: round; opacity: 0.45; }
.ill-borsten { stroke: #5e4431; stroke-width: 4; stroke-linecap: round; }
.ill-strahl { stroke: var(--honig); stroke-width: 7; stroke-linecap: round; }
.ill-flocke path { stroke: var(--flaeche); stroke-width: 5; stroke-linecap: round; }
.ill-mass { stroke: var(--wald); stroke-width: 4; stroke-linecap: round; fill: none; }
.ill-mass-pfeil { fill: var(--wald); }
.ill-lineal { stroke: #7a5a40; stroke-width: 3; }

@media (prefers-color-scheme: dark) {
  .ill-sommer { fill: #3d3a22; }
  .ill-holz { fill: #9a7450; }
  .ill-knoedel { fill: #c7ae74; }
  .ill-blase { fill: var(--salbei); opacity: 0.7; }
}

/* Jeder Artikel bekommt anhand seines Slugs eine feste Akzentfarbe –
   sorgt für Abwechslung zwischen den Ratgebern statt durchgängigem Grün. */
.ton-farn { --ton: var(--farn); }
.ton-moos { --ton: var(--moos); }
.ton-honig { --ton: var(--honig); }
.ton-himmel { --ton: var(--himmel); }
.ton-beere { --ton: var(--beere); }

.ton-honig .titelbild .illustration { filter: hue-rotate(38deg) saturate(1.15); }
.ton-himmel .titelbild .illustration { filter: hue-rotate(-48deg) saturate(1.2); }
.ton-beere .titelbild .illustration { filter: hue-rotate(64deg) saturate(0.85); }
.ton-moos .titelbild .illustration { filter: hue-rotate(16deg) saturate(1.05); }

.titelbild {
  margin: 0 0 1.5rem;
  border-radius: var(--rund);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ton, var(--farn)) 30%, var(--linie));
  box-shadow: var(--schatten);
}

.zwischenbild {
  margin: 2.75rem auto;
  max-width: 20rem;
  border-radius: var(--rund);
  overflow: hidden;
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
  filter: hue-rotate(-22deg) saturate(1.1);
}

.zwischenbild-breit {
  margin: 3.5rem 0;
  border-radius: var(--rund);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ton, var(--farn)) 35%, var(--linie));
  box-shadow: var(--schatten-hoch);
}

.zwischenbild-breit .illustration {
  width: 100%;
  transform: scaleX(-1);
  filter: hue-rotate(18deg) saturate(1.15);
}

.karte.mit-bild {
  padding-top: 0;
}

.karte.mit-bild::before {
  display: none;
}

.karte-bild {
  margin: 0 -1.5rem 1.2rem;
  border-bottom: 1px solid var(--linie);
  overflow: hidden;
}

.karte-bild .illustration {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.karte:hover .karte-bild .illustration {
  transform: scale(1.04);
}

/* ---------- Einwilligungsdialog ---------- */

.fuss-knopf {
  padding: 0;
  border: 0;
  background: none;
  color: #cfe6c4;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  cursor: pointer;
}

.fuss-knopf:hover {
  color: #fff;
}

/* ---------- Produktkasten (Affiliate) ---------- */

.produkte {
  margin: 3rem 0 1rem;
  padding: 1.4rem 1.5rem 1.2rem;
  border-radius: var(--rund);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}

.produkte-kennung {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--grund-tief);
  color: var(--text-leise);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.produkte-titel {
  margin: 0 0 1rem;
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wald);
}

.beitrag .produkte-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.beitrag .produkte-liste li.produkt {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  background: var(--tau);
}

.beitrag .produkte-liste li.produkt::before {
  display: none;
}

.produkt h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  color: var(--wald);
}

.produkt p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--text-leise);
}

.produkt-knopf {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--moos);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.produkt-knopf:hover {
  color: #fff;
  background: var(--farn);
}

@media (prefers-color-scheme: dark) {
  .produkt-knopf,
  .produkt-knopf:hover {
    color: #0f1a13;
  }
}

.produkte-hinweis {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-leise);
}

/* Illustrationen – zweite Runde */
.ill-wasser { fill: #b9dde6; }
.ill-flamme { fill: #f0a13a; }
.ill-punkt { fill: var(--wald); opacity: 0.75; }
.ill-glas2 { fill: #d9ecf1; }
.ill-spiegelung { stroke: var(--flaeche); stroke-width: 10; opacity: 0.6; }
.ill-fensterkreuz2 { stroke: #b88b5e; stroke-width: 10; }
.ill-flugbahn { fill: none; stroke: var(--text-leise); stroke-width: 3; stroke-dasharray: 8 8; }
.ill-rohr { fill: #8b9690; }
.ill-maus { fill: #8a7d74; }
.ill-mausschwanz { fill: none; stroke: #8a7d74; stroke-width: 4; stroke-linecap: round; }
.ill-verbot { fill: none; stroke: var(--beere); stroke-width: 10; }
.ill-katze path, .ill-katze ellipse { fill: #4a4a4a; }
.ill-katzenauge { fill: var(--honig); }
.ill-buegel { stroke: #5f6b62; stroke-width: 6; stroke-linecap: round; }
.ill-stengel { stroke: #9a7a52; stroke-width: 5; stroke-linecap: round; }
.ill-samenkopf { fill: #6b4a2f; }
.ill-samenkopf2 { fill: #a3824f; }
.ill-gras { fill: none; stroke: var(--salbei); stroke-width: 5; stroke-linecap: round; }
.ill-nacht { fill: #1f3a4a; }
.ill-stern { fill: #f6e3b4; }
.ill-mond { fill: #f6e3b4; }
.ill-hecke { fill: #2f5a3a; }
.ill-hecke2 { fill: #3f6f48; }
.ill-lupe { fill: rgb(255 255 255 / 0.45); stroke: #5f6b62; stroke-width: 10; }
.ill-lupengriff { stroke: #5f6b62; stroke-width: 18; stroke-linecap: round; }
.ill-ambrosia { fill: #3d4a2c; }
.ill-ambrosia-blatt { fill: none; stroke: var(--farn); stroke-width: 6; stroke-linecap: round; }

@media (prefers-color-scheme: dark) {
  .ill-nacht { fill: #0e1f29; }
  .ill-glas2 { fill: #2a4148; }
  .ill-wasser { fill: #4d7a86; }
}

/* ---------- Startseite: Wer hier schreibt ---------- */

.kopf nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.wer {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.wer-innen {
  max-width: 46rem;
  padding: 2rem;
  border-radius: 1.25rem;
  background: var(--tau);
}

.wer h2 {
  margin: 0 0 0.75rem;
  font-family: var(--schrift-titel);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--wald);
}

.wer p:not(.held-vorzeile) {
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

/* ---------- Kategorien ---------- */

.kopf-innen {
  flex-wrap: wrap;
}

.kopf nav a {
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

.kat-block {
  margin-bottom: 3rem;
}

.kat-titel {
  margin: 0 0 0.35rem;
  font-family: var(--schrift-titel);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--wald);
}

.kat-titel a {
  color: inherit;
  text-decoration: none;
}

.kat-titel a:hover {
  text-decoration: underline;
}

.kat-text {
  margin: 0 0 1.25rem;
  color: var(--text-leise);
  max-width: 46rem;
}

.kategorie .abschnitt-kopf h1 {
  margin: 0 0 0.75rem;
  font-family: var(--schrift-titel);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--wald);
}

.kategorie .zurueck {
  margin: 2rem 0 0;
  padding: 0;
}

.zurueck {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Fotos ---------- */

.titelfoto {
  margin: 0 0 1.5rem;
}

.titelfoto img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 32rem;
  object-fit: cover;
  border-radius: var(--rund);
  box-shadow: var(--schatten);
}

.titelfoto figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-leise);
  line-height: 1.5;
}

.foto-nachweis {
  display: block;
  font-size: 0.78rem;
}

.foto-nachweis a {
  color: inherit;
}

.karte-foto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.karte:hover .karte-foto {
  transform: scale(1.04);
}

@media (min-width: 640px) {
  .karte:first-child .karte-foto {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .karte-foto {
    transition: none;
  }

  .karte:hover .karte-foto {
    transform: none;
  }
}
