/* =====================================================
   Benz Dienstleistungen — Design System v2
   "Der digitale Erlebnisgarten"
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* =====================================================
   Design Tokens
   ===================================================== */
:root {
  --bg: #f7f9f5;
  --surface: #ffffff;
  --surface-tinted: #f2f7f0;
  --forest: #0e1c10;
  --verdant: #1a4228;
  --meadow: #2e7d48;
  --sprout: #5cb975;
  --mist: #c8e8d0;
  --fern: #eaf5ed;
  --sand: #f5f0e6;
  --stone: #4a5e50;
  --muted: #6b7e70;
  --amber: #c86c28;
  --amber-soft: #fdeedd;
  --line: rgba(14, 28, 16, 0.08);
  --line-strong: rgba(14, 28, 16, 0.15);
  --shadow-xs: 0 1px 4px rgba(14, 28, 16, 0.05);
  --shadow-sm: 0 2px 12px rgba(14, 28, 16, 0.07);
  --shadow-md: 0 8px 32px rgba(14, 28, 16, 0.10);
  --shadow-lg: 0 20px 56px rgba(14, 28, 16, 0.13);
  --shadow-glow: 0 0 48px rgba(46, 125, 72, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--forest);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; }

/* =====================================================
   Layout Shell
   ===================================================== */
.site-shell {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* =====================================================
   Skip Link
   ===================================================== */
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--verdant);
  color: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =====================================================
   Top Contact Bar
   ===================================================== */
.top-contact-bar {
  background: var(--verdant);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  font-weight: 500;
}
.top-contact-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-height: 40px;
}
.top-contact-inner a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.top-contact-inner a:hover,
.top-contact-inner a:focus-visible { color: #fff; text-decoration: underline; }

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 249, 245, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(247, 249, 245, 0.97);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) saturate(100%);
  transition: opacity 0.2s;
}
.brand-logo:hover { opacity: 0.7; }
.brand-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: 0.01em;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  position: relative;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone);
  transition: color 0.2s, background 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--meadow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--verdant);
  background: rgba(46, 125, 72, 0.07);
}
.main-nav a.active { color: var(--meadow); font-weight: 600; }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }

.main-nav .nav-cta {
  margin-left: 10px;
  padding: 8px 20px;
  background: var(--verdant);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover {
  background: var(--meadow);
  color: #fff;
  transform: translateY(-1px);
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--fern); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   Eyebrow Label
   ===================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(46, 125, 72, 0.1);
  color: var(--meadow);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sprout);
  flex-shrink: 0;
}

/* =====================================================
   Buttons
   ===================================================== */
.button, .button-secondary,
.btn-hero-primary, .btn-hero-secondary, .btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s, background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.button {
  background: var(--verdant);
  color: #fff;
  box-shadow: 0 4px 18px rgba(26, 66, 40, 0.28);
}
.button:hover {
  background: var(--meadow);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46, 125, 72, 0.35);
  color: #fff;
}
.button-secondary {
  background: var(--surface);
  color: var(--verdant);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.button-secondary:hover {
  border-color: var(--meadow);
  background: var(--fern);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--verdant);
}
.btn-hero-primary {
  background: #fff;
  color: var(--verdant);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
.btn-hero-primary:hover {
  background: var(--fern);
  transform: translateY(-2px);
  color: var(--verdant);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.btn-amber {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 4px 18px rgba(200, 108, 40, 0.3);
}
.btn-amber:hover {
  background: #b45e22;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 108, 40, 0.4);
  color: #fff;
}
.admin-logout-link { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }

/* Focus styles */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
.button-secondary:focus-visible {
  outline: 3px solid var(--meadow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--meadow);
  background: white;
  box-shadow: 0 0 0 4px rgba(46, 125, 72, 0.1);
  outline: none;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 40px);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
/* =====================================================
   Hero Carousel
   ===================================================== */
.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.06);
  will-change: transform, opacity;
}
.hero-carousel-slide.is-active {
  opacity: 1;
}
/* Dark gradient overlay above all slides */
.hero-carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(10, 22, 12, 0.65) 0%, rgba(10, 22, 12, 0.30) 55%, rgba(10, 22, 12, 0.58) 100%);
  pointer-events: none;
}
/* Navigation dots */
.hero-carousel-nav {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.35s, transform 0.35s;
}
.hero-carousel-dot.is-active {
  background: white;
  transform: scale(1.35);
}
.hero-carousel-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.6);
}
.hero-content-wrap {
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 780px; }
.hero-content .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}
.hero-content .eyebrow::before { background: #8fde9f; }
.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--sprout);
}
.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
  line-height: 1.72;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-stats {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-stats-inner { display: flex; }
.hero-stat {
  flex: 1;
  padding: 22px 32px;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--verdant);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

/* Page hero variant (subpages) */
.hero-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero-paper, .hero-panel.page-hero-inner {
  padding: 52px 64px;
  text-align: center;
}
.page-hero { padding: 48px 0 0; }
.page-hero-inner {
  padding: 52px 64px;
  text-align: center;
}
.page-hero-inner .eyebrow { margin-bottom: 14px; }
.page-hero-inner h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.page-hero-inner h1 em {
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--meadow);
}
.page-hero-inner p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* =====================================================
   Sections
   ===================================================== */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--fern { background: var(--fern); }
