/* ==========================================================================
   Fahrschule Grabow – Dark Theme Stylesheet
   ========================================================================== */

:root {
  --bg:            #ffffff;
  --bg-alt:        #eef3fb;
  --surface:       #ffffff;
  --surface-2:     #f2f6fd;
  --border:        #d8e2f1;
  --border-soft:   #e6edf7;

  --text:          #0c1e40;
  --text-muted:    #4a5a74;
  --text-dim:      #7787a0;

  --accent:        #2563eb;
  --accent-2:      #1d4ed8;
  --navy:          #0b1f4d;
  --accent-glow:   rgba(37, 99, 235, 0.30);
  --accent-soft:   rgba(37, 99, 235, 0.09);

  --gold:          #f59e0b;
  --success:       #16a34a;

  --radius:        16px;
  --radius-sm:     11px;
  --radius-lg:     24px;

  --shadow:        0 18px 44px -24px rgba(12, 30, 64, 0.28);
  --shadow-lg:     0 34px 70px -30px rgba(12, 30, 64, 0.35);

  --maxw:          1180px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:  'Poppins', var(--font);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 600px at 78% -8%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(900px 500px at 8% 12%, rgba(37, 99, 235, 0.06), transparent 55%),
    var(--bg);
}

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.22);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent-glow); }

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 6px 24px -18px rgba(12, 30, 64, 0.4);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.brand .logo-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 22px -10px var(--accent-glow);
}
.brand small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--accent-2); background: var(--accent-soft); }
.nav-cta { margin-left: 10px; }
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { color: #fff; background: linear-gradient(135deg, var(--accent), #1d4ed8); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 150px 0 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin-bottom: 22px;
}
.hero h1 { color: var(--navy); }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--navy));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-facts { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-facts .fact strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
.hero-facts .fact span { font-size: 0.85rem; color: var(--text-dim); }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute; top: -40%; right: -30%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(10px);
}
.hero-illu { position: relative; z-index: 1; margin-bottom: 22px; }
.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--navy);
  box-shadow: 0 12px 30px -16px rgba(12, 30, 64, 0.4);
}
.hero-classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; z-index: 1; }
.hero-classes .cls {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 6px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.hero-classes .cls:hover { transform: translateY(-3px); border-color: var(--accent); }
.hero-classes .cls b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--accent-2); }
.hero-classes .cls span { font-size: 0.72rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Google Rating Badge
   -------------------------------------------------------------------------- */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 22px 10px 14px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.google-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.18); }
.google-badge .g-logo { width: 30px; height: 30px; flex-shrink: 0; }
.google-badge .g-score { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.google-badge .stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 1px; }
.google-badge .g-meta { font-size: 0.78rem; color: var(--text-dim); }
.google-badge .g-sep { width: 1px; height: 34px; background: var(--border); }

.hero .google-badge { margin-top: 30px; }

/* --------------------------------------------------------------------------
   License classes grid
   -------------------------------------------------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.class-card {
  background: linear-gradient(165deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  position: relative;
  overflow: hidden;
}
.class-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.class-card .icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.22);
  margin-bottom: 18px;
}
.class-card .tag {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-2);
}
.class-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.class-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Services list
   -------------------------------------------------------------------------- */
.services { background: var(--bg-alt); }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.service-item {
  display: flex; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, transform .2s;
}
.service-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-item .s-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.service-item .s-icon svg { width: 24px; height: 24px; }
.service-item h3 { font-size: 1.08rem; margin-bottom: 5px; }
.service-item p { color: var(--text-muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--accent); }
.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; }
.about-media {
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-media .avatar {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 2.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  box-shadow: 0 14px 34px -12px var(--accent-glow);
}
.about-media h3 { font-size: 1.35rem; }
.about-media .role { color: var(--accent-2); font-size: 0.9rem; margin-bottom: 18px; }
.about-media .badges { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.about-media .badges li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.about-media .badges svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text .highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.about-text .highlights div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.about-text .highlights strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.about-text .highlights span { font-size: 0.84rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Reviews / testimonials
   -------------------------------------------------------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review {
  background: linear-gradient(165deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.review .stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 14px; }
.review p { color: var(--text); font-size: 0.97rem; margin-bottom: 18px; }
.review .r-author { display: flex; align-items: center; gap: 12px; }
.review .r-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--navy));
}
.review .r-author b { font-size: 0.92rem; }
.review .r-author span { display: block; font-size: 0.78rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Locations / Standorte
   -------------------------------------------------------------------------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.location-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.location-card .pin { color: var(--accent-2); font-size: 0.85rem; margin-bottom: 22px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.info-row:last-child { border-bottom: none; }
.info-row .ico { color: var(--accent-2); flex-shrink: 0; }
.info-row .ico svg { width: 20px; height: 20px; }
.info-row .lbl { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.info-row .val { font-weight: 500; }
.info-row .val a:hover { color: var(--accent-2); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
}
.map-wrap iframe { width: 100%; flex: 1; min-height: 300px; border: 0; }
.map-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--accent-2);
  background: var(--surface);
  border-top: 1px solid var(--border);
  transition: background .2s, color .2s;
}
.map-cta svg { width: 18px; height: 18px; }
.map-cta:hover { background: var(--accent-soft); color: var(--accent); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(37,99,235,0.05));
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(600px 200px at 50% 0%, var(--accent-glow), transparent 70%);
  opacity: .5;
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-inner p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border-soft); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.95rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--accent-2); }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; margin: 16px 0; max-width: 320px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--accent-2); }

/* --------------------------------------------------------------------------
   Legal pages (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal { padding: 140px 0 90px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal .sub { color: var(--text-muted); margin-bottom: 44px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.legal h3 { font-size: 1.05rem; margin: 26px 0 10px; color: var(--accent-2); }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: var(--accent-2); }
.legal a:hover { text-decoration: underline; }
.legal .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 30px;
}
.legal .card p { margin-bottom: 6px; color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 500; margin-bottom: 30px; }
.back-link svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  section { padding: 68px 0; }
  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 15, 22, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    transform: translateY(-140%);
    transition: transform .32s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: grid; }
  .hero-classes { grid-template-columns: repeat(2, 1fr); }
  .about-text .highlights { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .container { padding: 0 18px; }
  .hero-facts { gap: 20px; }
  .google-badge { padding: 10px 16px 10px 12px; gap: 12px; }
}
