/* =========================================================
   Bergheimer Fahrdienst – Design System
   Modernes Dark/Gold, barrierefrei, ohne externe Abhängigkeiten
   ========================================================= */

:root {
  /* Farben */
  --bg:            #0f1012;
  --bg-alt:        #131417;
  --surface:       #191a1f;
  --surface-2:     #202127;
  --border:        #2c2e36;
  --border-strong: #3a3d47;

  --gold:          #d9b64e;
  --gold-bright:   #efc95f;
  --gold-deep:     #b3902f;
  --gold-soft:     rgba(217, 182, 78, 0.12);

  --text:          #f4f2ec;
  --text-muted:    #b9b7b0;
  --text-dim:      #8a887f;
  --on-gold:       #1a1408;

  --success:       #3fae6b;
  --danger:        #e2603f;

  /* Radius & Schatten */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 12px 30px rgba(0,0,0,.35);
  --shadow-gold: 0 10px 30px rgba(217,182,78,.18);

  /* Layout */
  --maxw: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Typografie */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.4rem, 6vw, 4.4rem);
  --fs-h2:   clamp(1.8rem, 4vw, 2.9rem);
  --fs-h3:   clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-base: clamp(1rem, 1.2vw, 1.12rem);

  --header-h: 78px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1rem; }

