/* ==========================================================================
   MBH Transport – zentrales Stylesheet (style.css)
   Aufbau: 1) Variablen  2) Grund-Reset  3) Layout-Helfer  4) Header/Nav
           5) Buttons  6) Hero  7) Sektionen/Karten  8) Footer
           9) Animationen  10) Responsive (Mobile-Menü)
   ========================================================================== */

/* ---- 1) Farben & Werte zentral als CSS-Variablen (aus der Visitenkarte) ---- */
:root {
  --navy:      #16294D;  /* dunkel: Text & Header */
  --azur:      #1488CC;  /* Primär-Akzent: Buttons */
  --hellblau:  #4FB0E6;  /* sekundär: Verläufe */
  --weiss:     #FFFFFF;
  --bg-hell:   #F5F8FB;  /* heller Seitenhintergrund */

  --radius:    14px;     /* einheitliche runde Ecken */
  --schatten:  0 6px 24px rgba(22, 41, 77, .08);
  --schatten-hover: 0 14px 32px rgba(22, 41, 77, .16);
  --max:       1140px;   /* maximale Inhaltsbreite */
  /* System-Schriften: schnell, kein externer Server nötig (Ladezeit < 3s) */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- 2) Grund-Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }   /* sanftes Scrollen bei Anker-Links */

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--weiss);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--azur); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

/* ---- 3) Layout-Helfer ---- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section   { padding: 72px 0; }
.section--bg { background: var(--bg-hell); }
.section__intro { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__intro p { color: #43526e; margin-top: 12px; }

/* ---- 4) Header & Navigation (sticky) ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid #e7eef6;
  transition: padding .25s ease, box-shadow .25s ease;
}
.header__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* kompakter Zustand beim Scrollen (Klasse via main.js gesetzt) */
.header.is-compact { box-shadow: var(--schatten); }
.header.is-compact .header__inner { padding: 7px 20px; }
.header__logo img { height: 92px; transition: height .25s ease; }
.header.is-compact .header__logo img { height: 70px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--navy); font-weight: 600; }
.nav a:hover { color: var(--azur); text-decoration: none; }
.nav a.active { color: var(--azur); }

/* Burger-Knopf (nur Mobile sichtbar) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--navy); border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---- 5) Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--azur); color: var(--weiss); box-shadow: 0 6px 18px rgba(20,136,204,.35); }
.btn--primary:hover { background: #0f73b0; }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1ebe5a; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
/* farbige Icons in gleichen weißen Buttons (Hero) – Text bleibt navy */
.btn.ico-orange svg { color: #F07F00; }  /* Telefon */
.btn.ico-green  svg { color: #25D366; }  /* WhatsApp */
.btn.ico-red    svg { color: #EA4335; }  /* E-Mail */
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }

/* ---- 6) Hero (mit sanftem Navy→Azur-Verlauf) ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1b3d73 45%, var(--azur) 100%);
  color: var(--weiss);
  padding: 84px 0 92px;
  position: relative; overflow: hidden;
}
/* dezenter heller Lichtschein oben rechts */
.hero::after {
  content: ""; position: absolute; top: -120px; right: -120px; z-index: 1;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,176,230,.45), transparent 70%);
}

/* drei Fotos nebeneinander als Hintergrund (nur Startseite) */
.hero__strip { position: absolute; inset: 0; z-index: 0; display: flex; }
.hero__strip img { width: 33.3333%; height: 100%; object-fit: cover; }
/* dunkler Verlauf-Schleier über den Fotos, damit weiße Schrift gut lesbar bleibt */
.hero--photos::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(22,41,77,.90) 0%, rgba(27,61,115,.82) 45%, rgba(20,136,204,.78) 100%);
}

/* Inhalt liegt über Fotos und Schleier */
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p  { font-size: 1.15rem; margin-top: 18px; color: #e6f1fb; }
.hero__buttons { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero-Variante für Unterseiten (kompakter) */
.hero--sub { padding: 64px 0 70px; }
.hero--sub p { font-size: 1.08rem; }

/* ---- 7) Sektionen, Karten, Listen ---- */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--weiss); border: 1px solid #e7eef6; border-radius: 18px;
  padding: 40px 30px 34px; box-shadow: var(--schatten); text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--schatten-hover); } /* Hover-Lift */
