/* =========================================================================
   FORUM CANIS — Website-Stylesheet
   Farben/Typo/Abstaende als Variablen. Kontraste geprueft (Text >= 4.5:1).
   Schriften lokal (keine Verbindung zu Google).
   ========================================================================= */

@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-style: italic; font-weight: 200 1000; font-display: swap;
  src: url("/fonts/nunito-sans-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/caveat-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Markenfarben */
  --amber:        #E0A33E;   /* Logo-Orange: Flaechen, Buttons, auf Dunkel */
  --amber-deep:   #D98E2B;   /* Hover/Verlauf                             */
  --amber-soft:   #F3DBA8;   /* helle Flaechen                            */
  --amber-text:   #9A5A12;   /* Orange als TEXT auf Hell (Kontrast 4.8:1) */
  --ink:          #2B2620;   /* Anthrazit/Dunkelbraun                     */
  --olive:        #4A4A38;
  --cream:        #F5F0E6;
  --cream-2:      #FBF8F1;
  --white:        #FFFFFF;
  --muted:        #5F594F;   /* gedaempfter Fliesstext (5.9:1 auf Creme)  */
  --line:         #E7DFCF;
  --error:        #A12A1B;
  --ok:           #2F6B34;

  --font-body:  "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand:  "Caveat", "Nunito Sans", cursive;

  --radius: 18px; --radius-sm: 12px; --radius-pill: 999px;
  --shadow:    0 10px 30px rgba(43, 38, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(43, 38, 32, 0.14);

  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream);
  line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .45em; color: var(--ink); font-weight: 800; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1rem; }
strong { font-weight: 800; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: .7em 1.2em; border-radius: var(--radius-sm); font-weight: 800;
}
.skip-link:focus { top: 1rem; color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hilfsklassen ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.prose { max-width: 820px; }
.prose h3 { margin-top: 1.8em; }
.prose h4 { margin: 1.3em 0 .35em; font-size: 1.08rem; }
.course .container + .container { margin-top: 1.2rem; }
.section { padding-block: clamp(52px, 8vw, 92px); }
.section-alt { background: var(--cream-2); }
.section-white { background: var(--white); }
.eyebrow { font-family: var(--font-hand); font-size: 1.75rem; color: var(--amber-text); font-weight: 700; line-height: 1; margin: 0 0 .25em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 64ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: var(--radius-pill); font: inherit; font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px rgba(224,163,62,.35); }
.btn-primary:hover { background: var(--amber-deep); color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--amber-soft); color: var(--ink); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,248,241,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.nav-logo { flex: 0 0 auto; }
.nav-logo img { height: 56px; width: auto; mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: clamp(.5rem, 1.3vw, 1.3rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 700; font-size: .97rem; color: var(--olive); text-decoration: none; padding: .4em 0; position: relative; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--ink); white-space: nowrap; text-decoration: none; }
.nav-phone svg { width: 18px; height: 18px; fill: var(--amber-text); }
.burger { display: none; width: 46px; height: 46px; padding: 11px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

@media (max-width: 1480px) {
  .nav-phone-text { display: none; }
}
@media (max-width: 1220px) {
  .js .burger { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .js .nav-menu {
    position: fixed; inset: 76px 0 auto 0; background: var(--cream-2); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.2rem; box-shadow: var(--shadow);
    max-height: calc(100vh - 76px); overflow-y: auto; display: none;
  }
  .js .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: .85em .2em; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--amber-text); }
  /* ohne JS: Menue einfach unter dem Logo anzeigen */
  html:not(.js) .nav-menu { order: 10; width: 100%; padding-bottom: 1rem; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 420px) { .nav-cta .btn { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; isolation: isolate; color: var(--cream); background: var(--ink); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27,23,18,.8) 0%, rgba(27,23,18,.5) 45%, rgba(27,23,18,.05) 80%); }
@media (max-width: 720px) { .hero::before { background: rgba(27,23,18,.55); } }
.hero-content { max-width: 700px; padding-block: clamp(64px, 12vw, 140px); }
.h2-sub { font-family: var(--font-hand); font-size: 1.6rem; color: var(--amber-text); font-weight: 700; line-height: 1.1; margin: -.35em 0 .6em; }
.hero .eyebrow { color: var(--amber-soft); }
.hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p.sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #F3ECDD; max-width: 48ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; }
.hero-phone { display: inline-flex; align-items: center; gap: .6em; font-weight: 800; font-size: 1.15rem; }
.hero-phone svg { width: 22px; height: 22px; fill: var(--amber); }
.hero-phone a { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--amber); }
.hero-sm .hero-content { padding-block: clamp(48px, 8vw, 96px); }
.hero-sm h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }

