/* PfotenMeisterwerk — 3D-Wiesen-Design v2:
   Man "fliegt" in eine grüne Hundewiese hinein (Kamera-Flug beim Laden,
   Parallax-Hügel beim Scrollen). Die Seite ist bewusst GRÜN dominiert,
   Himmel nur als schmaler Horizont oben. Akzente: Agility-Orange + Vereins-Blau. */
:root {
  --himmel: #AEE1F9;
  --himmel-tief: #7CC3E8;
  --blau: #2F6FA8;          /* Vereins-Blau (Akzent) */
  --blau-dunkel: #24557F;
  --wiese-hell: #B9E68C;
  --wiese: #7CC24B;
  --wiese-dunkel: #4E9A2E;
  --wald: #2E6B1A;          /* dunkles Grün für Überschriften/Fußzeile */
  --agility: #F59E0B;       /* Signal-Orange der Agility-Geräte */
  --agility-rot: #E2574C;
  --sonne: #FFD54F;
  --karte: #FFFFFF;
  --text: #26391D;
  --text-weich: #557048;
  --rand: #D9EBC4;
  --schatten: 0 10px 30px rgba(46, 107, 26, .18);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text); line-height: 1.55; min-height: 100vh;
  /* schmaler Himmel oben, dann satte Wiese */
  background: linear-gradient(180deg,
    var(--himmel) 0%, #D8F0FA 10%, #EAF7DC 20%, var(--wiese-hell) 38%,
    #92D15E 62%, var(--wiese) 82%, #6DB53E 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--wald); }
img { max-width: 100%; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }

/* Kopfzeile */
header.topbar { padding: 14px 0; position: relative; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.35rem; color: var(--wald);
  text-decoration: none; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.logo .ki { color: var(--agility); }
.topbar nav a { margin-left: 16px; text-decoration: none; color: var(--text-weich);
  font-weight: 600; font-size: .95rem; }

.soft-flag {
  position: fixed; top: 12px; left: 10px; z-index: 50;
  background: var(--agility); color: #fff; font-weight: 800; font-size: .78rem;
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--schatten);
  pointer-events: none;
}
/* Fähnchen links oben: Logo daneben einrücken, damit nichts überdeckt wird */
body.soft .topbar .wrap { padding-left: 128px; }
@media (max-width: 640px) { body.soft .topbar .wrap { padding-left: 118px; } }

/* ============================================= 3D-Wiesen-Szene (Startseite) */
/* Kamera-Flug: die ganze Szene kommt von "oben aus dem Himmel" auf den
   Betrachter zugeflogen und setzt sanft auf der Wiese auf. */
.szene {
  position: relative; height: min(66vh, 520px); min-height: 420px;
  margin-top: -60px;                      /* Szene bis unter die Kopfzeile ziehen */
  perspective: 900px; overflow: hidden;
}
.kamera {
  position: absolute; inset: 0; transform-origin: 50% 62%;
  animation: kameraflug 1.7s cubic-bezier(.22,.75,.3,1) both;
}
@keyframes kameraflug {
  0%   { transform: translateZ(420px) rotateX(14deg) translateY(-6%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateZ(0) rotateX(0) translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kamera { animation: none; }
  .wolke, .lauf-hund { animation: none !important; }
}

.sonne {
  position: absolute; top: 7%; right: 12%; width: 92px; height: 92px;
  border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF3B0, var(--sonne) 60%, #FFC93C);
  box-shadow: 0 0 60px 24px rgba(255, 213, 79, .55);
}
.wolke {
  position: absolute; background: #fff; border-radius: 999px; opacity: .9;
  filter: drop-shadow(0 6px 8px rgba(47,111,168,.12));
}
.wolke::before, .wolke::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.wolke.w1 { top: 10%; left: 8%; width: 130px; height: 38px; animation: drift 46s linear infinite; }
.wolke.w1::before { width: 52px; height: 52px; top: -24px; left: 22px; }
.wolke.w1::after  { width: 38px; height: 38px; top: -16px; left: 66px; }
.wolke.w2 { top: 22%; left: 55%; width: 96px; height: 30px; opacity: .75; animation: drift 64s linear infinite reverse; }
.wolke.w2::before { width: 40px; height: 40px; top: -18px; left: 16px; }
.wolke.w2::after  { width: 28px; height: 28px; top: -12px; left: 50px; }
@keyframes drift { from { transform: translateX(-16vw); } to { transform: translateX(100vw); } }

/* Drei Hügel-Ebenen: hinten hell, vorne satt — Parallax per JS (data-tiefe) */
.huegel { position: absolute; left: -10%; right: -10%; bottom: 0; will-change: transform; }
.huegel svg { display: block; width: 100%; height: auto; }
.huegel.h3 { bottom: 24%; }
.huegel.h2 { bottom: 10%; }
.huegel.h1 { bottom: -2%; }

/* Agility-Deko + rennender Hund auf der vorderen Wiese */
.deko { position: absolute; bottom: 9%; width: 100%; text-align: center;
  font-size: 2rem; letter-spacing: 10vw; pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.18)); }
.lauf-hund {
  position: absolute; bottom: 7%; left: -12%; font-size: 2.4rem; z-index: 3;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.22));
  animation: rennen 11s linear 1.4s infinite;
}
@keyframes rennen {
  0%   { left: -12%; transform: scaleX(1) translateY(0); }
  10%  { transform: scaleX(1) translateY(-10px); }
  20%  { transform: scaleX(1) translateY(0); }
  30%  { transform: scaleX(1) translateY(-10px); }
  49%  { left: 108%; transform: scaleX(1) translateY(0); }
  50%  { left: 108%; transform: scaleX(-1) translateY(0); }
  70%  { transform: scaleX(-1) translateY(-10px); }
  99%  { left: -12%; transform: scaleX(-1) translateY(0); }
  100% { left: -12%; transform: scaleX(1) translateY(0); }
}

