/* ============================================================
   FAHRSCHULE FIT – Unified Design System
   Dark Theme + Red Accent (inspired by manus.space demo)
   Sitemap & structure kept from fahrschulefit.eu
   ============================================================ */

/* ---- FONTS (self-hosted, DSGVO-konform) ---- */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/BarlowCondensed-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/BarlowCondensed-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/BarlowCondensed-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Inter-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-700-normal.woff2') format('woff2');
}

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --red:        #e8001d;
  --red-dark:   #b5001a;
  --red-glow:   rgba(232, 0, 29, 0.10);

  --bg:         #ffffff;
  --bg-2:       #f5f6f8;
  --bg-card:    #ffffff;
  --bg-card-2:  #eef0f4;

  --border:     rgba(0, 0, 0, 0.09);
  --border-red: rgba(232, 0, 29, 0.28);

  --text:       #111827;
  --text-2:     #6b7280;
  --text-3:     #9ca3af;

  --white:      #ffffff;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:     12px;
  --radius-lg:  20px;

  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-glow: 0 4px 24px rgba(232, 0, 29, 0.14);

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --container:  1200px;
  --header-h:   72px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Decorative gradient orbs – reusable */
.grad-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section       { padding: 96px 0; }
.section--dark {
  background: linear-gradient(160deg, #f5f7fb 0%, #eef0f6 100%);
}

.section-overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-overline::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.text-red    { color: var(--red); }
.text-center { text-align: center; }
.mx-auto     { margin: 0 auto; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition:
    opacity  0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid var(--border-red);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.logo span { color: var(--red); }

.logo-img {
  height: 88px;
  width: auto;
  flex-shrink: 0;
}

.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: block;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 8px 18px !important;
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
  margin-left: 6px;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO (Startseite) – Scroll-scrubbed video animation
   ============================================================ */

/* Tall wrapper provides the scroll distance */
.hero-scroll-wrapper {
  position: relative;
  height: 500vh;
}

/* Sticky frame – stays pinned while user scrolls through the wrapper */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: clip;
}

/* ── Deals Hero ─────────────────────────────────────────────────────── */
.hero--deals {
  background: var(--bg);
}
.hero--deals::before { display: none; }

.hero-deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 56px;
  align-items: start;
  width: 100%;
}

/* Text top-left, cards span both rows on right, actions bottom-left */
.hero-deals-text  { grid-column: 1; grid-row: 1; }
.hero-deals-cards { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.hero-deals-grid > .hero-actions { grid-column: 1; grid-row: 2; margin-top: -30px; }

.hero-deals-text h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

/* Deal cards container */
.hero-deals-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.deal-card:hover {
  border-color: var(--border-red);
  transform: translateX(4px);
}

.deal-card--highlight {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(232,0,29,0.06) 0%, var(--bg-card) 60%);
}

.deal-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}

.deal-type {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  flex: 1;
}

.deal-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  white-space: nowrap;
}
.deal-card--highlight .deal-price { font-size: 2.8rem; }

.deal-price span {
  font-size: 1.2rem;
  font-weight: 700;
  vertical-align: super;
}

.deal-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: right;
  line-height: 1.3;
}

.deal-saving {
  font-size: 0.7rem;
  color: var(--text-3);
}

/* Tablet → single column */
@media (max-width: 900px) {
  .hero-deals-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }
  /* Reorder: text (row1) → cards (row2) → buttons (row3) */
  .hero-deals-text  { grid-column: 1; grid-row: 1; }
  .hero-deals-cards { grid-column: 1; grid-row: 2; }
  .hero-deals-grid > .hero-actions { grid-column: 1; grid-row: 3; margin-top: 0; }
  /* Cards side by side in a 3-column row */
  .hero-deals-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  /* Vertical card layout */
  .deal-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 16px;
  }
  .deal-badge {
    position: static;
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.62rem;
  }
  .deal-type  { font-size: 0.75rem; }
  .deal-price { font-size: 1.8rem; }
  .deal-card--highlight .deal-price { font-size: 2rem; }
  .deal-label { text-align: left; font-size: 0.7rem; }
  .deal-saving { font-size: 0.65rem; }
}

/* Mobile → cards stacked full width */
@media (max-width: 540px) {
  .hero--deals { padding: 40px 0; min-height: auto; }
  .hero-deals-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .deal-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 16px 18px;
  }
  .deal-badge {
    position: absolute;
    top: -10px;
    left: 18px;
    display: block;
    margin-bottom: 0;
  }
  .deal-type  { flex: 1; font-size: 0.82rem; }
  .deal-price { font-size: 2rem; margin: 0 12px; }
  .deal-card--highlight .deal-price { font-size: 2.2rem; }
  .deal-label { font-size: 0.75rem; text-align: right; }
  .deal-saving { width: 100%; font-size: 0.68rem; text-align: right; }
}

