/* Dogs & Harmony – Plattform-Stylesheet
   Farben können in der Verwaltung angepasst werden (--brand / --accent werden im Layout gesetzt). */

@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url(../fonts/fredoka-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url(../fonts/fredoka-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url(../fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(../fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-800-normal.woff2) format("woff2"); }

:root {
  --brand: #c9772f;
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 14%, #fff);
  --accent: #4f9a5e;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff);
  --sun: #f4b63f;
  --sun-soft: #fdf0cf;
  --sky: #8cc7d9;
  --sky-soft: #e3f3f7;
  --rose: #e98a74;
  --rose-soft: #fbe6e0;
  --ink: #2a211c;
  --ink-2: #5b4d44;
  --ink-3: #8b7c71;
  --bg: #fffaf3;
  --bg-2: #f7ecdd;
  --card: #ffffff;
  --line: #eadccb;
  --ok: #3d8b4f;
  --warn: #c98a12;
  --err: #c2452f;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(42,33,28,.06), 0 8px 24px rgba(42,33,28,.08);
  --shadow-lg: 0 2px 4px rgba(42,33,28,.06), 0 18px 48px rgba(42,33,28,.14);
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --paws: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23c9772f' opacity='.07'%3E%3Cg transform='translate(18 20) rotate(-18)'%3E%3Ccircle cx='5' cy='6' r='3.4'/%3E%3Ccircle cx='13' cy='2.5' r='3.4'/%3E%3Ccircle cx='21' cy='6' r='3.4'/%3E%3Cpath d='M13 10c5 0 9.5 6 9.5 9.6 0 2.8-2.2 3.6-4.6 3.6-2 0-3-.9-4.9-.9s-2.9.9-4.9.9c-2.4 0-4.6-.8-4.6-3.6C3.5 16 8 10 13 10z'/%3E%3C/g%3E%3Cg transform='translate(70 72) rotate(22)'%3E%3Ccircle cx='5' cy='6' r='3.4'/%3E%3Ccircle cx='13' cy='2.5' r='3.4'/%3E%3Ccircle cx='21' cy='6' r='3.4'/%3E%3Cpath d='M13 10c5 0 9.5 6 9.5 9.6 0 2.8-2.2 3.6-4.6 3.6-2 0-3-.9-4.9-.9s-2.9.9-4.9.9c-2.4 0-4.6-.8-4.6-3.6C3.5 16 8 10 13 10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap-s { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-tint { background: var(--bg-2); }
.section-paws { background-image: var(--paws); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-dark); margin-bottom: 12px; }
.eyebrow .ico { color: var(--brand); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* Buttons */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--b); background: var(--b); color: #fff; font: 800 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--b) 35%, transparent); }
.btn:active { transform: translateY(0); }
.btn-accent { --b: var(--accent); }
.btn-dark { --b: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: #fff; border-color: var(--ink-3); box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { color: var(--brand-dark); }
.btn-danger { --b: var(--err); }
.btn-s { padding: 8px 16px; font-size: .9rem; }
.btn-xs { padding: 5px 11px; font-size: .82rem; border-width: 1.5px; }
.btn-l { padding: 17px 32px; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(42,33,28,.06); }
.nav { display: flex; align-items: center; gap: 24px; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { height: 56px; width: auto; }
.logo-text { font: 600 1.35rem var(--font-head); }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; }
.nav-links a:hover, .nav-links a.active { background: var(--brand-soft); color: var(--brand-dark); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); cursor: pointer; }
.nav-toggle .ico { width: 28px; height: 28px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font: 600 1rem var(--font-head); text-decoration: none; flex-shrink: 0; }
.avatar:hover { color: #fff; }

@media (max-width: 900px) {
  .nav { height: 68px; }
  .logo img { height: 46px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links, .nav-actions { display: none; }
  .nav.open { flex-wrap: wrap; height: auto; padding-bottom: 16px; }
  .nav.open .nav-links, .nav.open .nav-actions { display: flex; flex-direction: column; width: 100%; margin: 0; align-items: stretch; }
  .nav.open .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav.open .nav-actions .btn { width: 100%; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 9vw, 120px); background: radial-gradient(1200px 500px at 85% 10%, var(--sun-soft), transparent 60%), radial-gradient(900px 500px at -10% 90%, var(--accent-soft), transparent 60%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--paws); opacity: .9; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .32em; background: var(--sun); opacity: .45; border-radius: 99px; z-index: -1; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .ico { color: var(--accent); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; justify-self: center; }
.hero-blob { position: absolute; inset: 4%; background: linear-gradient(145deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 60%, var(--sun)) 100%); border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; animation: blob 14s ease-in-out infinite; box-shadow: var(--shadow-lg); }
.hero-photo { position: absolute; inset: 7%; border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; overflow: hidden; animation: blob 14s ease-in-out infinite; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-dog { position: absolute; left: 10%; right: 10%; bottom: 3%; }
.float-card { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; animation: bob 5s ease-in-out infinite; }
.float-card .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.float-card small { display: block; font-weight: 600; color: var(--ink-3); font-size: .78rem; }
.float-1 { top: 8%; left: -4%; }
.float-2 { bottom: 12%; right: -6%; animation-delay: -2.5s; }
@keyframes blob { 0%,100% { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; } 50% { border-radius: 44% 56% 45% 55% / 57% 45% 55% 43%; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wag { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(14deg); } }
.wag { transform-origin: 20% 90%; transform-box: fill-box; animation: wag .7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; order: -1; }
  .float-1 { left: 0; } .float-2 { right: 0; }
}

.wave { display: block; width: 100%; height: 60px; color: var(--bg-2); margin-top: -59px; position: relative; }
.wave-top { transform: rotate(180deg); margin-top: 0; margin-bottom: -1px; }

/* Stats / Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s; }
.feature:hover { transform: translateY(-4px) rotate(-.4deg); }
.feature .bubble { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .bubble .ico { width: 30px; height: 30px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; }
.c-brand { background: var(--brand-soft); color: var(--brand-dark); }
.c-accent { background: var(--accent-soft); color: var(--accent); }
.c-sun { background: var(--sun-soft); color: #a8740a; }
.c-sky { background: var(--sky-soft); color: #2f7f96; }
.c-rose { background: var(--rose-soft); color: #b5543d; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 1.4rem var(--font-head); margin-bottom: 14px; box-shadow: 0 0 0 6px var(--bg-2); }
.step p { color: var(--ink-2); }

/* Kurs-Karten */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.course-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: inherit; }
.course-cover { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--c, var(--brand-soft)); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.course-card:hover .course-cover img { transform: scale(1.05); }
.cover-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 50%), var(--c, var(--brand)); color: rgba(255,255,255,.9); }
.cover-art .ico { width: 34%; height: auto; opacity: .9; transform: rotate(-12deg); }
.cover-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-body h3 { margin: 0; font-size: 1.22rem; }
.course-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.course-meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); font-weight: 800; font-size: .92rem; }
.course-meta .price { color: var(--brand-dark); }
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--sun))); border-radius: 99px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); line-height: 1.4; }
.badge .ico { width: 14px; height: 14px; }
.b-online { background: var(--sky-soft); color: #2f7f96; }
.b-onsite { background: var(--accent-soft); color: var(--accent); }
.b-hybrid { background: var(--sun-soft); color: #946608; }
.b-free { background: var(--accent); color: #fff; }
.b-plan { background: var(--ink); color: #fff; }
.b-ok { background: #e2f2e5; color: var(--ok); }
.b-warn { background: #fdf0cf; color: #946608; }
.b-err { background: #f8e0db; color: var(--err); }
.b-muted { background: var(--bg-2); color: var(--ink-2); }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); font-weight: 700; text-decoration: none; font-size: .95rem; }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 8px 0 16px; }
.search input { border: 0; background: transparent; padding: 11px 0; flex: 1; min-width: 0; font: inherit; outline: none; }

/* Abo-Karten */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border-radius: 26px; padding: 30px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 2px solid transparent; transition: transform .2s; }
.plan:hover { transform: translateY(-4px); }
.plan.hl { border-color: var(--pc, var(--brand)); box-shadow: var(--shadow-lg); }
.plan-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--pc, var(--brand)); color: #fff; font-weight: 800; font-size: .8rem; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan-dot { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--pc, var(--brand)); color: #fff; margin-bottom: 14px; }
.plan-dot .ico { width: 26px; height: 26px; }
.plan h3 { font-size: 1.5rem; margin-bottom: 2px; }
.plan .tagline { color: var(--ink-3); font-size: .95rem; min-height: 1.6em; }
.plan-price { font: 600 2.6rem/1 var(--font-head); margin: 18px 0 4px; }
.plan-price small { font: 700 1rem var(--font); color: var(--ink-3); }
.plan-year { color: var(--accent); font-weight: 800; font-size: .88rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { color: var(--pc, var(--accent)); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.interval-toggle { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow); margin-bottom: 36px; }
.interval-toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font: 800 .95rem var(--font); cursor: pointer; color: var(--ink-2); }
.interval-toggle button.on { background: var(--ink); color: #fff; }

/* Testimonials / FAQ */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -8px; right: 20px; font: 600 5rem/1 var(--font-head); color: var(--sun); }
.quote p { font-size: 1.05rem; }
.quote-by { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.quote-by img, .quote-by .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote-by small { display: block; color: var(--ink-3); font-weight: 600; }
.faq details { background: #fff; border-radius: var(--radius-s); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 600 1.5rem/1 var(--font-head); color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 18px; color: var(--ink-2); }

.cta-band { background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: var(--brand); opacity: .5; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #e8dccf; margin: 0; }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-img { border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--accent-soft); display: grid; place-items: center; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-img { aspect-ratio: 4 / 3; } }

/* Termine-Liste */
.date-list { display: grid; gap: 14px; }
.date-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius-s); padding: 14px 18px 14px 14px; box-shadow: var(--shadow); }
.date-cal { background: var(--brand-soft); border-radius: 14px; text-align: center; padding: 8px 4px; line-height: 1.1; }
.date-cal b { display: block; font: 600 1.7rem var(--font-head); color: var(--brand-dark); }
.date-cal span { font-size: .78rem; font-weight: 800; text-transform: uppercase; color: var(--ink-2); }
.date-info h4 { margin: 0 0 3px; font-size: 1.1rem; }
.date-info .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: .92rem; }
.date-info .meta span { display: inline-flex; align-items: center; gap: 5px; }
.date-side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.seats { font-size: .85rem; font-weight: 800; }
@media (max-width: 640px) { .date-item { grid-template-columns: 64px 1fr; } .date-side { grid-column: 1 / -1; justify-items: stretch; text-align: left; grid-template-columns: 1fr auto; align-items: center; } }

/* Kursdetail */
.course-hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.course-hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.course-hero .cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; position: relative; box-shadow: var(--shadow-lg); background: var(--brand-soft); }
.course-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.buybox { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); position: sticky; top: 100px; }
.buybox .price-big { font: 600 2.2rem var(--font-head); }
.buybox .or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .85rem; margin: 14px 0; }
.buybox .or::before, .buybox .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.buybox .plan-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; }
.fact { display: inline-flex; align-items: center; gap: 7px; background: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.fact .ico { color: var(--brand); }
.prose { color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.lesson-list { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lesson-list li { border-bottom: 1px solid var(--line); }
.lesson-list li:last-child { border-bottom: 0; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; text-decoration: none; color: inherit; }
a.lesson-row:hover { background: var(--bg); color: inherit; }
.lesson-row .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.lesson-row.done .num { background: var(--accent); color: #fff; }
.lesson-row.current { background: var(--brand-soft); }
.lesson-row .t { flex: 1; min-width: 0; }
.lesson-row .t b { display: block; }
.lesson-row .t small { color: var(--ink-3); }
.lesson-row .ico.lock { color: var(--ink-3); }
@media (max-width: 900px) { .course-hero-grid { grid-template-columns: 1fr; } .buybox { position: static; } }

/* Lernansicht */
.learn { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px 0 64px; align-items: start; }
.player { border-radius: var(--radius); overflow: hidden; background: #1c1612; aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.player-empty { display: grid; place-items: center; height: 100%; color: #e8dccf; text-align: center; padding: 20px; }
.learn aside { position: sticky; top: 96px; }
.attachments { display: grid; gap: 8px; margin: 18px 0; }
.attachment { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; color: inherit; font-weight: 700; }
@media (max-width: 960px) { .learn { grid-template-columns: 1fr; } .learn aside { position: static; } }

/* Formulare */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.card + .card { margin-top: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 800; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--ink-3); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=url], input[type=search], input[type=color], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
input[type=color] { padding: 4px; height: 46px; }
textarea { min-height: 120px; resize: vertical; }
textarea.tall { min-height: 280px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type=file] { font: inherit; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.inline-form { display: inline; }

.auth-page { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--sun))); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: var(--paws); filter: brightness(10); opacity: .5; }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: 12px; font-weight: 700; }
.auth-side li { display: flex; gap: 10px; }
.auth-main { display: grid; place-items: center; padding: 40px 16px; }
.auth-box { width: min(460px, 100%); }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Hinweise */
.flash-area { position: fixed; top: 90px; right: 16px; z-index: 100; display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.flash { padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); border-left: 5px solid var(--sky); font-weight: 700; display: flex; gap: 10px; align-items: flex-start; animation: slidein .3s ease; }
.flash.success { border-color: var(--ok); }
.flash.error { border-color: var(--err); }
.flash.warn { border-color: var(--sun); }
.flash button { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 0; }
@keyframes slidein { from { transform: translateY(-10px); opacity: 0; } }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--sun-soft); color: #6d4c06; font-weight: 600; margin-bottom: 18px; display: flex; gap: 10px; }
.notice.info { background: var(--sky-soft); color: #1f5e70; }
.notice.ok { background: #e2f2e5; color: #245c31; }
.notice.err { background: #f8e0db; color: #8a2d1c; }
.errors { background: #f8e0db; color: #8a2d1c; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.errors ul { margin: 0; padding-left: 1.2em; }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty svg.dogface { width: 140px; margin: 0 auto 14px; }
.empty h3 { color: var(--ink); }

/* Mitgliederbereich */
.member-head { background: linear-gradient(135deg, var(--bg-2), var(--sun-soft)); padding: 36px 0 0; position: relative; overflow: hidden; }
.member-head::before { content: ""; position: absolute; inset: 0; background-image: var(--paws); }
.member-head .wrap { position: relative; }
.member-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 26px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 18px; border-radius: 16px 16px 0 0; text-decoration: none; color: var(--ink-2); font-weight: 800; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs a:hover { background: rgba(255,255,255,.55); color: var(--ink); }
.tabs a.active { background: var(--bg); color: var(--brand-dark); }
.member-main { padding: 32px 0 72px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.stat .bubble { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.stat .bubble .ico { width: 24px; height: 24px; }
.stat b { display: block; font: 600 1.45rem/1.15 var(--font-head); white-space: nowrap; }
.stat small { display: block; line-height: 1.3; }
.stat small { color: var(--ink-3); font-weight: 700; }
.dog-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.dog-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; position: relative; }
.dog-photo { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.dog-photo img { width: 100%; height: 100%; object-fit: cover; }
.dog-photo svg { width: 80%; }
.plan-status { border-radius: var(--radius); padding: 24px; color: #fff; background: linear-gradient(140deg, var(--pc, var(--brand)), color-mix(in srgb, var(--pc, var(--brand)) 55%, #000)); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.plan-status::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; background-image: var(--paws); filter: brightness(10); opacity: .35; }
.plan-status h3 { color: #fff; font-size: 1.6rem; margin: 4px 0; }
.plan-status .btn-light { margin-top: 12px; }

/* Tabellen */
.table-wrap { overflow-x: auto; border-radius: var(--radius-s); }
table.table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 12px 14px; border-bottom: 2px solid var(--line); background: #fffdfa; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fffaf3; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { font-weight: 700; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.pager a, .pager span { padding: 7px 13px; border-radius: 10px; background: #fff; text-decoration: none; font-weight: 800; box-shadow: var(--shadow); }
.pager span { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #d9ccbf; padding: 64px 0 28px; margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--paws); opacity: .6; pointer-events: none; }
.site-footer .wrap { position: relative; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #f1e6da; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-logo { background: #fff; display: inline-block; padding: 8px 14px; border-radius: 16px; margin-bottom: 14px; }
.foot-logo img { height: 52px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #a8998c; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.testmode { background: repeating-linear-gradient(-45deg, var(--sun), var(--sun) 12px, #f7c766 12px, #f7c766 24px); color: var(--ink); text-align: center; font-weight: 800; font-size: .85rem; padding: 6px 12px; }

/* Verwaltung */
.admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #faf5ee; }
.sidebar { background: var(--ink); color: #e8dccf; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .logo { background: #fff; border-radius: 16px; padding: 8px 12px; justify-content: center; margin-bottom: 22px; }
.sidebar .logo img { height: 50px; }
.side-group { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #9d8e82; padding: 14px 12px 6px; }
.sidebar a.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: #e8dccf; text-decoration: none; font-weight: 700; }
.sidebar a.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar a.side-link.active { background: var(--brand); color: #fff; }
.side-foot { margin-top: auto; padding-top: 18px; font-size: .8rem; color: #9d8e82; }
.admin-main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 36px); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.4rem; margin: 0; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.role-pill { background: var(--brand-soft); color: var(--brand-dark); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.admin-content { padding: clamp(16px, 3vw, 36px); }
.side-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.side-toggle .ico { width: 26px; height: 26px; }
.admin .card { box-shadow: 0 1px 2px rgba(42,33,28,.05), 0 4px 14px rgba(42,33,28,.05); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .25s; }
  .admin.side-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .side-toggle { display: grid; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .search { max-width: 360px; }
.toolbar .spacer { flex: 1; }
.sortable li { cursor: grab; }
.sortable li.dragging { opacity: .5; }
.drag { color: var(--ink-3); cursor: grab; }
.thumb { width: 64px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.kv dt { color: var(--ink-3); font-weight: 700; }
.kv dd { margin: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart .bar i { width: 100%; max-width: 44px; background: var(--brand); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.bar-chart .bar small { font-size: .72rem; color: var(--ink-3); font-weight: 700; }
.bar-chart .bar b { font-size: .72rem; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.help { background: var(--sky-soft); color: #1f5e70; border-radius: 14px; padding: 14px 18px; font-size: .92rem; margin-bottom: 18px; }
.help b { color: #174b5a; }
.tabs-admin { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs-admin a { padding: 9px 16px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 800; color: var(--ink-2); border: 1.5px solid var(--line); }
.tabs-admin a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Druck (Belege, Teilnehmerlisten) */
.receipt { max-width: 720px; margin: 32px auto; background: #fff; padding: 48px; border-radius: 8px; box-shadow: var(--shadow); }
.receipt table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.receipt td, .receipt th { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.receipt .num { text-align: right; }
@media print {
  .site-header, .site-footer, .sidebar, .topbar, .no-print, .flash-area, .testmode { display: none !important; }
  body, .admin { background: #fff; }
  .admin { display: block; }
  .receipt, .card { box-shadow: none; margin: 0; }
}
svg.dogface { width: 170px; margin: 0 auto 12px; }
@media (max-width: 600px) { .hide-s { display: none; } }