.section--sand { background: var(--sand); }
.section--forest {
  background: var(--verdant);
  color: white;
}

/* Section Headers (centered) */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-header .eyebrow { margin-bottom: 14px; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 14px;
}
.section-header h2 em {
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--meadow);
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.section--forest .section-header h2 { color: #fff; }
.section--forest .section-header p { color: rgba(255,255,255,0.65); }
.section--forest .eyebrow {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
}
.section--forest .eyebrow::before { background: var(--sprout); }

/* Section Heading (left-aligned) */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--forest);
}
.section-heading p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Content Panel */
.content-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px;
}

/* =====================================================
   Grid
   ===================================================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* =====================================================
   Generic Card
   ===================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.card h3, .card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 0.9375rem; }

/* =====================================================
   Feature Cards (Stärken)
   ===================================================== */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sprout), var(--meadow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--fern);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: background 0.3s, transform 0.3s var(--ease-spring);
}
.feature-card:hover .feature-icon {
  background: var(--mist);
  transform: scale(1.1) rotate(-4deg);
}
.feature-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--forest); margin-bottom: 10px; }
.feature-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

/* =====================================================
   Service Stations
   ===================================================== */
.service-station {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-station:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(46, 125, 72, 0.22);
}
.station-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--fern), var(--mist));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease-spring), background 0.3s;
}
.service-station:hover .station-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--mist), var(--sprout));
}
.service-station h3 { font-size: 1.1rem; font-weight: 700; color: var(--forest); }
.service-station p, .service-station span { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }
.station-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--meadow);
  transition: gap 0.2s;
}
.service-station:hover .station-link { gap: 10px; }

/* service-item (backward compat) */
.service-item { display: flex; flex-direction: column; gap: 8px; }
.service-item span { color: var(--muted); font-size: 0.9375rem; }

/* =====================================================
   Metrics
   ===================================================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric-cell {
  background: white;
  padding: 36px 28px;
  text-align: center;
  transition: background 0.2s;
  border-right: 1px solid var(--line);
}
.metric-cell:last-child { border-right: none; }
.metric-cell:hover { background: var(--fern); }
.metric-cell strong {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--verdant);
  letter-spacing: -0.04em;
}
.metric-cell span {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}
/* backward compat */
.metric { background: white; padding: 18px; border-radius: var(--radius-md); }
.metric strong { display: block; font-size: 1.55rem; color: var(--verdant); }
.metric span { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--muted); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* =====================================================
   CTA Band
   ===================================================== */
.cta-band {
  text-align: center;
  padding: 80px 0;
  background: var(--verdant);
  background-image: url('/assets/images/cta-garden-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.cta-band h2 em {
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--sprout);
}
.cta-band p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-band .btn-hero-primary { min-height: 56px; padding: 0 36px; font-size: 1rem; }

/* =====================================================
   Contact Info
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.contact-info-list { display: flex; flex-direction: column; gap: 14px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--fern);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.contact-info-item:hover { background: var(--mist); }
.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--meadow);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-info-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.contact-info-item a, .contact-info-item span {
  font-size: 0.9375rem;
  color: var(--forest);
  font-weight: 500;
  display: block;
}
.contact-info-item a:hover { color: var(--meadow); text-decoration: underline; }
/* backward compat */
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-item span { color: var(--muted); font-size: 0.95rem; }

