/* =============================================================
   GOLFRIDER · style.css
   M.IT Service GmbH · golfrider.de

   ZENTRALE STELLE FÜR DAS DESIGN.
   Änderungen hier wirken auf ALLE Seiten.

   --- Quick edit guide -----------------------------------------
   Farbe Primary (Grün)  : Variable --primary
   Schrift               : Variable --font-sans
   Container-Breite      : Variable --maxw  (Standard 1100px)
   Section-Padding       : Variable --section-y
   ============================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* colors */
  --background:        hsl(0 0% 100%);
  --foreground:        rgb(29, 32, 37);
  --muted:             hsl(220 13% 96%);
  --muted-foreground:  hsl(220 13% 45%);
  --border:            hsl(220 13% 91%);
  --primary:           hsl(80 51% 48%);     /* #90BA3C — Logo-Grün */
  --primary-dark:      hsl(80 54% 41%);     /* #7BA130 — abgedunkelt für Hover */
  --primary-foreground: #1d2025;            /* Body-Dunkel statt Weiß — WCAG-AAA Kontrast 7,2:1 */
  --gray-100:          rgb(243, 244, 246);
  --gray-200:          rgb(229, 231, 235);
  --gray-50:           rgb(249, 250, 251);

  /* typography */
  --font-sans: 'Sora', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --radius:    8px;
  --pill:      9999px;
  --maxw:      1100px;
  --maxw-narrow: 760px;
  --section-y: 96px;

  /* effects */
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 6px 22px rgba(15, 23, 42, 0.08);
  --transition: 160ms ease;
}

/* Mobile: Hero etwas kürzer + Section dichter daran, damit ein "Peek" der nächsten
   Section sichtbar ist und kein toter Weißraum zwischen Hero und Inhalt entsteht. */
@media (max-width: 720px) {
  :root {
    --section-y: 56px;
  }
  .hero {
    height: 85svh;            /* statt 100svh — User sieht direkt dass es weitergeht */
    min-height: 480px;
  }
  .hero + section {
    padding-top: 24px;        /* erste Section nach Hero schließt eng an */
  }
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 3. HEADER ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity var(--transition);
}
header.site .brand:hover { text-decoration: none; opacity: 0.9; }
header.site .brand img.symbol {
  height: 52px;
  width: 52px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 360ms cubic-bezier(.2,.6,.2,1),
              height 240ms cubic-bezier(.2,.6,.2,1),
              width 240ms cubic-bezier(.2,.6,.2,1);
}
header.site .brand:hover img.symbol {
  transform: rotate(-8deg) scale(1.04);
}
header.site .brand img.wordmark-text {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 240ms cubic-bezier(.2,.6,.2,1);
}
@media (max-width: 720px) {
  header.site .inner { padding: 12px 16px; }
  header.site .brand { gap: 10px; }
  header.site .brand img.symbol { height: 40px; width: 40px; }
  header.site .brand img.wordmark-text { height: 28px; }
}
@media (max-width: 420px) {
  header.site .brand img.wordmark-text { display: none; }
}
header.site nav {
  display: flex;
  align-items: center;
  gap: 0;
}
header.site nav a {
  color: var(--muted-foreground);
  margin-left: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}
header.site nav a:hover {
  color: var(--foreground);
  text-decoration: none;
}
header.site nav a.active {
  color: var(--primary);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

/* mobile nav */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  header.site nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 8px 24px 16px;
    transform: translateY(-100%);
    visibility: hidden;          /* hartes Verstecken — Text/BG ragen sonst durch in den Header */
    opacity: 0;
    transition: transform 240ms ease,
                opacity 200ms ease,
                visibility 0s linear 240ms;   /* visibility erst NACH der Animation umschalten */
    pointer-events: none;
  }
  header.site nav.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: transform 240ms ease,
                opacity 200ms ease,
                visibility 0s linear 0s;
  }
  header.site nav a {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  header.site nav a:last-child { border-bottom: 0; }
}

