/* =========================================================================
   styles.css  --  STRUKTUR + KOMPONENTEN (theme-agnostisch)
   Liest ausschliesslich Tokens aus theme.css. Pro Kunde NICHT hier aendern.
   Aesthetik: "Editorial Garden Studio" -- erdig, ruhig, premium.
   ========================================================================= */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-text);
  font-size: var(--t-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Kein horizontales Wandern der Seite (User-Video 2026-08-16: Seite liess sich
   mobil nach links/rechts schieben). clip statt hidden: erzeugt keinen eigenen
   Scroll-Container, position:sticky (Header) bleibt intakt. */
html, body { overflow-x: clip; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 2px; }

/* EINE Heading-Stimme: modern, medium-bold, minimal negatives Tracking (kein duennes
   Editorial-Serif-Gefuehl mehr, kohaerent mit dem Hero). */
h1, h2, h3 { font-family: var(--font-display); font-weight: 680; line-height: 1.08; letter-spacing: -0.005em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__title { font-size: var(--t-3); margin-top: .35rem; overflow-wrap: break-word; }
/* Mobil dezent kleiner (User 2026-08-16: "Netzwerkanlässe" lief rechts raus) */
@media (max-width: 560px) {
  .section__title { font-size: clamp(1.55rem, 8.5vw, 2rem); hyphens: auto; }
}
.section__intro { color: var(--muted); font-size: var(--t-1); margin-top: 1rem; max-width: 38rem; }

/* Eyebrow -- editorial Label, KEINE Emojis */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-text); font-size: var(--t--1); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .8; }

/* ---------- Buttons ---------- */
.btn {
  /* #0a72b8 statt var(--brand) #0b8edc: weisser Button-Text braucht 4.5:1
     Kontrast (WCAG AA / Lighthouse); gilt nur fuer SOLIDE Buttons — die
     Gradient-CTAs im Hero ueberschreiben das Background ohnehin. */
  --_bg: #0a72b8; --_fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border: 1px solid var(--_bg); border-radius: var(--radius);
  background: var(--_bg); color: var(--_fg);
  font: inherit; font-weight: 600; font-size: var(--t-0); line-height: 1; cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.btn--lg { padding: 1rem 1.7rem; font-size: var(--t-1); }
.link-quiet { color: var(--muted); font-weight: 600; }
.link-quiet:hover { color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header / Nav ----------
   Layout nach bw-juniors-Vorbild: schmale dunkle Top-Leiste, darunter die Hauptleiste
   mit dem Wappen mittig zwischen zwei Nav-Gruppen. Die Top-Leiste bleibt in BEIDEN
   Themes dunkel (Marken-Anker), darum dort feste helle Textfarben statt var(--ink). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }

/* --- Top-Leiste --- */
/* Dunkles Markenblau statt reinem Schwarz: sonst verschwimmt die Leiste im Dark-Mode
   mit dem Seitenhintergrund. Die Mischung haelt sie in beiden Themes gleich dunkel. */
.topbar {
  position: relative; z-index: 1;
  background: color-mix(in srgb, var(--brand) 22%, #05070d);
  color: #e9eef6;
}
.topbar__inner {
  max-width: var(--maxw); margin-inline: auto; padding: .3rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar__nav { display: flex; align-items: center; gap: 1.25rem; }
.topbar__link {
  position: relative; padding-block: .2rem; font-size: var(--t--1); font-weight: 550;
  color: inherit; text-decoration: none;
}
.topbar__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-300); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease-out;
}
.topbar__link:hover, .topbar__link:focus-visible { text-decoration: none; }
.topbar__link:hover::after, .topbar__link:focus-visible::after { transform: scaleX(1); }

.topbar__actions { display: flex; align-items: center; gap: .9rem; }
.topbar__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--t--1); font-weight: 600; color: inherit; text-decoration: none;
}
.topbar__phone:hover { text-decoration: none; color: var(--brand-300); }
.topbar__phone .icon { width: 1rem; height: 1rem; color: var(--brand-300); }
/* Theme-Toggle sitzt hier auf dunklem Grund -> Basis-Styles aus theme.css ueberschreiben */
.topbar .theme-toggle {
  width: 1.9rem; height: 1.9rem;
  background: transparent; border-color: rgba(233,238,246,.35); color: #e9eef6;
}
.topbar .theme-toggle:hover { border-color: var(--brand-300); }
.topbar .theme-toggle .icon { width: 1rem; height: 1rem; }

