/* =========================================================
   spaziergespräch – Prototyp
   ========================================================= */

/* ---------- Schriften (lokal, keine externen Requests) ---------- */
@font-face { font-family: "Quicksand"; font-weight: 500; font-display: swap; src: url("../assets/fonts/quicksand-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-display: swap; src: url("../assets/fonts/quicksand-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: italic; font-display: swap; src: url("../assets/fonts/nunito-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben & Maße ---------- */
:root {
  --green: #306239;
  --green-dark: #234a2a;
  --sun: #f7b63f;
  --sun-deep: #f29a1d;
  --cream: #fbf6ea;
  --paper: #fffaf0;
  --ink: #2b3a2d;
  --ink-soft: #4a584b;
  --meadow: #8cbf5f;
  --earth: #e3c79a;
  --wood: #a8744a;
  --wood-ink: #6e4a2c;
  --poppy: #e8674f;
  --tape: rgba(247, 182, 63, 0.55);

  --sky-morning-top: #cfe5ee;
  --sky-morning-bottom: #fde6c4;
  --sky-day-top: #9fd0ea;
  --sky-day-bottom: #e6f4ee;
  --sky-evening-top: #e9937a;
  --sky-evening-bottom: #fcd99a;

  --font-head: "Quicksand", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --radius-hand: 18px 26px 20px 30px / 28px 18px 26px 20px;
  --shadow-print: 4px 5px 0 rgba(48, 98, 57, 0.16);
  --topbar-h: 60px;
  --u: 0.5px; /* 1 Landschafts-Einheit in px – wird per JS gesetzt */
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--green); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
h2 { font-size: clamp(1.4rem, 4.8vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.8em; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand img { display: block; width: clamp(150px, 42vw, 220px); height: auto; transition: opacity .4s; }
.mode-walk.at-start .brand img { opacity: 0; }

.btn-mode {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--green); background: var(--paper);
  border: 2px solid var(--green); border-radius: 999px 999px 999px 999px / 800px 900px 850px 950px;
  padding: 7px 14px; text-decoration: none; white-space: nowrap;
  box-shadow: 2px 3px 0 rgba(48, 98, 57, .18);
}
.btn-mode:hover { background: var(--green); color: var(--paper); }

/* ---------- Bühne / Landschaft ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; z-index: 0; background: var(--sky-day-bottom); }
.sky { position: absolute; inset: 0; }
.sky-day { background: linear-gradient(180deg, var(--sky-day-top), var(--sky-day-bottom) 70%); }
.sky-morning { background: linear-gradient(180deg, var(--sky-morning-top), var(--sky-morning-bottom) 70%); }
.sky-evening { background: linear-gradient(180deg, var(--sky-evening-top), var(--sky-evening-bottom) 72%); opacity: 0; }

.sun { position: absolute; left: 0; top: 0; width: calc(var(--u) * 260); height: calc(var(--u) * 260); will-change: transform; }
.sun svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sun .rays { transform-origin: 50% 50%; animation: sun-turn 60s linear infinite; }
@keyframes sun-turn { to { transform: rotate(360deg); } }

.clouds { position: absolute; left: 0; top: 0; width: 0; height: 100%; will-change: transform; }
.clouds svg { position: absolute; overflow: visible; }

.land { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) * 1000); }
.layer { position: absolute; left: 0; top: 0; height: 100%; width: 0; will-change: transform; }
.layer .chunk { position: absolute; top: 0; height: 100%; display: block; overflow: hidden; }

.light { position: absolute; inset: 0; pointer-events: none; }
.light-morning { background: linear-gradient(180deg, rgba(210, 230, 255, .22), rgba(255, 236, 200, .14)); }
.light-evening { background: linear-gradient(180deg, rgba(240, 120, 60, .12), rgba(255, 170, 70, .22)); opacity: 0; }

/* ---------- Figuren ---------- */
.walkers { position: absolute; left: 0; top: 0; width: calc(var(--u) * 190); height: calc(var(--u) * 160); will-change: transform; }
.walker { position: absolute; bottom: 0; width: calc(var(--u) * 80); height: calc(var(--u) * 150); }
.walker svg { width: 100%; height: 100%; overflow: visible; display: block; }
.walker.yellow { left: 0; }
/* beide Figuren exakt gleich groß – Beratung auf Augenhöhe */
.walker.green { left: calc(var(--u) * 78); }

.walker .turn { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .35s cubic-bezier(.5, 1.6, .5, 1); }
.walkers.back .turn { transform: scaleX(-1); }
.walkers.idle:not(.back) .green .turn { transform: scaleX(-1); }
.walkers.idle.back .yellow .turn { transform: none; }

.walker .leg { transform-box: fill-box; transform-origin: 50% 0; }
.walker .arm { transform-box: fill-box; transform-origin: 20% 0; }
.walkers.walking .leg-a { animation: step .56s ease-in-out infinite alternate; }
.walkers.walking .leg-b { animation: step .56s ease-in-out infinite alternate-reverse; }
.walkers.walking .arm { animation: swing .56s ease-in-out infinite alternate; }
.walkers.walking .bob { animation: bob .28s ease-in-out infinite alternate; }
.walkers.walking .green .bob { animation-delay: -.12s; }
@keyframes step { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes swing { from { transform: rotate(-18deg); } to { transform: rotate(22deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-3.5%); } }

/* kleines Gespräch, wenn sie stehen */
.chat {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: calc(var(--u) * 6);
  transform: translateX(-50%) scale(.6); opacity: 0;
  background: var(--paper); border: 2px solid var(--green); border-radius: 16px 18px 14px 20px;
  padding: 2px 9px 4px; display: flex; gap: 4px;
  transition: opacity .3s, transform .3s;
}
.chat i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: block; animation: dots 1.2s ease-in-out infinite; }
.chat i:nth-child(2) { animation-delay: .15s; background: var(--sun-deep); }
.chat i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.walkers.talking .chat { opacity: 1; transform: translateX(-50%) scale(1); transition-delay: .9s; }

/* ---------- Karten ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--green);
  border-radius: var(--radius-hand);
  box-shadow: var(--shadow-print);
  padding: 22px 20px 16px;
}
.card::before { /* Klebestreifen */
  content: ""; position: absolute; top: -12px; left: 50%; width: 86px; height: 22px;
  background: var(--tape); transform: translateX(-50%) rotate(-3deg);
  border-radius: 3px 5px 3px 4px;
}
.kicker { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wood-ink); margin-bottom: .3em; }
.lead { font-size: 1.1rem; }
.badge-placeholder {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  color: #7a4b12; background: #fde8bf; border: 1.5px dashed #c7872a; border-radius: 8px; padding: 1px 8px; margin-bottom: .6em;
}

/* Walk-Modus: Karten schweben über der Station */
.mode-walk .cards { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.mode-walk .station-card {
  position: absolute; left: 0; right: 0; margin: 0 auto; top: calc(var(--topbar-h) + 14px + env(safe-area-inset-top));
  width: min(480px, calc(100% - 32px));
  max-height: calc(100% - var(--card-bottom, 46svh) - var(--topbar-h) - 20px);
  /* Lesen und Spaziergang trennen: kein Weiterreichen an die Seite am Kartenrand.
     Weiter geht es über die Wegmarken oder Wischen außerhalb der Karte. */
  overflow: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  visibility: hidden; opacity: 0;
}
.mode-walk .station-card:first-child { visibility: visible; opacity: 1; }
.mode-walk .station-card .card { margin: 14px 4px 10px; }
.mode-walk .station-card.more::after {
  content: ""; position: sticky; bottom: 0; display: block; height: 44px; margin: -54px 7px 10px;
  border-radius: 0 0 20px 26px; pointer-events: none;
  background: linear-gradient(rgba(255, 250, 240, 0), var(--paper) 85%);
}

.scroll-hint { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--font-head); font-weight: 700; color: var(--green); }
.scroll-hint svg { flex: none; width: 26px; height: 34px; }
.scroll-hint .dot { animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.mode-classic .scroll-hint { display: none; }

.start-logo { display: block; width: 100%; max-width: 360px; height: auto; margin: 2px auto 14px; }

@media (max-width: 420px) {
  .mode-walk .card { font-size: 1rem; line-height: 1.55; padding: 18px 16px 12px; }
  .mode-walk .start-logo { max-width: 260px; margin-bottom: 10px; }
}

/* ---------- Kontaktleiste (immer da) ---------- */
.contact-bar {
  position: fixed; z-index: 40; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 6px; padding: 5px;
  background: var(--paper); border: 2px solid var(--green); border-radius: 999px;
  box-shadow: var(--shadow-print);
}
.contact-bar a, .contact-bar button {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 .95rem/1 var(--font-head); text-decoration: none; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; border: 0; min-height: 44px;
}
.contact-bar .call { background: var(--green); color: var(--paper); }
.contact-bar .write { background: transparent; color: var(--green); }
.contact-bar .write:hover { background: #eef5e6; }
.contact-bar svg { width: 18px; height: 18px; flex: none; }

/* ---------- Dialog ---------- */
.sheet {
  border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100% - 24px)); width: 100%;
  max-height: calc(100% - 40px);
}
.sheet { overflow: auto; overscroll-behavior: contain; }
html:has(.sheet[open]) { overflow: hidden; }
.sheet::backdrop { background: rgba(35, 50, 36, .45); }
.sheet-inner { background: var(--paper); border: 2.5px solid var(--green); border-radius: var(--radius-hand); box-shadow: var(--shadow-print); padding: 24px 20px 20px; position: relative; }
.sheet-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--green); background: var(--paper); color: var(--green); cursor: pointer;
  font: 700 1.3rem/1 var(--font-head);
}
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-weight: 700; font-size: 1.1rem; text-decoration: none;
  border: 2px solid var(--green); border-radius: 14px 18px 12px 16px; background: #fff;
}
.contact-list span { min-width: 0; overflow-wrap: anywhere; }
.contact-list small { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.contact-list svg { width: 26px; height: 26px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 20; background: var(--green-dark); color: var(--cream); padding: 28px 16px 96px; text-align: center; font-size: .95rem; }
.site-footer a { color: var(--cream); margin: 0 10px; }

.walk-spacer { position: relative; z-index: -1; }
.mode-classic .walk-spacer { display: none; }

/* ---------- Klassische Ansicht (auch bei reduzierter Bewegung) ---------- */
.mode-classic .stage { position: relative; height: 44vh; min-height: 280px; max-height: 460px; }
.mode-classic .light-evening { display: none; }
.mode-classic .cards { position: relative; z-index: 1; max-width: 680px; margin: -40px auto 0; padding: 0 16px 100px; display: grid; gap: 34px; }
.mode-classic .station-card .card { padding: 26px 22px 18px; }
.mode-classic .topbar { position: absolute; }

/* ---------- Wegmarken ---------- */
.waymarks {
  position: fixed; z-index: 25; top: calc(var(--topbar-h) + env(safe-area-inset-top) - 4px);
  left: 0; right: 0; margin: 0 auto; width: min(420px, calc(100% - 48px)); height: 22px;
}
.waymarks ol {
  list-style: none; margin: 0; padding: 0; height: 100%;
  display: flex; justify-content: space-between; align-items: center; position: relative;
}
.waymarks ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2.5px dashed rgba(48, 98, 57, .45); }
.waymarks li { position: relative; }
/* große, unsichtbare Tippfläche (40px) um den kleinen Punkt */
.waymarks button {
  display: block; width: 40px; height: 40px; margin: -9px -14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.waymarks button::after {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--green); transition: background .3s;
}
.waymarks button.done::after { background: var(--green); }
.waymarks button:hover::after { background: var(--sun); }
.waymarks-me { position: absolute; top: -13px; left: 0; display: flex; gap: 1px; transform: translateX(-50%); pointer-events: none; }
.waymarks-me i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); display: block; }
.waymarks-me i + i { background: var(--green); }