/* ---------- 4. CONTAINER + SECTIONS ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--maxw-narrow); }

section {
  padding: var(--section-y) 0;
  background: var(--background);
}
section.alt {
  background: linear-gradient(var(--gray-50), var(--background));
}
section.muted {
  background: var(--muted);
}
section.dark {
  background: rgb(15, 17, 21);
  color: white;
}
section.dark p { color: rgba(255,255,255,0.78); }

/* ---------- 5. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.lede {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  margin: 0 0 32px;
  max-width: 60ch;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 { margin-bottom: 8px; }
.section-title p {
  color: var(--muted-foreground);
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--primary-foreground); }
.btn-secondary {
  background: var(--gray-200);
  color: var(--foreground);
}
.btn-secondary:hover { background: var(--gray-100); }
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--foreground); }

/* ---------- 7. HERO (Start) ---------- */
.hero {
  position: relative;
  padding: 0;                /* override default section padding */
  height: 100vh;
  height: 100svh;            /* stabile Mobile-Höhe (kein Springen mit Adressleiste) */
  min-height: 560px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 900px;
}
.hero-content h1 {
  color: white;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.hero-content h1 .line {
  display: block;
}
.hero-content .subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 8. PAGE HEADER (Unterseiten) ---------- */
.page-header {
  background: linear-gradient(var(--gray-50), var(--background));
  padding: 80px 0 56px;
  text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- 9. CARD GRIDS ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: white;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.card.muted { background: var(--muted); }
.card .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.card .value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}
.card .value a { color: var(--foreground); }
.card .value a:hover { color: var(--primary); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.125rem;
}
.card .icon-circle.muted { background: var(--gray-200); color: var(--foreground); }

/* feature list inside cards */
.feature-list { list-style: none; padding: 0; margin: 12px 0 0; }
.feature-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--muted-foreground);
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--primary);
  font-weight: 700;
}
.feature-list.x li::before { content: '✕'; color: #dc2626; }
.feature-list.warn li::before { content: '!'; color: hsl(40 90% 50%); }

/* ---------- 10. STATS BAND ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stats .stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats .stat:last-child { border-right: 0; }
@media (min-width: 720px) {
  .stats .stat { border-bottom: 0; }
}
.stats .num {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.stats .lbl {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ---------- 11. SPLIT (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}
.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--muted);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split .badge {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4px 12px;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

/* ---------- 12. JOURNEY (numbered milestones) ---------- */
.journey {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
}
.journey .step .icon-circle {
  font-size: 1.5rem;
}

/* ---------- 13. QUOTE BLOCK ---------- */
.quote {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 300;
  color: var(--foreground);
  max-width: 60ch;
  margin: 0 auto;
  padding: 24px 0;
  position: relative;
}
.quote::before {
  content: '"';
  display: block;
  font-size: 4rem;
  line-height: 0.5;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ---------- 14. CTA BAND ---------- */
.cta {
  text-align: center;
  background: linear-gradient(var(--gray-50), var(--background));
  padding: var(--section-y) 0;
}
.cta h2 { margin-bottom: 12px; }
.cta p {
  color: var(--muted-foreground);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 15. COMPARE BLOCK (Greenkeeper) ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .compare { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .compare { grid-template-columns: repeat(4, 1fr); }
}
.compare .col {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  background: white;
}
.compare .col.highlight {
  border-color: var(--primary);
  background: hsl(80 51% 96%);
}
.compare .col h3 { font-size: 1.125rem; margin-bottom: 8px; }
.compare .col .big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0 4px;
}
.compare .col.highlight .big { color: var(--primary); }
.compare .col .unit {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.compare .col .depth {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 9999px;
  background: hsl(0 0% 95%);
  color: var(--muted-foreground);
  font-weight: 600;
}
.compare .col.highlight .depth { background: hsl(80 51% 88%); color: hsl(80 54% 28%); }
.compare .col .depth.bad { background: hsl(0 70% 92%); color: #b91c1c; }
.compare .col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.compare .col ul li {
  padding: 4px 0 4px 16px;
  position: relative;
}
.compare .col ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--primary);
  font-weight: 700;
}

/* Tiefenwirkungs-Visualisierung (greenkeeper.html) */
.depth-viz {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}
.depth-viz svg { display: block; width: 100%; height: auto; max-width: 880px; margin: 0 auto; }
.depth-viz .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted-foreground);
}
.depth-viz .legend span::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 8px;
}
.depth-viz .legend .lg-cart::before { background: rgba(220,38,38,0.55); }
.depth-viz .legend .lg-rider::before { background: rgba(144, 186, 60, 0.65); }
.depth-viz .legend .lg-roots::before { background: #92400e; }

/* Druckwellen-Animation: wachsen aus der Bodenoberfläche nach unten ins Erdreich.
   Einmaliger Aufbau wenn die Visualisierung ins Viewport rutscht. */
.depth-viz .cart-pulse,
.depth-viz .rider-pulse {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: scaleY(0);
  transition: transform 2.8s cubic-bezier(.4, 0, .2, 1);
}
.depth-viz .rider-pulse {
  transition-duration: 1.1s;
  transition-delay: 0.5s;
}
.depth-viz.in .cart-pulse,
.depth-viz.in .rider-pulse {
  transform: scaleY(1);
}
@media (prefers-reduced-motion: reduce) {
  .depth-viz .cart-pulse,
  .depth-viz .rider-pulse {
    transition: none;
    transform: scaleY(1);
  }
}

/* Counter-Animation: beim ersten Sichtbarwerden zählen die Zahlen hoch.
   Initial-Zustand wird per JS gesetzt (data-target → 0). Ohne JS bleibt der
   Endwert stehen — keine Verschlechterung. */
.compare .col .num-anim {
  font-variant-numeric: tabular-nums;   /* Ziffern bleiben in derselben Breite */
}

/* ---------- 16. RULES (Sicherheit) ---------- */
.rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .rules { grid-template-columns: repeat(3, 1fr); }
}
.rule-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.rule-box.allow  { border-color: hsl(80 51% 70%); background: hsl(80 51% 97%); }
.rule-box.warn   { border-color: hsl(40 90% 75%);  background: hsl(40 95% 97%); }
.rule-box.forbid { border-color: hsl(0 70% 85%);   background: hsl(0 70% 98%); }
.rule-box h3 { display: flex; align-items: center; gap: 10px; }
.rule-box h3::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
}
.rule-box.allow h3::before {
  content: '✓';
  background: var(--primary);
  color: white;
}
.rule-box.warn h3::before {
  content: '!';
  background: hsl(40 90% 50%);
  color: white;
}
.rule-box.forbid h3::before {
  content: '✕';
  background: #dc2626;
  color: white;
}