/* Text schwebt über der Szene */
.held {
  position: relative; z-index: 4; text-align: center;
  padding: 96px 18px 0;
}
.held h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.7rem); margin: 0 0 10px; color: var(--wald);
  text-shadow: 0 2px 0 rgba(255,255,255,.65), 0 8px 24px rgba(46,107,26,.25);
}
.held .claim {
  font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--text);
  max-width: 620px; margin: 0 auto 18px; font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

/* ============================================= Parcours-Fortschritt */
.parcours { margin: 18px auto 6px; max-width: 720px; padding: 0 10px;
  position: relative; z-index: 5; }
.parcours .strecke {
  position: relative; height: 6px; border-radius: 999px;
  background: repeating-linear-gradient(90deg,
    var(--agility) 0 14px, #fff 14px 22px);   /* Hindernis-Stangen-Optik */
  margin: 26px 8px 8px;
}
.parcours .hund {
  position: absolute; top: -24px; font-size: 1.5rem;
  transform: translateX(-50%); transition: left .5s ease;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.2));
}
.parcours .stationen { display: flex; justify-content: space-between; }
.parcours .st { text-align: center; font-size: .68rem; color: var(--text-weich);
  width: 14.2%; font-weight: 600; }
.parcours .st .ico { font-size: 1.05rem; display: block; opacity: .45; }
.parcours .st.aktiv { color: var(--wald); }
.parcours .st.aktiv .ico { opacity: 1; transform: scale(1.25); }
.parcours .st.fertig .ico { opacity: .9; }

/* ============================================= Karten & Buttons */
.card {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 26px; margin: 16px 0; position: relative; z-index: 4;
}
h1 { color: var(--wald); font-size: 1.9rem; margin: .2em 0; }
h2 { color: var(--wald); }
.hinweis { color: var(--text-weich); font-size: .93rem; }

.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: var(--wiese-dunkel); color: #fff; font-weight: 700; font-size: 1.02rem;
  padding: 14px 28px; border-radius: 999px; box-shadow: var(--schatten);
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: var(--wald); transform: translateY(-1px); }
.btn.orange { background: var(--agility); }
.btn.orange:hover { background: #D98905; }
.btn.hell { background: #fff; color: var(--wald); border: 2px solid var(--rand);
  box-shadow: none; }
.btn.gross { font-size: 1.14rem; padding: 16px 34px; }

input[type=text], input[type=email], select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--rand); border-radius: 12px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
input:focus { outline: none; border-color: var(--wiese-dunkel); }
label { display: block; font-weight: 600; margin: 14px 0 6px; }

/* ============================================= Startbox (Station 1) */
.hero { text-align: center; padding: 26px 0 6px; }
.hero h1 { font-size: 2.2rem; }
.hero .claim { font-size: 1.12rem; color: var(--text-weich); max-width: 560px;
  margin: 0 auto 8px; }

.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 640px) { .wahl { grid-template-columns: 1fr; } }
.wahl .feld {
  border: 2.5px dashed var(--wiese); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; background: #F4FBEC; cursor: pointer;
  transition: border-color .15s ease, transform .08s ease;
}
.wahl .feld:hover { border-color: var(--wiese-dunkel); transform: translateY(-2px); }
.wahl .feld .gross-ico { font-size: 2.6rem; display: block; margin-bottom: 6px; }
.wahl .feld b { color: var(--wald); font-size: 1.05rem; }

