/* =========================================================
   Bieler Fahrschule – Stylesheet
   Mobile first: Grundstyles für Handy, Erweiterungen weiter unten
   ========================================================= */

/* ---------- Farben & Grundwerte (hier zentral anpassen) ---------- */
:root {
  --akzent: #362e87;        /* einzige Akzentfarbe – Blau aus dem Logo */
  --akzent-dunkel: #2b2475;
  --akzent-hell: #f1f0fa;
  --text: #16151d;
  --text-grau: #5f5e6b;
  --linie: #e8e7ef;
  --flaeche: #f7f7f9;       /* sanfte graue Fläche */
  --weiss: #ffffff;
  --whatsapp: #25d366;

  --radius: 24px;
  --radius-klein: 14px;
  --schatten: 0 1px 2px rgba(22, 21, 29, 0.04), 0 8px 30px rgba(22, 21, 29, 0.06);
  --schatten-hover: 0 2px 4px rgba(22, 21, 29, 0.05), 0 20px 50px rgba(58, 49, 145, 0.14);
  --uebergang: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Schrift (lokal gespeichert, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2");
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px; /* Platz für fixierten Button auf dem Handy */
}

img { max-width: 100%; display: block; }
a { color: var(--akzent); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}
/* Grosse Überschriften: schmalere Schrift */
h1, h2 {
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500; /* Medium; 400 war zu dünn, 600/700 zu fett */
  letter-spacing: -0.01em;
  line-height: 1.02;
}
h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); }
h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.accent { color: var(--akzent); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: 1rem;
}

.lead { font-size: 1.15rem; color: var(--text-grau); max-width: 38em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  min-height: 52px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--uebergang), box-shadow var(--uebergang), background var(--uebergang), color var(--uebergang);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--akzent); color: var(--weiss); box-shadow: 0 10px 30px rgba(58, 49, 145, 0.35); }
.btn--primary:hover { background: var(--akzent-dunkel); box-shadow: 0 14px 40px rgba(58, 49, 145, 0.45); }

.btn--big { padding: 20px 34px; font-size: 1.1rem; min-height: 62px; }
.btn--small { padding: 10px 20px; min-height: 44px; font-size: 0.95rem; box-shadow: none; }
.btn--block { width: 100%; }

.btn--outline { border-color: var(--linie); color: var(--text); background: var(--weiss); }
.btn--outline:hover { border-color: var(--akzent); color: var(--akzent); }

.btn--white { background: var(--weiss); color: var(--akzent); }

.btn--whatsapp { background: var(--whatsapp); color: var(--weiss); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); }
.btn__wa { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

.btn__arrow { display: inline-block; transition: transform var(--uebergang); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.5rem; }

.link-arrow { font-weight: 700; text-decoration: none; color: var(--akzent); }
.link-arrow span { display: inline-block; transition: transform var(--uebergang); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Kopfzeile ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--uebergang);
}
.header.scrolled { border-bottom-color: var(--linie); }

.header__inner { display: flex; align-items: center; gap: 12px; height: 72px; }
.header__logo { margin-right: auto; }
.header__logo img { height: 40px; width: auto; }
.header__cta { display: none; }

/* Menü-Button (Hamburger) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 12px;
  cursor: pointer;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--uebergang); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigation – Handy: ausklappbar */
.nav {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  padding: 8px 20px 24px;
  border-bottom: 1px solid var(--linie);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--uebergang), transform var(--uebergang), visibility var(--uebergang);
}
.nav.open { opacity: 1; visibility: visible; transform: none; }

.nav a {
  padding: 14px 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--linie);
}
.nav a:last-child { border-bottom: none; }
.nav a.active { color: var(--akzent); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 72px; }
.hero__inner { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }

.check-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-grau); font-size: 0.95rem; }
.check-inline li::before { content: "✓"; color: var(--akzent); font-weight: 800; margin-right: 6px; }

/* ---------- Platzhalter für Fotos ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--akzent-hell);
  border: 2px dashed rgba(58, 49, 145, 0.35);
  border-radius: var(--radius);
  color: var(--akzent);
  font-weight: 700;
}
.placeholder small { font-weight: 400; opacity: 0.7; }
.placeholder--hero { aspect-ratio: 4 / 3.4; border-radius: 32px; }
.placeholder--portrait { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; }

/* ---------- Sektionen ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--flaeche); }

.section__head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.section__head .lead { margin: 0 auto; }

/* ---------- Raster ---------- */
.grid { display: grid; gap: 20px; }

