/* ============================================================
   Fahrschule Szesny – Stylesheet
   Farbschema: Gelb (Marke) + Anthrazit + Weiß
   ============================================================ */

:root {
  --yellow: #FFC72C;
  --yellow-dark: #E6A800;
  --ink: #1A1A1D;
  --ink-soft: #3A3A40;
  --grey: #6B6B72;
  --grey-light: #F4F4F2;
  --line: #E7E5DF;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26,26,29,0.08);
  --max-width: 1180px;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex-shrink: 0; }

.img-placeholder {
  border-radius: var(--radius);
  background: linear-gradient(150deg, #FFF3CE 0%, #FFE083 100%);
  border: 1px solid #F2D67C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  overflow: hidden;
  position: relative;
}
.img-placeholder svg { width: 34%; height: 34%; opacity: 0.55; }
.img-placeholder__label {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  background: rgba(26,26,29,0.75);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
}
.img-placeholder--dark { background: linear-gradient(150deg, #2A2A2E 0%, #1A1A1D 100%); border-color: #333; }
.img-placeholder--dark svg { color: var(--yellow); opacity: 0.7; }

ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

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

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--grey { background: var(--grey-light); }
.section--dark { background: var(--ink); color: #D8D8DC; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  background: rgba(255,199,44,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(255,199,44,0.35);
}
.btn--primary:hover { background: var(--yellow-dark); }
.btn svg { width: 16px; height: 16px; }

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #C9C9CE;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #C9C9CE; }
.topbar a:hover { color: var(--yellow); }
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact svg { width: 14px; height: 14px; }
.topbar__social { display: flex; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
}
.logo__badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo__badge svg { width: 26px; height: 26px; }
.logo__mark { width: 20px; height: auto; display: block; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: 1.15rem; }
.logo__text span { font-size: 0.7rem; font-weight: 500; color: var(--grey); letter-spacing: 0.04em; text-transform: uppercase; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links > li { position: relative; }
.nav__links > li > a {
  display: block;
  padding: 9px 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-radius: 8px;
  white-space: nowrap;
}
.nav__links > li > a:hover,
.nav__links > li.is-active > a { color: var(--ink); background: var(--grey-light); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 260px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.nav__links > li:hover .nav__dropdown,
.nav__links > li:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.nav__dropdown a:hover { background: var(--grey-light); color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.2s ease;
}

/* ---------- Hero (Startseite, mit Bild/Video-Banner) ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero--media {
  background: var(--ink);
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,15,17,0.92) 0%, rgba(15,15,17,0.74) 32%, rgba(15,15,17,0.4) 60%, rgba(15,15,17,0.12) 100%);
}
.hero__media-tag {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1;
  background: rgba(15,15,17,0.6);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.hero--media .container {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 90px;
}
.hero__content { max-width: 620px; }
.hero__content .eyebrow { background: rgba(255,199,44,0.2); }
.hero__content h1 { color: var(--white); }
.hero__content p { color: #E4E4E8; }
.hero__stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--white);
}
.hero__stat span { font-size: 0.82rem; color: #C9C9CE; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 44px;
}
.page-hero .eyebrow { background: rgba(255,199,44,0.18); }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.breadcrumbs { font-size: 0.85rem; color: #B7B7BE; margin-bottom: 16px; }
.breadcrumbs a { color: #B7B7BE; }
.breadcrumbs a:hover { color: var(--yellow); }
.page-hero p.lead { max-width: 640px; color: #C9C9CE; font-size: 1.05rem; }

/* ---------- Cards / Grids ---------- */
.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); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grey-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card--yellow { background: var(--yellow); border-color: var(--yellow-dark); }
.card--yellow .card__icon { background: rgba(26,26,29,0.08); }

.class-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-head);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grey-light);
  color: var(--ink-soft);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--grey); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--grey-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.team-card__photo svg { width: 40%; height: 40%; color: var(--grey); }
.team-card span { color: var(--yellow-dark); font-weight: 600; font-size: 0.85rem; font-family: var(--font-head); }

/* ---------- Pricing / info table ---------- */
.info-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.info-table th {
  font-family: var(--font-head);
  background: var(--grey-light);
  color: var(--ink);
}
.info-table tr:last-child td { border-bottom: none; }

.price-box {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
}
.price-box strong { color: var(--yellow); font-family: var(--font-head); font-size: 2rem; display:block; margin-bottom: 6px;}
.price-box p { color: #C9C9CE; margin-bottom: 0; }
.price-box--placeholder { border: 2px dashed var(--yellow); }

/* ---------- Detaillierte Preistabellen (echte Preise) ---------- */
.price-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.price-detail h3 { margin-bottom: 4px; }
.price-detail__rows { list-style: none; margin: 14px 0 0; padding: 0; }
.price-detail__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.price-detail__rows li:last-child { border-bottom: none; }
.price-detail__rows li.total {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 12px;
  margin-bottom: 2px;
}
.price-detail__extern {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price-detail__extern .price-detail__rows li { font-size: 0.82rem; color: var(--grey); }
.price-detail__extern-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); margin-bottom: 4px; }
.price-detail__note { margin: 12px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.price-detail__foot { margin-top: 14px; font-size: 0.74rem; color: var(--grey); }
.price-box__label {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.price-box__class { display: block; font-family: var(--font-head); font-size: 0.92rem; color: #C9C9CE; margin-bottom: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--ink-soft); }
.cta-band > div { min-width: 0; max-width: 100%; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--yellow-dark); }

.form {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 32px;
}
.form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 18px;
  background: var(--white);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--yellow-dark);
}
.form .form__note { font-size: 0.8rem; color: var(--grey); margin-top: -6px; }
.form input[type="checkbox"], .form input[type="radio"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  accent-color: var(--yellow-dark);
  flex-shrink: 0;
}
.form table input[type="checkbox"] { margin-bottom: 0; }
.bkf-check-cell { text-align: center; }
.form input[type="range"].calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  padding: 0;
  margin: 4px 0 22px;
  border: none;
  border-radius: 999px;
  background: var(--line);
  accent-color: var(--yellow-dark);
}
.form input[type="range"].calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow-dark);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--yellow-dark);
  cursor: pointer;
}
.form input[type="range"].calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow-dark);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--yellow-dark);
  cursor: pointer;
}
.form input[type="range"].calc-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}
.calc-slider-value {
  display: inline-block;
  min-width: 2.2em;
  text-align: center;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  padding: 1px 8px;
  font-family: var(--font-head);
}
.anmelde-table td:first-child, .anmelde-table th:first-child {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  padding-left: 10px;
  padding-right: 10px;
}
.anmelde-table td:nth-child(2), .anmelde-table th:nth-child(2) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  padding-left: 10px;
  padding-right: 10px;
}
@media (max-width: 480px) {
  .anmelde-table th, .anmelde-table td { padding: 12px 8px; font-size: 0.84rem; }
}
.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;
}
.info-table label {
  display: inline;
  font-family: inherit;
  font-weight: 400;
  font-size: inherit;
  color: inherit;
  margin-bottom: 0;
  cursor: pointer;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 340px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  background: var(--grey-light);
}
.map-embed__placeholder svg { width: 30px; height: 30px; color: var(--yellow-dark); }
.map-embed__placeholder .form__note { max-width: 320px; margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #B7B7BE;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--yellow); }
.footer-logo { display: flex; align-items: center; margin-bottom: 14px; }
.footer-logo__img { height: 44px; width: auto; display: block; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--yellow); color: var(--ink); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Notice / placeholder ---------- */
.notice {
  border: 1px dashed var(--yellow-dark);
  background: #FFFBEF;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq-item__toggle { width: 20px; height: 20px; flex-shrink: 0; color: var(--yellow-dark); transition: transform 0.2s ease; }
.faq-item__toggle svg { width: 20px; height: 20px; }
.faq-item.is-open .faq-item__toggle { transform: rotate(90deg); }
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-item__answer > div { overflow: hidden; }
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer p { color: var(--grey); padding-bottom: 20px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-card__stars { color: var(--yellow-dark); letter-spacing: 2px; font-size: 0.95rem; }
.testimonial-card__text { margin: 0; color: var(--ink-soft); font-style: italic; }
.testimonial-card__author { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink); }

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 95;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: #D8D8DC;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 320px; font-size: 0.86rem; line-height: 1.5; }
.cookie-banner__text a { color: var(--yellow); text-decoration: underline; }
.cookie-banner__actions { flex-shrink: 0; }
@media (max-width: 480px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-banner__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- WhatsApp button ---------- */
.whatsapp-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.whatsapp-fab svg { width: 28px; height: 28px; }
.whatsapp-fab:hover { filter: brightness(1.05); }
.whatsapp-fab { transition: bottom 0.2s ease; }
body.has-cookie-banner .whatsapp-fab { bottom: 96px; }
@media (max-width: 480px) {
  body.has-cookie-banner .whatsapp-fab { bottom: 150px; }
}

/* ---------- Ratgeber / Blog ---------- */
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card__body { padding: 22px; }
.article-card__meta { font-size: 0.78rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.article-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.article-card p { color: var(--grey); font-size: 0.92rem; }
.article-body { max-width: 720px; }
.article-body p { margin-bottom: 18px; }
.article-body h2 { margin-top: 36px; margin-bottom: 14px; }
.article-body ul { margin: 0 0 18px 20px; color: var(--ink-soft); }

/* ---------- Real photos ---------- */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--grey-light);
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 26px 18px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
}

.photo-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.photo-card .photo { border-radius: 0; box-shadow: none; aspect-ratio: 4/3; }
.photo-card__body { padding: 18px 20px; }
.photo-card__body h3 { margin-bottom: 4px; font-size: 1.05rem; }
.photo-card__body p { margin: 0; color: var(--grey); font-size: 0.88rem; }

.category-banner { aspect-ratio: 21/7; margin-bottom: 24px; }

.highlight-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--ink);
  color: #D8D8DC;
  border-radius: var(--radius);
  padding: 26px 28px;
}
.highlight-box__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.highlight-box h3 { color: var(--white); margin-bottom: 6px; font-size: 1.05rem; }
.highlight-box p { margin: 0; font-size: 0.92rem; color: #C9C9CE; }

/* ---------- Legal pages ---------- */
.legal h2 { margin-top: 2em; }
.legal { max-width: 820px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero--media { min-height: 480px; }
  .hero--media .container { padding-top: 56px; padding-bottom: 56px; }
  .hero__media-tag { left: 18px; right: 18px; top: 12px; text-align: center; }
}

/* Nav klappt schon ab 1100px auf Hamburger um, damit die zwei zusätzlichen
   Menüpunkte (Ratgeber, Häufige Fragen) auf schmaleren Laptop-Bildschirmen
   nicht mit den Kontakt-/Anrufen-Buttons kollidieren. */
@media (max-width: 1160px) {
  .nav__links, .nav__cta .btn--outline { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; }
  .nav.is-open li.is-open .nav__dropdown { display: block; }
}

@media (max-width: 760px) {
  .topbar .container { justify-content: center; text-align: center; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Sehr schmale Displays (z.B. ältere/kleinere Android-Handys ab 360px):
   Logo, Anrufen-Button und Hamburger-Menü kompakter, damit nichts umbricht. */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .nav { gap: 8px; }
  .nav__cta .btn--primary { padding: 10px 14px; font-size: 0.85rem; }
  .logo__badge { width: 38px; height: 38px; }
  .logo__text { font-size: 0.82rem; }
}

@media (max-width: 345px) {
  .container { padding: 0 10px; }
  .nav { gap: 4px; }
  .nav__cta .btn--primary { padding: 8px 10px; font-size: 0.78rem; }
  .nav__cta .btn--primary svg { width: 13px; height: 13px; }
  .logo__badge { width: 32px; height: 32px; }
  .logo__badge svg { width: 18px; height: 18px; }
  .logo__mark { width: 15px; }
  .logo__text { font-size: 0.72rem; }
  .nav__toggle { padding: 6px; }
  .nav__toggle span { width: 20px; }
}

/* ---------- Scroll-Animationen ----------
   Nur aktiv, wenn JavaScript läuft und im Gerät nicht "Bewegung reduzieren" eingestellt ist
   (Klasse .motion wird im <head> gesetzt, .reveal vergibt assets/js/main.js).
   Überschriften und Karten blenden beim Runterscrollen ein und beim Hochscrollen wieder aus. */
.motion .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s ease, translate 0.8s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.motion .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  transition: opacity 1.2s ease var(--reveal-delay, 0s),
              translate 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s),
              box-shadow 0.15s ease, transform 0.15s ease;
}
/* Überschriften etwas kürzerer Weg, Karten etwas längerer */
.motion .reveal--head { translate: 0 18px; }
.motion .reveal--head.is-visible { translate: 0 0; }

