/* ==========================================================
   Busbetrieb Weigt – Stylesheet
   Alle Schriften lokal (Ordner /fonts), keine externen Ressourcen
   ========================================================== */

/* ---------- Schriften ---------- */
@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: italic; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-italic.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"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }

/* ---------- Farben & Grundwerte ---------- */
:root {
  --blau: #1a4f9c;
  --blau-dunkel: #0f2f5c;
  --blau-text: #2b4a73;
  --gold: #f0a81c;
  --gold-text: #805704;
  --text: #1d2228;
  --text-hell: #5a6470;
  --grau-bg: #f2f4f7;
  --anthrazit: #1d2228;
  --weiss: #ffffff;
  --radius: 10px;
  --schatten: 0 2px 12px rgba(15, 47, 92, .08);
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; } /* Platz für die feste Kopfleiste */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
}

img { max-width: 100%; display: block; }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; scroll-margin-top: 0; }
.section--grau { background: var(--grau-bg); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blau); color: var(--weiss); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.kicker {
  margin: 0 0 8px;
  font-family: var(--font-head); font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-text);
}
.section-title { font-size: clamp(32px, 4vw, 44px); color: var(--blau-dunkel); margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 6px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; font-size: 17px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--text); }
.btn--gold:hover { background: #ffbd3a; color: var(--text); }
.btn--outline-hell { border-color: rgba(255,255,255,.7); color: var(--weiss); }
.btn--outline-hell:hover { background: rgba(255,255,255,.12); color: var(--weiss); }
.btn--blau { background: var(--blau); color: var(--weiss); }
.btn--blau:hover { background: var(--blau-dunkel); color: var(--weiss); }
.btn--outline { border-color: var(--blau); color: var(--blau); }
.btn--outline:hover { background: var(--blau); color: var(--weiss); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header mit Schriftzug und Streifen ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  overflow: hidden;
  background: var(--weiss);
  border-bottom: 4px solid var(--gold);
  transition: box-shadow .2s;
}
/* Kompakte Leiste beim Scrollen */
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(15, 47, 92, .15); }
.site-header.is-scrolled .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-scrolled .logo__name { font-size: 44px; }
.site-header.is-scrolled .logo__sub { font-size: 15px; }
.site-header.is-scrolled .site-header__streifen { top: -40px; }
.site-header__inner, .logo__name, .logo__sub, .site-header__streifen { transition: all .2s; }
@media (prefers-reduced-motion: reduce) {
  .site-header__inner, .logo__name, .logo__sub, .site-header__streifen { transition: none; }
}
.site-header__streifen {
  position: absolute; left: 50%; top: -6px;
  width: 760px; max-width: none; height: auto;
  margin-left: -370px;
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
}

.logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo__name {
  font-family: var(--font-head); font-style: italic; font-weight: 800;
  font-size: 64px; letter-spacing: 1px;
  color: var(--blau);
  background: linear-gradient(180deg, #8fbbe8 0%, #2a6cb8 45%, #0f3c78 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 3px 2px rgba(0,0,0,.25));
}
.logo__sub {
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: 20px; color: var(--blau-text); margin-top: 2px;
}

.nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92);
  border-radius: 999px; padding: 6px 8px;
  box-shadow: 0 2px 10px rgba(15,47,92,.12);
}
.nav a {
  padding: 10px 14px; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 600;
}
.nav a:hover { background: var(--grau-bg); color: var(--blau-dunkel); }
.nav a.nav__cta { background: var(--blau); color: var(--weiss); padding: 10px 18px; }
.nav a.nav__cta:hover { background: var(--blau-dunkel); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 8px;
  background: var(--blau); color: var(--weiss); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile Navigation (nur mit JavaScript eingeklappt) */
@media (max-width: 860px) {
  .site-header__streifen { left: auto; right: -260px; margin-left: 0; }
  .logo__name { font-size: 52px; }
  .logo__sub { font-size: 17px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; width: 100%;
    flex-direction: column; align-items: stretch;
    border-radius: var(--radius); padding: 8px;
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { border-radius: 6px; padding: 12px 14px; }
}

/* ---------- Hero / Kollage ---------- */
.hero { background: var(--blau-dunkel); color: var(--weiss); }
.hero__inner { padding-top: 56px; padding-bottom: 64px; }
.hero__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 36px;
}
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__kicker {
  margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 20px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
}
.hero h1 { font-size: clamp(40px, 5.2vw, 60px); line-height: 1.02; }
.hero__lead { margin: 18px 0 0; max-width: 600px; font-size: 20px; color: #e8eef6; }

.kollage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 12px;
}
.kollage img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.kollage__gross { grid-column: span 2; grid-row: span 2; }
.kollage__breit { grid-column: span 2; }

@media (max-width: 860px) {
  .kollage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
}
@media (max-width: 520px) {
  .kollage { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .kollage__gross, .kollage__breit { grid-column: auto; grid-row: auto; }
}

/* ---------- Kennzahlen ---------- */
.zahlen { background: var(--blau); color: var(--weiss); }
.zahlen__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  padding-top: 28px; padding-bottom: 28px;
  margin: 0 auto; list-style: none;
}
.zahlen__wert { display: block; font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--gold); }
.zahlen__label { display: block; font-size: 15px; color: #dbe6f4; }

/* ---------- Unternehmen ---------- */
.zweispaltig { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.zweispaltig__text { flex: 1 1 440px; min-width: 0; }
.zweispaltig__bild { flex: 1 1 520px; min-width: 0; position: relative; }
.zweispaltig__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 1; }
.zweispaltig__bild::before {
  content: ""; position: absolute; left: -16px; bottom: -16px;
  width: 120px; height: 120px; border-radius: var(--radius); background: var(--gold);
}
.zweispaltig__text p { margin: 0 0 16px; }
.signatur { font-weight: 600; color: var(--blau-text); margin-top: 24px !important; }

/* ---------- Leistungen ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 20px; }
.karte { background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.karte img { width: 100%; height: 190px; object-fit: cover; }
.karte__body { padding: 22px 22px 26px; }
.karte h3 { font-size: 26px; color: var(--blau-dunkel); margin-bottom: 8px; }
.karte p { margin: 0; font-size: 16px; }

.sicherheit {
  margin-top: 48px; background: var(--blau-dunkel); color: var(--weiss);
  border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.sicherheit h3 { flex: 1 1 280px; font-size: 32px; }
.sicherheit ul {
  flex: 2 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
  color: #dbe6f4; font-size: 16px;
}
.sicherheit li { border-top: 3px solid var(--gold); padding-top: 10px; }

/* ---------- Flotte / Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.galerie a { display: block; border-radius: 8px; overflow: hidden; }
.galerie img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.03); }

/* Lightbox (dialog) */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(10, 18, 30, .92); }
.lightbox__figure {
  margin: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 72px;
}
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 6px; }
.lightbox__figure figcaption { color: #dbe6f4; margin-top: 12px; text-align: center; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: var(--weiss);
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__figure { padding: 72px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* ---------- Kontakt ---------- */
.kontakt { display: flex; flex-wrap: wrap; gap: 48px; }
.kontakt__text { flex: 1 1 380px; min-width: 0; }
.kontakt__text > p { margin: 0 0 28px; }
.kontakt__box {
  flex: 1 1 440px; min-width: 0;
  background: var(--weiss); border-radius: var(--radius); padding: 32px; box-shadow: var(--schatten);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  font-size: 16px; font-style: normal;
}
.kontakt__box h3 {
  font-family: var(--font-text); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-hell); margin-bottom: 6px;
}
.kontakt__box p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--anthrazit); color: #c9cfd6; font-size: 15px; }
.site-footer__main {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 36px; padding-bottom: 36px;
}
.site-footer__main p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--weiss); }
.site-footer a:hover { color: var(--gold); }
.copyright { border-top: 1px solid #343b44; }
.copyright .container { padding-top: 14px; padding-bottom: 14px; font-size: 13px; color: #9aa3ad; }
.copyright a { color: #c9cfd6; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.rechtstext { max-width: 820px; }
.rechtstext h1 { font-size: clamp(36px, 5vw, 48px); color: var(--blau-dunkel); margin-bottom: 32px; }
.rechtstext h2 { font-size: 28px; color: var(--blau-dunkel); margin: 40px 0 12px; }
.rechtstext h3 { font-family: var(--font-text); font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.rechtstext p, .rechtstext ul { margin: 0 0 14px; }
.rechtstext ul { padding-left: 22px; }
.rechtstext address { font-style: normal; margin: 0 0 14px; }
.stand { color: var(--text-hell); font-size: 15px; margin-top: 40px !important; }
.zurueck { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ---------- Druck ---------- */
@media print {
  .site-header__streifen, .nav, .nav-toggle, .btn-row, .lightbox { display: none !important; }
  .hero, .zahlen, .sicherheit, .site-footer { background: none !important; color: #000 !important; }
  .section { padding: 24px 0; }
}

/* ---------- Windows-Kontrastmodus: Schriftzug ohne Farbverlauf ---------- */
@media (forced-colors: active) {
  .logo__name {
    background: none;
    color: LinkText;
    -webkit-text-fill-color: currentColor;
    filter: none;
  }
}