/* ---------- Vorteile ---------- */
.feature {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--weiss);
  border: 1px solid var(--linie);
  transition: transform var(--uebergang), box-shadow var(--uebergang), border-color var(--uebergang);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--schatten-hover); border-color: transparent; }
.feature p { color: var(--text-grau); margin: 0; }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--akzent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--weiss); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Preiskarten ---------- */
.pricing { align-items: stretch; }
/* Zwei Preiskarten: auf grossen Bildschirmen nicht zu breit */
.grid--2.pricing { max-width: 820px; margin-inline: auto; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 32px;
  border-radius: var(--radius);
  background: var(--weiss);
  box-shadow: var(--schatten);
  transition: transform var(--uebergang), box-shadow var(--uebergang);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--schatten-hover); }

.price-card__price { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 6px; }
.price-card__price s { font-size: 1.3rem; font-weight: 600; opacity: 0.5; margin-right: 6px; vertical-align: middle; }
.price-card__sub { color: var(--text-grau); font-size: 0.95rem; }
.price-card .btn { margin-top: auto; }

.price-card--featured { background: var(--akzent); color: var(--weiss); }
.price-card--featured .price-card__sub,
.price-card--featured .checklist li { color: rgba(255, 255, 255, 0.85); }
.price-card--featured .checklist li::before { background: var(--weiss); color: var(--akzent); }

.price-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--weiss);
  color: var(--akzent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.checklist { list-style: none; padding: 0; margin: 20px 0 32px; }
.checklist li { display: flex; gap: 12px; padding: 7px 0; color: var(--text-grau); }
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--akzent-hell);
  color: var(--akzent);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.note { text-align: center; color: var(--text-grau); margin-top: 32px; }

/* ---------- Schritte ---------- */
.steps { list-style: none; counter-reset: schritt; padding: 0; margin: 0; }
.steps li {
  counter-increment: schritt;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--linie);
  font-size: 1.1rem;
}
.steps li::before {
  content: counter(schritt);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--linie);
  color: var(--text-grau);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li.step--me::before { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
.steps li.step--me { color: var(--akzent); }

/* Partner-Fahrschule */
.partner {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--akzent-hell);
}
.partner p { color: var(--text-grau); }
.partner__links { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.partner__note { font-size: 0.85rem; color: var(--text-grau); opacity: 0.85; margin-top: 10px !important; }

/* ---------- Über mich ---------- */
.about { display: grid; gap: 48px; align-items: center; }

/* ---------- Bewertungen ---------- */
.review {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
}
.review { margin: 0; display: flex; flex-direction: column; }
.review__stars { color: #f5b301; letter-spacing: 3px; font-size: 1.15rem; margin-bottom: 12px; }
.review blockquote { margin: 0 0 24px; color: var(--text); line-height: 1.6; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.review__author small { color: var(--text-grau); }
.review__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--akzent);
  color: var(--weiss);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn__google { width: 20px; height: 20px; }

/* ---------- Abschluss-CTA ---------- */
.cta {
  text-align: center;
  padding: 64px 24px;
  border-radius: 32px;
  background: var(--flaeche);
}
.cta .lead { margin: 0 auto 28px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--linie);
  background: var(--weiss);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--uebergang), color var(--uebergang), transform var(--uebergang);
}
.chip:hover { border-color: var(--akzent); color: var(--akzent); transform: translateY(-2px); }

/* ---------- Fusszeile ---------- */
.footer { border-top: 1px solid var(--linie); padding: 64px 0 24px; font-size: 0.95rem; color: var(--text-grau); }
.footer__grid { display: grid; gap: 36px; }
.footer__logo { height: 38px; width: auto; margin-bottom: 16px; }
.footer h4 { color: var(--text); font-size: 1rem; letter-spacing: 0; }
.footer__links { display: flex; flex-direction: column; gap: 6px; }
.footer__links a, .footer__bottom a { color: var(--text-grau); text-decoration: none; }
.footer__links a:hover, .footer__bottom a:hover { color: var(--akzent); }
.footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--linie); font-size: 0.85rem; }

/* ---------- Fixierter Buchen-Button (Handy) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linie);
}

/* =========================================================
   Unterseiten
   ========================================================= */

/* Seitentitel */
.page-hero { padding: 56px 0 64px; }
.page-hero h1 { margin-bottom: 0.4em; }

.section--tight { padding: 64px 0; }
.section--flush-top { padding-top: 0; }