.stil-vorschau { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 14px; }
.stil-chip { background: #fff; border: 1px solid var(--rand); border-radius: 999px;
  padding: 6px 13px; font-size: .85rem; font-weight: 600; color: var(--text-weich); }

/* ============================================= Demo-Galeriewand (Startseite) */
.demo-wand { position: relative; z-index: 4; margin: 26px 0 8px; }
.demo-wand h2 { text-align: center; }
.demo-wand .unter { text-align: center; margin-top: -6px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 18px; perspective: 1000px; }
@media (max-width: 720px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .demo-grid { grid-template-columns: 1fr; } }
.demo {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--schatten);
  transform-style: preserve-3d; transition: transform .18s ease, box-shadow .18s ease;
}
.demo:hover {
  transform: rotateX(4deg) rotateY(-5deg) translateY(-6px) scale(1.03);
  box-shadow: 0 22px 44px rgba(46, 107, 26, .3);
}
.demo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.demo .schild { display: block; text-align: center; font-weight: 700;
  font-size: .9rem; color: var(--wald); padding: 8px 4px; background: #fff; }

/* Kriterien-Chips (Hürde) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.chip input { display: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--rand); background: #fff; font-size: .92rem; font-weight: 600;
  color: var(--text-weich); cursor: pointer; transition: all .12s ease; }
.chip input:checked + span { border-color: var(--agility); background: #FFF7E8;
  color: var(--wald); }
.chip span:hover { border-color: var(--wiese-dunkel); }

/* Preis-Sektion (Startseite) */
.preis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 16px; }
@media (max-width: 760px) { .preis-grid { grid-template-columns: repeat(2, 1fr); } }
.preis {
  background: #fff; border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 18px 14px; text-align: center;
}
.preis b { color: var(--wald); }
.preis .betrag { font-size: 1.5rem; font-weight: 800; color: var(--wald);
  margin: 6px 0 2px; }
.preis .hinweis { font-size: .82rem; }

/* So funktioniert's (Startseite) */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 16px; }
@media (max-width: 640px) { .schritte { grid-template-columns: 1fr; } }
.schritt { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 18px 16px; text-align: center; }
.schritt .nr { display: inline-block; width: 34px; height: 34px; line-height: 34px;
  border-radius: 50%; background: var(--wiese-dunkel); color: #fff; font-weight: 800;
  margin-bottom: 8px; }
.schritt b { color: var(--wald); }

/* Mini-Fakten unterm Start-Knopf */
.held .fakten { font-size: .92rem; color: var(--text); font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,.55); margin-top: 10px; }

/* Varianten-Punkte auf den Demo-Kacheln */
.demo { cursor: pointer; position: relative; }
.demo .punkte { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.demo .punkte i { width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.15); }
.demo .punkte i.an { background: var(--agility); }

/* ============================================= Foto-Check (Station 2) */
.foto-rahmen { max-width: 420px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; border: 5px solid #fff; box-shadow: var(--schatten); }
.foto-rahmen img { display: block; width: 100%; }

.check-liste { list-style: none; padding: 0; max-width: 460px; margin: 14px auto; }
.check-liste li { padding: 5px 0 5px 30px; position: relative; color: var(--text-weich); }
.check-liste li::before { content: "✅"; position: absolute; left: 0; }

.fehler { background: #FDE8E4; border: 1px solid #EFB3A9; color: #8A3B26;
  padding: 14px; border-radius: 12px; }
.center { text-align: center; }

/* Wiese-Fußzeile mit Gras-Silhouette */
footer { margin-top: 46px; padding: 40px 0 34px; color: #fff;
  background: linear-gradient(180deg, transparent 0, rgba(46,107,26,.0) 0) , var(--wald);
  position: relative; }
footer::before {
  content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 L4 6 L8 20 L12 2 L16 20 L20 9 L24 20 L28 4 L32 20 L36 8 L40 20 L44 3 L48 20 L52 10 L56 20 L60 5 L64 20 L68 9 L72 20 L76 2 L80 20 L84 8 L88 20 L92 4 L96 20 L100 10 L104 20 L108 6 L112 20 L116 3 L120 20 Z' fill='%232E6B1A'/%3E%3C/svg%3E");
  background-size: 120px 20px; background-repeat: repeat-x;
}
footer .wrap { text-align: center; font-size: .9rem; }
footer a { color: #D5EFC0; margin: 0 10px; }

.spinner { display: inline-block; width: 34px; height: 34px; border: 4px solid var(--rand);
  border-top-color: var(--agility); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
