/* myFluffies Web - Designsystem (warmes Braun-Schema, Boho-Fell-Look).
   Professionell, hell/dunkel, mit dezenten Animationen. Keine externen Abhaengigkeiten. */

:root {
  color-scheme: light dark;
  --bg: #f8f2e9;
  --surface: #fffdfa;
  --surface-soft: #f1e7d8;
  --text: #2b201a;
  --muted: #7b6a5a;
  --border: #e7dac7;
  --accent: #7d4e29;         /* Cognac-Braun */
  --accent-strong: #573418;  /* Dunkle Schokolade */
  --accent-soft: #f0e4d2;
  --gold: #c69233;           /* warmer Gold-Akzent */
  --rose: #b06a44;           /* Terrakotta */
  --leaf: #7a9a55;           /* Natur-Gruen (Gras/Blaetter) */
  --leaf-strong: #4f6f36;
  --leaf-soft: #d6e4bd;
  --sky: #f4ead9;            /* warmer Himmel */
  --shadow: 0 18px 44px rgba(64, 40, 18, 0.14);
  --shadow-soft: 0 8px 22px rgba(64, 40, 18, 0.10);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110d;
    --surface: #221a13;
    --surface-soft: #2c2117;
    --text: #f4ebde;
    --muted: #b4a491;
    --border: #3a2c1f;
    --accent: #cf9a5f;
    --accent-strong: #e6bd8c;
    --accent-soft: #322418;
    --gold: #d8b25f;
    --rose: #d08a63;
    --leaf: #8fae6a;
    --leaf-strong: #b6cf8e;
    --leaf-soft: #2b3620;
    --sky: #20180f;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 780; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-ghost { background: var(--accent-soft); color: var(--accent-strong); }
.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-soft); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; display: inline-flex; transition: transform 0.3s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.96rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; transition: right 0.25s var(--ease); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav { display: none; } .header-actions .btn-outline { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 116px) 0 clamp(44px, 6vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 82% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(820px 460px at -5% 8%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent-strong);
  font-weight: 650; font-size: 0.82rem; box-shadow: var(--shadow-soft);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent); }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 42ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--muted); }