/* Kopfbereich: kurzer Auftritt beim Laden, danach bleibt er stehen */
@keyframes szesny-fade-up {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: 0 0; }
}
.motion .hero__content > *,
.motion .page-hero .container > * {
  animation: szesny-fade-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.motion .hero__content > *:nth-child(2),
.motion .page-hero .container > *:nth-child(2) { animation-delay: 0.08s; }
.motion .hero__content > *:nth-child(3),
.motion .page-hero .container > *:nth-child(3) { animation-delay: 0.16s; }
.motion .hero__content > *:nth-child(4),
.motion .page-hero .container > *:nth-child(4) { animation-delay: 0.24s; }
.motion .hero__content > *:nth-child(n+5),
.motion .page-hero .container > *:nth-child(n+5) { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal, .motion .reveal.is-visible { opacity: 1; translate: none; transition: none; }
  .motion .hero__content > *, .motion .page-hero .container > * { animation: none; }
}
@media print {
  .motion .reveal { opacity: 1 !important; translate: none !important; }
}

/* ---------- Google-Bewertungen (Sterne-Badge + Buttons) ---------- */
.rating-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.rating-block__stars { color: var(--yellow-dark); font-size: 1.3rem; letter-spacing: 2px; }
.rating-block__btn { padding: 10px 20px; font-size: 0.9rem; }
.rating-block__btn svg { width: 16px; height: 16px; }

/* ---------- Rechenbeispiel: Einleitung + "Sonderfahrten inklusive"-Kasten ---------- */
.calc-intro { font-size: 0.92rem; color: var(--ink-soft); margin: -6px 0 20px; }
.calc-included {
  display: flex; align-items: center; gap: 16px;
  background: var(--yellow); color: var(--ink);
  border-radius: 12px; padding: 16px 18px; margin: 6px 0 20px;
}
.calc-included__num {
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1;
  background: var(--ink); color: var(--yellow);
  min-width: 68px; height: 68px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.calc-included__text { display: flex; flex-direction: column; gap: 3px; font-size: 0.86rem; line-height: 1.4; }
.calc-included__text strong { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.25; }
.calc-included__detail { font-weight: 600; }
@media (max-width: 400px) {
  .calc-included { gap: 12px; padding: 14px; }
  .calc-included__num { min-width: 56px; height: 56px; font-size: 2rem; }
}

/* ---------- Kopfzeile: "Kontakt" nur im Handy-Menü (am Computer reicht der Button) ---------- */
@media (min-width: 1161px) { .nav__links .nav__mobile-only { display: none; } }

/* ---------- Verlinkte Foto-Karten (Über uns -> Fahrzeuge) ---------- */
.photo-card--link { display: block; color: inherit; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.photo-card--link:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

/* ---------- Seite "Unsere Fahrzeuge" ---------- */
.fleet-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.fleet-intro { max-width: 640px; color: var(--grey); margin-bottom: 32px; }
.vehicle-list { display: flex; flex-direction: column; gap: 28px; }
.vehicle {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  scroll-margin-top: 110px;
}
.vehicle:nth-child(even) .vehicle__media { order: 2; }
.vehicle__media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vehicle__photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--grey-light); }
.vehicle__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle__photo--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--line); color: var(--grey); font-size: 0.85rem;
}
.vehicle__photo--empty svg { width: 44px; height: 44px; }
.vehicle__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vehicle__thumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.vehicle__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle__body { min-width: 0; padding: 8px 12px 8px 0; }
.vehicle:nth-child(even) .vehicle__body { padding: 8px 0 8px 12px; }
.vehicle__body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.vehicle__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.vehicle__facts > div { background: var(--grey-light); border-radius: 10px; padding: 8px 14px; }
.vehicle__facts dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); }
.vehicle__facts dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.vehicle__facts dd.vehicle__todo { font-family: var(--font-body); font-weight: 400; font-style: italic; color: var(--grey); }
.vehicle__badge {
  display: inline-block; margin-top: 16px; font-size: 0.72rem; font-weight: 600;
  border: 1px dashed var(--yellow-dark); background: #FFFBEF; color: var(--ink-soft);
  border-radius: 999px; padding: 4px 12px;
}
section[id] { scroll-margin-top: 90px; }
@media (max-width: 760px) {
  .vehicle { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
  .vehicle:nth-child(even) .vehicle__media { order: 0; }
  .vehicle__body, .vehicle:nth-child(even) .vehicle__body { padding: 0 4px 6px; }
  .vehicle__body h3 { font-size: 1.3rem; }
}

/* ---------- BKF: vergangene Termine (automatisch ausgegraut und eingeklappt) ---------- */
.bkf-past { margin-top: 14px; max-width: 560px; }
.bkf-past summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--grey); padding: 8px 0; }
.bkf-past summary:hover { color: var(--ink); }
.bkf-past table { margin-top: 6px; }
tr.is-past td, tr.is-past label { color: #A9A9AF; text-decoration: line-through; cursor: default; }
tr.is-past .bkf-check { opacity: 0.4; cursor: not-allowed; }

/* ---------- Logo-Schriftzug "Fahrschule Aller Klassen / Andreas Szesny · Dorsten" ----------
   Bricht nur zwischen "Fahrschule" und "Aller Klassen" um; auf dem Handy kompakter. */
.logo__text strong b { font-weight: inherit; white-space: nowrap; }
.logo__text > span { white-space: nowrap; }
.logo__text > span i { font-style: normal; }
@media (min-width: 1161px) { .logo__text strong { white-space: nowrap; } }
@media (min-width: 1161px) and (max-width: 1260px) { .logo__text strong { font-size: 1rem; } .nav { gap: 14px; } }
@media (max-width: 600px) {
  .logo__text strong { font-size: 1rem; line-height: 1.1; }
  .logo__text > span { font-size: 0.62rem; margin-top: 2px; }
}
@media (max-width: 400px) {
  .logo__text strong { font-size: 0.92rem; }
  .logo__text > span i { display: none; }
}
@media (max-width: 345px) { .logo__text strong { font-size: 0.84rem; } }
@media (min-width: 401px) and (max-width: 480px) {
  .nav { gap: 10px; }
  .nav__cta .btn--primary { padding: 10px 15px; font-size: 0.86rem; }
  .logo__badge { width: 40px; height: 40px; }
  .logo__text > span i { display: none; }
}
@media (max-width: 480px) { .site-header .nav { padding-top: 8px; padding-bottom: 8px; } }

/* ---------- Seite "Aktuelles" ---------- */
.news-list { display: flex; flex-direction: column; gap: 28px; max-width: 860px; }
.news { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; scroll-margin-top: 110px; }
.news[hidden], .article-card[hidden] { display: none; }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.82rem; color: var(--grey); }
.news__art {
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--grey-light); color: var(--ink); border-radius: 999px; padding: 5px 12px;
}
.news__art--angebot { background: var(--yellow); }
.news__until { font-weight: 600; color: var(--ink); }
.news h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; }
.news p { margin-bottom: 12px; }
.news__gallery { display: grid; gap: 10px; margin-top: 18px; }
.news__gallery--1 { grid-template-columns: 1fr; }
.news__gallery--2 { grid-template-columns: repeat(2, 1fr); }
.news__gallery--3 { grid-template-columns: repeat(3, 1fr); }
.news__photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--grey-light); }
.news__gallery--1 .news__photo { aspect-ratio: 16 / 9; }
.news__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news__photo--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--line); color: var(--grey); font-size: 0.85rem; aspect-ratio: 16 / 6 !important;
}
.news__photo--empty svg { width: 40px; height: 40px; }
@media (max-width: 600px) {
  .news { padding: 20px; }
  .news__gallery--3 { grid-template-columns: repeat(2, 1fr); }
}
.news__gallery--hoch .news__photo { aspect-ratio: 4 / 5; }
.news__gallery--hoch .news__photo img { object-position: center 30%; }
.article-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--grey-light); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
/* Querformat-Foto in der Galerie: belegt zwei Felder nebeneinander */
.news__gallery .news__photo--breit { grid-column: span 2; aspect-ratio: auto; position: relative; min-height: 180px; }
.news__gallery .news__photo--breit img { position: absolute; inset: 0; object-position: center; }
@media (max-width: 600px) { .news__gallery .news__photo--breit { aspect-ratio: 16 / 9; min-height: 0; } }