/* großer, weicher Icon-Kreis (premium & seriös) */
.card__icon {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  background: radial-gradient(circle at 32% 28%, #eef6fd, #d6eafa);
  box-shadow: inset 0 0 0 1px rgba(20,136,204,.16), 0 10px 24px rgba(22,41,77,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}
/* Icon hebt sich beim Hover der Karte leicht und kräftiger an */
.card:hover .card__icon {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(20,136,204,.30), 0 16px 30px rgba(20,136,204,.22);
}
.card__icon svg { width: 44px; height: 44px; stroke: var(--azur); stroke-width: 1.9; fill: none; }
.card h3 { font-size: 1.3rem; }
.card p { color: #43526e; margin-top: 10px; }
.card__link {
  display: inline-block; margin-top: 18px; font-weight: 700; color: var(--azur);
}
.card__link::after { content: " →"; }
.card__link:hover { text-decoration: none; color: #0f73b0; }

/* "Warum MBH" – Vorteile */
.usp { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.usp__item { display: flex; gap: 16px; align-items: flex-start; }
.usp__icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-hell); border: 1px solid #e0eaf4;
}
.usp__icon svg { width: 26px; height: 26px; stroke: var(--azur); }
.usp__item p { color: #43526e; margin-top: 4px; }

/* Leistungs-Detailseiten: Häkchen-Liste */
.feature-list { list-style: none; max-width: 760px; margin: 8px auto 0; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #e7eef6;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list svg { flex: 0 0 auto; width: 24px; height: 24px; stroke: var(--azur); margin-top: 2px; }

/* zweispaltiges Intro mit Platzhalter-Bildblock */
.split { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; align-items: center; }
.split p { color: #43526e; margin-top: 14px; }
.media-ph {
  border-radius: var(--radius); min-height: 280px;
  background: linear-gradient(135deg, var(--navy), var(--azur));
  display: flex; align-items: center; justify-content: center;
  color: #cfe4f6; text-align: center; padding: 24px; box-shadow: var(--schatten);
}
.media-ph span { font-weight: 600; opacity: .9; }
/* echtes Foto auf den Leistungs-Unterseiten */
.media-img {
  width: 100%; min-height: 280px; max-height: 380px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--schatten);
}

/* Kontakt-Kacheln */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-tile {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border: 1px solid #e7eef6; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--schatten);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--schatten-hover); text-decoration: none; }
.contact-tile__icon {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--azur), var(--hellblau));
}
.contact-tile__icon svg { width: 26px; height: 26px; stroke: #fff; }
.contact-tile small { color: #6b7a93; display: block; }
/* min-width:0 erlaubt im Flexbox-Layout das Umbrechen langer Texte (z. B. E-Mail) */
.contact-tile > span:last-child { min-width: 0; }
.contact-tile strong { color: var(--navy); font-size: 1.05rem; overflow-wrap: anywhere; }

/* eigene Icon-Farben pro Kontaktart (Adresse behält das blaue Standard-Icon) */
.contact-tile__icon--phone { background: linear-gradient(135deg, #FF9F1C, #F07F00); } /* Anruf: warmes Orange */
.contact-tile__icon--wa    { background: #25D366; }                                    /* WhatsApp: Original-Grün */
.contact-tile__icon--wa svg { fill: #fff; }
.contact-tile__icon--mail  { background: linear-gradient(135deg, #EA4335, #C5221F); }  /* E-Mail: Gmail-Rot */

/* zentrierter Abschluss-CTA */
.cta-center { text-align: center; }
.cta-center p { color: #43526e; max-width: 620px; margin: 14px auto 26px; }
.cta-center .hero__buttons { justify-content: center; }
.section--bg .cta-center .btn--ghost { border-color: var(--navy); }

/* Hinweis-Kasten (Impressum/Datenschutz = Entwurf) */
.notice {
  background: #fff7e6; border: 1px solid #f0c36d; color: #7a5b12;
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; font-weight: 600;
}
.legal { max-width: 760px; }
.legal pre {
  background: var(--bg-hell); border: 1px solid #e7eef6; border-radius: var(--radius);
  padding: 22px; white-space: pre-wrap; font-family: var(--font); color: var(--navy);
  line-height: 1.7;
}

/* kleine Hinweis-Box (Toast) – z. B. "E-Mail-Adresse kopiert" */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1000;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--schatten-hover);
  max-width: 90%; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 8) Footer ---- */
.footer { background: var(--navy); color: #cdd9ea; padding: 56px 0 24px; margin-top: 0; }
.footer a { color: #cdd9ea; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer__logo { background:#fff; display:inline-block; padding:8px 12px; border-radius:10px; margin-bottom:14px; }
.footer__logo img { height: 42px; }
.footer address { font-style: normal; line-height: 1.9; }
.footer__bottom {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem; color: #9fb1cb;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---- 9) Animationen (nur transform & opacity = performant) ---- */
/* Scroll-Reveal: Start unsichtbar/leicht unten, .is-visible blendet ein */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* gestaffeltes Einblenden im Hero (rein per CSS) */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp .7s ease forwards; }
.delay-1 { animation-delay: .15s; transition-delay: .12s; }
.delay-2 { animation-delay: .30s; transition-delay: .24s; }
.delay-3 { animation-delay: .45s; transition-delay: .36s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Animationen bei Nutzerwunsch komplett abschalten */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-up { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .btn:hover, .card:hover, .contact-tile:hover { transform: none; }
}

/* ---- 10) Responsive / Mobile-Menü ---- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  /* Menü standardmäßig zu; .is-open klappt es auf */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid #e7eef6;
    box-shadow: var(--schatten);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav a { padding: 14px 20px; border-top: 1px solid #eef3f9; }
  .nav .btn { margin: 14px 20px; justify-content: center; }

  /* Burger → X, wenn offen */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 70px; }
}