/* Seitenkopf ohne Bild */
.page-head { background: var(--cream-2); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.page-head .lead { margin-bottom: 0; }

/* =========================================================================
   TRUST-ZEILE
   ========================================================================= */
.trust { background: var(--ink); color: var(--cream); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); text-align: center; padding-block: 28px; list-style: none; margin-block: 0; } /* margin-inline:auto aus .container bleibt erhalten -> zentriert */
.trust-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.trust-item strong { font-size: 1.05rem; color: var(--amber); }
.trust-item span { font-size: .92rem; color: #DCD5C7; }
.trust-item svg { width: 26px; height: 26px; fill: var(--amber); margin-bottom: .2rem; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }

/* =========================================================================
   KARTEN
   ========================================================================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: 2.2rem; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover, .card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--amber-soft); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--amber-soft); }
.card-icon svg { width: 30px; height: 30px; fill: var(--amber-text); }
.card h3 { margin-bottom: .35em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* ganze Karte klickbar */
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card .more { display: inline-block; margin-top: .8rem; font-weight: 800; color: var(--amber-text); font-size: .95rem; }

/* =========================================================================
   ZWEISPALTER (Text + Bild)
   ========================================================================= */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.reverse > .split-media { order: -1; }
.split-media img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-media.portrait img { max-height: 620px; }
.split-media figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media, .split.reverse > .split-media { order: -1; } }

.checklist { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; display: grid; gap: .65rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; background: var(--amber-text);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.4-1.4z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.4-1.4z"/></svg>') center/contain no-repeat;
}
.checklist.cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 1.5rem; }

.badge { display: inline-block; background: var(--amber-soft); color: var(--ink); padding: .3em .9em; border-radius: var(--radius-pill); font-weight: 800; font-size: .9rem; margin: 0 .4rem .8rem 0; }

/* =========================================================================
   KURS-BLOECKE / PREISE
   ========================================================================= */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.subnav a { display: inline-block; padding: .45em 1em; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .93rem; text-decoration: none; }
.subnav a:hover { background: var(--amber-soft); }

.course { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.course:nth-of-type(even) { background: var(--cream-2); }
.course:last-of-type { border-bottom: 0; }

.price-box { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.2rem 0; box-shadow: var(--shadow); }
.price-box h3, .price-box h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }
.price-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-list .price { font-weight: 800; white-space: nowrap; }

.note { background: var(--amber-soft); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.note p:last-child { margin-bottom: 0; }

/* Aufklapper (barrierefrei, ohne JS) */
details.more-box { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
details.more-box > summary { cursor: pointer; padding: .8rem 1.1rem; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.more-box > summary::-webkit-details-marker { display: none; }
details.more-box > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--amber-text); }
details.more-box[open] > summary::after { content: "−"; }
details.more-box > .more-body { padding: 0 1.1rem 1rem; }

/* Zeitleiste (Ueber uns) */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 3px solid var(--amber-soft); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45em; width: 15px; height: 15px; border-radius: 50%; background: var(--amber); border: 3px solid var(--cream); }
.timeline .year { display: block; font-weight: 800; color: var(--amber-text); }

/* =========================================================================
   CALL-BAND
   ========================================================================= */
.callband { background: linear-gradient(120deg, var(--amber) 0%, var(--amber-deep) 100%); color: var(--ink); text-align: center; }
.callband .eyebrow { color: var(--ink); }
.callband h2 { margin-bottom: .2em; }
.callband .phone-big { display: inline-flex; align-items: center; gap: .5em; font-size: clamp(1.7rem, 6vw, 2.8rem); font-weight: 800; color: var(--ink); text-decoration: none; margin: .3em 0 .6em; }
.callband .phone-big svg { width: clamp(28px, 6vw, 42px); height: clamp(28px, 6vw, 42px); fill: var(--ink); }
.callband p { color: #3d2f15; max-width: 52ch; margin-inline: auto; }
.callband .btn-ghost { margin-top: .4rem; }

/* =========================================================================
   PARTNER
   ========================================================================= */
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; margin-top: 2.2rem; list-style: none; padding: 0; }
.partner-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); height: 130px;
  display: grid; place-items: center; padding: 1rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
a.partner-tile:hover, a.partner-tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (max-width: 1000px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
.partner-tile img { max-height: 90px; max-width: 100%; width: auto; object-fit: contain; }

/* =========================================================================
   STANDORTE / ANFAHRT
   ========================================================================= */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.loc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: flex-start; }