/* =====================================================
   Forms
   ===================================================== */
.stack-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 0.875rem; font-weight: 600; color: var(--forest); }
.form-note { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--fern);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  color: var(--forest);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  min-height: 0;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--meadow);
}
.form-consent label {
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: normal;
  cursor: pointer;
}
.form-consent a { color: var(--meadow); text-decoration: underline; }
.form-actions { display: flex; gap: 12px; }
.form-status { min-height: 1.4em; font-size: 0.9rem; color: var(--muted); }
.form-status.is-success { color: var(--meadow); font-weight: 600; }
.form-status.is-error { color: #c0392b; font-weight: 600; }

/* =====================================================
   Gallery
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.gallery-card {
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}
.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  transition: opacity 0.3s;
}
.gallery-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }
.gallery-card:nth-child(1) { background: linear-gradient(135deg, #4a8c5c, #1e4530); }
.gallery-card:nth-child(2) { background: linear-gradient(135deg, #7aab8a, #3d6b4d); }
.gallery-card:nth-child(3) { background: linear-gradient(135deg, #8fab7e, #4a6e3a); }
.gallery-card:nth-child(4) { background: linear-gradient(135deg, #9bbfaa, #4a7258); }
.gallery-card:nth-child(5) { background: linear-gradient(135deg, #6b9e83, #2d5c44); }
.gallery-card:nth-child(6) { background: linear-gradient(135deg, #7dba8e, #3a6040); }
.gallery-card-inner { position: relative; z-index: 2; }
.gallery-card h3 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; }
.gallery-card p { margin: 0; font-size: 0.875rem; opacity: 0.82; }
.gallery-card-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gallery-card-images img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.gallery-card-images img:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.7); }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox img, #gallery-lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.gallery-lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.gallery-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* =====================================================
   Legal
   ===================================================== */
.legal-copy { line-height: 1.75; }
.legal-copy p + p { margin-top: 14px; }

/* =====================================================
   Notice
   ===================================================== */
.notice {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(46, 125, 72, 0.08);
  border: 1px solid rgba(46, 125, 72, 0.18);
  color: var(--verdant);
  font-size: 0.9375rem;
}

/* =====================================================
   Admin
   ===================================================== */
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-admin-card h4 { margin: 0 0 12px; }
.gallery-admin-images { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; min-height: 80px; }
.gallery-admin-thumb {
  position: relative;
  width: 100px; height: 75px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-admin-thumb .gallery-delete-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(139, 46, 46, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gallery-admin-thumb .gallery-delete-btn:hover { background: rgba(139, 46, 46, 1); }

/* =====================================================
   Station Images Admin
   ===================================================== */
.station-img-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}
.station-img-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.station-img-preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--subtle-bg);
  border: 2px dashed var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: border-color 0.2s;
}
.station-img-preview-container[data-loaded="true"] {
  border-style: solid;
  border-width: 1px;
}
.station-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.station-img-preview-container::before {
  content: "📸 Bild-URL eingeben…";
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  position: absolute;
  pointer-events: none;
}
.station-img-preview-container[data-loaded="true"]::before {
  display: none;
}
.station-img-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.station-img-control label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
}
.station-img-control input[type="url"] {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Carousel interval range input */
.carousel-interval-field {
  margin: 20px 0 4px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.carousel-interval-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
  min-width: 180px;
}
.carousel-interval-field input[type="range"] {
  flex: 1;
  min-width: 160px;
  accent-color: var(--sprout);
}

/* Footer */
.footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 260px; }
.footer-brand img {
  width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; align-items: center; }
.footer-links a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: white; }
/* backward compat */
.footer-panel { padding: 0; background: transparent; border: none; box-shadow: none; border-radius: 0; }