/* Kostenübersicht */
.price-table {
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  overflow: hidden;
}
.price-table__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--linie);
}
.price-table__row:last-child { border-bottom: none; }
.price-table__row div { display: flex; flex-direction: column; }
.price-table__row span { color: var(--text-grau); font-size: 0.95rem; }
.price-table__row p { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.price-table__row--accent { background: var(--akzent-hell); }
.price-table__row--accent p { color: var(--akzent); }

/* Fragen (aufklappbar) */
.faq { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--akzent-hell);
  color: var(--akzent);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--uebergang), background var(--uebergang), color var(--uebergang);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--akzent); color: var(--weiss); }
.faq details p { color: var(--text-grau); padding-right: 48px; margin-bottom: 22px; }

/* ---------- Weg zum Führerausweis ---------- */

/* Zahlen-Kacheln */
.facts { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.fact { padding: 8px 0; }
.fact__number {
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--akzent);
  margin-bottom: 8px;
}
.fact p:last-child { color: var(--text-grau); margin: 0; }

/* Zeitleiste */
.timeline { list-style: none; counter-reset: schritt; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 23px;
  width: 2px;
  background: var(--linie);
}
.timeline__item {
  counter-increment: schritt;
  position: relative;
  padding: 0 0 48px 64px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--weiss);
  border: 2px solid var(--linie);
  color: var(--text-grau);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline__title { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: 6px 0 12px; }
.timeline__content p { color: var(--text-grau); }

/* Hervorgehobener Schritt (Fahrstunden) */
.timeline__item--me::before { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
.timeline__item--me .timeline__content {
  background: var(--akzent-hell);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: -6px;
}
.timeline__item--me .timeline__title { color: var(--akzent); }
.timeline__item--me .btn { margin-top: 4px; }

/* Kleine Hinweis-Etiketten */
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--flaeche);
  color: var(--text) !important;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
}
.tag--accent { background: var(--akzent); color: var(--weiss) !important; margin-bottom: 8px; }

/* ---------- Über mich ---------- */
.lead--big { font-size: 1.35rem; color: var(--text); }
.lead--center { margin-left: auto; margin-right: auto; }
.center-text { text-align: center; }
.center-text .chips { margin: 24px 0 0; }

.statement {
  margin: 0;
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--akzent);
}

/* ---------- FAQ-Seite ---------- */
.chips--left { justify-content: flex-start; margin: 28px 0 0; }
.faq-group { margin-bottom: 64px; scroll-margin-top: 96px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group__title { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 16px; }
.faq details a { font-weight: 600; }

/* ---------- Infos & News ---------- */
.news { display: grid; gap: 20px; }
.news__item { padding: 28px; border-radius: var(--radius); background: var(--akzent-hell); }
.news__item h3 { margin: 4px 0 10px; }
.news__item p { color: var(--text-grau); }
.news__item .link-arrow { display: inline-block; margin-top: 8px; }
.news__date { font-size: 0.85rem; font-weight: 600; color: var(--akzent) !important; margin: 0; }
.linklist__title { font-size: 1.15rem; margin: 32px 0 8px; }
.linklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linie); }
.linklist li { padding: 16px 0; border-bottom: 1px solid var(--linie); }
.linklist li > a { font-weight: 600; color: var(--text); text-decoration: none; }
.linklist li > a span { color: var(--akzent); }
.linklist li > a:hover { color: var(--akzent); }
.linklist p { color: var(--text-grau); margin: 4px 0 0; }

/* ---------- Kontakt-Seite ---------- */
.contact { display: grid; gap: 24px; align-items: start; }

.contact-form {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--schatten);
}
.contact-form h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }

.field { display: block; border: 0; padding: 0; margin: 0 0 22px; }
.field > span, .field legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }

.field input[type="text"], .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  padding: 14px 16px;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius-klein);
  background: var(--weiss);
  transition: border-color var(--uebergang), box-shadow var(--uebergang);
}
.field input[type="text"]:focus, .field textarea:focus {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 4px var(--akzent-hell);
}
.field textarea { resize: vertical; }

/* Auswahl als Buttons */
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--linie);
  font-weight: 600;
  transition: background var(--uebergang), border-color var(--uebergang), color var(--uebergang);
}
.choice label:hover span { border-color: var(--akzent); }
.choice input:checked + span { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--akzent-hell); }

.form-error { color: #c0262d; font-weight: 600; }
.form-hint { font-size: 0.85rem; color: var(--text-grau); text-align: center; margin: 14px 0 0; }

.contact-info { display: grid; gap: 16px; }
.info-card { background: var(--weiss); border-radius: var(--radius); padding: 28px; }
.info-card .icon { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px; }
.info-card .icon svg { width: 22px; height: 22px; }
.info-card p { color: var(--text-grau); }
.chips--tight { margin: 0; }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); color: var(--text-grau); }
.hours li:last-child { border-bottom: none; }
.hours strong { color: var(--text); }