/* Gradient overlay sits above the video but below the text */
/* Starts fully transparent – JS fades it in via --hero-overlay as user scrolls */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 70% at 90% 10%, rgba(232, 0, 29, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
    linear-gradient(170deg, rgba(255,255,255,0.82) 0%, rgba(247,248,252,0.78) 100%);
  opacity: var(--hero-overlay, 0);
  pointer-events: none;
}

/* Full-cover background video */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.4s;
  pointer-events: auto;
  cursor: pointer;
}
.hero-scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  animation: scrollBounce 1.4s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 0.5; }
}

.hero-overline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-overline::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--red); }

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 4px;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 80% 50%, rgba(232, 0, 29, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
    linear-gradient(160deg, #f9fafb 0%, #f0f2f8 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 580px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--red-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.28);
}
.btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ============================================================
   CARDS (generic)
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 20px;
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.card p {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.7;
}
.card ul {
  list-style: none;
  margin-top: 14px;
}
.card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.88rem;
}
.card ul li:last-child { border-bottom: none; }
.card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---- GRID SYSTEMS ---- */
.grid   { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ============================================================
   LOCATION CARDS (unserefahrschulen)
   ============================================================ */
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.location-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-glow);
}
.location-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.location-card .address {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hours-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  margin-top: 20px;
}
.hours-list { list-style: none !important; }
.hours-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.88rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ============================================================
   TEAM GRID (unserefahrschulen)
   ============================================================ */
.team-highlight-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  margin-top: 40px;
}
.highlight-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.large-card {
  grid-row: span 2;
  min-height: 420px;
}
.small-card { min-height: 196px; }

/* ============================================================
   VEHICLE CARDS (fahrschulautos)
   ============================================================ */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.vehicle-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.vehicle-img-wrap {
  width: 100%;
  height: 220px;
  background: var(--bg-card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vehicle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-img-placeholder {
  font-size: 3rem;
  color: var(--text-3);
}
.vehicle-body { padding: 24px; }
.vehicle-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.vehicle-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.vehicle-desc {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.65;
}
.vehicle-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.vehicle-feature {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ============================================================
   LICENSE CLASS CARDS (preise)
   ============================================================ */
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.license-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.license-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.license-badge {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.license-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.license-desc {
  font-size: 0.73rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* ============================================================
   PRICE TABLE (preise)
   ============================================================ */
.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.9rem;
}
thead th {
  background: var(--bg-card-2);
  padding: 14px 20px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 13px 20px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text);
}
tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}
.price-highlight {
  color: var(--red) !important;
  font-weight: 700;
}

/* ============================================================
   PRICE CALCULATOR (preise)
   ============================================================ */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.calc-group { margin-bottom: 28px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 12px;
}
.calc-label span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  box-shadow: 0 0 12px var(--red-glow);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: none;
}
.calc-total {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-total-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.calc-total-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
}

/* ============================================================
   THEORY SCHEDULE (theoriestunden)
   ============================================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.schedule-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-glow);
}
.schedule-card-header {
  padding: 22px 26px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}
.schedule-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.schedule-card-header p {
  font-size: 0.83rem;
  color: var(--red);
  margin-top: 4px;
  font-weight: 500;
}
.schedule-item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 26px;
  border-bottom: 1px solid var(--border);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.schedule-day {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.schedule-time {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
  text-align: right;
}

/* ============================================================
   NEWS / OFFERS (werbungundneuigkeiten)
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.news-card-top {
  height: 6px;
  background: var(--red);
}
.news-card-body { padding: 28px; }
.news-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.news-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---- QUIZ (werbung) ---- */
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}
.quiz-progress-bar {
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.quiz-question {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}
.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-answer {
  padding: 14px 20px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.quiz-answer:hover {
  background: rgba(232, 0, 29, 0.1);
  border-color: var(--border-red);
  color: var(--text);
}
.quiz-result {
  display: none;
  text-align: center;
  padding: 16px 0;
}
.quiz-result.visible { display: block; }
.quiz-result-badge {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}
.quiz-result p {
  color: var(--text-2);
  font-size: 0.93rem;
  margin-bottom: 24px;
}
.quiz-restart {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.quiz-restart:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--text);
}

/* ============================================================
   CONTACT FORM (kontakt)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.contact-info-value {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-info-value a {
  color: var(--text);
  transition: color var(--transition);
}
.contact-info-value a:hover { color: var(--red); }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-subtitle {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.form-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.form-check label {
  font-size: 0.82rem;
  color: var(--text-2);
  cursor: pointer;
  line-height: 1.5;
}
.form-check label a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-success {
  display: none;
  padding: 18px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  color: #4ade80;
  font-size: 0.88rem;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
}
.form-success.visible { display: flex; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(232, 0, 29, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 90% 10%, rgba(232, 0, 29, 0.05) 0%, transparent 60%),
    linear-gradient(135deg, #fff8f8 0%, #ffffff 50%, #f8f8ff 100%);
  pointer-events: none;
}
.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-section p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ===== GOOGLE REVIEWS CONSENT BOX ===== */
.reviews-consent-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.reviews-consent-icon {
  font-size: 2.4rem;
  color: var(--red);
  margin-bottom: 16px;
}

.reviews-consent-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.reviews-consent-text {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 24px;
}

.reviews-consent-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.reviews-consent-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-3);
  cursor: pointer;
}