.mode-walk .station-card { top: calc(var(--topbar-h) + 30px + env(safe-area-inset-top)); }
.station-card:focus { outline: none; }
.station-card:focus-visible .card { outline: 3px solid var(--green); outline-offset: 4px; }

/* ---------- Karten-Inhalte ---------- */
.small { font-size: .9rem; color: var(--ink-soft); }
.who { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); }
.who-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: -9px 0 0 var(--sun); margin-left: 9px; }

/* Wegweiser-Schilder */
.signs { display: grid; gap: 10px; margin: 6px 0 14px; }
.sign {
  --c: var(--sun);
  display: block; width: 88%; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(2px 3px 0 rgba(110, 74, 44, .35));
  transform: rotate(-1.2deg); transition: transform .25s;
  font: 700 1.08rem/1.2 var(--font-head); color: #3d2a17; text-align: left;
}
.sign span {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--c); padding: 9px 36px 9px 16px;
  clip-path: polygon(0 4%, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 96%);
  /* Holzmaserung */
  background-image: repeating-linear-gradient(178deg, transparent 0 9px, rgba(110, 74, 44, .09) 9px 11px);
}
.sign em { font-style: normal; }
/* alle Schilder zeigen nach rechts – in Gehrichtung, es geht ja weiter */
.sign-2 { --c: #d9ab7c; margin-left: 6%; transform: rotate(1deg); }

/* runder „+"-Knopf: signalisiert „hier steckt mehr drin" */
.sign-badge {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper); color: var(--green); border: 2px solid var(--green);
  box-shadow: 1px 2px 0 rgba(110, 74, 44, .35);
}
.sign-badge svg { width: 16px; height: 16px; }
.sign-badge .tick, .sign.seen .sign-badge .plus { display: none; }
.sign.seen .sign-badge .tick { display: block; }
.sign.seen .sign-badge { background: var(--green); color: var(--paper); }
.sign:hover .sign-badge { background: var(--sun); }