/* warning callout */
.callout {
  background: hsl(40 95% 96%);
  border-left: 4px solid hsl(40 90% 50%);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin: 32px 0;
}
.callout h3 { color: hsl(35 80% 30%); margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 0; padding-left: 20px; color: var(--muted-foreground); }
.callout ul li { padding: 4px 0; }

.disclaimer {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 32px;
}

/* ---------- 17. GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery .tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  cursor: zoom-in;
  aspect-ratio: 4/3;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery .tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.gallery .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.6,.2,1);
}
.gallery .tile:hover img { transform: scale(1.05); }
.gallery .tile::after {
  content: '↗';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery .tile:hover::after { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: white;
  color: var(--foreground);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: transform var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { transform: scale(1.08); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- 18. FAQ ACCORDION ---------- */
.faq { max-width: var(--maxw-narrow); margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: white;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--gray-50); }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
  width: 24px;
  text-align: center;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .answer {
  padding: 0 24px 20px;
  color: var(--muted-foreground);
}
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- 19. CONTACT FORM ---------- */
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
  .contact-form .row { grid-template-columns: 1fr 1fr; }
}
.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--foreground);
}
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-form .checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

/* Status-Box nach Submit */
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  display: none;
}
.form-status.show { display: block; }
.form-status.success {
  background: hsl(80 51% 96%);
  border-color: hsl(80 51% 70%);
  color: hsl(80 54% 25%);
}
.form-status.error {
  background: hsl(0 70% 97%);
  border-color: hsl(0 70% 80%);
  color: hsl(0 60% 35%);
}
.form-status.loading {
  background: var(--muted);
  color: var(--muted-foreground);
}

/* Submit-Button Loading-State */
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
.btn .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Honeypot-Feld unsichtbar (Spam-Schutz) */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

/* Two-column contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
}
.contact-grid .info h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.contact-grid .info h2:first-child { margin-top: 0; }

/* ---------- 20. ADDRESS BLOCK ---------- */
.address {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: white;
}
.address p { margin: 4px 0; }

.placeholder {
  display: inline-block;
  background: hsl(45 95% 92%);
  color: hsl(35 80% 30%);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
}