/* --- Hauptleiste --- */
.headerbar {
  position: relative; z-index: 1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
/* Beim Scrollen setzt sich die Leiste mit einer Akzentkante vom Inhalt ab (bw-juniors
   nutzt dafuer sein Gold, hier die Logo-Farbe). */
/* Blaue Akzent-Linie beim Scrollen entfernt (User 2026-08-16) — nur noch
   solider Hintergrund + Schatten, die Trennlinie behaelt ihre Ruhe-Farbe. */
.site-header.is-scrolled .headerbar {
  background: var(--bg);
}
.headerbar__inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  /* Schlanker seit 2026-08-15 (User: Header schmaler, mehr Platz fuer den Video-Hero) */
  min-height: 3.6rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem;
  transition: min-height .3s ease;
}
.site-header.is-scrolled .headerbar__inner { min-height: 3.1rem; }
.headerbar__side { display: flex; align-items: center; gap: .6rem; }
.headerbar__side--right { justify-content: flex-end; }

/* --- Wappen: sitzt mittig und ragt in die Top-Leiste hinein --- */
.crest {
  position: relative; z-index: 2;
  justify-self: center; display: block; line-height: 0;
  border-radius: 18px; overflow: hidden;
  /* Der Logo-Grund ist schwarz und nicht freigestellt. Die gleiche Farbe als
     Badge-Flaeche laesst beides verschmelzen, statt einen Kasten zu zeigen. */
  background: #000;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent),
              0 12px 28px -10px rgba(0,0,0,.65);
  transform: translateY(-14%);
  transition: transform .3s ease;
}
.crest:hover { text-decoration: none; }
.crest img { display: block; width: 3.9rem; height: auto; transition: width .3s ease; }
.site-header.is-scrolled .crest { transform: translateY(0); }
.site-header.is-scrolled .crest img { width: 3rem; }

/* --- Nav-Pills --- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none;
  font-size: var(--t--1); font-weight: 600; white-space: nowrap;
  transition: border-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.pill:hover {
  text-decoration: none; border-color: var(--brand);
  transform: translateY(-1px); box-shadow: var(--shadow);
}
.pill[aria-current="page"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.pill__icon {
  display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem;
  border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand);
}
.pill__icon .icon { width: 1rem; height: 1rem; }

/* --- Vollnavigation: nur mobil, per Toggle --- */
/* display bewusst NUR in der Mobile-Query (unten): so klappt ein offenes Menue
   beim Vergroessern des Fensters automatisch zu, statt auf dem Desktop zu haengen. */
