/* Ausgebüxt! – Website. Farben und Formen aus dem Spiel (lib/game/art/palette.dart,
   lib/ui/widgets/cartoon.dart): dunkelbraune Konturen, Holzschilder, Wiese, Konturschrift. */
@font-face { font-family: Coiny; src: url(fonts/coiny-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Grandstander; src: url(fonts/grandstander-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Grandstander; src: url(fonts/grandstander-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Grandstander; src: url(fonts/grandstander-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --outline: #4a3426;
  --ink: #3d2a1e;
  --ink-soft: #6b4f3a;
  --grass: #8cc152;
  --grass-light: #a0d468;
  --grass-dark: #6fa83c;
  --meadow: #eef7dd;
  --wood: #b07a48;
  --wood-dark: #7a5230;
  --wood-deep: #5a3c24;
  --straw: #f2d27a;
  --plate: #f6e7c4;
  --cream: #fffbf2;
  --sky-1: #7cc6f2;
  --sky-2: #cdebfa;
  --gold: #ffc107;
  --orange: #f59e2e;
  --title-1: #ffe07a;
  --barn: #c0392b;
  --go: #43a047;
  --go-deep: #2e7d32;
  --blue: #1e88e5;
  --heart: #f06292;
  --radius: 22px;
  --gutter: 16px;
  --max: 1160px;
  --head: 66px;
  --border: 3px solid var(--outline);
  --pop: 0 5px 0 var(--outline);
  color-scheme: light;
  /* Wiese wie im Spiel: Grasbüschel, weiße und gelbe Blümchen, hellere Flecken */
  --meadow-flowers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='170'%3E%3Cg stroke='%236fa83c' stroke-width='2.2' stroke-linecap='round' fill='none'%3E%3Cpath d='M22 34l-3.5-8M22 34v-10M22 34l3.5-8'/%3E%3Cpath d='M136 22l-3.5-8M136 22v-10M136 22l3.5-8'/%3E%3Cpath d='M84 96l-3.5-8M84 96v-10M84 96l3.5-8'/%3E%3Cpath d='M176 128l-3.5-8M176 128v-10M176 128l3.5-8'/%3E%3Cpath d='M44 140l-3.5-8M44 140v-10M44 140l3.5-8'/%3E%3Cpath d='M196 60l-3.5-8M196 60v-10M196 60l3.5-8'/%3E%3Cpath d='M120 70l-3.5-8M120 70v-10M120 70l3.5-8'/%3E%3C/g%3E%3Ccircle cx='62.0' cy='41.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='64.8' cy='43.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='63.7' cy='46.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='60.3' cy='46.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='59.2' cy='43.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='62' cy='44' r='1.7' fill='%23ffd54f'/%3E%3Ccircle cx='156.0' cy='79.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='158.8' cy='81.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='157.7' cy='84.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='154.3' cy='84.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='153.2' cy='81.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='156' cy='82' r='1.7' fill='%23ffd54f'/%3E%3Ccircle cx='28.0' cy='95.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='30.8' cy='97.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='29.7' cy='100.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='26.3' cy='100.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='25.2' cy='97.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='28' cy='98' r='1.7' fill='%23ffd54f'/%3E%3Ccircle cx='112.0' cy='143.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='114.8' cy='145.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='113.7' cy='148.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='110.3' cy='148.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='109.2' cy='145.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='112' cy='146' r='1.7' fill='%23ffd54f'/%3E%3Ccircle cx='190.0' cy='15.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='192.8' cy='17.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='191.7' cy='20.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='188.3' cy='20.3' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='187.2' cy='17.1' r='2.3' fill='%23fffdf5'/%3E%3Ccircle cx='190' cy='18' r='1.7' fill='%23ffd54f'/%3E%3Ccircle cx='102.0' cy='25.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='104.8' cy='27.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='103.7' cy='30.3' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='100.3' cy='30.3' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='99.2' cy='27.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='102' cy='28' r='1.7' fill='%23f59e2e'/%3E%3Ccircle cx='70.0' cy='119.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='72.8' cy='121.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='71.7' cy='124.3' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='68.3' cy='124.3' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='67.2' cy='121.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='70' cy='122' r='1.7' fill='%23f59e2e'/%3E%3Ccircle cx='160.0' cy='147.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='162.8' cy='149.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='161.7' cy='152.3' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='158.3' cy='152.3' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='157.2' cy='149.1' r='2.0' fill='%23ffd54f'/%3E%3Ccircle cx='160' cy='150' r='1.7' fill='%23f59e2e'/%3E%3C/svg%3E");
  --meadow-bg: radial-gradient(ellipse 340px 120px at 18% 30%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(ellipse 420px 150px at 78% 70%, rgba(111, 168, 60, .22), transparent 70%),
    radial-gradient(ellipse 300px 110px at 55% 12%, rgba(111, 168, 60, .16), transparent 70%),
    var(--meadow-flowers) 0 0 / 210px 170px, var(--grass-light);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 14px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 17px/1.6 Grandstander, "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--meadow);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--go-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--outline); }
h1, h2, h3 { line-height: 1.15; color: var(--outline); margin: 0 0 .4em; }
h3 { font: 800 1.2rem/1.2 Grandstander, system-ui, sans-serif; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--outline); color: #fff; padding: 8px 14px; border-radius: 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 840px; }

/* Konturschrift wie OutlinedText im Spiel: Verlauf oben, dicke braune Kontur darunter. */
.ol { position: relative; display: inline-block; isolation: isolate; font-family: Coiny, Grandstander, sans-serif; font-weight: 400;
  color: transparent; }
.ol::before, .ol::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.ol::before { z-index: -1; color: var(--outline); -webkit-text-stroke: .2em var(--outline); text-shadow: 0 .07em 0 var(--outline); }
.ol::after { color: transparent; background: linear-gradient(180deg, var(--title-1), var(--orange)); -webkit-background-clip: text; background-clip: text; }
.ol.white::after { background: linear-gradient(180deg, #fff, #fff1d0); -webkit-background-clip: text; background-clip: text; }

/* ---------- Kopfleiste ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 242, .9);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: var(--border);
}
.top-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--head); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { border-radius: 11px; border: 2px solid var(--outline); }
.brand-name { font-size: 1.5rem; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--outline); text-decoration: none; font-weight: 800; padding: 7px 12px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: rgba(140, 193, 82, .25); }
.langs { display: flex; gap: 6px; }
.flag { display: block; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; opacity: .6; border: 2px solid var(--outline);
  transition: opacity .2s, transform .2s; }
.flag svg { display: block; width: 100%; height: 100%; transform: scale(1.5); }
.flag:hover { opacity: 1; transform: translateY(-2px); }
.flag.is-on { opacity: 1; box-shadow: 0 0 0 3px var(--gold); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: var(--border); border-radius: 50%; background: var(--wood); color: #fff;
  cursor: pointer; box-shadow: 0 3px 0 var(--outline); }
.burger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .burger { display: grid; place-items: center; order: 3; margin-left: 4px; }
  .langs { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--head);
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--cream); border-bottom: var(--border); box-shadow: 0 16px 30px rgba(74, 52, 38, .15);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 8px; border-radius: 12px; font-size: 1.15rem; }
}
@media (max-width: 460px) {
  .brand-name { display: none; }
  .flag { width: 26px; height: 26px; }
  .langs { gap: 4px; }
}

/* ---------- Knöpfe, Badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 800 1.08rem/1 Grandstander, sans-serif; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #66bb6a, var(--go)); padding: 14px 24px 13px; border-radius: 999px; border: var(--border);
  box-shadow: var(--pop); cursor: pointer; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); transition: transform .12s, box-shadow .12s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 var(--outline); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--outline); }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { position: relative; display: block; line-height: 0; border-radius: 12px; transition: transform .15s; }
a.badge:hover { transform: translateY(-2px); }
.badge img { display: block; height: 52px; width: auto; }
.badge .badge-play { height: 76px; margin: -12px -10px; } /* Googles PNG bringt eigenen Rand mit */
.badge.is-soon img { filter: grayscale(.2); opacity: .75; }
.soon {
  position: absolute; right: -8px; top: -13px; line-height: 1; white-space: nowrap;
  font: 800 .74rem/1 Grandstander, sans-serif; color: var(--outline); background: var(--gold);
  padding: 5px 9px 4px; border-radius: 999px; border: 2px solid var(--outline); transform: rotate(5deg);
}

/* Holzschild (wie die Abschnittsschilder der Levelauswahl). */
.sign { display: flex; justify-content: center; margin: 0 0 18px; }
.sign > span {
  position: relative; display: inline-block; padding: 12px 34px 14px; border: var(--border); border-radius: 16px;
  font: 400 clamp(1.6rem, 4.6vw, 2.5rem)/1.1 Coiny, sans-serif; color: #fff; text-align: center;
  text-shadow: 0 3px 0 var(--outline), 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 -2px 0 var(--outline),
    2px 2px 0 var(--outline), -2px 2px 0 var(--outline), 2px -2px 0 var(--outline), -2px -2px 0 var(--outline);
  background:
    repeating-linear-gradient(176deg, rgba(255, 255, 255, .07) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(181deg, rgba(90, 60, 36, .12) 0 2px, transparent 2px 17px),
    var(--wood);
  box-shadow: 0 6px 0 var(--wood-dark), 0 6px 0 3px var(--outline), 0 14px 24px rgba(74, 52, 38, .25);
  transform: rotate(-1.5deg);
}
.sign > span::before, .sign > span::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9d2c8, #6d655c); box-shadow: 0 0 0 1.5px var(--outline); }
.sign > span::before { left: 10px; } .sign > span::after { right: 10px; }
.sign-small { margin-top: 64px; }
.sign-small > span { font-size: clamp(1.4rem, 3.6vw, 2rem); transform: rotate(1deg); }

/* ---------- Kopf der Seite ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 70%); padding: 34px 0 0; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sun { position: absolute; right: 8%; top: 40px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #fff6c8 0 36%, #ffe27a 37% 54%, rgba(255, 226, 122, 0) 72%); }
.cloud { position: absolute; display: block; width: 170px; height: 52px; background: #fff; border-radius: 999px; opacity: .95;
  animation: drift 70s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 76px; height: 76px; left: 24px; top: -36px; }
.cloud::after { width: 56px; height: 56px; left: 88px; top: -24px; }
.c1 { top: 70px; left: 4%; }
.c2 { top: 170px; left: 56%; transform: scale(.7); animation-duration: 90s; animation-delay: -30s; }
.c3 { top: 300px; left: 24%; transform: scale(.55); animation-duration: 110s; animation-delay: -60s; opacity: .85; }
@keyframes drift { from { translate: -40vw 0; } to { translate: 60vw 0; } }

.hero-in { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 0; display: grid; gap: 26px; align-items: center; }
.hero-text { text-align: center; }
.kicker { display: inline-block; font-weight: 800; color: var(--outline); background: var(--plate); border: 2px solid var(--outline);
  padding: 5px 14px 4px; border-radius: 999px; margin-bottom: 10px; box-shadow: 0 3px 0 var(--outline); }
.title { margin: 6px 0 0; font-size: clamp(3.3rem, 13.5vw, 6.6rem); line-height: 1.05; white-space: nowrap; }
.ltr { display: inline-block; animation: wobble 2.6s ease-in-out infinite; }
.ltr:nth-child(1) { animation-delay: -0.00s; }
.ltr:nth-child(2) { animation-delay: -0.27s; }
.ltr:nth-child(3) { animation-delay: -0.54s; }
.ltr:nth-child(4) { animation-delay: -0.81s; }
.ltr:nth-child(5) { animation-delay: -1.08s; }
.ltr:nth-child(6) { animation-delay: -1.35s; }
.ltr:nth-child(7) { animation-delay: -1.62s; }
.ltr:nth-child(8) { animation-delay: -1.89s; }
.ltr:nth-child(9) { animation-delay: -2.16s; }
.ltr:nth-child(10) { animation-delay: -2.43s; }
@keyframes wobble { 0%, 100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(-.07em) rotate(2.5deg); } }
.slogan { margin: 18px 0 14px; }
.slogan span { display: inline-block; font: 800 1.25rem/1.2 Grandstander, sans-serif; color: #fff; background: var(--barn);
  padding: 9px 18px 8px; border-radius: 14px; border: var(--border); box-shadow: var(--pop); transform: rotate(-2deg);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.hero-lead { font-size: 1.13rem; max-width: 33em; margin: 0 auto 22px; }
.badges-hero { justify-content: center; margin: 4px 0 18px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: .95rem; background: var(--cream);
  padding: 5px 12px 4px 6px; border-radius: 999px; border: 2px solid var(--outline); }
.chips svg { width: 20px; height: 20px; color: #fff; background: var(--go); border-radius: 50%; padding: 3px; }

.hero-phone { position: relative; justify-self: center; width: min(62vw, 280px); }
.phone { position: relative; border-radius: 40px; padding: 9px; background: var(--outline); transform: rotate(3deg);
  box-shadow: 0 8px 0 var(--wood-deep), 0 30px 50px rgba(40, 60, 90, .35); }
.phone img { display: block; width: 100%; border-radius: 32px; aspect-ratio: 720 / 1561; object-fit: cover; background: var(--grass); }
.hero-runaway { position: absolute; width: 46%; left: -30%; bottom: 6%; animation: hopp 1.1s ease-in-out infinite; transform: scaleX(-1); }
@keyframes hopp { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hills { display: block; width: 100%; height: clamp(50px, 8vw, 110px); margin-top: 24px; position: relative; z-index: 1; margin-bottom: -2px; }

/* Die Geschichte in drei Comic-Bildern */
.story { position: relative; z-index: 1; background: var(--meadow-bg); padding: 26px var(--gutter) 60px; }
/* Ruhige Deko auf der Wiese: Bäume, Heuballen, eine grasende Kuh */
.deco { position: absolute; z-index: -1; pointer-events: none; max-width: none; }
.deco-tree1 { width: 150px; left: max(1%, calc(50% - 600px)); top: -40px; }
.deco-tree2 { width: 120px; right: max(2%, calc(50% - 590px)); top: -20px; }
.deco-tree3 { width: 130px; left: -30px; bottom: 30px; }
.deco-hay { width: 52px; right: max(12%, calc(50% - 470px)); top: 70px; }
.deco-cow { width: 70px; left: max(13%, calc(50% - 450px)); top: 64px; }
.deco-tree4 { width: 110px; right: -20px; bottom: 60px; }
@media (max-width: 960px) { .deco-tree3, .deco-tree4, .deco-cow, .deco-hay { display: none; }
  .deco-tree1 { width: 90px; left: -14px; top: -26px; } .deco-tree2 { width: 80px; right: -10px; top: -14px; } }
.story .sign { margin-bottom: 30px; }
.panels { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); counter-reset: panel; }
.panel { position: relative; display: flex; flex-direction: column; background: var(--cream); border: 4px solid var(--outline); border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 0 var(--outline), 0 20px 30px rgba(40, 70, 20, .25); counter-increment: panel; }
.panel:nth-child(1) { transform: rotate(-1.2deg); } .panel:nth-child(2) { transform: rotate(.8deg); } .panel:nth-child(3) { transform: rotate(-.6deg); }
.panel::before { content: counter(panel); position: absolute; left: 10px; top: 10px; z-index: 5; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.1rem/1 Coiny, sans-serif; color: var(--outline); background: var(--gold); border: 3px solid var(--outline); }
.scene { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 4px solid var(--outline);
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.scene::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 46%; z-index: 0;
  background: var(--grass); border-top: 3px solid var(--outline); border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
.caption { flex: 1; margin: 0; padding: 14px 18px 16px; font: 800 1.12rem/1.35 Grandstander, sans-serif; color: var(--outline); }
.panel-day .caption { background: var(--gold); }

.cs { position: absolute; z-index: 3; max-width: none; }
.cs.fl { transform: scaleX(-1); }
.cpen { position: absolute; z-index: 2; left: 5%; bottom: 9%; width: 38%; height: 30%; }
.cpen-floor { position: absolute; inset: 0; background: var(--grass-light); border-radius: 4px; }
.cpen .pole { position: absolute; background: linear-gradient(180deg, #c48b55, var(--wood)); border: 2.5px solid var(--outline); border-radius: 5px; }
.cpen .pole.t, .cpen .pole.b { left: -5px; right: -5px; height: 10px; }
.cpen .pole.t { top: -5px; } .cpen .pole.b { bottom: -5px; }
.cpen .pole.l, .cpen .pole.r1, .cpen .pole.r2 { width: 10px; }
.cpen .pole.l { left: -5px; top: -5px; bottom: -5px; }
.cpen .pole.r1 { right: -5px; top: -5px; height: calc(28% + 5px); }
.cpen .pole.r2 { right: -5px; bottom: -5px; height: calc(28% + 5px); }
.cgate { position: absolute; right: -5px; top: 28%; height: 44%; width: 10px; transform-origin: 50% 0; border: 2.5px solid var(--outline); border-radius: 4px;
  background: repeating-linear-gradient(180deg, var(--barn) 0 6px, #e05a4a 6px 11px); transform: rotate(-72deg); }

/* 1 · Nacht */
.panel-night .scene { background: linear-gradient(180deg, #1c2550, #3a5296); }
.panel-night .scene::after { background: #4f7f3a; }
.panel-night .cs, .panel-night .cpen { filter: brightness(.72) saturate(.8); }
.panel-night .caption { background: #2c3a70; color: #fff6d8; }
.moon { position: absolute; right: 10%; top: 9%; width: 46px; height: 46px; border-radius: 50%; background: #fff6c8;
  box-shadow: 0 0 0 10px rgba(255, 246, 200, .15), 0 0 40px rgba(255, 246, 200, .6); }
.moon::after { content: ""; position: absolute; left: 12px; top: -4px; width: 40px; height: 40px; border-radius: 50%; background: #253064; }
.stars { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  box-shadow: 30px 24px #fff, 70px 60px #fffbd0, 120px 18px #fff, 170px 50px #fff, 210px 20px #fffbd0, 240px 70px #fff, 55px 95px #fff, 150px 92px #fffbd0;
  animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .45; } }
.n1 { left: 44%; bottom: 13%; animation: sneak 1.6s ease-in-out infinite; }
.n2 { left: 63%; bottom: 25%; animation: sneak 1.6s ease-in-out infinite -.5s; }
.n3 { left: 82%; bottom: 9%; animation: sneak 1.4s ease-in-out infinite -.9s; }
@keyframes sneak { 0%, 100% { translate: 0 0; } 50% { translate: 4px -5px; } }

/* 2 · Morgen */
.panel-morning .scene { background: linear-gradient(180deg, #ffb48a, #ffdca8 45%, #cfeaf7); }
.sunrise { position: absolute; left: 58%; bottom: 36%; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, #fff3b0 0 45%, #ffd36b 46% 60%, rgba(255, 211, 107, 0) 72%); }
.m1 { left: 52%; bottom: 7%; }
.shock { position: absolute; z-index: 4; left: 47%; bottom: 52%; font: 400 1.6rem/1 Coiny, sans-serif; color: #fff; background: var(--barn);
  border: 3px solid var(--outline); border-radius: 999px; padding: 6px 12px 3px; transform: rotate(-8deg); animation: shake .9s ease-in-out infinite; }
@keyframes shake { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
.m2 { left: 80%; bottom: 44%; z-index: 1; } .m3 { left: 90%; bottom: 40%; z-index: 1; } .m4 { left: 72%; bottom: 41%; z-index: 1; }

/* 3 · Zurücktreiben, das Gewitter kommt */
.panel-day .scene { background: linear-gradient(180deg, #8fb3cf, var(--sky-2)); }
.storm { position: absolute; right: 6%; top: 6%; width: 92px; animation: bob 3s ease-in-out infinite; }
.storm svg { display: block; width: 100%; height: auto; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: -6px 4px; } }
.d1 { left: 38%; bottom: 15%; animation: hopp .55s ease-in-out infinite; }
.d2 { left: 60%; bottom: 27%; animation: hopp .5s ease-in-out infinite -.2s; }
.d3 { left: 58%; bottom: 3%; animation: hopp .45s ease-in-out infinite -.1s; }
.d4 { left: 81%; bottom: 9%; animation: hopp .6s ease-in-out infinite -.3s; }

@media (min-width: 960px) { .panels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .panels { max-width: 440px; } }

.studio { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px var(--gutter) 28px;
  background: var(--meadow-flowers) 60px 40px / 210px 170px, var(--grass); border-top: var(--border); }
.studio-plate { display: flex; align-items: center; gap: 16px; padding: 10px 26px 12px; background: var(--cream); border: var(--border);
  border-radius: 18px; box-shadow: var(--pop); transform: rotate(-1deg); }
.studio-by { font-weight: 800; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--outline); }
.studio-logo { width: min(44vw, 180px); }

@media (min-width: 960px) {
  .hero { padding-top: 46px; }
  .hero-in { grid-template-columns: 1.2fr .8fr; gap: 40px; }
  .hero-text { text-align: left; }
  .hero-lead { margin-left: 0; }
  .badges-hero, .chips { justify-content: flex-start; }
}

/* ---------- Abschnitte ---------- */
.sec { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.sec-lead { text-align: center; max-width: 36em; margin: 0 auto 38px; font-size: 1.12rem; color: var(--ink-soft); }
.fence-row { height: 56px; margin: -28px 0; position: relative; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='56'%3E%3Cg stroke='%234a3426' stroke-width='3' stroke-linejoin='round'%3E%3Crect x='-4' y='15' width='128' height='10' rx='3' fill='%23b07a48'/%3E%3Crect x='-4' y='34' width='128' height='10' rx='3' fill='%23b07a48'/%3E%3Cpath d='M16 54V10l9-7 9 7v44z' fill='%23c48b55'/%3E%3Cpath d='M76 54V10l9-7 9 7v44z' fill='%23c48b55'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 50% / 120px 56px; }

/* So geht's */
.how { background: var(--cream); }
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.step { position: relative; background: #fff; border: var(--border); border-radius: var(--radius); padding: 16px 18px 18px; box-shadow: var(--pop); }
.step-art { position: relative; height: 140px; margin-bottom: 14px; border-radius: 14px; border: 2px solid var(--outline); overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 42%, var(--grass-light) 42%); }
.step-art::before { content: ""; position: absolute; left: 0; right: 0; top: 42%; border-top: 2px solid var(--outline); opacity: .35; }
.step-no { position: absolute; z-index: 6; left: 8px; top: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font: 400 1.2rem/1 Coiny, sans-serif; color: #fff; background: var(--go); border: var(--border); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.ss { position: absolute; z-index: 3; max-width: none; }
.ss.fl { transform: scaleX(-1); }
.step-art .cpen { left: 6%; bottom: 6%; width: 46%; height: 68%; }
.cgate.is-shut { transform: none; animation: shut 3s ease-in-out infinite; }
@keyframes shut { 0%, 25% { transform: rotate(-72deg); } 45%, 100% { transform: none; } }

/* 1: Finger setzt auf und zieht, der Bauer läuft mit */
.touch { position: absolute; z-index: 4; left: 26%; bottom: 22%; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .9);
  border: 2px solid var(--outline); box-shadow: 0 0 0 7px rgba(255, 255, 255, .35); animation: drag 2.2s ease-in-out infinite; }
.touch::before { content: ""; position: absolute; right: 100%; top: 50%; width: 0; height: 0; border-top: 3px dashed rgba(74, 52, 38, .55);
  animation: trail 2.2s ease-in-out infinite; }
@keyframes drag { 0%, 15% { translate: 0 0; } 60%, 100% { translate: 60px 0; } }
@keyframes trail { 0%, 15% { width: 0; } 60%, 100% { width: 60px; } }
.s1-farmer { left: 50%; bottom: 10%; animation: walkon 2.2s ease-in-out infinite; }
@keyframes walkon { 0%, 15% { translate: 0 0; } 60%, 100% { translate: 34px 0; } }
/* 2: Der Bauer läuft auf die Kuh zu, sie weicht vor ihm aus */
.s2-cow { left: 42%; bottom: 12%; animation: flee2 4s ease-in-out infinite, waddle .45s ease-in-out infinite; }
.s2-farmer { left: 76%; bottom: 8%; animation: chase2 4s ease-in-out infinite, waddle .5s ease-in-out infinite; }
@keyframes chase2 { 0% { translate: 30px 0; opacity: 0; } 10% { opacity: 1; } 85% { translate: -50px 0; opacity: 1; } 100% { translate: -50px 0; opacity: 0; } }
@keyframes flee2 { 0% { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 22% { translate: 0 0; } 85% { translate: -85px 0; opacity: 1; } 100% { translate: -85px 0; opacity: 0; } }
/* 3: Die Kuh läuft durchs offene Tor ins Gehege, der Bauer treibt bis zum Zaun */
.s3-cow { left: 60%; bottom: 29%; animation: enter3 4.4s ease-in-out infinite, waddle .5s ease-in-out infinite; }
.s3-farmer { left: 86%; bottom: 6%; animation: follow3 4.4s ease-in-out infinite, waddle .55s ease-in-out infinite; }
@keyframes enter3 { 0% { translate: 20px 0; opacity: 0; } 10% { opacity: 1; } 80% { translate: -98px 0; opacity: 1; } 100% { translate: -98px 0; opacity: 0; } }
@keyframes follow3 { 0% { translate: 20px 0; opacity: 0; } 10% { opacity: 1; } 80% { translate: -52px 0; opacity: 1; } 100% { translate: -52px 0; opacity: 0; } }
@keyframes waddle { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
/* 4: Kuh daheim, Tor fällt zu */
.s4-cow { left: 11%; bottom: 20%; }
.s4-farmer { left: 70%; bottom: 6%; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); }

.extras { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.extra { background: var(--plate); border: var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--pop); }
.extra-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.extra-head svg { width: 52px; height: 44px; flex: none; }
.extra-head h3 { margin: 0; font: 400 1.5rem/1.1 Coiny, sans-serif; }
.extra-cow { width: 60px; flex: none; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.rule-ico { flex: none; width: 82px; display: flex; justify-content: center; }
.rule-ico svg { width: 24px; height: 24px; }
.mood { flex: none; display: flex; justify-content: center; min-width: 44px; margin: 0 19px; padding: 6px 10px 5px; border-radius: 999px;
  font: 800 1.1rem/1 Grandstander, sans-serif; color: #fff; border: 2px solid var(--outline); }
/* Farben wie die Blasen über den Köpfen (lib/game/art/cow_art.dart) */
.mood-1 { background: #1e88e5; } .mood-2 { background: #fb8c00; } .mood-3 { background: #e53935; } .mood-4 { background: #f06292; }

/* Bilder */
.gallery { background: linear-gradient(180deg, var(--meadow), #dff0c4); padding-bottom: 40px; }
.rail { list-style: none; margin: 0; padding: 18px var(--gutter) 46px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(58vw, 230px); scroll-snap-align: center; transform: rotate(var(--r, 0deg)); transition: transform .3s; }
.shot:nth-child(1) { --r: -4deg; } .shot:nth-child(2) { --r: 2deg; } .shot:nth-child(3) { --r: -1.5deg; } .shot:nth-child(4) { --r: 3deg; } .shot:nth-child(5) { --r: -2.5deg; }
.shot:hover { transform: rotate(0) translateY(-6px) scale(1.03); }
.shot img { display: block; width: 100%; border-radius: 26px; border: 7px solid var(--outline); background: var(--grass);
  box-shadow: 0 6px 0 var(--wood-deep), 0 22px 34px rgba(40, 60, 30, .25); }
@media (min-width: 960px) { .rail { justify-content: center; overflow: visible; } .shot { flex-basis: 200px; } }

/* Die Herde */
.herd { background: var(--meadow); }
.cowcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cowcard { background: var(--plate); border: 4px solid var(--outline); border-radius: 26px; padding: 14px 16px 18px; text-align: center;
  box-shadow: 0 6px 0 var(--outline), 0 18px 30px rgba(74, 52, 38, .18); transition: transform .25s; }
.cowcard:nth-child(odd) { transform: rotate(-1deg); } .cowcard:nth-child(even) { transform: rotate(1deg); }
.cowcard:hover { transform: rotate(0) translateY(-4px); }
.cowcard:hover .cowcard-img { animation: wiggle .5s ease-in-out 2; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
.cowcard-stage { height: 150px; display: grid; place-items: end center; padding-bottom: 12px; border-radius: 18px; border: 3px solid var(--outline);
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 58%, var(--grass-light) 58%); margin-bottom: 10px; }
.cowcard-img { max-height: 118px; width: auto; transform-origin: 50% 100%; }
.cowcard h3 { font-size: 2rem; margin: 2px 0 2px; }
.cowcard-text { font-weight: 800; font-size: 1.1rem; margin: 0 0 12px; }
.cowcard-look { display: flex; gap: 10px; align-items: center; text-align: left; background: #fff; border: 2px solid var(--outline);
  border-radius: 16px; padding: 8px 12px; margin: 0 0 10px; }
.look-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; border: 2px solid var(--outline); }
.look-ico svg { width: 20px; height: 20px; }
.cowcard-rule { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) { .cowcards { grid-template-columns: repeat(3, 1fr); } }

.tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tool { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--pop); }
.tool-crate { flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; border: var(--border);
  background: radial-gradient(circle at 50% 35%, #fff8e6, var(--plate)); box-shadow: 0 4px 0 var(--outline); }
.tool-img { max-width: 64px; max-height: 60px; width: auto; }
.tool-svg svg { width: 50px; height: 50px; display: block; }
.tool h3 { margin: 4px 0 4px; }
.tool p { margin: 0 0 6px; font-weight: 700; }
.tool ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.tool li::marker { color: var(--grass-dark); }

/* Für Eltern: Hofregeln am Holzbrett */
.parents { background: linear-gradient(180deg, #dff0c4, var(--meadow)); }
.board { padding: clamp(18px, 3vw, 34px); border: var(--border); border-radius: 26px;
  background: repeating-linear-gradient(0deg, rgba(90, 60, 36, .16) 0 3px, transparent 3px 70px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 23px), var(--wood);
  box-shadow: 0 8px 0 var(--wood-dark), 0 8px 0 3px var(--outline), 0 24px 40px rgba(74, 52, 38, .3); }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.note { position: relative; background: var(--cream); border: 2px solid var(--outline); border-radius: 6px; padding: 22px 18px 16px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .25); transform: rotate(var(--r, 0deg)); }
.note:nth-child(6n+1) { --r: -1.5deg; } .note:nth-child(6n+2) { --r: 1deg; } .note:nth-child(6n+3) { --r: -.5deg; }
.note:nth-child(6n+4) { --r: 1.5deg; } .note:nth-child(6n+5) { --r: -1deg; } .note:nth-child(6n) { --r: .8deg; }
.note .pin { position: absolute; left: 50%; top: -8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a80, var(--barn)); border: 2px solid var(--outline); }
.note > svg { width: 30px; height: 30px; color: #fff; background: var(--go); border-radius: 50%; padding: 5px; border: 2px solid var(--outline); float: left; margin: 0 10px 4px 0; }
.note h3 { margin: 2px 0 6px; }
.note p { margin: 0; color: var(--ink-soft); clear: both; }
.more { text-align: center; margin-top: 34px; font-weight: 800; }

/* Hilfe */
.help { background: var(--cream); }
.faqs { display: grid; gap: 12px; }
.faq { background: #fff; border: var(--border); border-radius: 18px; box-shadow: 0 4px 0 var(--outline); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 60px 16px 20px; font-weight: 800; font-size: 1.1rem; color: var(--outline); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.3rem/1 Coiny, sans-serif; background: var(--go); color: #fff; border: 2px solid var(--outline);
  transition: rotate .2s; }
.faq[open] summary::after { rotate: 45deg; }
.faq p { padding: 0 20px 18px; margin: 0; color: var(--ink-soft); }
.contact { margin-top: 30px; display: flex; align-items: center; gap: 18px; background: var(--plate); border: var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--pop); }
.contact-art { width: 92px; flex: none; }
.contact h3 { margin-bottom: 6px; }
.contact p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 800; word-break: break-word; }
.contact svg { width: 22px; height: 22px; color: var(--go-deep); }

/* ---------- Fuß ---------- */
.foot { position: relative; background: var(--wood-deep); color: #f6e7c4; padding: 50px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 28px; }
.foot-fence { position: absolute; left: 0; right: 0; top: -40px; height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='56'%3E%3Cg stroke='%234a3426' stroke-width='3' stroke-linejoin='round'%3E%3Crect x='-4' y='15' width='128' height='10' rx='3' fill='%23b07a48'/%3E%3Crect x='-4' y='34' width='128' height='10' rx='3' fill='%23b07a48'/%3E%3Cpath d='M16 54V10l9-7 9 7v44z' fill='%23c48b55'/%3E%3Cpath d='M76 54V10l9-7 9 7v44z' fill='%23c48b55'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 120px 56px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 24px; justify-items: center; text-align: center; }
.foot-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.foot-logo { width: 170px; }
.foot-brand p { margin: 0; max-width: 32em; opacity: .9; }
.badges-foot { justify-content: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-links a { color: #fff; font-weight: 800; }
.foot-links a:hover { color: var(--gold); }
.copy { margin: 0; font-size: .9rem; opacity: .7; }

/* ---------- Rechtliches, 404 ---------- */
.legal { background: var(--meadow); padding-bottom: 80px; }
.legal-head { text-align: center; padding: 42px var(--gutter) 32px; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 75%, var(--meadow)); }
.legal-art { width: 110px; }
.legal-art.runaway { width: 130px; transform: scaleX(-1); animation: hopp 1s ease-in-out infinite; }
.legal-head h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 10px 0 6px; }
.legal-head .meta { color: var(--ink-soft); font-weight: 800; margin: 0 0 14px; }
.prose { background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--pop); padding: clamp(22px, 4vw, 46px); line-height: 1.65;
  width: calc(100% - 2 * var(--gutter)); }
.prose h2 { font: 800 1.4rem/1.2 Grandstander, sans-serif; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--grass-dark); }
.prose .lead { font-size: 1.12rem; background: #f1f8e6; border-radius: 16px; padding: 16px 18px; border: 2px solid var(--grass-dark); }
.prose a { word-break: break-word; }
.back { margin: 2em 0 0; text-align: center; }
.notfound .legal-head { padding-bottom: 80px; }
.others { margin-top: 26px; font-size: .95rem; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
.reveal.is-in, .no-js .reveal { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: 0 0; }
}