/* Karte */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--akzent-hell);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__load {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}
.map__load .icon { margin: 0 0 8px; transition: transform var(--uebergang); }
.map__load:hover .icon { transform: translateY(-4px); }
.map__load strong { font-size: 1.15rem; color: var(--akzent); }
.map__load small { color: var(--text-grau); }

/* ---------- Impressum & Datenschutz ---------- */
.legal h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin: 48px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-grau); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal__stand { margin-top: 48px; font-size: 0.9rem; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; grid-auto-flow: dense; }
.gallery__item { margin: 0; }
.gallery__item img, .gallery__item .placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery__item img { cursor: zoom-in; transition: transform var(--uebergang), box-shadow var(--uebergang); }
.gallery__item img:hover { transform: scale(1.02); box-shadow: var(--schatten-hover); }
.gallery__item .placeholder { font-size: 0.9rem; }
.gallery__item figcaption { font-weight: 600; font-size: 0.95rem; padding: 10px 4px 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 14, 40, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-klein); }
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--weiss);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Fotos ---------- */
.hero__photo { position: relative; }
/* Wechselnde Fotos (Slider) */
.hero__slides {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 32px;
  overflow: hidden;
  background: var(--akzent-hell);
}
.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6s ease-out;
}
.hero__slides img.active { opacity: 1; transform: scale(1); }
.hero__badge {
  position: absolute;
  left: 16px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  border-radius: 999px;
  background: var(--weiss);
  box-shadow: var(--schatten-hover);
}
.hero__badge img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.hero__badge p { margin: 0; line-height: 1.25; display: flex; flex-direction: column; }
.hero__badge span { color: var(--text-grau); font-size: 0.9rem; }

.portrait {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  margin: 0 auto;
  box-shadow: 0 0 0 8px var(--weiss), var(--schatten-hover);
}
.photo-portrait {
  width: 100%;
  height: auto;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  margin: 0 auto;
}

/* Galerie mit echten Fotos: einheitliche Höhe, breite Fotos über 2 Spalten */
.gallery__item img { aspect-ratio: auto; height: clamp(200px, 28vw, 380px); object-position: center 35%; }
.gallery__item--wide { grid-column: span 2; }

/* ---------- Scroll-Animationen ----------
   Elemente mit .reveal gleiten sanft ein, sobald sie sichtbar werden.
   Nur aktiv, wenn JavaScript läuft (Klasse .js am <html>). */
.js .reveal {
  opacity: 0;
  translate: 0 28px;  /* eigene Eigenschaft, damit Hover-Effekte (transform) weiter funktionieren */
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0s),
              translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0s),
              transform var(--uebergang), box-shadow var(--uebergang), border-color var(--uebergang);
}
.js .reveal.visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* =========================================================
   Tablet (ab 640px)
   ========================================================= */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .partner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .partner p { margin: 0; }
  .partner .link-arrow { flex-shrink: 0; }
  .partner__links { flex-shrink: 0; margin-top: 0; }
}

/* =========================================================
   Desktop (ab 1000px)
   ========================================================= */
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }

  .menu-toggle { display: none; }
  .header__cta { display: inline-flex; }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-right: 12px;
  }
  .nav a { border: none; padding: 8px 12px; font-size: 0.95rem; color: var(--text-grau); }
  .nav a, .header__cta { white-space: nowrap; }
  .nav a:hover, .nav a.active { color: var(--text); }

  .section { padding: 140px 0; }
  .section__head { margin-bottom: 72px; }

  .hero { padding: 96px 0 140px; }
  .page-hero { padding: 96px 0 112px; }
  .section--tight { padding: 96px 0; }
  .section--flush-top { padding-top: 0; }
  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: 72px; }

  .grid { gap: 24px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .timeline__item { padding-left: 80px; }
  .timeline__item--me .timeline__content { padding: 32px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }

  .about { grid-template-columns: 420px 1fr; gap: 96px; }
  .about--hero { grid-template-columns: 1fr 400px; gap: 72px; }
  .contact { grid-template-columns: 1.4fr 1fr; gap: 32px; }
  .contact-form { padding: 48px; }
  .map { aspect-ratio: 21 / 9; }

  .cta { padding: 96px 48px; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Menü auf kleineren Computer-Bildschirmen etwas enger, damit alles auf eine Zeile passt */
@media (min-width: 1000px) and (max-width: 1199px) {
  .nav { gap: 0; margin-right: 6px; }
  .nav a { padding: 8px 7px; font-size: 0.88rem; }
}