.loc-card > svg { width: 30px; height: 30px; fill: var(--amber-text); flex: 0 0 auto; }
.loc-card h3 { margin-bottom: .25em; }
.loc-card p { color: var(--muted); font-size: .98rem; margin: 0 0 .6rem; }
.loc-card a { font-weight: 800; font-size: .95rem; }

/* =========================================================================
   GALERIE
   ========================================================================= */
.gallery { columns: 3 260px; column-gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: .4rem .2rem 0; }
.gallery-sm { columns: 4 170px; column-gap: .8rem; }
.gallery-sm figure { margin-bottom: .8rem; }
.gallery-2 { columns: 2 220px; column-gap: 1rem; max-width: 820px; margin-inline: auto; }
.construction svg { width: clamp(120px, 22vw, 180px); height: auto; margin: 0 auto 1.2rem; display: block; }

/* Therapiebegleithunde: Zitat, Qualifikationen, Kooperation */
.section-tight { padding-block: clamp(28px, 4vw, 44px); }
.quote { font-family: var(--font-hand); font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; color: var(--amber-text); margin: 1.4rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); text-align: center; }
.team-card img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; display: block; }
.team-card .role { font-weight: 800; color: var(--amber-text); margin-top: -.3em; }
.team-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.team-card li { padding: .15rem 0; }
.coop { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2rem; flex-wrap: wrap; text-align: left; }
.coop img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; }
.coop p { margin: 0; }

/* =========================================================================
   TEAM
   ========================================================================= */
.person + .person { margin-top: clamp(48px, 7vw, 80px); }
.person .role { font-weight: 800; color: var(--amber-text); margin-top: -.3em; }
.seminar-list { columns: 2 220px; padding-left: 1.1rem; }

/* =========================================================================
   FORMULAR
   ========================================================================= */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 800; margin-bottom: .35rem; }
.field .req { color: var(--error); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream-2);
  border: 2px solid #CFC5B2; border-radius: var(--radius-sm); padding: .7em .9em;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-text); background: var(--white); box-shadow: 0 0 0 3px var(--amber-soft); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--error); }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.field .err { font-size: .92rem; color: var(--error); font-weight: 700; margin-top: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--amber-text); }
