/* Markus Distl Fahrzeugservice – Stylesheet (Stand 11/2026) */
@import url("fonts.css");

:root {
  --navy: #0d1b33;
  --navy-2: #13284a;
  --blue: #1b5fbf;
  --blue-2: #2f7be6;
  --gold: #b9a65f;
  --gold-2: #d6c88c;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1b2433;
  --muted: #5d6879;
  --line: #e1e6ee;
  --ok: #19a55a;
  --warn: #e0533b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 27, 51, .06), 0 10px 30px -12px rgba(13, 27, 51, .22);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .01em; color: var(--navy); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
svg.i { width: 1.2em; height: 1.2em; flex: none; }

.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 600 .82rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.45em; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-2); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--line { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--line:hover { border-color: var(--blue); color: var(--blue); }

/* Logo (Bildmarke + Schriftzug als Text) */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo img { width: 46px; height: 48px; }
.logo__txt { display: grid; line-height: 1; }
.logo__name { font: 300 1.7rem/1 "Ubuntu", var(--body); letter-spacing: -.01em; color: #a39457; }
.logo__name b { font-weight: 500; color: #a39457; }
.logo__sub { font: 400 .62rem/1 var(--body); letter-spacing: .32em; color: var(--blue); border-top: 1px solid var(--blue); padding-top: 4px; margin-top: 4px; text-align: center; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(13, 27, 51, .07); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(13, 27, 51, .35); }
.header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--blue); background: rgba(27, 95, 191, .07); }
.header__cta { display: flex; gap: 10px; align-items: center; }
.header__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 600; white-space: nowrap; }
.header__tel svg { color: var(--blue); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 860px); display: grid; align-items: end; color: #fff; background: var(--navy); overflow: hidden; padding: calc(var(--header-h) + 60px) 0 0; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 27, 51, .94) 0%, rgba(13, 27, 51, .72) 42%, rgba(13, 27, 51, .15) 75%), linear-gradient(0deg, rgba(13, 27, 51, .85) 0%, transparent 38%); }
.hero__in { position: relative; z-index: 1; padding-bottom: 48px; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { color: #fff; font-size: clamp(3rem, 8.4vw, 6.6rem); text-transform: uppercase; line-height: .94; margin-bottom: .3em; }
.hero h1 span { color: var(--gold); display: block; }
.hero p { font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 34em; color: rgba(255, 255, 255, .86); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__bar { position: relative; z-index: 1; background: rgba(9, 19, 37, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid rgba(255, 255, 255, .1); }
.hero__bar .wrap { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center; padding: 16px 0; font-size: .98rem; color: rgba(255, 255, 255, .85); }
.hero__bar span { display: inline-flex; align-items: center; gap: 9px; }
.hero__bar svg { color: var(--gold); }
.status { font-weight: 600; color: #fff; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(224, 83, 59, .25); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(25, 165, 90, .28); }

/* Sections */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--white { background: #fff; }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--gold-2); }
.section__head { max-width: 760px; margin-bottom: 46px; }

/* USP-Leiste */
.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -1px; }
.usp { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.usp svg { width: 34px; height: 34px; color: var(--blue); }
.usp strong { font: 600 1.28rem/1.15 var(--head); color: var(--navy); }
.usp span { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.usps-wrap { position: relative; z-index: 2; padding-top: 36px; }
.usps-wrap + .section { padding-top: clamp(60px, 7vw, 96px); }

/* Über uns */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about__img { position: relative; }
.about__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about__badge { position: absolute; right: -14px; bottom: -22px; background: var(--navy); color: #fff; border-radius: 14px; padding: 16px 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); max-width: 300px; font-size: .92rem; line-height: 1.35; }
.about__badge svg { width: 38px; height: 38px; color: var(--gold); flex: none; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { color: var(--blue); margin-top: 3px; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--navy-2)); color: #fff; margin-bottom: 16px; }
.service__ico svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: .3em; }
.service p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* Angebote */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.offer { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; width: 280px; height: 280px; right: -110px; top: -110px; border-radius: 50%; border: 36px solid rgba(185, 166, 95, .12); }
.offer h3 { font-size: 2rem; text-transform: uppercase; margin-bottom: .2em; }
.offer__sub { color: var(--gold-2); font-weight: 500; margin-bottom: 22px; }
.prices { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 2px; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.prices b { font: 700 1.9rem/1 var(--head); color: #fff; white-space: nowrap; }
.prices small { display: block; color: rgba(255, 255, 255, .6); font-size: .88rem; }
.offer ul.dots { padding-left: 1.1em; margin: 0 0 18px; columns: 2; column-gap: 28px; }
.offer ul.dots li { margin-bottom: 6px; break-inside: avoid; }
.offer__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.offer__price b { font: 700 3rem/1 var(--head); color: var(--gold); }
.offer small.note { color: rgba(255, 255, 255, .58); font-size: .86rem; line-height: 1.5; display: block; margin-top: auto; padding-top: 10px; }
.offer a.more { color: var(--gold-2); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery a { position: relative; border-radius: 12px; overflow: hidden; display: block; background: var(--line); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-weight: 500; font-size: .92rem; background: linear-gradient(transparent, rgba(13, 27, 51, .8)); opacity: 0; transition: opacity .25s; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(6, 12, 24, .94); display: none; place-items: center; padding: 60px 70px; }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; border-radius: 8px; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }

/* Referenzen */
.refs { background: #fff; border-radius: 22px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: center; }
.refs img { width: 100%; }

/* Termin */
.termin { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.termin__side img.maskottchen { width: min(260px, 60%); margin: 20px 0 0 -10px; filter: drop-shadow(0 18px 24px rgba(13, 27, 51, .25)); }
.form { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 16px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: contents; }
.form legend { grid-column: 1 / -1; font: 600 1.2rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--blue); padding-top: 6px; }
.f { display: grid; gap: 6px; grid-column: span 3; }
.f--2 { grid-column: span 2; }
.f--4 { grid-column: span 4; }
.f--full { grid-column: 1 / -1; }
.f label { font-weight: 500; font-size: .94rem; color: var(--navy); }
.f label small { color: var(--muted); font-weight: 400; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; transition: border-color .2s, box-shadow .2s; }
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 95, 191, .14); background: #fff; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 500; }
.radios input { width: auto; accent-color: var(--blue); }
.radios label:has(input:checked) { border-color: var(--blue); background: rgba(27, 95, 191, .07); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__foot small { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form__msg { grid-column: 1 / -1; border-radius: 12px; padding: 14px 18px; display: none; }
.form__msg.is-ok { display: block; background: rgba(25, 165, 90, .1); border: 1px solid rgba(25, 165, 90, .4); color: #11703d; }
.form__msg.is-err { display: block; background: rgba(224, 83, 59, .08); border: 1px solid rgba(224, 83, 59, .4); color: #a83420; }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ccard { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 28px; }
.ccard h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; text-transform: uppercase; }
.ccard h3 svg { color: var(--gold); }
.ccard a { color: #fff; text-decoration: none; }
.ccard a:hover { color: var(--gold-2); }
.ccard address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hours td + td { text-align: right; color: #fff; font-weight: 500; }
.hours tr.is-today td { color: var(--gold-2); }
.ccard .btn { margin-top: 16px; }
.karriere { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-radius: var(--radius); padding: 28px 32px; background: linear-gradient(110deg, var(--blue), #123f86); color: #fff; }
.karriere h3 { color: #fff; margin: 0 0 4px; font-size: 1.7rem; text-transform: uppercase; }
.karriere p { margin: 0; color: rgba(255, 255, 255, .85); }

/* Footer */
.footer { background: #08111f; color: rgba(255, 255, 255, .6); padding: 46px 0 34px; font-size: .94rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer .logo__name, .footer .logo__name b { color: var(--gold); }
.footer .logo__sub { color: #8fb4ec; border-color: #8fb4ec; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer small { display: block; margin-top: 24px; width: 100%; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; }
.social { display: inline-flex; align-items: center; gap: 8px; }

/* Mobile Aktionsleiste */
.mbar { display: none; }

/* Rechtstexte */
.legal { padding: calc(var(--header-h) + 50px) 0 80px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); text-transform: uppercase; }
.legal h2 { font-size: 1.5rem; text-transform: none; margin-top: 1.8em; }
.legal address { font-style: normal; }
.legal ol li { margin-bottom: .8em; }

/* Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* Responsive */
@media (max-width: 1120px) {
  .header__tel span { display: none; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .burger { display: grid; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: #fff; padding: 10px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(13, 27, 51, .35); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .usps { grid-template-columns: repeat(2, 1fr); }
  .about, .termin, .refs { grid-template-columns: 1fr; }
  .about__badge { right: 12px; }
  .offers, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .termin__side { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
  .termin__side img.maskottchen { width: 150px; margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 68px; }
  .wrap { width: calc(100% - 32px); }
  .logo img { width: 38px; height: 40px; }
  .logo__name { font-size: 1.4rem; }
  .logo__sub { font-size: .54rem; letter-spacing: .26em; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 70px); }
  .hero::after { background: linear-gradient(0deg, rgba(13, 27, 51, .96) 15%, rgba(13, 27, 51, .55) 70%, rgba(13, 27, 51, .35)); }
  .hero__in { padding-bottom: 70px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__bar .wrap { gap: 8px 20px; font-size: .92rem; }
  .usps { grid-template-columns: 1fr; gap: 12px; }
  .usp { grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
  .usp svg { grid-row: span 2; width: 30px; height: 30px; }
  .about__badge { position: static; margin-top: 14px; max-width: none; }
  .offer ul.dots { columns: 1; }
  .prices b { font-size: 1.6rem; }
  .gallery { grid-auto-rows: 120px; gap: 8px; }
  .form { grid-template-columns: 1fr; }
  .f, .f--2, .f--4 { grid-column: 1 / -1; }
  .form__foot .btn { width: 100%; }
  .termin__side img.maskottchen { width: 110px; }
  .lightbox { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; translate: none; }
  .mbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0; z-index: 60; background: var(--navy); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .5); }
  .mbar a { display: grid; justify-items: center; gap: 3px; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 500; padding: 6px 0; border-radius: 10px; }
  .mbar a svg { width: 22px; height: 22px; color: var(--gold); }
  .mbar a.is-main { background: var(--blue); }
  .mbar a.is-main svg { color: #fff; }
}
