﻿:root {
  /* Backgrounds */
  --bg: #f6f8fb;
  --bg-accent: #eef2f7;
  --surface: #ffffff;
  --surface-muted: #f1f4f9;

  /* Text */
  --text: #1b1f23;
  --muted: #5b6472;

  /* Brand (Fahrschule = Vertrauen & Klarheit) */
  --brand: #1e5eff; /* Verkehrsblau */
  --brand-dark: #1747c2;
  --brand-light: #e6ecff;

  /* Accent (CTA / Aufmerksamkeit) */
  --accent: #ff9f1c;
  --accent-dark: #e28700;

  /* UI */
  --border: #d7deea;
  --shadow: 0 10px 28px rgba(20, 32, 55, 0.12);
  --radius: 18px;
  --focus: #3b82f6;

  /* Highlights */
  --highlight-1: #f2f6ff;
  --highlight-2: #fff4e6;

  /* Notices */
  --notice-bg: #fff6e8;
  --notice-border: #ffd9a3;

  /* Gradients */
  --bg-gradient-1: #f0f4ff;
  --bg-gradient-2: #ffffff;

  /* Layout */
  --content-max-width: 1440px;

  /* Spacing & Type (unverändert) */
  --space-2xs: clamp(4px, 1vw, 8px);
  --space-xs: clamp(8px, 1.5vw, 14px);
  --space-sm: clamp(12px, 2vw, 18px);
  --space-md: clamp(16px, 2.5vw, 28px);
  --space-lg: clamp(24px, 4vw, 48px);
  --space-xl: clamp(32px, 6vw, 72px);

  --text-sm: clamp(0.95rem, 1vw, 1.02rem);
  --text-md: clamp(1rem, 1.3vw, 1.15rem);
  --text-lg: clamp(1.2rem, 2vw, 1.5rem);
  --text-xl: clamp(1.8rem, 4vw, 3rem);
}

[data-theme="dark"] {
  /* Backgrounds */
  --bg: #0e1116;
  --bg-accent: #151a21;
  --surface: #121720;
  --surface-muted: #161c26;

  /* Text */
  --text: #f1f5f9;
  --muted: #9aa4b2;

  /* Brand */
  --brand: #4f8cff; /* klares Blau */
  --brand-dark: #3a6fe0;
  --brand-light: #1b2a44;

  /* Accent */
  --accent: #ffb347;
  --accent-dark: #e89a2d;

  /* UI */
  --border: #222a38;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  --focus: #93c5fd;

  /* Highlights */
  --highlight-1: #1a2232;
  --highlight-2: #241a12;

  /* Notices */
  --notice-bg: #241a12;
  --notice-border: #5a3b14;

  /* Gradients */
  --bg-gradient-1: #121a2a;
  --bg-gradient-2: #0e1116;

  --content-max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family:
    "Segoe UI Variable", "Segoe UI", "Trebuchet MS", "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      1200px 600px at 80% -10%,
      var(--bg-gradient-1) 0%,
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 0% 0%,
      var(--bg-gradient-2) 0%,
      transparent 55%
    ),
    var(--bg);
  line-height: 1.65;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
}

header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
}

/* =========================
   Header 
========================= */

.site-header {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding: var(--space-sm) var(--space-md);

  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  font-weight: 600;
  opacity: 0.9;
}

nav a:not([aria-current="page"]) {
  opacity: 0.75;
}

nav a:hover,
nav a:focus-visible {
  opacity: 1;
}

/* =========================
   Brand – ruhiger Header
========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  max-width: 420px;
}

.brand-logo {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 12px;
}

/* Text klar zweizeilig, weniger Druck */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-text span {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* Dark Mode: Logo minimal anheben */
[data-theme="dark"] .brand-logo {
  filter: brightness(1.08) contrast(1.05);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-2xs);
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
}

nav a[aria-current="page"] {
  background: var(--brand-light);
  color: var(--brand-dark);
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover {
    background: color-mix(in srgb, var(--brand-light) 70%, transparent);
  }
}

nav a:focus-visible {
  background: color-mix(in srgb, var(--brand-light) 70%, transparent);
}

main {
  display: block;
}

.container {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-video {
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #1b2a23;
}

.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media video {
  z-index: 1;
}

.hero-poster {
  z-index: 0;
  filter: saturate(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8, 20, 14, 0.82) 0%,
    rgba(8, 20, 14, 0.55) 45%,
    rgba(8, 20, 14, 0.35) 100%
  );
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.hero-video .hero-content {
  max-width: 65ch;
}

.hero-video .hero-content p {
  color: rgba(255, 255, 255, 0.85);
}

.hero-video .breadcrumbs {
  color: rgba(255, 255, 255, 0.75);
}

.hero-video .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-video .button.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(11, 91, 60, 0.25);
}

.hero-content h1 {
  font-size: var(--text-xl);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: var(--text-md);
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  transform: translateY(-2px);
}

.button.secondary {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface);
}

.hero-card {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.badges {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  max-width: 48ch;
}

.badge {
  background: var(--bg-accent);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand-dark);
}

.section {
  padding: var(--space-lg) 0;
}

.section h2 {
  font-size: var(--text-lg);
  margin-bottom: 16px;
}

.section p.lead {
  color: var(--muted);
  max-width: 65ch;
}

.grid {
  display: grid;
  gap: 20px;
}