/* ---------- Aktuelles: kleine Foto-Kacheln + Großansicht (überschreibt die großen Galerie-Varianten oben) ---------- */
.news__gallery, .news__gallery--1, .news__gallery--2, .news__gallery--3 {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-width: 700px;
}
.news__gallery .news__photo, .news__gallery--hoch .news__photo, .news__gallery--1 .news__photo, .news__gallery .news__photo--breit {
  aspect-ratio: 1; grid-column: auto; position: static; min-height: 0;
  border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news__gallery .news__photo img { position: static; object-position: center 30%; }
.news__gallery button.news__photo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news__gallery button.news__photo:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.news__gallery .news__photo--empty { aspect-ratio: 16 / 6 !important; grid-column: 1 / -1; cursor: default; display: flex; }
@media (max-width: 600px) {
  .news__gallery, .news__gallery--1, .news__gallery--2, .news__gallery--3 { grid-template-columns: repeat(3, 1fr); }
}
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,15,17,0.92);
  display: flex; align-items: center; justify-content: center; padding: 56px 16px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: var(--yellow); color: var(--ink); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 10px; top: 50%; margin-top: -22px; }
.lightbox__nav--next { right: 10px; top: 50%; margin-top: -22px; }
.lightbox--single .lightbox__nav { display: none; }