/* =====================================================
   Scroll Reveal Animations
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* =====================================================
   Responsive — Tablet
   ===================================================== */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(247, 249, 245, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    padding: 12px 0 20px;
    flex-direction: column;
    gap: 0;
    z-index: 200;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    visibility: hidden;
    pointer-events: none;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav a { font-size: 1.0625rem; padding: 12px 20px; width: 100%; border-radius: 0; }
  .main-nav a::after { left: 20px; right: 20px; }
  .main-nav .nav-cta { margin-left: 12px; margin-top: 6px; width: auto; display: inline-flex; }
  .site-header { position: relative; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .contact-grid, .admin-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-card, .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .metrics-row { grid-template-columns: 1fr; }
  .metric-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .metric-cell:last-child { border-bottom: none; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .content-panel { padding: 32px 24px; }
  .page-hero-inner { padding: 36px 28px; }
  .hero-stat { padding: 18px 20px; }
  .hero-stats-inner { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 120px; border-bottom: 1px solid var(--line); }
  .hero-stat:last-child { border-right: none; border-bottom: none; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .gallery-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics { grid-template-columns: 1fr; }
}

/* =====================================================
   Responsive — Mobile
   ===================================================== */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .site-shell { width: min(100% - 24px, var(--container)); }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content-wrap { padding: 60px 0 50px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); letter-spacing: -0.03em; }
  .hero-lead { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button,
  .hero-actions .button-secondary { text-align: center; justify-content: center; }
  .hero-stats-inner { flex-direction: column; }
  .hero-stat { padding: 14px 16px; flex: none; border-right: none; border-bottom: 1px solid var(--line); }
  .hero-stat strong { font-size: 1.75rem; }
  .hero-stat:last-child { border-bottom: none; }
  .section { padding: 56px 0; }
  .section--sm { padding: 40px 0; }
  .top-contact-inner { gap: 12px; justify-content: center; font-size: 0.8125rem; min-height: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Header brand: shrink logo, hide tagline text */
  .brand-logo { width: 140px; }
  .brand-name { display: none; }
  /* CTA band: hide decorative circles that exceed viewport width */
  .cta-band::before, .cta-band::after { display: none; }
  .cta-band { padding: 48px 0; }
  .cta-band h2 { font-size: clamp(1.8rem, 7vw, 2.2rem); }
  .page-hero-inner,
  .hero-paper,
  .hero-panel.page-hero-inner { padding: 32px 20px; }
  .gallery-admin-grid { grid-template-columns: 1fr; }
  .gallery-card-images img { width: 72px; height: 55px; }
  .section-header p { font-size: 0.9375rem; }
  .feature-card { padding: 24px 20px; }
  .contact-grid { gap: 24px; }
  .content-panel { padding: 24px 16px; }
  /* Station image cards: ensure consistent height on mobile */
  .service-station:has(.station-img-wrap) { min-height: 240px; }
  .station-img { object-position: center; }
}

@media print {
  .site-header, .top-contact-bar, .hero-carousel, .nav-toggle { display: none; }
  .hero { min-height: auto; }
}

/* =====================================================
   Lucide Icons
   ===================================================== */
.feature-icon svg,
.station-icon svg,
.contact-info-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  flex-shrink: 0;
}
.feature-icon svg { width: 26px; height: 26px; }

/* =====================================================
   Station Image — full-bleed background
   ===================================================== */
.service-station:has(.station-img-wrap) {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: none;
  background: transparent;
  color: #fff;
}
.station-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  height: 100%;
  border-radius: inherit;
}
.station-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
/* bottom gradient overlay for text readability */
.service-station:has(.station-img-wrap)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 12, 0.10) 0%,
    rgba(10, 22, 12, 0.25) 40%,
    rgba(10, 22, 12, 0.78) 100%
  );
  transition: background 0.35s;
}
.service-station:has(.station-img-wrap):hover::after {
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 12, 0.15) 0%,
    rgba(10, 22, 12, 0.35) 40%,
    rgba(10, 22, 12, 0.88) 100%
  );
}
/* content above overlay */
.service-station:has(.station-img-wrap) h3,
.service-station:has(.station-img-wrap) p {
  position: relative;
  z-index: 2;
}
.service-station:has(.station-img-wrap) h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-station:has(.station-img-wrap) p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}
/* wrapper for text inside card */
.service-station:has(.station-img-wrap) .station-content {
  position: relative;
  z-index: 2;
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
a.service-station {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.service-station:hover .station-img {
  transform: scale(1.07);
}

@media (max-width: 640px) {
  .service-station:has(.station-img-wrap) {
    min-height: 260px;
  }
}
