/* ============================================================
   Fahrschule Dietz – Langenfeld
   Farbwelt aus der Verkehrswelt:
   Verkehrsschild-Blau (Vertrauen), Ampelgrün (nur CTAs),
   Ortsschild-Gelb (Signatur-Akzent), Asphalt-Dunkelblau (Text)
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --ink: #12202F;          /* Asphalt-Dunkel, Fließtext */
  --ink-soft: #45586C;     /* Sekundärtext */
  --blau: #0B5AA8;         /* Verkehrsschild-Blau */
  --blau-tief: #0A3D71;    /* dunkles Blau: Zeiten, Footer */
  --blau-hell: #E4EEF8;    /* Kartenhintergrund, Tints */
  --gruen: #0C7C3C;        /* Ampelgrün, nur für CTAs */
  --gruen-dunkel: #09632F;
  --gelb: #FFC900;         /* Ortsschild-Gelb, sparsam */
  --ground: #F3F7FB;       /* Seitengrund */
  --card: #FFFFFF;
  --line: #D8E3EE;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(10, 40, 80, 0.07);
  --shadow-lift: 0 10px 28px rgba(10, 40, 80, 0.13);
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blau); }
a:hover { color: var(--blau-tief); }

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blau);
  margin-bottom: 0.7rem;
}
.eyebrow-light { color: #9FC4E8; }

.section-intro {
  max-width: 44rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 1.3rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-green {
  background: var(--gruen);
  color: #fff;
}
.btn-green:hover {
  background: var(--gruen-dunkel);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.btn-whatsapp {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-whatsapp svg { color: #1FAF54; }
.btn-whatsapp:hover {
  border-color: #1FAF54;
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.btn-big {
  font-size: 1.08rem;
  padding: 0.85rem 1.7rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name strong { font-weight: 700; color: var(--blau); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.main-nav a:not(.nav-cta) {
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
}
.main-nav a:not(.nav-cta):hover { color: var(--blau); }
.nav-cta { display: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--blau);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, #FFFFFF 0%, var(--ground) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4.2rem;
  padding-bottom: 4.2rem;
}

.hero-sub {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.13rem;
  margin: 1.1rem 0 1.7rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.hero-trust {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.stars {
  color: var(--gelb);
  letter-spacing: 0.08em;
  text-shadow: 0 0 1px rgba(18, 32, 47, 0.35);
}

.hero-art svg {
  width: 100%;
  filter: drop-shadow(0 14px 30px rgba(10, 40, 80, 0.16));
}

/* ---------- Vertrauensleiste ---------- */
.trust {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  padding-top: 1.7rem;
  padding-bottom: 1.7rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.trust-big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--blau);
  white-space: nowrap;
}
.trust-label {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* ---------- Sektionen ---------- */
.section {
  padding: 4.5rem 0;
}
.section-tint {
  background: var(--blau-hell);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Gruppentitel mit Fahrbahnmarkierung */
.group-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.6rem 0 1.2rem;
}
.group-title:first-of-type { margin-top: 0; }
.lane-dash {
  display: inline-block;
  width: 54px;
  height: 10px;
  border-radius: 5px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.lane-dash::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--gelb) 0 8px,
    transparent 8px 14px
  );
}

/* ---------- Klassen-Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.class-plate {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
  min-width: 52px;
  text-align: center;
  flex-shrink: 0;
}
.card-head h4 {
  font-size: 1.35rem;
  font-weight: 600;
}

.card > p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.facts {
  list-style: none;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}
.facts li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--blau);
}

.card-cta {
  font-weight: 600;
  text-decoration: none;
  color: var(--gruen);
  font-size: 1rem;
}
.card-cta:hover { color: var(--gruen-dunkel); text-decoration: underline; }

/* ---------- Warum wir ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blau-hell);
  color: var(--blau);
  margin-bottom: 1rem;
}
.feature h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Ablauf (Route) ---------- */
.route {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  position: relative;
  margin-top: 2.4rem;
}
.route::before {
  content: '';
  position: absolute;
  top: 25px;
  left: calc(12.5% - 26px);
  right: calc(12.5% - 26px);
  border-top: 3px dashed var(--blau);
  opacity: 0.45;
}
.route-step { position: relative; text-align: center; }
.route-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blau);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 0 0 6px var(--ground);
}
.route-step:last-child .route-marker { background: var(--gruen); }
.route-step h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.route-step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.route-cta {
  text-align: center;
  margin-top: 2.6rem;
}

/* ---------- Stimmen ---------- */
.voices {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 0;
}
.voices-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
.voices-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: var(--blau-hell);
  border-radius: var(--radius);
  padding: 1.6rem 2.2rem;
}
.voices-score {
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--blau);
}
.voices-src {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.voices-text h2 { margin-bottom: 0.6rem; }
.voices-text p {
  color: var(--ink-soft);
  max-width: 44rem;
}

/* ---------- Zeiten ---------- */
.section-dark {
  background: var(--blau-tief);
}
.section-dark h2 { color: #fff; }

.times {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
}
.time-board {
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  background: rgba(255, 255, 255, 0.05);
}
.time-board h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.time-board dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}
.time-board dt { color: #C9DDF2; }
.time-board dd {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.time-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: #C9DDF2;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.6rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 0.9rem;
}
.contact-tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blau);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
a.contact-tile:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
  color: var(--ink);
}
.contact-tile-wa { border-left-color: #1FAF54; }
.contact-tile-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.contact-tile-value {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}
.contact-tile-hint {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.contact-route {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.optional { font-weight: 400; color: var(--ink-soft); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ground);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(11, 90, 168, 0.18);
}
.btn-form {
  width: 100%;
  justify-content: center;
  border: none;
}
.form-note {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #B9C7D6;
  padding: 3.2rem 0 1.6rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-brand strong { color: #7FB4E4; }
.site-footer h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.site-footer a { color: #9FC4E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-line {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.4rem;
  font-size: 0.85rem;
}

/* ---------- Mobile Kontaktleiste ---------- */
.action-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 16px rgba(10, 40, 80, 0.18);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  color: #fff;
}
.action-call { background: var(--blau); }
.action-wa { background: var(--gruen); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.subpage {
  padding: 3.5rem 0 4.5rem;
}
.subpage .container { max-width: 780px; }
.subpage h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.6rem; }
.subpage h2 {
  font-size: 1.55rem;
  margin: 2.2rem 0 0.6rem;
}
.subpage p, .subpage ul { margin-bottom: 0.9rem; color: var(--ink-soft); }
.subpage ul { padding-left: 1.3rem; }
.subpage strong { color: var(--ink); }
.back-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .route { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .route::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 800px) {
  body { padding-bottom: 58px; } /* Platz für die Kontaktleiste */
  .action-bar { display: grid; }

  .nav-toggle { display: flex; }
  .btn-header { display: none; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 0.5rem 0 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.nav-cta) {
    padding: 0.85rem 20px;
    border-bottom: 1px solid var(--ground);
  }
  .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin: 0.9rem 20px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
  }
  .hero-art { max-width: 420px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 3.2rem 0; }

  .voices-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .voices-rating { flex-direction: row; justify-content: center; gap: 0.9rem; }

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

@media (max-width: 560px) {
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; text-align: left; }
  .route-step { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .trust-grid { gap: 1rem; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, a.contact-tile { transition: none; }
}