.nav { display: none; }
.nav.is-open {
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .75rem var(--gutter);
}
.nav__list { display: flex; flex-direction: column; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.nav__link {
  display: block; padding: .55rem 0; font-size: var(--t-0); font-weight: 550;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav__link:hover { text-decoration: none; border-bottom-color: var(--brand); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav-toggle {
  display: none; justify-self: end; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .45rem; color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); }

/* (Der alte editorial-Hero + Trust-Strip aus dem Starter wurden durch das group-hero-
   Layout in landing.css ersetzt -- ihr CSS wurde hier entfernt, da nicht mehr genutzt.) */

/* ---------- Services (nummeriert) ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem 1.6rem 1.9rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.service:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.service__num { font-family: var(--font-display); font-size: var(--t--1); color: var(--accent);
  letter-spacing: .05em; }
.service__icon { width: 2.6rem; height: 2.6rem; margin: 1rem 0 1.1rem; color: var(--brand);
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.service__icon .icon { width: 1.4rem; height: 1.4rem; }
.service__title { font-size: var(--t-1); margin-bottom: .5rem; }
.service__desc { color: var(--muted); font-size: var(--t-0); }

/* ---------- Gallery (Vorher / Nachher) ---------- */
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ba { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.ba__label { position: absolute; top: .8rem; left: .8rem; background: var(--brand); color: #fff;
  font-size: var(--t--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--radius); }
.ba__label--after { background: var(--accent); }

/* ---------- Quotes / Testimonials ---------- */
.quotes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.9rem; display: flex; flex-direction: column; gap: 1.25rem; }
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--brand-300); height: 1.4rem; }
.quote__text { font-family: var(--font-display); font-size: var(--t-1); line-height: 1.45; }
.quote__cite { display: flex; align-items: center; gap: .8rem; margin-top: auto; font-style: normal; }
.quote__avatar { width: 2.7rem; height: 2.7rem; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.quote__name { font-weight: 600; }
.quote__meta { color: var(--muted); font-size: var(--t--1); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.info-row { display: flex; gap: .85rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.info-row .icon { color: var(--brand); margin-top: .15rem; }
.info-row b { display: block; font-weight: 600; }
.info-row span { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.25rem; }
.hours td { padding: .45rem 0; border-bottom: 1px dotted var(--line); font-size: var(--t-0); }
.hours td:last-child { text-align: right; color: var(--muted); }
.map { margin-top: 1.5rem; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  border: 1px solid var(--line); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: var(--t--1); margin-bottom: .4rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { min-height: 8rem; resize: vertical; }
.form .btn { width: 100%; justify-content: center; margin-top: .4rem; }

/* ---------- /camps: zweispaltig (Infos links, Anmeldung rechts) ---------- */
.camps-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem 3.5rem; align-items: start; }
/* Formular-Spalte klebt beim Scrollen unter dem sticky Header */
.camps-side { position: sticky; top: 5.5rem; }
/* Kompakte Typo NUR fuer /camps (User 2026-08-16: Seite wirkte "bloated"):
   Titel eine Stufe kleiner, Zwischentitel ruhiger, Text/Felder dichter.
   Spezifitaet .camps-layout ... schlaegt die .prose-Regeln aus page.ejs. */
.camps-layout .section__title { font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
.camps-layout .camps-info h2, .camps-layout .camps-side h2 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.camps-layout .camps-info p, .camps-layout .camps-info li, .camps-layout .camps-side p { font-size: .95rem; }
.camps-layout .field input, .camps-layout .field textarea { padding: .55rem .7rem; }
.camps-layout .field label { margin-bottom: .3rem; }

/* Kompaktes Formular (User 2026-08-16: "zu hoch"): kurze Felder paarweise
   nebeneinander (Vorname+Alter, E-Mail+Telefon), Bemerkungen niedriger.
   Das Honeypot-Feld ist position:absolute und stoert das Grid nicht. */
.camps-side .form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.camps-side .field { margin-bottom: .95rem; }
.camps-side .field:has(#camp),
.camps-side .field:has(#name),
.camps-side .field:has(#adresse),
.camps-side .field:has(#message),
.camps-side .form .btn { grid-column: 1 / -1; }
.camps-side #message { min-height: 4.5rem; }
@media (max-width: 900px) {
  .camps-layout { grid-template-columns: 1fr; }
  .camps-side { position: static; }
}

/* ---------- Footer ---------- */
/* Footer: neutrale Toene (kein Sage-Green mehr aus dem Garten-Starter). */
.site-footer { background: var(--brand-700); color: rgba(255,255,255,.82); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 680; }
.footer__brand p { color: rgba(255,255,255,.6); font-family: var(--font-text); font-size: var(--t-0); margin-top: .75rem; max-width: 24rem; }
.footer__col h3 { font-size: var(--t--1); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 1rem; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer__col a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: var(--t--1); color: rgba(255,255,255,.5); }

/* ---------- Reveal-Animation (Load + Scroll) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero [data-stagger] { opacity: 0; transform: translateY(16px); animation: rise .7s ease forwards; }
.hero [data-stagger="1"] { animation-delay: .05s; }
.hero [data-stagger="2"] { animation-delay: .15s; }
.hero [data-stagger="3"] { animation-delay: .25s; }
.hero [data-stagger="4"] { animation-delay: .35s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero [data-stagger] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .btn, .service, .nav__link { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
/* Mittlere Breiten: Pills schrumpfen auf reine Icons (bw-juniors macht das genauso),
   damit Wappen und Navigation nebeneinander Platz haben. */
@media (max-width: 56rem) {
  .pill__label { display: none; }
  .pill { padding: .35rem .4rem; }
  .crest img { width: 4rem; }
}

@media (max-width: 44rem) {
  /* Pills weichen dem Burger-Menu, die Top-Leiste bleibt als Schnellzugriff bestehen. */
  .headerbar__side { display: none; }
  .headerbar__inner { grid-template-columns: 1fr auto 1fr; min-height: 3.75rem; }
  /* Wappen MITTIG wie auf Desktop (User 2026-08-16); explizite Spalte 2, weil
     die ausgeblendeten Side-Container sonst die Auto-Platzierung verschieben. */
  .crest { grid-column: 2; justify-self: center; }
  .crest img { width: 3.4rem; }
  .nav-toggle { display: inline-flex; grid-column: 3; }
  .nav.is-open { display: block; }
  .services__grid, .gallery__grid, .quotes__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 26rem) {
  .topbar__phone span { display: none; }
  .topbar__nav { gap: .9rem; }
}