/* ---------- 21. FOOTER ---------- */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  background: linear-gradient(white, var(--gray-50));
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
footer.site .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) {
  footer.site .inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
footer.site .col h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
footer.site .brand {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}
footer.site .brand img.wordmark {
  height: 56px;
  width: auto;
  max-width: 280px;
  display: block;
}
@media (max-width: 720px) {
  footer.site .brand img.wordmark { height: 48px; }
}
footer.site .tagline {
  margin: 0 0 16px;
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 36ch;
}
footer.site .bars {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
footer.site .bars span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--primary);
}
footer.site .bars span:nth-child(1) { width: 48px; }
footer.site .bars span:nth-child(2) { width: 32px; opacity: 0.6; }
footer.site .bars span:nth-child(3) { width: 16px; opacity: 0.3; }
footer.site nav.quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer.site nav.quick a,
footer.site .col a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--transition);
}
footer.site nav.quick a:hover,
footer.site .col a:hover { color: var(--primary); }
footer.site .col p { margin: 0 0 6px; line-height: 1.55; }
footer.site .col .addr { margin-top: 12px; }
footer.site .bottom {
  border-top: 1px solid var(--border);
  margin: 24px 24px 0;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
footer.site .bottom .copy {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin: 0;
}
footer.site .bottom .legal { display: flex; gap: 18px; }
footer.site .bottom .legal a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.8125rem;
}
footer.site .bottom .legal a:hover { color: var(--foreground); }

/* ---------- 22. UTILITY ---------- */
hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ============================================================
   23. ANIMATIONS & REFINEMENTS
   ------------------------------------------------------------
   Alles dezent gehalten. Wer reduzierte Animationen aktiviert
   hat (Betriebssystem-Setting), bekommt KEINE Animationen.
   ============================================================ */

html { scroll-behavior: smooth; }

/* —— Reveal-on-scroll ——
   Sections, die in den Viewport scrollen, faden sanft ein. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(.2,.6,.2,1),
              transform 700ms cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 720px) {
  /* Auf Mobile nur Opacity-Fade, kein Translate — sonst wirken die Übergänge zwischen Sektionen wackelig */
  .reveal { transform: none; transition: opacity 500ms ease; }
}

/* —— Hero Ken Burns ——
   Hintergrundbild zoomt sehr langsam — bringt das Foto zum Leben. */
@keyframes kenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}
.hero-bg img {
  animation: kenBurns 22s ease-out forwards;
}

/* —— Hero Logo & Text Fade-Up beim Laden — bewusst getragen für dramatischen Aufbau —— */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-content > * {
  opacity: 0;
  animation: heroIn 1100ms cubic-bezier(.2,.6,.2,1) forwards;
}
.hero-content > :nth-child(1) { animation: heroLogoIn 1300ms cubic-bezier(.2,.6,.2,1) forwards; animation-delay: 200ms; }
.hero-content > :nth-child(2) { animation-delay: 900ms; }
.hero-content > :nth-child(3) { animation-delay: 1250ms; }
.hero-content > :nth-child(4) { animation-delay: 1600ms; }