/* ---------- Fokus / Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 12px; top: -100px;
  background: var(--gold); color: var(--on-gold);
  padding: .75rem 1.25rem; border-radius: var(--r-sm);
  font-weight: 700; z-index: 1000; transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }
.visually-hidden {
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .9rem;
}
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); }
.text-muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  font-size: 1.02rem; font-weight: 700; font-family: inherit;
  border-radius: var(--r-pill); border: 2px solid transparent;
  background: var(--btn-bg); color: var(--on-gold);
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s;
  box-shadow: var(--shadow-gold); white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); background: var(--gold-bright); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--gold); color: var(--gold-bright); }
.btn--lg { min-height: 60px; padding: 1rem 2rem; font-size: 1.1rem; }
.btn-icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,16,18,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(15,16,18,.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-text { font-size: 1.05rem; line-height: 1.1; letter-spacing: .02em; }
.brand-text span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav > ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .6rem .9rem; color: var(--text); font-weight: 600; font-size: 1rem;
  border-radius: var(--r-sm); transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-bright); background: var(--gold-soft); text-decoration: none; }

.has-sub { position: relative; }
.has-sub > a::after { content: "▾"; margin-left: .35rem; font-size: .75em; color: var(--gold); }
.submenu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 260px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { font-weight: 500; font-size: .98rem; }

.header-cta { display: flex; align-items: center; gap: .6rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.header-phone:hover { color: var(--gold-bright); text-decoration: none; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--border-strong);
  background: var(--surface); border-radius: var(--r-sm); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,16,18,.55) 0%, rgba(15,16,18,.78) 55%, rgba(15,16,18,.97) 100%),
    linear-gradient(90deg, rgba(15,16,18,.85), rgba(15,16,18,.25));
}
.hero-inner { padding-block: clamp(4rem, 12vw, 8.5rem); max-width: 760px; }
.hero h1 { margin-bottom: .4rem; }
.hero .claim { color: var(--gold-bright); font-weight: 800; font-size: var(--fs-lead); margin-bottom: 1.4rem; }
.hero .lead { color: #e5e3dc; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: var(--r-pill);
  background: rgba(25,26,31,.7); border: 1px solid var(--border); backdrop-filter: blur(4px);
  font-size: .92rem; font-weight: 600; color: var(--text);
}
.badge svg { width: 1.05em; height: 1.05em; color: var(--gold); flex: none; }

/* Kompakter Sub-Hero für Unterseiten */
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero .hero-inner { padding-block: clamp(3rem, 8vw, 5.5rem); }
.breadcrumb { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ---------- USP-Leiste ---------- */
.usp-bar { border-block: 1px solid var(--border); background: var(--bg-alt); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.usp {
  background: var(--bg-alt); padding: 1.6rem 1.4rem; display: flex; gap: .9rem; align-items: flex-start;
}
.usp svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.usp strong { display: block; font-size: 1.02rem; }
.usp span { color: var(--text-muted); font-size: .92rem; }

/* ---------- Leistungen-Grid ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-deep); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--text-muted); font-size: .98rem; margin-bottom: 1.1rem; }
.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--gold-bright);
}
.card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }
.card-cover { position: absolute; inset: 0; z-index: 1; }
.card-cover span { position:absolute;width:1px;height:1px;overflow:hidden; }

/* ---------- Feature / Split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media img { border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.feature-list { list-style: none; margin: 1.4rem 0 2rem; padding: 0; display: grid; gap: .9rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list svg { width: 24px; height: 24px; color: var(--gold); flex: none; margin-top: 2px; }
.feature-list strong { display:block; }
.feature-list span { color: var(--text-muted); font-size: .96rem; }

/* ---------- Warum / Icon-Grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.why {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem;
}
.why-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 1.1rem;
}
.why-icon svg { width: 28px; height: 28px; }
.why h3 { font-size: 1.2rem; }
.why p { color: var(--text-muted); font-size: .97rem; margin: 0; }

/* ---------- Bewertungen ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.review {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.7rem 1.6rem;
  display: flex; flex-direction: column;
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .8rem; font-size: 1.1rem; }
.review p { font-size: 1.02rem; margin-bottom: 1.2rem; }
.review cite { margin-top: auto; font-style: normal; font-weight: 700; color: var(--text); }
.review cite span { display: block; font-weight: 500; color: var(--text-dim); font-size: .9rem; }

/* ---------- CTA-Band ---------- */
.cta-band { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band .lead { margin-inline: auto; max-width: 620px; margin-bottom: 1.8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- Kontakt / Formular ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-info { display: grid; gap: 1.1rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.info-item svg { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.info-item .label { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); }
.info-item .val { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.info-item a { color: var(--text); }
.info-item a:hover { color: var(--gold-bright); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-alt); border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field input:user-invalid, .field:has(:user-invalid) input { border-color: var(--danger); }
.form-note { font-size: .86rem; color: var(--text-dim); margin-top: .3rem; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(63,174,107,.14); border: 1px solid var(--success); color: #7fd6a0; }
.form-status.error { background: rgba(220,80,80,.14); border: 1px solid #d05050; color: #f0a0a0; }

.map-embed { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- Prose (Textseiten) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.3rem; color: var(--text-muted); }
.prose li { margin-bottom: .5rem; }
.prose a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0c0d; border-top: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand img { height: 48px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: .95rem; max-width: 32ch; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--text-muted); font-size: .96rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-muted); font-size: .96rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.socials { display: flex; gap: .7rem; margin-top: 1.1rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.socials a:hover { border-color: var(--gold); color: var(--gold-bright); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; color: var(--text-dim); font-size: .88rem; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- Mobile CTA-Leiste ---------- */
.mobile-cta { display: none; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-phone span.txt { display: none; }
  .header-cta { gap: .4rem; }
  .brand img { height: 40px; }
  .brand-text { font-size: .98rem; }

  .main-nav {
    position: fixed; top: var(--header-h); right: 0; left: auto;
    width: min(360px, 86vw);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    z-index: 96;
    background: var(--surface); border-left: 1px solid var(--border);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 1.2rem;
    transform: translateX(105%); transition: transform .28s ease; overflow-y: auto;
    box-shadow: var(--shadow-md);
  }
  .nav-open .main-nav { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; width: 100%; }
  .main-nav a { padding: .85rem 1rem; font-size: 1.08rem; }
  .has-sub > a::after { float: right; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; background: transparent; padding: .2rem 0 .4rem 1rem; min-width: auto;
    border-left: 2px solid var(--border);
  }
  .submenu a { color: var(--text-muted); }

  /* Menü-Overlay */
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 90; }
  .nav-open .nav-scrim { opacity: 1; visibility: visible; }

  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Platz für Mobil-CTA-Leiste schaffen */
  body { padding-bottom: 74px; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: var(--border); border-top: 1px solid var(--border);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 60px; font-weight: 800; font-size: 1.05rem; text-decoration: none;
  }
  .mobile-cta a svg { width: 22px; height: 22px; }
  .mobile-cta .m-call { background: var(--gold); color: var(--on-gold); }
}

@media (max-width: 640px) {
  /* Bottom-CTA übernimmt das Anrufen – Header entlasten */
  .header-cta .btn { display: none; }
  .header-phone { padding: .4rem; }
  .brand-text span { display: none; }
}

@media (max-width: 560px) {
  .usp-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* Spam-Schutz: Honeypot-Feld für Menschen unsichtbar, aber für Bots im DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
