/* Meine Herde – Website (meineherde.com). Farben 1:1 aus der App.
   Keine externen Requests: Schrift (Bricolage Grotesque, OFL) und Bibliotheken liegen unter /vendor/. */

@font-face {
  font-family: "Bricolage";
  src: url("/vendor/bricolage.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --gruen: #176B3D;
  --gruen-tief: #0B3A22;
  --mint: #D8F0E2;
  --salbei: #B4C6A0;
  --salbei-tief: #93AC7D;
  --bg: #F4F6F2;
  --flaeche: #FFFFFF;
  --text: #15201A;
  --grau: #4A564F;
  --grau-hell: #6A766F;
  --rand: #DEE5DF;
  --nacht: #2F3237;
  --wa: #25D366;
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --kopf: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eng { max-width: 780px; }

h1, h2, h3 { font-family: var(--kopf); font-weight: 800; letter-spacing: -.015em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.2; }
p { text-wrap: pretty; }
.lead { font-size: 1.12rem; color: var(--grau); max-width: 38rem; }

/* ---------- Knöpfe ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gruen { background: var(--gruen); color: #fff; box-shadow: 0 10px 24px -14px rgba(23, 107, 61, .9); }
.btn-gruen:hover { background: #125A33; }
.btn-hell { background: var(--flaeche); color: var(--text); border-color: var(--rand); }
.btn-hell:hover { border-color: var(--grau-hell); }
.btn-wa { background: var(--wa); color: #08321A; }
.btn-wa:hover { background: #1FBE5B; }
.btn-rand-weiss { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-rand-weiss:hover { border-color: #fff; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: scale(.97); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 242, .82);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, transform .45s var(--ease);
}
.nav.gescrollt { border-bottom-color: var(--rand); }
.nav.weg { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 66px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--kopf); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.marke img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; }
.nav-links a { position: relative; text-decoration: none; color: var(--grau); font-weight: 600; font-size: .95rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gruen); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: .92rem; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); letter-spacing: -.025em; line-height: 1.02; margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--gruen); }
.hero .btns { margin-top: 30px; }
.pille {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px 6px 7px; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--rand); font-size: .88rem; font-weight: 600; text-decoration: none;
}
.pille b { background: var(--gruen); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: .8rem; }

/* Echte App-Screenshots: nur der Bildschirm, kein nachgebautes Gehäuse */
.shot {
  border-radius: 28px; overflow: hidden; background: #fff;
  border: 1px solid rgba(21, 32, 26, .08);
  box-shadow: 0 1px 2px rgba(21, 32, 26, .06), 0 30px 60px -30px rgba(11, 58, 34, .5);
}
.shot img { width: 100%; height: auto; }

.buehne {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 36px; overflow: hidden;
  background: radial-gradient(110% 80% at 25% 0%, #D7E3CA 0%, var(--salbei) 55%, var(--salbei-tief) 100%);
}
.buehne .shot { position: absolute; width: 46%; }
.buehne .s1 { left: 8%; top: 12%; }
.buehne .s2 { right: 8%; top: 22%; }
.buehne .schaf { position: absolute; left: 2%; bottom: -2%; width: 30%; filter: drop-shadow(0 14px 14px rgba(11, 58, 34, .3)); z-index: 2; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .buehne { aspect-ratio: 1 / .92; border-radius: 28px; }
  .shot { border-radius: 20px; }
}

/* ---------- Abschnitte ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.kopf { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.kopf .lead { margin-top: 16px; }

/* App-Rundgang: Text links, Bild rechts bleibt stehen und wechselt */
.rundgang { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.rg-texte { list-style: none; }
.rg-schritt { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; transition: opacity .5s var(--ease); }
.js .rg-schritt { opacity: .3; }
.js .rg-schritt.aktiv { opacity: 1; }
.rg-schritt h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; margin-bottom: 14px; }
.rg-schritt p { color: var(--grau); font-size: 1.06rem; max-width: 30rem; }
.rg-schritt .shot { display: none; }
.rg-bild { position: sticky; top: calc(50vh - min(36vh, 330px)); height: min(72vh, 660px); display: flex; justify-content: center; }
.rg-rahmen { position: relative; height: 100%; aspect-ratio: 9 / 20; }
.rg-rahmen .shot { position: absolute; inset: 0; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.rg-rahmen .shot.aktiv { opacity: 1; transform: none; }
.rg-rahmen .shot img { height: 100%; object-fit: cover; }
.rg-punkte { position: absolute; right: -28px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.rg-punkte span { width: 8px; height: 8px; border-radius: 99px; background: var(--rand); transition: height .4s var(--ease), background-color .3s; }
.rg-punkte span.aktiv { height: 28px; background: var(--gruen); }
@media (max-width: 860px) {
  .rundgang { grid-template-columns: 1fr; }
  .rg-bild { display: none; }
  .rg-schritt, .js .rg-schritt { min-height: 0; opacity: 1; padding: 0 0 48px; }
  .rg-schritt .shot { display: block; width: min(250px, 62%); margin-top: 20px; border-radius: 20px; }
  .rg-schritt, .js .rg-schritt { padding-bottom: 36px; }
}

/* Raster: was noch drin ist */
.raster {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas: "b b c d" "b b e f" "g g g g";
}
.zelle { border-radius: var(--r); padding: clamp(22px, 2.6vw, 30px); background: var(--flaeche); border: 1px solid var(--rand); overflow: hidden; position: relative; }
.zelle h3 { margin-bottom: 8px; }
.zelle p { color: var(--grau); font-size: .96rem; }
.zelle > img.ic { width: 46px; height: 46px; margin-bottom: 16px; }
.z-a { grid-area: a; background: var(--salbei); border-color: var(--salbei); }
.z-a p { color: #24321F; }
.z-b { grid-area: b; background: var(--nacht); border-color: var(--nacht); color: #F2F0EA; display: flex; flex-direction: column; }
.z-b p, .z-b li { color: #C9C7C0; }
.z-c { grid-area: c; } .z-d { grid-area: d; } .z-f { grid-area: f; }
.z-e { grid-area: e; background: var(--mint); border-color: var(--mint); }
.z-g { grid-area: g; display: flex; align-items: center; gap: 22px; }
.z-g img.ic { margin: 0; flex: none; }
.tiere { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; list-style: none; }
.tiere li { text-align: center; font-size: .86rem; color: #24321F; }
.tiere img { width: 100%; max-width: 92px; margin: 0 auto 2px; transition: transform .5s var(--ease); }
.tiere li:hover img { transform: translateY(-6px) rotate(-4deg); }
.tiere b { display: block; font-size: .98rem; color: var(--text); }
.z-b h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; margin-bottom: 18px; }
.haken { list-style: none; display: grid; gap: 14px; }
.haken li { position: relative; padding-left: 32px; font-size: .97rem; }
.haken li b { color: #fff; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: #A8C994 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2317280F' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E") center / 15px no-repeat;
}
@media (max-width: 900px) {
  .raster { grid-template-columns: 1fr 1fr; grid-template-areas: "b b" "c d" "e f" "g g"; }
}
@media (max-width: 520px) {
  .raster { grid-template-columns: 1fr; grid-template-areas: "b" "c" "d" "e" "f" "g"; }
  .z-g { flex-direction: column; align-items: flex-start; gap: 0; }
  .z-g img.ic { margin-bottom: 16px; }
}

/* Start: Zeitleiste mit Linie, die sich beim Scrollen zeichnet */
.leiste { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; counter-reset: s; }
.leiste::before, .leiste::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--rand); }
.leiste::after { background: var(--gruen); transform-origin: left; transform: scaleX(var(--fortschritt, 1)); }
.leiste li { position: relative; z-index: 1; counter-increment: s; }
.leiste li::before {
  content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gruen); color: var(--gruen);
  font-family: var(--kopf); font-weight: 800; font-size: 1.4rem; margin-bottom: 18px; position: relative; z-index: 1;
}
.leiste b { display: block; font-family: var(--kopf); font-size: 1.2rem; margin-bottom: 6px; }
.leiste span { color: var(--grau); font-size: .96rem; }
.leiste a { color: var(--gruen); font-weight: 700; }
@media (max-width: 860px) {
  .leiste { grid-template-columns: 1fr; gap: 26px; padding-left: 74px; }
  .leiste::before, .leiste::after { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .leiste::after { transform-origin: top; transform: scaleY(var(--fortschritt, 1)); }
  .leiste li::before { position: absolute; left: -74px; top: -4px; margin: 0; }
}

/* Fragen */
.fragen { border-top: 1px solid var(--rand); }
.fragen details { border-bottom: 1px solid var(--rand); }
.fragen summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary h3 { font-size: 1.12rem; }
.fragen summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rand);
  background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23176B3D' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .35s var(--ease), background-color .2s;
}
.fragen summary:hover::after { background-color: var(--mint); }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen .antwort { overflow: hidden; }
.fragen details p { color: var(--grau); padding: 0 44px 20px 0; }
.fragen details a { color: var(--gruen); font-weight: 600; }
.stand { color: var(--grau-hell); font-size: .86rem; margin-top: 20px; }

/* Schluss: Testphase in Dunkelgrün, geht nahtlos in den Fuß über */
.finale { background: var(--gruen-tief); color: #fff; padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.finale .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.finale h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.03em; line-height: .95; }
.finale h2 span { color: #8FD3A8; }
.finale p { color: #CFE3D6; margin: 20px 0 28px; max-width: 34rem; font-size: 1.08rem; }
.finale .weide { position: relative; aspect-ratio: 1 / .8; }
.finale .weide img { position: absolute; bottom: 0; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .3)); }
.finale .weide::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -14%; height: 32%; border-radius: 50%; background: #14502F; z-index: -1; }
@media (max-width: 860px) { .finale .wrap { grid-template-columns: 1fr; } .finale .weide { max-width: 420px; } }

/* ---------- Fuß ---------- */
footer { background: var(--nacht); color: #C9C7C0; padding: 52px 0 22px; font-size: .93rem; }
.fuss { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.fuss .marke { color: #fff; }
.fuss p { margin-top: 12px; max-width: 22rem; }
.fuss .fuss-titel { margin: 0 0 12px; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fuss ul { list-style: none; display: grid; gap: 7px; }
.fuss a { color: #C9C7C0; text-decoration: none; overflow-wrap: anywhere; }
.fuss a:hover { color: #fff; }
.fuss-unten { border-top: 1px solid #4A4E55; margin-top: 40px; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fuss-unten .thc-wrap { padding: 0; }
@media (max-width: 860px) { .fuss { grid-template-columns: 1fr 1fr; } .fuss > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fuss-unten { justify-content: center; text-align: center; } }

/* ---------- Unterseiten ---------- */
.seitenkopf { padding: clamp(40px, 7vw, 80px) 0 32px; text-align: center; }
.seitenkopf h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -.035em; }
.seitenkopf .lead { margin: 14px auto 0; }
.seite { padding: 0 0 clamp(56px, 8vw, 96px); }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--r); padding: clamp(22px, 4vw, 34px); margin-bottom: 14px; }
.karte h2 { font-size: 1.45rem; margin-bottom: 10px; }
.karte p, .karte li { color: var(--grau); }
.karte p + p { margin-top: 10px; }
.karte ol { margin: 6px 0 0 22px; display: grid; gap: 6px; }
.karte b { color: var(--text); }
.karte .btns { margin-top: 18px; }
.karte a:not(.btn) { color: var(--gruen); font-weight: 600; }
.karte.gruen { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #fff; text-align: center; }
.karte.gruen p { color: #CFE3D6; }
.karte.gruen b { color: #fff; }
.karte.gruen .btns { justify-content: center; }
.karte.gruen .preis { font-family: var(--kopf); font-size: clamp(3.2rem, 9vw, 4.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 8px 0 4px; }
.karte.gruen .preis small { display: block; font-family: system-ui, sans-serif; font-size: .95rem; letter-spacing: 0; font-weight: 600; color: #9FD3B3; margin: 10px 0 12px; }
.code { display: inline-block; background: var(--mint); border-radius: 8px; padding: 1px 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); font-size: .92em; }
.lizenzcode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 700; letter-spacing: .06em; margin: 8px 0 10px; }
.fehler { color: #B3261E; font-weight: 600; }
.zurueck { display: inline-flex; color: var(--grau); text-decoration: none; font-weight: 600; margin-top: 10px; }
.zurueck:hover { color: var(--text); }

@media (max-width: 560px) {
  .btns .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .nav .btn { flex: none; }
}

/* Ohne JS oder bei reduzierter Bewegung: alles sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rg-schritt { opacity: 1; }
}

/* SplitText-Zeilen brauchen eine Maske, damit Wörter von unten hereingleiten */
.zeile-maske { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Mehr Bewegung (v8) ---------- */

/* Lesefortschritt unter der Navigation */
.fortschritt { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--gruen); transform-origin: left; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* Hero: 3D-Bühne */
.buehne { perspective: 1100px; }
.buehne .shot { transform-style: preserve-3d; will-change: transform; }

/* Einleitung färbt sich beim Scrollen ein */
.js .einfaerben .wort { color: #8E9A93; }

/* App-Rundgang: Bildschirme drehen sich in 3D weiter */
.rg-bild { perspective: 1400px; }
.rg-rahmen { transform-style: preserve-3d; }
.rg-rahmen .shot { transform: translateX(18%) rotateY(-32deg) scale(.88); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.rg-rahmen .shot.vorher { transform: translateX(-18%) rotateY(32deg) scale(.88); }
.rg-rahmen .shot.aktiv { transform: none; }

/* Tierarten: fährt beim Scrollen seitlich durch */
.pan { padding: 0; overflow: hidden; }
.pan-spur { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 max(20px, calc((100vw - 1120px) / 2)) clamp(48px, 7vw, 96px); width: max-content; }
.pan-intro { flex: 0 0 min(420px, 80vw); display: flex; flex-direction: column; justify-content: center; }
.pan-intro .lead { margin-top: 16px; }
.pan-tier {
  position: relative; flex: 0 0 clamp(270px, 30vw, 380px); border-radius: 28px; padding: 28px 28px 30px;
  background: var(--salbei); color: var(--text); overflow: hidden;
}
.pan-tier.p2 { background: #C9D7B6; } .pan-tier.p3 { background: #A9BD97; } .pan-tier.p4 { background: #BFCFA9; }
.pan-bild { position: relative; height: clamp(190px, 22vw, 260px); }
.pan-bild .gross { position: absolute; left: -4%; bottom: 0; width: 82%; filter: drop-shadow(0 16px 14px rgba(11, 58, 34, .28)); }
.pan-bild .klein { position: absolute; right: 0; bottom: 0; width: 40%; filter: drop-shadow(0 10px 10px rgba(11, 58, 34, .25)); }
.pan-tier h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; margin-top: 14px; }
.pan-tier p { color: #2C3A27; margin-top: 4px; }
.zahl { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(21, 32, 26, .15); }
.zahl b { font-family: var(--kopf); font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.04em; color: var(--gruen-tief); font-variant-numeric: tabular-nums; }
.zahl span { font-size: .9rem; color: #2C3A27; line-height: 1.3; }
@media (max-width: 860px) {
  .pan { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pan::-webkit-scrollbar { display: none; }
  .pan-spur { padding: 0 20px 56px; }
  .pan-intro, .pan-tier { scroll-snap-align: start; scroll-margin-left: 20px; }
  .pan-intro { flex-basis: 78vw; }
  .pan-tier { flex-basis: 74vw; }
}
html:not(.js) .pan { overflow-x: auto; }

/* Kacheln: Lichtkegel folgt der Maus */
.zelle::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(23, 107, 61, .10), transparent 60%);
}
.z-b::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 201, 148, .22), transparent 60%); }
.zelle:hover::after { opacity: 1; }
@media (hover: hover) { .zelle { transition: transform .5s var(--ease), box-shadow .5s var(--ease); } .zelle:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(11, 58, 34, .45); } }
@media (min-width: 861px) {
  .js .pan { min-height: 100vh; display: flex; align-items: center; }
  .js .pan-spur { padding-top: 40px; padding-bottom: 40px; }
}


/* ---------- Ahnentafel: Blatt richtet sich auf, Logo wird markiert ---------- */
.ahnen { padding-top: 0; }
.ahnen-tisch {
  position: relative; perspective: 1600px; border-radius: 32px; overflow: hidden;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 72px);
  background: radial-gradient(120% 90% at 50% 0%, #D7E3CA 0%, var(--salbei) 60%, var(--salbei-tief) 100%);
}
.ahnen-blatt { position: relative; margin: 0 auto; max-width: 1000px; transform-origin: 50% 100%; transform-style: preserve-3d; }
.ahnen-blatt img { width: 100%; border-radius: 6px; box-shadow: 0 2px 4px rgba(11, 58, 34, .12), 0 40px 70px -30px rgba(11, 58, 34, .55); }
.logo-ring {
  /* Logo im Bild: Mitte 87.84 % / 8.97 %, Größe 11.7 % x 5.7 % */
  position: absolute; left: 79.85%; top: 3.95%; width: 16%; height: 10%; box-sizing: border-box; border-radius: 999px;
  border: 3px solid var(--gruen); box-shadow: 0 0 0 6px rgba(23, 107, 61, .18); opacity: 0; pointer-events: none;
}
.ahnen-punkte { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.ahnen-punkte li { padding: 16px 18px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--rand); font-size: .92rem; color: var(--grau); }
.ahnen-punkte b { display: block; font-family: var(--kopf); font-size: 1.05rem; color: var(--text); margin-bottom: 2px; }
.ahnen-punkte li:first-child { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #CFE3D6; }
.ahnen-punkte li:first-child b { color: #fff; }
@media (max-width: 860px) {
  .ahnen-tisch { border-radius: 24px; padding: 18px 12px; }
  .ahnen-punkte { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ahnen-punkte li { padding: 14px; font-size: .85rem; }
  .logo-ring { border-width: 2px; box-shadow: 0 0 0 4px rgba(23, 107, 61, .18); }
}

.wisch-hinweis { display: none; }

/* ================= Handy-Ansicht (v11): kompakt, wischbar, nichts abgeschnitten ================= */
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .kopf { margin-bottom: 24px; }
  h2 { font-size: clamp(1.75rem, 7.4vw, 2.3rem); }
  .lead { font-size: 1.02rem; }

  /* Hero: ein großer Bildschirm vorne, der zweite schräg dahinter */
  .hero { padding: 20px 0 48px; }
  .hero h1 { font-size: clamp(2.05rem, 9.4vw, 2.7rem); margin: 16px 0 14px; }
  .hero .btns { margin-top: 22px; }
  .buehne { aspect-ratio: 1 / 1.08; margin-top: 8px; }
  .buehne .shot { width: 52%; }
  .buehne .s2 { right: auto; left: 34%; top: 9%; z-index: 1; }
  .buehne .s1 { left: 8%; top: 17%; width: 44%; opacity: .95; }
  .buehne .schaf { width: 26%; left: auto; right: 2%; bottom: -1%; }

  /* App-Rundgang: zum Wischen statt vier Riesenbilder untereinander */
  .rg-texte {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -20px; padding: 4px 20px 8px;
  }
  .rg-texte::-webkit-scrollbar { display: none; }
  .rg-schritt, .js .rg-schritt {
    transition: none;
    flex: 0 0 82%; scroll-snap-align: center; min-height: 0; padding: 20px 20px 22px; opacity: 1;
    background: var(--flaeche); border: 1px solid var(--rand); border-radius: 24px;
    display: flex; flex-direction: column; justify-content: flex-start;
  }
  .rg-schritt .shot { order: -1; width: 64%; margin: 0 auto 18px; border-radius: 18px; }
  .rg-schritt h3 { font-size: 1.3rem; margin-bottom: 8px; }
  .rg-schritt p { font-size: .95rem; }
  .wisch-hinweis { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .wisch-hinweis span { cursor: pointer; padding: 0; width: 7px; height: 7px; border-radius: 99px; background: var(--rand); transition: width .3s var(--ease), background-color .3s; }
  .wisch-hinweis span.aktiv { width: 22px; background: var(--gruen); }

  /* Tierarten: Überschrift oben, vier Karten als 2×2-Raster */
  .pan, .js .pan { overflow: visible; scroll-snap-type: none; min-height: 0; display: block; padding: 0; }
  .pan-spur, .js .pan-spur { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: auto; padding: 0 20px 56px; transform: none !important; }
  .pan-intro { grid-column: 1 / -1; flex: none; margin-bottom: 6px; }
  .pan-tier { flex: none; padding: 14px 14px 16px; border-radius: 20px; }
  .pan-bild { height: 112px; }
  .pan-tier h3 { font-size: 1.25rem; margin-top: 8px; }
  .pan-tier p { font-size: .82rem; line-height: 1.35; }
  .zahl { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; padding-top: 10px; }
  .zahl b { font-size: 1.9rem; }
  .zahl span { font-size: .76rem; }

  /* Funktionen: kleine Kacheln zweispaltig */
  .raster { grid-template-columns: 1fr 1fr; grid-template-areas: "b b" "c d" "e f" "g g"; gap: 10px; }
  .zelle { padding: 18px 16px; }
  .zelle > img.ic { width: 36px; height: 36px; margin-bottom: 10px; }
  .zelle h3 { font-size: 1.02rem; }
  .zelle p { font-size: .86rem; }
  .z-b { padding: 22px 20px; }
  .z-b h3 { font-size: 1.45rem; margin-bottom: 14px; }
  .haken li { font-size: .9rem; }
  .z-g { flex-direction: row; align-items: center; gap: 14px; }
  .z-g img.ic { margin: 0; }

  /* Zeitleiste: Kreise liegen sauber über der Linie */
  .leiste::before, .leiste::after { z-index: 0; }
  .leiste li { z-index: 1; }
  .leiste li::before { z-index: 2; width: 46px; height: 46px; font-size: 1.15rem; left: -66px; }
  .leiste { padding-left: 66px; gap: 22px; }
  .leiste::before, .leiste::after { left: 22px; }

  /* Knöpfe: einzeilig */
  .btns .btn { white-space: nowrap; font-size: .97rem; padding: 0 18px; }
  .finale .weide { max-width: 340px; margin: 8px auto 0; }
  .finale p { margin: 16px 0 22px; }
}
@media (max-width: 380px) {
  .btns .btn { font-size: .9rem; padding: 0 12px; }
  .pan-tier p { display: none; }
}

/* Tierkarten: Bilder nach der Höhe ausrichten, damit nie etwas oben abgeschnitten wird */
.pan-bild .gross { left: 0; width: auto; height: 100%; max-width: 80%; object-fit: contain; object-position: left bottom; }
.pan-bild .klein { right: 0; width: auto; height: 56%; max-width: 42%; object-fit: contain; object-position: right bottom; }
@media (max-width: 860px) { .pan-bild { height: clamp(104px, 30vw, 150px); } }

/* Support-Adresse unter dem Markenblock: volle Breite, bricht nicht um */
.fuss .fuss-mail { display: inline-block; margin-top: 14px; color: #fff; font-weight: 600; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.fuss .fuss-mail:hover { border-color: #fff; }