.cards {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .testimonial:hover,
  .stat:hover,
  .hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(31, 42, 36, 0.18);
  }
}

.card:focus-within,
.testimonial:focus-within,
.stat:focus-within,
.hero-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(31, 42, 36, 0.18);
}

.card h3 {
  margin-top: 0;
}

.highlight {
  background: linear-gradient(140deg, var(--highlight-1), var(--highlight-2));
  border-radius: var(--radius);
  padding: var(--space-md);
  border: 1px solid var(--border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.list {
  padding-left: 20px;
}

.stats {
  display: grid;
  gap: var(--space-2xs);
}

.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-sm);
  border: 1px solid var(--border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.testimonials {
  display: grid;
  gap: 20px;
}

.testimonial {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-md);
  border: 1px solid var(--border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.cta-band {
  background: var(--brand);
  color: #fff;
  padding: var(--space-md);
  border-radius: var(--radius);
  display: grid;
  gap: var(--space-2xs);
  align-items: center;
}

.cta-band .button.primary:hover,
.cta-band .button.primary:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.cta-band a {
  color: #fff;
}

[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--aos-delay, 0ms);
  will-change: opacity, transform;
}

[data-aos="fade-in"] {
  transform: translateY(12px);
}

[data-aos="fade-up"] {
  transform: translateY(24px);
}

[data-aos="fade-left"] {
  transform: translateX(24px);
}

[data-aos="fade-right"] {
  transform: translateX(-24px);
}

[data-aos="zoom-in"] {
  transform: scale(0.97);
}

.aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  background: var(--surface-muted);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer a {
  color: var(--brand-dark);
}

/* Footer Meta (Credits & Demo-Hinweis) */

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-credits {
  font-size: 0.85rem;
  color: var(--menu-color);
  margin-bottom: 0.5rem;
}

.footer-credits a {
  color: var(--light-blue);
  text-decoration: none;
  font-weight: 500;
}

.footer-credits a:hover,
.footer-credits a:focus {
  text-decoration: underline;
}

.footer-demo-note {
  font-size: 0.75rem;
  color: var(--menu-color);
  opacity: 0.8;
}

.footer-demo-note a {
  color: var(--light-blue);
  text-decoration: none;
}

.footer-demo-note a:hover,
.footer-demo-note a:focus {
  text-decoration: underline;
}

.form {
  display: grid;
  gap: var(--space-2xs);
}

.form label {
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  background: var(--surface);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form .hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.form .error {
  color: #8b1d1d;
  font-size: 0.9rem;
  display: none;
}

.form .field[data-error="true"] .error,
.form [data-error="true"] + .error {
  display: block;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid var(--border);
  padding: var(--space-xs);
  text-align: left;
}

.table th {
  background: var(--surface-muted);
}

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  padding: var(--space-sm);
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle {
  position: relative;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle .toggle-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: var(--muted);
  transition: color 0.3s ease;
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.theme-toggle .toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(0);
  transition:
    transform 0.25s ease,
    background-color 0.3s ease;
}

.theme-toggle .icon-moon {
  opacity: 0.5;
}

[data-theme="dark"] .theme-toggle .toggle-thumb {
  transform: translateX(24px);
  background: var(--accent);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0.5;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
}

.floating-actions {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-end;
  z-index: 100;
}

.floating-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.scroll-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.scroll-top svg {
  width: 18px;
  height: 18px;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .floating-cta:hover,
  .scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(31, 42, 36, 0.18);
  }
}

.floating-cta:focus-visible,
.scroll-top:focus-visible {
  transform: translateY(-2px);
}

@media (max-width: 520px) {
  .floating-actions {
    right: 16px;
    bottom: 16px;
  }

  .floating-cta {
    padding: 10px 16px;
    font-size: var(--text-sm);
  }
}

@media (max-width: 380px) {
  .scroll-top {
    display: none;
  }
}

.breadcrumbs {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 20px 0 0;
}

/* Breakpoints: tuned for small mobile → ultra-wide while keeping layout stable. */
@media (max-width: 520px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-xs);
  }

  nav {
    flex: 1 1 auto;
  }

  .theme-toggle {
    flex-shrink: 0;
  }

  nav a {
    padding: 8px 10px;
    font-size: var(--text-sm);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .button {
    width: 100%;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text span {
    font-size: 0.8rem;
  }
}

@media (min-width: 600px) {
  .hero-inner {
    padding: clamp(64px, 8vw, 96px) var(--space-md) clamp(48px, 6vw, 88px);
  }

  nav ul {
    gap: var(--space-xs);
  }
}

@media (min-width: 768px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three,
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .cta-band {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 1024px) {
  :root {
    --max-width: 1200px;
  }

  nav ul {
    gap: 20px;
  }

  .hero-content p {
    max-width: 60ch;
  }
}

@media (min-width: 1280px) {
  :root {
    --max-width: 1280px;
  }

  .section {
    padding: var(--space-xl) 0;
  }
}

@media (min-width: 1600px) {
  :root {
    --max-width: 1360px;
  }

  .hero {
    min-height: clamp(520px, 70vh, 780px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
  }

  .hero-media video {
    display: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-data: reduce) {
  .hero-media video {
    display: none;
  }
}

@media (min-width: 1600px) {
  :root {
    --content-max-width: 1480px;
  }
}