/* sanftes Anstupsen der Schilder nacheinander, bis eins angetippt wurde */
.signs:not(.touched) .sign { animation: nudge 4s ease-in-out infinite; }
.signs:not(.touched) .sign-2 { animation-delay: .35s; }
.signs:not(.touched) .sign-3 { animation-delay: .7s; }
@keyframes nudge {
  0%, 70%, 100% { translate: 0 0; }
  76% { translate: var(--nudge, 7px) 0; }
  82% { translate: 0 0; }
  88% { translate: calc(var(--nudge, 7px) * .5) 0; }
  94% { translate: 0 0; }
}

.tap-intro { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-dark); }
.tap-hand { flex: none; width: 30px; height: 30px; color: var(--green); animation: tap 2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes tap { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(3px) scale(.92); } 80% { transform: none; } }
.sign-3 { --c: #cfe0b0; transform: rotate(.6deg); }
.sign:hover, .sign:focus-visible { transform: rotate(0) translateX(4px); }
.sign:focus-visible { outline: none; }
.sign:focus-visible span { box-shadow: inset 0 0 0 3px var(--green); }
.crisis-line { font-size: .95rem; background: #eef2ec; border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; }
.crisis-line a { font-weight: 700; white-space: nowrap; }

/* Krisenintervention: ruhig, ernst, ohne Verspieltes */
.crisis { background: #eef2ec; border: 1.5px solid #c9d6c6; border-left: 5px solid var(--green); border-radius: 10px; padding: 16px 16px 12px; margin: 18px 0 6px; }
.crisis h4 { font-family: var(--font-head); font-size: 1.1rem; color: var(--green-dark); margin: 0 0 .5em; }
.crisis-call {
  display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 6px; padding: 12px 18px; min-height: 48px;
  background: var(--green); color: #fff; border-radius: 10px; font: 700 1.15rem/1 var(--font-head); text-decoration: none;
}
.crisis-call svg { width: 20px; height: 20px; }
.service + .service { margin-top: 26px; padding-top: 18px; border-top: 2px dashed #d8cfb9; }
h4 { font-family: var(--font-head); font-size: 1.05rem; color: var(--green); margin: 1em 0 .3em; }

/* Orte */
.place-list { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.place-list li { display: inline-flex; align-items: center; gap: 6px; background: #eef5e4; border-radius: 999px; padding: 5px 13px 5px 8px; font-weight: 700; font-size: .95rem; color: var(--green-dark); }
.place-list svg { width: 22px; height: 22px; color: var(--green); flex: none; }

/* Team */
.team { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 10px; }
.mode-walk .team span { font-size: .86rem; line-height: 1.35; }
.team .team-tel { margin-top: 2px; }
.team-tel a { font-weight: 700; white-space: nowrap; }
.team li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.team-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); margin-top: 3px; box-shadow: 1.5px -1.5px 0 rgba(0, 0, 0, .18) inset; }
.team strong { display: block; font-family: var(--font-head); color: var(--green-dark); line-height: 1.3; }
.team span { display: block; font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }
.team em { display: inline-block; font-size: .85rem; color: #7a4b12; background: #fde8bf; border-radius: 6px; padding: 0 6px; margin-top: 2px; }
.mode-classic .team em { display: none; }
@media (min-width: 600px) { .mode-classic .team { grid-template-columns: 1fr 1fr; } }

/* Preise wie eine Tafel am Rastplatz */
.prices { width: 100%; border-collapse: collapse; margin: 4px 0 14px; }
.prices th, .prices td { padding: 6px 0 5px; border-bottom: 2px dotted #d9cdb4; vertical-align: baseline; line-height: 1.3; }
.prices th { text-align: left; font-weight: 700; }
.prices td { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--green); padding-left: 8px; white-space: nowrap; }
.prices .detail { display: block; font-weight: 400; font-size: .85rem; line-height: 1.2; color: var(--ink-soft); }
.prices td { vertical-align: top; }
.prices tr:last-child td:last-child { white-space: normal; font-size: .95rem; }
.social { display: flex; gap: 10px; align-items: center; background: #fff1d2; border-radius: 12px 16px 10px 14px; padding: 10px 12px; font-weight: 700; }
.social svg { width: 30px; height: 30px; flex: none; color: var(--sun-deep); }

/* Zettel */
.notes { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 14px; }
.notes li {
  position: relative; background: #fffdf6; border: 1.5px solid #e2d8c2; padding: 16px 16px 8px; border-radius: 3px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .06); transform: rotate(-1.2deg); font-style: italic;
}
.notes li:nth-child(2) { transform: rotate(1deg); margin-left: 14px; }
.notes li:nth-child(3) { transform: rotate(-.4deg); }
.notes li::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--poppy); box-shadow: 1px 2px 0 rgba(0, 0, 0, .2); }
.note-who { font-style: normal; font-size: .85rem; color: var(--ink-soft); text-align: right; }

.contact-foot { margin-top: 14px; font-size: .95rem; }
.link-btn { font: inherit; color: var(--green); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Mitbewohner der Landschaft ---------- */
.actors { position: absolute; left: 0; top: 0; }
.actor { position: absolute; pointer-events: none; }
.actor > svg { width: 100%; height: 100%; display: block; overflow: visible; }

.bird { transition: transform 2.6s cubic-bezier(.45, 0, .7, 1), opacity 2.2s ease-in .4s; }
.bird.flown { transform: translate(calc(var(--u) * 560), calc(var(--u) * -640)) scale(.75); opacity: 0; }
.bird .wing { transform-box: fill-box; transform-origin: 80% 70%; }
.bird.flown .wing { animation: flap .13s ease-in-out infinite alternate; }
@keyframes flap { from { transform: rotate(10deg); } to { transform: rotate(-80deg); } }

.butterfly { animation: flutter 11s ease-in-out infinite; }
.butterfly.b2 { animation-duration: 13s; animation-delay: -5s; }
.butterfly .wl, .butterfly .wr { transform-box: fill-box; animation: wing .16s ease-in-out infinite alternate; }
.butterfly .wl { transform-origin: 100% 50%; }
.butterfly .wr { transform-origin: 0 50%; }
@keyframes wing { to { transform: scaleX(.25); } }
@keyframes flutter {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  20% { transform: translate(calc(var(--u) * 90), calc(var(--u) * -50)) rotate(8deg); }
  45% { transform: translate(calc(var(--u) * 170), calc(var(--u) * 20)) rotate(-4deg); }
  70% { transform: translate(calc(var(--u) * 60), calc(var(--u) * 50)) rotate(10deg); }
}

.mate .turn { transform-box: fill-box; transform-origin: 50% 50%; }
.mate.face-left .turn { transform: scaleX(-1); }
.mate .arm { transform-box: fill-box; transform-origin: 20% 0; }
.mate.wave .arm { animation: wave .42s ease-in-out infinite alternate; }
.mate.wave:nth-child(odd) .arm { animation-delay: -.2s; }
@keyframes wave { from { transform: rotate(-88deg); } to { transform: rotate(-128deg); } }

.say { display: flex; align-items: flex-end; justify-content: center; opacity: 0; transform: translateY(8px) scale(.7); transform-origin: 30% 100%; transition: opacity .3s, transform .35s cubic-bezier(.5, 1.6, .5, 1); }
.say span {
  position: relative; background: var(--paper); border: 2px solid var(--green); border-radius: 14px 16px 12px 18px;
  padding: 3px 11px 4px; font: 700 max(13px, calc(var(--u) * 26)) / 1.25 var(--font-head); color: var(--green); white-space: nowrap;
}
.say span::after { content: ""; position: absolute; left: 22%; bottom: -8px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--green); border-top: 0; border-left: 0; transform: rotate(45deg) skew(10deg, 10deg); }
.say.wave { opacity: 1; transform: none; transition-delay: .3s; }
.say-claudia { position: absolute; left: calc(var(--u) * 96); bottom: 100%; margin-bottom: calc(var(--u) * 4); }
.at-start .walkers.idle .say-claudia { opacity: 1; transform: none; transition-delay: .5s; }
.at-start .walkers .chat { display: none; }

/* Heißluftballon: schwebt sanft auf und ab */
.balloon { position: absolute; animation: float 7s ease-in-out infinite alternate; }
.balloon svg { width: 100%; height: 100%; display: block; }
@keyframes float { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(calc(var(--u) * -40)) rotate(2deg); } }

/* Windmühle */
.mill .sails { transform-box: view-box; transform-origin: 60px 58px; animation: spin 9s linear infinite; }
.mill:nth-child(2) .sails { animation-duration: 12s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Traktor tuckert übers Feld und wieder zurück */
.tractor { position: absolute; left: 0; top: 0; width: calc(var(--u) * 58); height: calc(var(--u) * 42); animation: tractor 36s linear infinite; }
.tractor svg { width: 100%; height: 100%; display: block; }
.tractor .puff { transform-box: fill-box; transform-origin: center; animation: puff-t 1.4s ease-out infinite; }
@keyframes tractor {
  0% { transform: translateX(0) scaleX(1); }
  48% { transform: translateX(calc(var(--u) * 242)) scaleX(1); }
  50% { transform: translateX(calc(var(--u) * 242)) scaleX(-1); }
  98% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}
@keyframes puff-t { from { transform: translate(0, 0) scale(.5); opacity: .9; } to { transform: translate(-6px, -10px) scale(1.4); opacity: 0; } }

/* Vogelschwarm zieht ab und zu über den Himmel */
.flock { position: absolute; left: 0; top: 16%; width: 90px; height: 50px; pointer-events: none; animation: flock 26s linear infinite; animation-delay: 6s; transform: translateX(-120px); }
.flock svg { position: absolute; width: 26px; height: 12px; overflow: visible; }
.flock svg path { transform-box: fill-box; transform-origin: center; animation: flap-v .5s ease-in-out infinite alternate; }
.flock svg:nth-child(odd) path { animation-delay: -.25s; }
@keyframes flock { 0% { transform: translate(-120px, 0); } 45% { transform: translate(calc(100vw + 40px), -60px); } 100% { transform: translate(calc(100vw + 40px), -60px); } }
@keyframes flap-v { to { transform: scaleY(-.6); } }

/* Hase: sitzt im Gras und flitzt davon */
.hare { transition: transform 1.6s cubic-bezier(.4, 0, .6, 1), opacity .6s ease 1.2s; }
.hare.here { transform: translateX(calc(var(--u) * 520)); opacity: 0; }
.hare.here .hare-in { animation: hop-h .3s ease-in-out infinite alternate; }
@keyframes hop-h { from { transform: translateY(0); } to { transform: translateY(-22%); } }

/* Glühwürmchen */
.fireflies { opacity: 0; }
.fireflies i { position: absolute; width: calc(var(--u) * 12); height: calc(var(--u) * 12); border-radius: 50%; background: #fffbd6; box-shadow: 0 0 calc(var(--u) * 16) calc(var(--u) * 8) rgba(255, 236, 130, .85); animation: firefly 5s ease-in-out infinite alternate; }
@keyframes firefly {
  0% { transform: translate(0, 0); opacity: .2; }
  40% { opacity: 1; }
  70% { transform: translate(calc(var(--u) * 40), calc(var(--u) * -30)); opacity: .4; }
  100% { transform: translate(calc(var(--u) * -20), calc(var(--u) * -60)); opacity: 1; }
}

/* Hund: flitzt von rechts heran, hüpft vor Freude, wedelt */
.dog { transform: translateX(calc(var(--u) * 760)); transition: transform 1.8s cubic-bezier(.25, .7, .35, 1); }
.dog.here { transform: none; }
.dog .dleg { transform-box: fill-box; transform-origin: 50% 0; }
.dog .tail { transform-box: fill-box; transform-origin: 0 100%; }
.dog.here .dleg-a { animation: dleg .16s ease-in-out 11 alternate; }
.dog.here .dleg-b { animation: dleg .16s ease-in-out 11 alternate-reverse; }
.dog.here .dog-in { animation: hop .34s ease-in-out 1.8s infinite alternate; }
.dog.here .tail { animation: wag .14s ease-in-out infinite alternate; }
@keyframes dleg { from { transform: rotate(32deg); } to { transform: rotate(-32deg); } }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-14%); } }
@keyframes wag { from { transform: rotate(-18deg); } to { transform: rotate(22deg); } }
.say-dog.wave { transition-delay: 1.9s; }

.smoke i { position: absolute; bottom: 0; left: 25%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .75); opacity: 0; animation: puff 4.5s linear infinite; }
.smoke i:nth-child(2) { animation-delay: -1.5s; }
.smoke i:nth-child(3) { animation-delay: -3s; }
@keyframes puff { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(40%, -170%) scale(1.3); opacity: 0; } }