.check label { font-weight: 400; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* Honigtopf */
.form-status { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 700; }
.form-status.ok { background: #E3F0E1; color: var(--ok); border: 1px solid #B9D6B4; }
.form-status.error { background: #F8E1DC; color: var(--error); border: 1px solid #E8B6AB; }
altcha-widget { display: block; margin: .4rem 0 1.2rem; --altcha-max-width: 100%; --altcha-border-radius: 12px; --altcha-color-border: #CFC5B2; }

/* =========================================================================
   RECHTSTEXTE
   ========================================================================= */
.legal h2 { font-size: 1.45rem; margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.draft-banner { background: #FFF2C6; color: #5A4300; border-bottom: 2px solid var(--amber); padding: .7rem var(--gutter); text-align: center; font-size: .95rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--ink); color: #DCD5C7; padding-block: clamp(40px, 6vw, 64px) 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer h2 { color: var(--amber); font-size: 1.05rem; margin: 0 0 .9rem; }
.footer a { color: #DCD5C7; text-decoration: none; }
.footer a:hover { color: var(--amber); text-decoration: underline; }
.footer :focus-visible { outline-color: var(--amber); }
.footer-brand img { height: 64px; width: auto; background: var(--white); padding: 8px 12px; border-radius: 12px; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer .contact-line { display: flex; gap: .6em; align-items: flex-start; }
.footer .contact-line svg { width: 18px; height: 18px; fill: var(--amber); flex: 0 0 auto; margin-top: 4px; }
.footer address { font-style: normal; }
.footer-bottom { align-items: center; }
.credit { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .9rem; color: #B5AEA2; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Dezentes Einblenden */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: fade-up .7s both; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media print {
  .nav, .footer, .callband, .burger, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* ===== Andrea 19.10.: Schwung, runde Bilder, Pfötchen (Optik wie alte Seite) ===== */
:root {
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23E0A33E'%3E%3Cellipse cx='20' cy='27' rx='9' ry='7.5'/%3E%3Cellipse cx='9' cy='17' rx='3.6' ry='4.6'/%3E%3Cellipse cx='16' cy='10' rx='3.6' ry='4.8'/%3E%3Cellipse cx='24' cy='10' rx='3.6' ry='4.8'/%3E%3Cellipse cx='31' cy='17' rx='3.6' ry='4.6'/%3E%3C/g%3E%3C/svg%3E");
  --paw-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%23E0A33E' fill-opacity='.07'%3E%3Cg transform='translate(30 40) rotate(-20) scale(.8)'%3E%3Cellipse cx='20' cy='27' rx='9' ry='7.5'/%3E%3Cellipse cx='9' cy='17' rx='3.6' ry='4.6'/%3E%3Cellipse cx='16' cy='10' rx='3.6' ry='4.8'/%3E%3Cellipse cx='24' cy='10' rx='3.6' ry='4.8'/%3E%3Cellipse cx='31' cy='17' rx='3.6' ry='4.6'/%3E%3C/g%3E%3Cg transform='translate(140 140) rotate(25) scale(.7)'%3E%3Cellipse cx='20' cy='27' rx='9' ry='7.5'/%3E%3Cellipse cx='9' cy='17' rx='3.6' ry='4.6'/%3E%3Cellipse cx='16' cy='10' rx='3.6' ry='4.8'/%3E%3Cellipse cx='24' cy='10' rx='3.6' ry='4.8'/%3E%3Cellipse cx='31' cy='17' rx='3.6' ry='4.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --wave-h: clamp(34px, 5vw, 72px);
}

/* Schwung unten am Kopfbild: geschwungene Kante mit orangener Linie */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--wave-h); z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C300 86 640 4 1000 34 C1200 50 1340 62 1440 44' fill='none' stroke='%23E0A33E' stroke-width='7'/%3E%3Cpath d='M0 54 C300 94 640 12 1000 42 C1200 58 1340 70 1440 52 L1440 80 L0 80 Z' fill='%23F5F0E6'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hero:has(+ .trust)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C300 86 640 4 1000 34 C1200 50 1340 62 1440 44' fill='none' stroke='%23E0A33E' stroke-width='7'/%3E%3Cpath d='M0 54 C300 94 640 12 1000 42 C1200 58 1340 70 1440 52 L1440 80 L0 80 Z' fill='%232B2620'/%3E%3C/svg%3E");
}
.hero-content { padding-bottom: calc(clamp(64px, 12vw, 140px) + var(--wave-h)); }
.hero-sm .hero-content { padding-bottom: calc(clamp(48px, 8vw, 96px) + var(--wave-h)); }

/* Runde Bilder mit hellem Innenring und Pfötchen */
.split-media { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.split-media img, .split-media.portrait img {
  aspect-ratio: 1 / 1; height: auto; max-height: none; border-radius: 50%;
  outline: 3px solid rgba(255,255,255,.9); outline-offset: -14px;
}
.split-media::after {
  content: ""; position: absolute; left: 2%; bottom: 2%; width: 26%; aspect-ratio: 1; pointer-events: none;
  background: var(--paw) 0 55% / 34% no-repeat, var(--paw) 42% 100% / 30% no-repeat, var(--paw) 30% 10% / 26% no-repeat, var(--paw) 78% 62% / 28% no-repeat;
  transform: rotate(-12deg);
}

/* Lebendigere Hintergründe: schwache Pfötchen */
.section-alt, .course:nth-of-type(even), .page-head { background-image: var(--paw-faint); background-size: 220px 220px; }

/* Fußzeile: Mitgliedschaften + Leni */
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; }
.footer-badges img { height: 56px; width: auto; background: var(--white); padding: 6px 8px; border-radius: 10px; margin: 0; }
.footer-brand .footer-leni { background: none; padding: 0; width: 110px; height: 110px; object-fit: cover; border-radius: 50%; outline: 3px solid var(--amber); outline-offset: 3px; margin-top: 1.2rem; }

/* ===== Bewegung (27.10.): bewusst wenig. Nur mit JS + ohne „reduzierte Bewegung“ (html.motion) ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Kopfbild setzt sich ganz langsam */
  html.motion .hero-media img { animation: settle 9s cubic-bezier(.2,.6,.2,1) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

  /* Linie unter dem Kopfbild zeichnet sich von links nach rechts */
  html.motion .hero::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 54 C300 94 640 12 1000 42 C1200 58 1340 70 1440 52 L1440 80 L0 80 Z' fill='%23F5F0E6'/%3E%3C/svg%3E");
  }
  html.motion .hero:has(+ .trust)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 54 C300 94 640 12 1000 42 C1200 58 1340 70 1440 52 L1440 80 L0 80 Z' fill='%232B2620'/%3E%3C/svg%3E");
  }
  .hero-line { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: var(--wave-h); z-index: 1; pointer-events: none; overflow: visible; }
  .hero-line path { fill: none; stroke: var(--amber); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.45,.05,.2,1) .5s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* Pfötchen laufen neben den runden Bildern ein (einmal, beim ersten Sichtbarwerden) */
  html.motion .split-media::after { display: none; }
  .paw-trail { position: absolute; left: 2%; bottom: 2%; width: 26%; aspect-ratio: 1; transform: rotate(-12deg); pointer-events: none; }
  .paw-trail i { position: absolute; background: var(--paw) center / contain no-repeat; opacity: 0; transform: translateY(6px) scale(.7); }
  .paw-trail i:nth-child(1) { width: 30%; aspect-ratio: 1; left: 28%; bottom: 0; }
  .paw-trail i:nth-child(2) { width: 34%; aspect-ratio: 1; left: 0; top: 33%; }
  .paw-trail i:nth-child(3) { width: 28%; aspect-ratio: 1; left: 56%; top: 46%; }
  .paw-trail i:nth-child(4) { width: 26%; aspect-ratio: 1; left: 22%; top: 2%; }
  .split-media.is-in .paw-trail i { animation: step .42s cubic-bezier(.3,1.4,.5,1) forwards; }
  .split-media.is-in .paw-trail i:nth-child(2) { animation-delay: .22s; }
  .split-media.is-in .paw-trail i:nth-child(3) { animation-delay: .44s; }
  .split-media.is-in .paw-trail i:nth-child(4) { animation-delay: .66s; }
  @keyframes step { to { opacity: 1; transform: none; } }

  /* „Weiterlesen“ öffnet weich statt zu springen (wo der Browser es kann) */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    details.more-box::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
    details.more-box[open]::details-content { block-size: auto; }
  }
  details.more-box > summary::after { transition: transform .25s ease; }
  details.more-box[open] > summary::after { transform: rotate(180deg); }
}

/* ===== Mehr Pepp (27.10., Dirk): einmalige Ankommens-Bewegungen, nie in Schleife ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Runde Bilder rollen sanft herein */
  html.motion .split-media.will-in img { opacity: 0; transform: rotate(-10deg) scale(.92); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.9,.25,1.05); }
  html.motion .split-media.is-in img { opacity: 1; transform: none; }

  /* Karten, Partner, Team, Galerie: nacheinander */
  html.motion .will-in:is(.cards, .partners-grid, .team-grid, .gallery) > * { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .6s cubic-bezier(.2,.8,.25,1); transition-delay: calc(var(--i, 0) * 90ms); }
  html.motion .is-in:is(.cards, .partners-grid, .team-grid, .gallery) > * { opacity: 1; transform: none; }
  /* nach dem Ankommen wieder die normalen Hover-Übergänge der Karten */
  html.motion .is-in.cards > .card:hover { transition-delay: 0s; }

  /* Vertrauensleiste unter dem Kopfbild: nacheinander nach dem Laden */
  html.motion .trust-item { animation: rise .6s cubic-bezier(.2,.8,.25,1) both; }
  html.motion .trust-item:nth-child(1) { animation-delay: 1.1s; }
  html.motion .trust-item:nth-child(2) { animation-delay: 1.22s; }
  html.motion .trust-item:nth-child(3) { animation-delay: 1.34s; }
  html.motion .trust-item:nth-child(4) { animation-delay: 1.46s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

  /* Telefon im Anrufband klingelt einmal kurz */
  html.motion .phone-big.is-in svg { animation: ring .9s ease .3s 1; transform-origin: 50% 60%; }
  @keyframes ring { 0%,100% { transform: none; } 15% { transform: rotate(-16deg); } 30% { transform: rotate(14deg); } 45% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }

  /* Buttons: kleiner Lichtschimmer beim Darüberfahren */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
  .btn-primary:hover::after, .btn-primary:focus-visible::after { transform: translateX(120%); }
}

/* ===== Pfötchen laufen den Bogen unter dem Kopfbild entlang (27.10., Dirk) ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-paws { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--wave-h); z-index: 2; pointer-events: none; }
  .hero-paws i {
    position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px;
    background: var(--paw) center / contain no-repeat; opacity: 0; scale: .5;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
    animation: paw-print 2.4s ease-out both; animation-delay: calc(2.05s + var(--i) * 140ms);
  }
  @keyframes paw-print {
    0%   { opacity: 0;   scale: .5; }
    10%  { opacity: 1;   scale: 1.08; }
    18%  { opacity: 1;   scale: 1; }
    60%  { opacity: .85; }
    100% { opacity: 0;   scale: 1; }
  }
  @media (min-width: 900px) { .hero-paws i { width: 20px; height: 20px; margin: -10px 0 0 -10px; } }
}

/* 9 Menüpunkte (27.10.): etwas enger, Burger früher */
.nav-links { gap: clamp(.5rem, 1vw, 1.1rem); }
.nav-links a { font-size: .94rem; }