.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.phone { border-radius: 26px; border: 1px solid var(--border); background: linear-gradient(160deg, var(--surface-soft), var(--surface)); padding: 18px; min-height: 372px; display: flex; flex-direction: column; gap: 12px; }
.tile { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 13px 15px; }
.tile .k { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.tile .v { font-size: 1.05rem; font-weight: 750; }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.78rem; font-weight: 650; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-card { order: -1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(50px, 7vw, 96px) 0; }
.section-head { max-width: 62ch; margin: 0 auto clamp(30px, 4vw, 52px); text-align: center; }
.section-alt { background: var(--surface-soft); }

.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-soft);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card.hoverable:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent-soft), color-mix(in srgb, var(--gold) 22%, var(--surface))); color: var(--accent-strong); margin-bottom: 15px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Enterprise band ---------- */
.band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, var(--accent-strong), var(--accent) 70%, var(--rose));
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center;
}
.band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.92); margin: 0; }
.band .btn-primary { background: #fff; color: var(--accent-strong); }
.band .btn-primary:hover { background: rgba(255,255,255,0.9); }
.band ul { margin: 12px 0 0; padding-left: 18px; color: rgba(255,255,255,0.94); }
.band li { margin: 5px 0; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.grid-price { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease); }
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price.featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.price.featured::after { content: "Beliebt"; position: absolute; top: 16px; right: 16px; background: var(--gold); color: #3a2a0e; font-size: 0.72rem; font-weight: 750; padding: 4px 11px; border-radius: 999px; }
.price .amount { font-size: 1.5rem; font-weight: 800; margin: 6px 0 2px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 24px; }
.price li { padding: 8px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.price .btn { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 42px 0 32px; margin-top: 20px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { color: var(--muted); font-size: 0.86rem; }

/* ---------- Notice ---------- */
.notice { border: 1px dashed var(--border); background: var(--surface-soft); border-radius: var(--radius); padding: 16px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Auth-/Legal-Seiten ---------- */
.page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 76px) 20px; }
.page h1 { margin-bottom: 0.3em; }
.page h2 { margin-top: 1.6em; }
.card-narrow { max-width: 460px; margin: 0 auto; }

/* ---------- Formularfelder ---------- */
.field { display: block; }
.field > span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.inp { width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); font-size: 1rem; transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease); }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 244px 1fr; min-height: 100svh; }
.dash-side { border-right: 1px solid var(--border); background: var(--surface); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; color: var(--muted); font-weight: 600; transition: background 0.16s var(--ease), color 0.16s var(--ease); }
.dash-nav a.active, .dash-nav a:hover { background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; }
.dash-nav .tag { margin-left: auto; font-size: 0.68rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; }
.dash-main { padding: clamp(20px, 4vw, 40px); width: 100%; max-width: 920px; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.dash-user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.stack { display: grid; gap: 16px; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pet { display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: 0 0 auto; }
@media (max-width: 760px) { .dash { grid-template-columns: 1fr; } .dash-side { border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; align-items: center; overflow-x: auto; } .dash-nav { flex-direction: row; } }

/* ---------- Animationen ---------- */
@keyframes mf-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { transition-duration: 0.7s; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .card.hoverable:hover, .price:hover { transform: none; }
  .runner, .paw, .cloud, .floaty { animation: none !important; }
  .runner { display: none; }
}

/* =========================================================
   Verspielte Landing-Szene (Tiere, Natur, Animationen)
   ========================================================= */
.scene {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 82vh, 760px);
  background: linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--leaf-soft) 40%, var(--sky)) 62%, var(--leaf-soft) 100%);
}
/* Sonne */
.scene .sun {
  position: absolute; top: 8%; right: 9%; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffe6a6, var(--gold));
  box-shadow: 0 0 0 16px color-mix(in srgb, var(--gold) 22%, transparent), 0 0 60px color-mix(in srgb, var(--gold) 45%, transparent);
  animation: floaty 9s var(--ease) infinite;
}
/* Wolken */
.scene .cloud { position: absolute; background: color-mix(in srgb, #fff 78%, var(--sky)); border-radius: 999px; filter: blur(0.3px); opacity: 0.85; }
.scene .cloud::before, .scene .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud-1 { width: 120px; height: 30px; top: 16%; left: 12%; animation: drift-x 46s linear infinite; }
.cloud-2 { width: 90px; height: 24px; top: 26%; left: 60%; animation: drift-x 62s linear infinite; }
.cloud-1::before { width: 46px; height: 46px; top: -20px; left: 20px; }
.cloud-1::after { width: 34px; height: 34px; top: -14px; left: 60px; }
.cloud-2::before { width: 34px; height: 34px; top: -16px; left: 16px; }
/* Hügel */
.scene .hills { position: absolute; left: -5%; right: -5%; bottom: 84px; height: 220px; }
.scene .hill { position: absolute; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hill-a { left: 4%; width: 42%; height: 150px; background: color-mix(in srgb, var(--leaf) 62%, var(--surface)); }
.hill-b { right: 2%; width: 48%; height: 190px; background: color-mix(in srgb, var(--leaf) 82%, #000 4%); }
/* Boden / Wiese */
.scene .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; background: linear-gradient(180deg, var(--leaf), var(--leaf-strong)); }
.scene .ground::before {
  content: ""; position: absolute; top: -9px; left: 0; right: 0; height: 14px;
  background: radial-gradient(6px 12px at 6px 12px, var(--leaf) 60%, transparent 62%) repeat-x;
  background-size: 20px 14px; opacity: 0.9;
}
/* Bäume */
.scene .tree { position: absolute; bottom: 78px; }
.scene .trunk { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 12px; height: 40px; background: var(--accent-strong); border-radius: 4px; }
.scene .leaves { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--leaf) 70%, #fff 20%), var(--leaf-strong)); position: relative; }
.tree-1 { left: 7%; transform: scale(0.85); }
.tree-2 { right: 10%; transform: scale(1.05); }

/* Läufer (Hunde/Katze rennen durchs Bild) */
.runner { position: absolute; bottom: 40px; color: var(--accent-strong); will-change: transform; z-index: 2; }
.runner .bob { animation: bob 0.42s ease-in-out infinite; }
.runner-a { animation: run-right 15s linear infinite; }
.runner-b { animation: run-left 21s linear infinite; bottom: 58px; color: var(--accent); opacity: 0.92; }
.runner-c { animation: run-right 27s linear infinite; bottom: 46px; color: var(--rose); opacity: 0.9; }
.runner svg { display: block; height: 66px; width: auto; }
.runner-b svg { height: 52px; }
.runner-c svg { height: 44px; }
.runner .leg { transform-origin: top center; animation: leg-swing 0.42s ease-in-out infinite; }
.runner .leg-2, .runner .leg-4 { animation-delay: -0.21s; }

@keyframes run-right { from { transform: translateX(-18vw) scaleX(1); } to { transform: translateX(118vw) scaleX(1); } }
@keyframes run-left  { from { transform: translateX(118vw) scaleX(-1); } to { transform: translateX(-18vw) scaleX(-1); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes leg-swing { 0%,100% { transform: rotate(16deg); } 50% { transform: rotate(-16deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift-x { from { transform: translateX(-30vw); } to { transform: translateX(120vw); } }

/* Pfoten-Feld (driftende Pfotenabdruecke) */
.paw-field { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.paw { position: absolute; width: 26px; height: 26px; color: var(--accent); opacity: 0; animation: paw-pop 6s ease-in-out infinite; }
@keyframes paw-pop { 0% { opacity: 0; transform: translateY(8px) rotate(-8deg) scale(0.7); } 15% { opacity: 0.5; } 60% { opacity: 0.3; } 100% { opacity: 0; transform: translateY(-14px) rotate(6deg) scale(1); } }

/* Hero-Inhalt ueber der Szene */
.scene-content { position: relative; z-index: 3; padding: clamp(30px, 5vw, 64px) 0 0; }
.hero-logo { width: clamp(88px, 12vw, 128px); height: auto; border-radius: 26px; box-shadow: var(--shadow); animation: floaty 7s var(--ease) infinite; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); color: var(--accent-strong); font-weight: 650; font-size: 0.82rem; box-shadow: var(--shadow-soft); }
.scene-content h1 { max-width: 16ch; text-shadow: 0 2px 0 color-mix(in srgb, var(--sky) 60%, transparent); }
.scene-content .lead { max-width: 44ch; color: var(--accent-strong); font-weight: 500; font-size: 1.18rem; }

/* Interaktiver Leckerli-Button (Wackeln) */
.btn.wiggle:hover { animation: wiggle 0.5s var(--ease); }
@keyframes wiggle { 0%,100% { transform: translateY(-2px) rotate(0); } 25% { transform: translateY(-2px) rotate(-4deg); } 75% { transform: translateY(-2px) rotate(4deg); } }

/* =========================================================
   Karten-Sektion (Notfall & Community)
   ========================================================= */
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
#mfmap { height: clamp(340px, 52vh, 520px); width: 100%; z-index: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.legend-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-soft); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.leaflet-container { font-family: var(--font); }
.mf-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #fff; font-weight: 800; box-shadow: var(--shadow-soft); }
.mf-pin span { transform: rotate(45deg); font-size: 0.8rem; }

/* =========================================================
   Rassen-Datenbank Teaser
   ========================================================= */
.breed-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.16s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.breed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.breed-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease); }
.breed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.breed-emoji { font-size: 1.6rem; }
.breed-card h4 { margin: 8px 0 2px; font-size: 1.02rem; }
.breed-card .tag { font-size: 0.78rem; color: var(--muted); }
.breed-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 20px; }

/* =========================================================
   Trainingsbibliothek + Buchbestellung
   ========================================================= */
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.train-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.train-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.train-card .lvl { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--leaf-strong); background: var(--leaf-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.book-cta { background: linear-gradient(140deg, var(--gold), var(--accent)); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; box-shadow: var(--shadow); }
.book-cta h3 { color: #fff; font-size: 1.5rem; }
.book-cta p { color: rgba(255,255,255,0.92); margin: 0; }
.book-cta .btn-primary { background: #fff; color: var(--accent-strong); }
@media (max-width: 640px) { .book-cta { grid-template-columns: 1fr; } }

/* =========================================================
   Modal / Overlay
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(40, 26, 12, 0.55); backdrop-filter: blur(3px); animation: fade-in 0.2s var(--ease); }
.modal-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); max-width: 460px; width: 100%; padding: 26px; animation: pop-in 0.24s var(--ease); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text); font-size: 1.1rem; cursor: pointer; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

/* =========================================================
   Notfallmeldungen (Alerts)
   ========================================================= */
.alerts { margin-top: 18px; display: grid; gap: 10px; }
.alerts-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 0 rgba(192,57,43,0.5); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(192,57,43,0.5); } 70% { box-shadow: 0 0 0 9px rgba(192,57,43,0); } 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); } }
.alert-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-soft); }
.alert-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.alert-body strong { font-size: 0.98rem; }
.alert-meta { color: var(--muted); font-size: 0.83rem; }
.alert-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.alert-crit { background: #c0392b; }
.alert-water { background: #2f6fbd; }
.alert-warn { background: var(--gold); }
.alert-badge { font-size: 0.68rem; font-weight: 800; color: #fff; background: #c0392b; padding: 3px 9px; border-radius: 999px; animation: live-pulse 2s infinite; }

/* =========================================================
   Notfallpass (QR)
   ========================================================= */
.pass-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: center; }
.pass-card { background: linear-gradient(160deg, var(--accent-strong), var(--accent)); color: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.pass-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pass-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.pass-badge { font-size: 0.68rem; font-weight: 700; background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 999px; }
.pass-name { font-family: InterBold, var(--font); font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.pass-rows { display: grid; gap: 8px; }
.pass-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 8px; }
.pass-row .k { color: rgba(255,255,255,0.78); font-size: 0.9rem; }
.pass-row .v { font-weight: 650; font-size: 0.9rem; text-align: right; }
.pass-qr { display: flex; flex-direction: column; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); }
.pass-qr img { width: 212px; height: 212px; max-width: 100%; border-radius: 12px; background: #fff; padding: 8px; }
@media (max-width: 760px) { .pass-wrap { grid-template-columns: 1fr; } }

/* =========================================================
   Pfoten-Feed (Community)
   ========================================================= */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feed-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.feed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feed-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.feed-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.2rem; flex: 0 0 auto; }
.feed-id { display: flex; flex-direction: column; line-height: 1.15; }
.feed-id .n { font-weight: 700; font-size: 0.92rem; }
.feed-id .h { color: var(--muted); font-size: 0.78rem; }
.feed-photo { height: 168px; display: grid; place-items: center; font-size: 3.2rem; }
.feed-cap { padding: 12px 14px; }
.feed-cap p { margin: 0 0 8px; font-size: 0.92rem; }
.feed-likes { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* =========================================================
   Buch-CTA Aktionen
   ========================================================= */
.book-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.book-cta-secondary { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.book-cta-secondary:hover { background: rgba(255,255,255,0.26); }

/* =========================================================
   Mobile-Feinschliff
   ========================================================= */
@media (max-width: 560px) {
  .scene { min-height: clamp(440px, 74vh, 600px); }
  .runner svg { height: 46px; }
  .runner-b svg { height: 38px; }
  .runner-c svg { height: 34px; }
  .hero-logo { width: 78px; }
  .scene-content { padding-top: 20px; }
  .pass-card, .pass-qr { padding: 18px; }
  .band { padding: 24px; }
  .book-cta-actions .btn { width: 100%; }
}

/* =========================================================
   Detail-Overlay (Rasse / Kurs)
   ========================================================= */
.modal-card.lg { max-width: 660px; max-height: 88vh; overflow: auto; }
.detail-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 34px 4px 0; }
.detail-head h3 { margin: 0; font-size: 1.4rem; }
.detail-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 14px; }
.mini-chip { font-size: 0.74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }

/* Rasse-Detail */
.bd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.bd-stat { background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.bd-stat .k { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.bd-stat .v { font-weight: 750; font-size: 1rem; }
.bd-sec { margin-top: 14px; }
.bd-sec h4 { margin: 0 0 6px; font-size: 1rem; }
.bd-sec p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.bd-list { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.93rem; }
.bd-list li { margin: 3px 0; }

/* Kurs-Karten + Kurs-Detail */
button.breed-card, button.train-card { font: inherit; text-align: left; width: 100%; cursor: pointer; }
.course-card { cursor: pointer; }
.course-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 0.8rem; }
.cd-ex { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 12px; background: var(--surface); }
.cd-ex h4 { margin: 0 0 4px; font-size: 1.02rem; }
.cd-ex .focus { font-size: 0.74rem; font-weight: 700; color: var(--leaf-strong); background: var(--leaf-soft); padding: 2px 9px; border-radius: 999px; display: inline-block; margin-bottom: 8px; }
.cd-ex .instr { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.cd-levels { margin: 0; padding: 0; counter-reset: lvl; }
.cd-levels li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px dashed var(--border); font-size: 0.9rem; }
.cd-levels li::before { counter-increment: lvl; content: counter(lvl); flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: 0.75rem; display: grid; place-items: center; }

/* Kommando-Hinweis */
.cmd-note { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(150deg, var(--accent-soft), color-mix(in srgb, var(--gold) 22%, var(--surface))); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; color: var(--text); }
.cmd-note strong { color: var(--accent-strong); }
.cmd-ic { font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }

/* =========================================================
   App-Einblicke: Phone-Snippets (Vitalwerte / Feed / Notfallpass)
   ========================================================= */
.appsnaps { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; align-items: start; }
.phone-snip { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.snip-bar { height: 26px; background: var(--surface-soft); display: grid; place-items: center; border-bottom: 1px solid var(--border); }
.snip-cam { width: 46px; height: 6px; border-radius: 999px; background: var(--border); }
.snip-body { padding: 16px 16px 18px; }
.snip-title { font-family: InterBold, var(--font); font-weight: 800; font-size: 1.02rem; margin-bottom: 12px; }
.vital-row { padding: 9px 0; border-top: 1px solid var(--border); }
.vital-row:first-of-type { border-top: 0; padding-top: 2px; }
.vital-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vk { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.vv { font-weight: 800; font-size: 1.05rem; }
.meter { position: relative; height: 8px; border-radius: 999px; background: var(--surface-soft); margin: 9px 0 6px; }
.meter-ideal { position: absolute; top: 0; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--leaf) 55%, var(--surface)); }
.meter-mark { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent-strong); border: 2px solid var(--surface); box-shadow: var(--shadow-soft); }
.vstatus { font-size: 0.78rem; font-weight: 650; }
.vstatus.ok { color: var(--leaf-strong); }
.vchip { display: inline-block; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 0.8rem; padding: 3px 11px; border-radius: 999px; }
.snip-post .feed-av { width: 34px; height: 34px; font-size: 1.05rem; }
.snip-pass { display: flex; gap: 12px; align-items: center; }
.snip-pass-l { flex: 1; min-width: 0; }
.snip-pass-name { font-weight: 800; margin-bottom: 8px; }
.snip-pass-row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; padding: 5px 0; border-top: 1px dashed var(--border); }
.snip-pass-row span { color: var(--muted); }
.snip-pass-tag { display: inline-block; margin-top: 9px; background: var(--berry); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.snip-qr { width: 100px; height: 100px; border-radius: 12px; background: #fff; padding: 6px; border: 1px solid var(--border); flex: 0 0 auto; }

/* =========================================================
   Rassen-Insights (Detail-Overlay): echte Fakten als Diagramme
   ========================================================= */
.bd-insights { display: grid; gap: 14px; margin: 6px 0 4px; }
.bd-fact { display: grid; gap: 6px; }
.bd-fact-l { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.bd-fact-v { font-size: 0.9rem; font-weight: 700; }
.size-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.size-step { flex: 1; min-width: 54px; text-align: center; font-size: 0.8rem; font-weight: 650; padding: 7px 6px; border-radius: 10px; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border); }
.size-step.on { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-soft); }
.bd-meter { position: relative; height: 10px; border-radius: 999px; background: var(--surface-soft); }
.bd-meter-range { position: absolute; top: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
