/* Münchner-Auto-Service – Stylesheet */

:root {
  --dark: #1d2125;
  --dark-2: #2a2f35;
  --yellow: #f7d117;
  --yellow-dark: #e0bb00;
  --green: #1f7a3d;
  --green-light: #e7f3eb;
  --text: #22272c;
  --muted: #5d6670;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.sprite { display: none; }
.ico, .ico-lg {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.ico { width: 1.15em; height: 1.15em; }
.ico-lg { width: 34px; height: 34px; }

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

.eyebrow {
  margin: 0 0 .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 8px; border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1em; font-size: .95rem; }
.btn-primary { background: var(--yellow); color: var(--dark); }
.btn-primary:hover { background: var(--yellow-dark); color: var(--dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark); color: #fff;
  border-bottom: 4px solid var(--yellow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px;
  background: var(--yellow); color: var(--dark); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  box-shadow: inset 0 -5px 0 var(--green);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: #b8c0c8; font-size: .8rem; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  color: #e8ecef; text-decoration: none; font-weight: 550; font-size: .97rem;
  padding: .5em .8em; border-radius: 6px;
}
.main-nav a:not(.btn):hover { background: rgba(255, 255, 255, .08); color: #fff; }
.main-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: var(--dark); border-bottom: 4px solid var(--yellow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: .9em .4em; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .main-nav .btn { margin: 14px 0 0; justify-content: center; }
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(247, 209, 23, .12), transparent 45%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero h1 { color: #fff; }
.hero .hl { color: var(--yellow); }
.hero .eyebrow { color: var(--yellow); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: #d3d9de; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { margin: 0; }
.hero-media img {
  border-radius: var(--radius); width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  border: 4px solid rgba(255, 255, 255, .08);
}
.open-status {
  display: inline-flex; align-items: center; gap: .55em;
  margin: 22px 0 0; font-size: .95rem; color: #d3d9de;
}
.open-status::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9aa3ab;
}
.open-status.is-open::before { background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62, 207, 110, .2); }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Fakten */
.facts { background: var(--yellow); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 22px 20px; display: flex; flex-direction: column; color: var(--dark); }
.fact + .fact { border-left: 1px solid rgba(0, 0, 0, .12); }
.fact strong { font-size: 1.3rem; }
.fact span { font-size: .95rem; }
@media (max-width: 700px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 14px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid rgba(0, 0, 0, .12); }
}

/* Sektionen */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 36px; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about-inner p { color: var(--muted); }
.about-media { margin: 0; }
.about-media img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; gap: 28px; } }

/* Leistungen */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.services li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: border-color .15s, box-shadow .15s;
}
.services li:hover { border-color: var(--yellow); box-shadow: var(--shadow); }
.services .ico-lg { color: var(--green); margin-bottom: 12px; }
.services h3 { margin-bottom: .3em; }
.services p { margin: 0; color: var(--muted); font-size: .97rem; }

.offer {
  margin-top: 32px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-left: 8px solid var(--yellow);
}
.offer h3 { color: #fff; font-size: 1.4rem; margin-bottom: .2em; }
.offer p { margin: 0; color: #c9d0d6; }
.offer .eyebrow { color: var(--yellow); margin-bottom: .4em; }
.offer-price {
  font-size: 3rem; font-weight: 800; color: var(--yellow) !important; line-height: 1; white-space: nowrap;
}
.offer-price span { font-size: 1.8rem; }
@media (max-width: 600px) { .offer { flex-direction: column; align-items: flex-start; padding: 24px; } }

/* Öffnungszeiten */
.hours-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hours-inner p { color: var(--muted); }
.hours {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.hours th, .hours td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.hours thead th { background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hours tbody th { font-weight: 650; }
.hours tbody tr:last-child > * { border-bottom: 0; }
.hours tr.today { background: var(--green-light); }
.hours tr.today th { color: var(--green); }
.hours tr.today th::after {
  content: "heute"; margin-left: .6em; padding: .1em .5em; border-radius: 4px;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  vertical-align: middle;
}
@media (max-width: 860px) { .hours-inner { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) {
  .hours th, .hours td { padding: 12px 10px; font-size: .93rem; }
}

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  color: #fff; font-weight: 600; font-size: .93rem;
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

.lightbox {
  max-width: min(92vw, 1000px); padding: 0; border: 0; border-radius: var(--radius);
  background: #000; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 12, 14, .85); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius) var(--radius) 0 0; }
.lightbox-caption { margin: 0; padding: 10px 16px; color: #fff; background: var(--dark); border-radius: 0 0 var(--radius) var(--radius); }
.lightbox-close {
  position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--yellow); color: var(--dark); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* Kontakt */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { color: var(--green); margin-top: .25em; }
.contact-list a { word-break: break-word; }
.route-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 28px; border-top: 6px solid var(--yellow);
}
.route-card h3 { display: flex; align-items: center; gap: .5em; }
.route-card h3 .ico { color: var(--green); }
.route-card p { color: var(--muted); }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
.site-footer { background: var(--dark); color: #b8c0c8; font-size: .93rem; padding: 26px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: #fff; }
.site-footer a { color: #e8ecef; }
.site-footer a:hover { color: var(--yellow); }
.site-footer nav { display: flex; gap: 20px; }

/* Rechtstexte */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

@media (max-width: 600px) {
  .services { gap: 10px; }
  .services li {
    display: grid; grid-template-columns: 34px 1fr; column-gap: 14px;
    padding: 16px;
  }
  .services .ico-lg { grid-row: span 2; width: 28px; height: 28px; margin: 2px 0 0; }
  .services h3 { margin-bottom: .15em; font-size: 1.02rem; }
  .services p { font-size: .93rem; }
}