.reviews-consent-remember input { cursor: pointer; }

/* ===== FUN-BALL SECTION ===== */
.funball-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.funball-highlight {
  border-color: var(--red) !important;
  background: linear-gradient(135deg, rgba(232,0,29,0.04) 0%, var(--bg-card) 60%);
}

.funball-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.funball-saving-box {
  background: var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}

.funball-saving-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.75);
  margin-bottom: 4px;
}

.funball-saving-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #fff;
  line-height: 1;
}

.funball-saving-amount span {
  font-size: 1.2rem;
  vertical-align: super;
}

.funball-saving-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

.funball-deal-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.funball-deal-row:last-of-type {
  border-bottom: none;
}

.funball-deal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232,0,29,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.funball-deal-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 3px;
}

.funball-deal-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

.funball-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.funball-cta-card { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .funball-grid {
    grid-template-columns: 1fr;
  }
  .funball-cta-card { grid-column: 1; }
}

/* ===== END FUN-BALL ===== */

.site-footer {
  background: linear-gradient(160deg, #f0f2f7 0%, #e8eaf2 100%);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-brand span { color: var(--red); }
.footer-column h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer-column p {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.7;
}
.footer-column a {
  font-size: 0.86rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-column a:hover { color: var(--text); }
.footer-column ul { display: flex; flex-direction: column; gap: 10px; }

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 15px;
  transition: all var(--transition);
}
.footer-social-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.footer-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: background var(--transition);
  margin-top: 14px;
}
.footer-button:hover { background: var(--red-dark); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ============================================================
   REVIEWS / BEWERTUNGEN
   ============================================================ */
.reviews-overall {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.reviews-score {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.reviews-stars {
  display: flex;
  gap: 4px;
  color: #f5c518;
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.reviews-count {
  font-size: 0.85rem;
  color: var(--text-2);
}
.reviews-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.reviews-google-badge:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--text);
}
.reviews-google-badge i { color: #4285F4; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}
.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
}
.review-stars {
  display: flex;
  gap: 3px;
  color: #f5c518;
  font-size: 0.85rem;
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.review-source {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-google-icon {
  align-self: flex-end;
  color: var(--text-3);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Elfsight widget container */
.elfsight-wrapper {
  margin-top: 40px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ============================================================
   LEGAL PAGES (impressum, datenschutz)
   ============================================================ */
.legal-content { max-width: 800px; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 48px;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 24px;
}
.legal-content p,
.legal-content li {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-content ul { list-style: disc; padding-left: 20px; }
.legal-content a { color: var(--red); }
.legal-content a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .team-highlight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-highlight-grid .large-card {
    grid-row: span 1;
    grid-column: span 2;
    min-height: 300px;
  }
}

/* Safety training banner responsive */
@media (max-width: 860px) {
  .safety-banner-grid {
    grid-template-columns: 1fr !important;
  }
  .safety-banner-grid > div:first-child {
    min-height: 240px !important;
  }
}

/* ── Hamburger nav: Mobile + Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .hamburger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 200;
  }
  .nav.active { display: block; }

  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0 12px;
  }
  .nav-list a {
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 2px;
  }
  .nav-cta { margin: 6px 12px 0 !important; display: flex !important; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .section { padding: 64px 0; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  /* Vollbreite Cards in 2-Spalten-Grids auf Mobile zurücksetzen */
  .grid-2 > [style*="grid-column"] { grid-column: 1 !important; }

  .form-row { grid-template-columns: 1fr; }

  /* Hero animation – mobile */
  .hero {
    height: calc(100vh - var(--header-h));
    padding: 20px 0;
  }
  .hero-video-bg {
    object-fit: cover;
    object-position: center center;
  }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 3rem); margin-bottom: 14px; }
  .hero-overline { margin-bottom: 12px; font-size: 10px; }
  .hero-lead { font-size: 0.92rem; margin-bottom: 24px; line-height: 1.6; }
  .hero-stats { gap: 20px; margin-top: 28px; padding-top: 20px; }
  .hero-stat-value { font-size: 2rem; }

  .team-highlight-grid { grid-template-columns: 1fr 1fr; }
  .team-highlight-grid .large-card { grid-column: span 2; }

  .contact-grid { grid-template-columns: 1fr; }

  .license-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  .calculator-card { padding: 24px; }
  .contact-form-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Lead-Text im Deals-Hero sichtbar lassen, nur alten Hero ausblenden */
  .hero:not(.hero--deals) .hero-lead { display: none; }
  .hero--deals .hero-lead { display: block; font-size: 0.9rem; margin-bottom: 20px; }
  .hero--deals h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .hero-stats > div { flex: 0 0 calc(50% - 7px); }

  .team-highlight-grid { grid-template-columns: 1fr; }
  .team-highlight-grid .large-card { grid-column: span 1; }
  .small-card { min-height: 200px; }

  .footer-container { gap: 32px; }
}

/* ============================================================
   STICKY STACKING CARDS
   .stack-cards-all  — alle Breakpoints
   .stack-cards      — nur Mobile (≤768px)
   ============================================================ */
.stack-cards-all {
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
}
.stack-cards-all > * {
  position: sticky;
  margin-bottom: 16px;
}
/* Cards slide bottom-to-top: each new card arrives from below and slides OVER the previous.
   Earlier cards peek from the top, latest card is fully visible on top. */
.stack-cards-all > *:nth-child(1) { top: calc(50vh);        z-index: 1; }
.stack-cards-all > *:nth-child(2) { top: calc(50vh + 16px); z-index: 2; }
.stack-cards-all > *:nth-child(3) { top: calc(50vh + 32px); z-index: 3; }
.stack-cards-all > *:nth-child(4) { top: calc(50vh + 48px); z-index: 4; }
.stack-cards-all > *:nth-child(5) { top: calc(50vh + 64px); z-index: 5; }
.stack-cards-all > *:nth-child(6) { top: calc(50vh + 80px); z-index: 6; }

/* Über-uns two-column layout */
.ueber-uns-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.ueber-uns-layout .stack-cards-all {
  flex: 0 0 48%;
}
.ueber-uns-heading {
  flex: 1;
}

@media (min-width: 769px) {
  .ueber-uns-heading {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
  .stack-cards-all > * {
    padding: 40px !important;
  }
}

@media (max-width: 768px) {
  .ueber-uns-layout {
    flex-direction: column;
    gap: 0;
  }
  .ueber-uns-heading {
    margin-bottom: 8px;
  }
  /* Über-uns cards: full width on mobile (no 48% constraint) */
  .ueber-uns-layout .stack-cards-all {
    flex: 0 0 100%;
    width: 100%;
  }
  .stack-cards-all > * {
    padding: 32px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .stack-cards {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
  }
  .stack-cards > * {
    position: sticky;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .stack-cards > *:nth-child(1) { top: calc(var(--header-h) + 8px);        z-index: 1; }
  .stack-cards > *:nth-child(2) { top: calc(var(--header-h) + 8px + 16px); z-index: 2; }
  .stack-cards > *:nth-child(3) { top: calc(var(--header-h) + 8px + 32px); z-index: 3; }
  .stack-cards > *:nth-child(4) { top: calc(var(--header-h) + 8px + 48px); z-index: 4; }
  .stack-cards > *:nth-child(5) { top: calc(var(--header-h) + 8px + 64px); z-index: 5; }
  .stack-cards > *:nth-child(6) { top: calc(var(--header-h) + 8px + 80px); z-index: 6; }
}

/* ============================================================
   DROPDOWN NAVIGATION
   ============================================================ */
.nav-item { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
  list-style: none;
}
.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown li a:hover { background: var(--bg-2); color: var(--red); }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-item > a .dropdown-arrow {
  font-size: 0.65em;
  margin-left: 4px;
  vertical-align: middle;
}

/* ============================================================
   COOKIE CONSENT – Brand Overrides (vanilla-cookieconsent v3)
   ============================================================ */
:root {
  --cc-bg:              #ffffff;
  --cc-primary-color:   #e8001d;
  --cc-btn-primary-bg:  #e8001d;
  --cc-btn-primary-hover-bg: #b5001a;
  --cc-btn-secondary-bg:      #f5f6f8;
  --cc-btn-secondary-hover-bg:#eef0f4;
  --cc-btn-secondary-color:   #111827;
  --cc-separator-border-color: rgba(0,0,0,0.09);
  --cc-cookie-category-block-bg: #f5f6f8;
  --cc-cookie-category-block-border: rgba(0,0,0,0.09);
  --cc-cookie-category-block-hover-bg: #eef0f4;
  --cc-toggle-on-bg:    #e8001d;
  --cc-toggle-off-bg:   #d1d5db;
  --cc-toggle-readonly-bg: #9ca3af;
  --cc-overlay-bg:      rgba(0,0,0,0.45);
  --cc-modal-border-radius: 20px;
  --cc-btn-border-radius:   10px;
}