.glow { border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .8), rgba(255, 200, 90, 0) 62%); opacity: .25; }

/* Hinsetzen am Ziel */
.walkers.sitting .leg { animation: none; transform: rotate(-62deg); transition: transform .5s; }
.walkers.sitting .bob { animation: none; transform: translateY(5%); transition: transform .5s; }
.walkers.sitting .chat { margin-bottom: calc(var(--u) * -12); }

/* ---------- Impressum / Datenschutz ---------- */
.legal { background: var(--cream); }
.legal-head { padding: 20px 16px 8px; max-width: 720px; margin: 0 auto; }
.legal-head img { width: min(260px, 70vw); height: auto; display: block; }
.legal-main { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }
.legal h2 { font-size: 1.2rem; margin-top: 1.4em; }

.noscript { position: relative; z-index: 50; background: var(--paper); padding: 16px; margin: 80px 16px; border: 2px solid var(--green); }

@media (min-width: 900px) {
  .mode-walk .station-card { left: auto; right: max(4vw, calc(50% - 560px)); margin: 0; width: 460px; }
  .card { padding: 26px 26px 18px; }
}

/* ---------- Autopilot-Hinweis ---------- */
.autopilot {
  position: fixed; z-index: 45; left: max(12px, env(safe-area-inset-left)); bottom: calc(82px + env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .35s, transform .35s;
}
.autopilot.show { opacity: 1; transform: none; pointer-events: auto; }
.autopilot .ap-stop {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 16px 8px 13px;
  border-radius: 999px; border: 2px solid var(--green); background: var(--paper); color: var(--green);
  font: 700 .95rem/1 var(--font-head); cursor: pointer; box-shadow: var(--shadow-print);
}
.autopilot .ap-stop svg { width: 15px; height: 15px; }
@media (hover: hover) { .autopilot .ap-stop:hover { background: var(--green); color: var(--paper); } }
@media (orientation: landscape) and (max-height: 500px) {
  .autopilot { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Claudias Sprechblase: mittig über den beiden, darf umbrechen */
.say-claudia { position: absolute; left: -60%; right: -60%; bottom: 100%; margin-bottom: calc(var(--u) * 4); }
.say-claudia span { white-space: normal; text-align: center; max-width: min(240px, 72vw); }
.say-claudia span::after { left: 60%; }
.walkers.say-now .say-claudia { opacity: 1; transform: none; transition-delay: 0s; }
.walkers.say-now .chat { display: none; }

/* ---------- Mobile Feinschliff ---------- */
a, button { -webkit-tap-highlight-color: rgba(48, 98, 57, .14); }

/* Touch-Geräte: Hover-Effekte nicht „hängen" lassen */
@media (hover: none) {
  .btn-mode:hover { background: var(--paper); color: var(--green); }
  .waymarks button:hover::after { background: var(--paper); }
  .waymarks button.done:hover::after { background: var(--green); }
  .sign:hover { transform: rotate(-1.2deg); }
  .sign-2:hover { transform: rotate(1deg); }
  .sign-3:hover { transform: rotate(.6deg); }
  .sign:hover .sign-badge { background: var(--paper); }
  .sign.seen:hover .sign-badge { background: var(--green); }
  .contact-bar .write:hover { background: transparent; }
}

/* sehr schmale Handys (iPhone SE & Co.) */
@media (max-width: 360px) {
  :root { --topbar-h: 54px; }
  .brand img { width: 124px; }
  .btn-mode { font-size: .8rem; padding: 6px 10px; }
  .mode-walk .card { font-size: .95rem; padding: 16px 14px 10px; }
  .mode-walk h1 { font-size: 1.45rem; }
  .mode-walk h2 { font-size: 1.3rem; }
  .mode-walk .start-logo { max-width: 210px; }
  .mode-walk .lead { font-size: 1rem; }
  .contact-bar a, .contact-bar button { padding: 10px 11px; font-size: .9rem; }
}
/* niedrige Hochformat-Bildschirme */
@media (max-height: 640px) and (orientation: portrait) {
  .mode-walk .card { line-height: 1.5; }
  .mode-walk .start-logo { margin-bottom: 6px; }
  .mode-walk .scroll-hint { margin-top: 4px; }
}

/* Handy quer: Karte rechts neben der Landschaft statt darüber */
@media (orientation: landscape) and (max-height: 500px) {
  .mode-walk .station-card {
    left: auto; right: max(12px, env(safe-area-inset-right)); margin: 0;
    width: min(420px, 50%); top: calc(var(--topbar-h) - 6px);
    max-height: calc(100% - var(--topbar-h) - 74px - env(safe-area-inset-bottom));
  }
  .mode-walk .card { font-size: .95rem; line-height: 1.5; padding: 16px 16px 10px; }
  .mode-walk h1 { font-size: 1.4rem; }
  .mode-walk h2 { font-size: 1.25rem; }
  .mode-walk .start-logo { max-width: 200px; margin-bottom: 6px; }
  .waymarks { left: max(16px, env(safe-area-inset-left)); right: auto; margin: 0; width: min(300px, 42%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