/* Hero-Logo: prominent zentriert, weicher Schatten zur Lesbarkeit auf dem Hero-Bild */
.hero-logo {
  display: block;
  height: 180px;
  width: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
/* Headline und Buttons auf Desktop bewusst etwas zurückgenommen — Logo bleibt der erste Blickfang */
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-actions .btn { font-size: 0.95rem; padding: 12px 26px; }

@media (max-width: 720px) {
  .hero-logo { height: 110px; margin-bottom: 18px; }
  .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2rem); }
  .hero-content .subtitle { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-actions .btn { font-size: 0.88rem; padding: 10px 20px; }
}
@media (max-width: 420px) {
  .hero-logo { height: 92px; margin-bottom: 14px; }
  .hero-content h1 { font-size: 1.65rem; }
  .hero-content .subtitle { font-size: 0.9rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { font-size: 0.85rem; padding: 9px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content > :nth-child(1) { animation: none; opacity: 1; transform: none; }
}

/* —— Header Shrink on Scroll —— */
header.site .inner {
  transition: padding 240ms cubic-bezier(.2,.6,.2,1);
}
header.site.scrolled .inner { padding-top: 10px; padding-bottom: 10px; }
header.site.scrolled .brand img.symbol { height: 40px; width: 40px; }
header.site.scrolled .brand img.wordmark-text { height: 30px; }

/* —— Buttons: subtiler Glow + besseres Hover-Verhalten —— */
.btn {
  position: relative;
  transition: transform 200ms cubic-bezier(.2,.6,.2,1),
              box-shadow 200ms cubic-bezier(.2,.6,.2,1),
              background 200ms cubic-bezier(.2,.6,.2,1);
}
.btn-primary {
  box-shadow: 0 4px 14px rgba(144, 186, 60, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 8px 22px rgba(144, 186, 60, 0.40);
  transform: translateY(-2px);
}
.btn-secondary:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}

/* —— Cards: smoother Hover —— */
.card {
  transition: transform 280ms cubic-bezier(.2,.6,.2,1),
              box-shadow  280ms cubic-bezier(.2,.6,.2,1),
              border-color 280ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

/* —— Stats: Number rolls in lighter feel —— */
.stats .num {
  transition: color 240ms ease;
}

/* —— Section title eyebrow: subtle fade with primary line —— */
.eyebrow {
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* —— Section-title eyebrow: when centered, render line above —— */
.section-title .eyebrow {
  padding-left: 0;
  display: inline-block;
}
.section-title .eyebrow::before {
  position: static;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

/* —— Nav active link: subtle underline —— */
header.site nav a {
  position: relative;
}
header.site nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 240ms cubic-bezier(.2,.6,.2,1);
}
header.site nav a:hover::after,
header.site nav a.active::after {
  width: 100%;
}
@media (max-width: 880px) {
  header.site nav a::after { display: none; }
}

/* —— Hero scroll-indicator (optional, subtil) —— */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroIn 800ms cubic-bezier(.2,.6,.2,1) 1200ms forwards;
}
.hero-scroll a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.hero-scroll a:hover {
  color: white;
  text-decoration: none;
}
.hero-scroll a::after {
  content: '';
  width: 2px;
  height: 32px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* —— Gallery tiles: gentler hover —— */
.gallery .tile {
  transition: transform 320ms cubic-bezier(.2,.6,.2,1),
              box-shadow 320ms cubic-bezier(.2,.6,.2,1);
}
.gallery .tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}
.gallery .tile img {
  transition: transform 700ms cubic-bezier(.2,.6,.2,1);
}

/* —— FAQ Accordion: smoother open/close —— */
.faq-item {
  transition: border-color 240ms ease, box-shadow 240ms ease;
}
.faq-item:hover { border-color: hsl(220 13% 80%); }
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(144, 186, 60, 0.08);
}

/* —— Disable everything for prefers-reduced-motion —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-content > * { opacity: 1; }
}

/* ============================================================
   FELDTEST · ÜBER UNS
   ============================================================ */

/* Feldtest-Badge im Header — kleines Pill mit pulsierendem Punkt */
.feldtest-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  margin-left: 14px;
  margin-right: auto;
  border-radius: 9999px;
  background: hsl(40 95% 94%);
  color: hsl(35 75% 28%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid hsl(40 90% 80%);
  white-space: nowrap;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.feldtest-pill:hover {
  background: hsl(40 95% 88%);
  border-color: hsl(40 90% 65%);
  text-decoration: none;
}
.feldtest-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(40 95% 52%);
  box-shadow: 0 0 0 0 hsl(40 95% 52% / 0.5);
  animation: feldtestPulse 2.2s ease-in-out infinite;
}
@keyframes feldtestPulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(40 95% 52% / 0.5); }
  50%      { box-shadow: 0 0 0 6px hsl(40 95% 52% / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .feldtest-pill::before { animation: none; }
}
@media (max-width: 720px) {
  .feldtest-pill {
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 0.66rem;
  }
}
@media (max-width: 480px) {
  /* Auf sehr schmalem Mobile fliegt das Pill raus — Footer-Hinweis übernimmt */
  .feldtest-pill { display: none; }
}

/* Footer-Feldtest-Hinweis — eigene Sektion direkt über dem normalen Footer */
.feldtest-banner {
  background: hsl(40 95% 96%);
  border-top: 3px solid hsl(40 90% 60%);
  padding: 28px 0;
}
.feldtest-banner .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.feldtest-banner h3 {
  color: hsl(35 80% 28%);
  font-size: 1.15rem;
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.feldtest-banner h3::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: hsl(40 95% 52%);
}
.feldtest-banner p {
  color: hsl(35 60% 25%);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 14px;
}
.feldtest-banner a.btn-feldtest {
  display: inline-block;
  background: hsl(40 90% 50%);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 160ms ease;
}
.feldtest-banner a.btn-feldtest:hover {
  background: hsl(40 90% 42%);
  text-decoration: none;
}

/* Portrait-Block (Über uns) */
.portrait-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 880px) {
  .portrait-block { grid-template-columns: 360px 1fr; gap: 48px; }
}
.portrait-block img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14),
              0 2px 6px rgba(15, 23, 42, 0.06);
}
.portrait-block .badge { margin-bottom: 8px; }
.portrait-block h2 { margin-bottom: 16px; }
.portrait-block .role {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* Timeline für die Etappen */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: hsl(80 51% 80%);
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 0;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px white, 0 0 0 5px hsl(80 51% 80%);
}
.timeline-item h4 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.timeline-item .when {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-item p {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 0.98rem;
}
