/* ==========================================================
   MJ Autotechnik Inh. Marin Jurić – Stylesheet
   Firmenfarben: Schwarz und Blau (#007cc3)
   Keine externen Schriften, keine externen Ressourcen
   ========================================================== */

:root {
  --blue: #007cc3;
  --blue-dark: #00659f;
  --blue-light: #5cc0f5;
  --blue-soft: #e5f2fa;
  --black: #000000;
  --ink-2: #1a1d22;
  --bg: #f3f5f7;
  --card: #ffffff;
  --text: #16191d;
  --muted: #55606b;
  --line: #dde2e7;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(0, 0, 0, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img, svg { max-width: 100%; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--black); }
p { margin: 0 0 1em; }

.container { width: min(1480px, 100% - clamp(2.5rem, 6vw, 6rem)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 400;
  background: var(--blue); color: #fff; padding: .7rem 1rem; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .site-footer :focus-visible, .cookie :focus-visible { outline-color: var(--blue-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black); color: #fff;
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 78px;
}
.brand { display: block; flex: none; line-height: 0; }
.brand img { display: block; width: 230px; height: auto; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--blue-light); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }

/* Menü mit Untermenüs (wie auf der bisherigen Seite) */
.has-sub { position: relative; }
.has-sub > button {
  background: none; border: 0; padding: .4rem 0; font: inherit; font-weight: 600;
  color: var(--black); cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
}
.has-sub > button:hover { color: var(--blue-dark); }
.has-sub > button::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s;
}
.has-sub.open > button::after { transform: rotate(225deg); margin-top: 3px; }
.sub {
  display: none; position: absolute; top: calc(100% + 14px); left: -1rem; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: 0 0 var(--radius) var(--radius); padding: .5rem 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .15); z-index: 60;
}
.has-sub.open .sub { display: block; }
.sub a { display: block; padding: .55rem 1.2rem; font-weight: 500; }
.sub a:hover { background: var(--blue-soft); }

.nav-toggle {
  display: none; background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, .6); border-radius: 6px;
  padding: .45rem .85rem; font: inherit; font-weight: 700; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-outline { border-color: var(--blue); color: var(--blue-dark); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-wa { background: #fff; color: var(--black); border-color: #aab4be; }
.btn-wa:hover { border-color: var(--wa); background: #f1fcf5; }
.btn-wa svg { color: var(--wa); width: 22px; height: 22px; }
.btn-sm { padding: .6rem 1.2rem; }
.btn-block { width: 100%; }

.wa-icon { fill: currentColor; stroke: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 6rem 0 6.5rem;
  background: linear-gradient(135deg, #000 0%, #05121c 55%, #00304d 100%);
  border-bottom: 6px solid var(--blue);
}
.hero-deco {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: min(620px, 45vw); height: auto; aspect-ratio: 1; color: var(--blue); opacity: .16; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.hero-content { position: relative; max-width: 860px; }
.hours-card {
  position: relative; background: #fff; color: var(--text); border-radius: 12px;
  padding: 1.7rem 1.8rem 1.6rem; border-top: 5px solid var(--blue);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.hours-card h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
.hours-card .status, .panel .status { margin: 0 0 1rem; display: flex; background: var(--bg); color: var(--text); border-left-width: 5px; }
.hours-card .status.open, .panel .status.open { background: #e6f7ee; color: #0f5132; }
.hours-card .status.break, .panel .status.break { background: #fff4d6; color: #6b4a00; }
.hours-card .status.closed, .panel .status.closed { background: #fdeceb; color: #7a1f1a; }
.panel .status:empty { display: none; }

/* ---------- Vorab-Hinweis auf Betriebsurlaub (erscheint 10 Tage vorher) ---------- */
.vorab-hinweis {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem;
  padding: .5rem 1rem; border-radius: 4px; font-size: .95rem; font-weight: 600;
  background: #fff4d6; color: #6b4a00; border-left: 5px solid #fbbf24;
}
.vorab-hinweis[hidden] { display: none; }
.vorab-hinweis::before {
  content: "i"; flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: #fbbf24; color: #4a3200; font-size: .8rem; font-weight: 800; font-style: italic;
  display: inline-flex; align-items: center; justify-content: center;
}
.hours-card .hours caption { display: none; }
.hours-card .btn { margin-top: 1.1rem; }
.sr-only { position: absolute; left: -9999px; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark);
  margin-bottom: .6rem;
}
.hero .eyebrow { color: var(--blue-light); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -.5px; }
.hero p.lead { font-size: 1.25rem; color: #d3dae1; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* ---------- Live-Öffnungsstatus ---------- */
.status {
  display: inline-flex; align-items: center; gap: .65rem; margin: 1.8rem 0 0;
  padding: .55rem 1.1rem; border-radius: 4px; font-weight: 700; font-size: 1rem;
  background: rgba(255, 255, 255, .1); color: #fff; border-left: 5px solid #9aa5b0;
}
.status:empty { display: none; }
.status::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #9aa5b0; flex: none; }
.status.open { border-left-color: #34d399; }
.status.open::before { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.status.break { border-left-color: #fbbf24; background: rgba(251, 191, 36, .16); }
.status.break::before { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, .3); }
.status.closed { border-left-color: #f87171; }
.status.closed::before { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .25); }

/* ---------- Öffnungszeiten-Tabelle ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 800; color: var(--black); font-size: 1.2rem; margin-bottom: .5rem; }
.hours th, .hours td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-left: 0; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; white-space: nowrap; }
.hours td.closed { color: var(--muted); }
.hours tr.today { background: var(--blue-soft); }
.hours tr.today th { box-shadow: inset 4px 0 0 var(--blue); padding-left: .8rem; }
.hours tr.today td { padding-right: .8rem; }
.hours-note { margin-bottom: 0; }

/* ---------- Vertrauensleiste ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust ul {
  list-style: none; margin: 0; padding: 1.4rem 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.trust li { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--black); }
.trust svg { width: 26px; height: 26px; color: var(--blue); flex: none; }

/* ---------- Sektionen ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 820px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; background: var(--blue);
  border-radius: 2px; margin-top: .6rem;
}
.section-head p { color: var(--muted); }

/* ---------- Leistungen ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--blue); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0, 124, 195, .28); }
.icon {
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--black); color: #fff;
  display: grid; place-items: center;
}
.icon svg { width: 28px; height: 28px; color: var(--blue-light); }
.card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0 0 1rem; font-size: 1rem; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--blue-dark); }
.card .more:hover { text-decoration: underline; }

/* ---------- Ablauf ---------- */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem;
}
.steps li {
  counter-increment: step; background: var(--card); border-radius: var(--radius);
  padding: 1.6rem; border: 1px solid var(--blue);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: .9rem;
  background: var(--blue); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.about-box {
  background: var(--black); color: #fff; border-left: 6px solid var(--blue);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.about-box h3 { color: #fff; }
.about-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.about-box li { display: flex; gap: .7rem; align-items: flex-start; }
.about-box svg { width: 24px; height: 24px; color: var(--blue-light); flex: none; margin-top: 2px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.2rem; align-items: start; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
}
.panel h3 { font-size: 1.2rem; }
.panel + .panel { margin-top: 1.4rem; }
.contact .panel { border: 1px solid var(--blue); }

.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 3px; }
.contact-list svg.wa-icon { color: var(--wa); }
.contact-list a { font-weight: 700; }

.way-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.way-list li { display: flex; gap: .8rem; align-items: flex-start; }
.way-list svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 2px; }
.way-list strong { display: block; }
.way-inline { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 1rem 0 1.4rem; }

/* ---------- Formular ---------- */
.form-intro { color: var(--muted); }
.fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.fieldset legend {
  padding: 0; margin-bottom: .8rem; font-weight: 800; color: var(--black); font-size: 1.02rem;
  display: flex; align-items: center; gap: .6rem; width: 100%;
}
.fieldset legend::before { content: ""; width: 4px; height: 1.1em; background: var(--blue); border-radius: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .95rem; color: var(--black); }
.req { color: var(--blue-dark); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid #aab4be; border-radius: 10px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); outline: 3px solid rgba(0, 124, 195, .3); outline-offset: 0;
}
input.invalid, select.invalid { border-color: #c4352c; }

/* Auswahl "Neukunde / Bestandskunde" als Schalter */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.seg.full { grid-column: 1 / -1; }
.seg legend { padding: 0; margin-bottom: .4rem; font-weight: 600; font-size: .95rem; display: block; width: auto; }
.seg legend::before { content: none; }
.seg label {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: .8rem .6rem; border: 1.5px solid #aab4be; border-radius: 10px; background: #fff;
  font-weight: 600; cursor: pointer; text-align: center;
}
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.seg.invalid label { border-color: #c4352c; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.check label { font-weight: 400; color: var(--text); font-size: .95rem; }

.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-actions .btn { padding: .8rem .7rem; font-size: .95rem; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: .8rem; }
.notice {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px;
  background: var(--blue-soft); color: #043a5a; border: 1px solid #b5d9ee;
}

/* ---------- Karte (Google Maps nach Einwilligung) ---------- */
.map-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 2rem; align-items: start; }
.map-box {
  position: relative; min-height: 400px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
}
.map-box iframe { display: block; width: 100%; height: 480px; border: 0; }
.map-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .6rem; padding: 2rem 1.5rem; min-height: 380px;
}
.map-consent svg { width: 44px; height: 44px; color: var(--blue); }
.map-consent h4 { margin: 0; font-size: 1.15rem; }
.map-consent p { max-width: 58ch; color: var(--muted); font-size: .95rem; margin: 0 0 .6rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--blue-dark); text-decoration: underline; font-weight: 600;
}

/* ---------- Bewertungen (Trustindex nach Einwilligung) ---------- */
#reviewbox { min-height: 0; background: transparent; box-shadow: none; overflow: visible; }
#reviewbox .map-consent { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 300px; }
#reviewbox .map-consent[hidden] { display: none; }
.review-widget { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #c5ccd3; padding: 2.5rem 0 2rem; border-top: 6px solid var(--blue); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: center; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links button {
  background: none; border: 0; padding: 0; font: inherit; color: #fff;
  text-decoration: underline; cursor: pointer;
}

/* ---------- Rechtstexte & Unterseiten ---------- */
.legal { padding: 3.5rem 0 5rem; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; }

/* ---------- Cookie-Banner ---------- */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .55);
  display: flex; align-items: flex-end; justify-content: center; padding: 1rem;
}
.cookie {
  width: min(720px, 100%); max-height: calc(100vh - 2rem); overflow: auto;
  background: var(--black); color: #e8edf1; border-radius: 16px;
  border-top: 5px solid var(--blue); padding: 1.6rem 1.7rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.cookie h2 { color: #fff; font-size: 1.3rem; margin: 0 0 .6rem; }
.cookie p { font-size: .97rem; margin-bottom: .9rem; color: #cfd6dd; }
.cookie a { color: var(--blue-light); }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.1rem; }
.cookie-actions .btn { padding: .75rem .8rem; font-size: .97rem; }
.cookie .btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.cookie .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.cookie-opts { display: grid; gap: .7rem; margin: 1rem 0 .2rem; }
.cookie-opt {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  background: var(--ink-2); border: 1px solid #2d333a; border-radius: 12px; padding: .9rem 1rem;
}
.cookie-opt strong { color: #fff; display: block; }
.cookie-opt span { font-size: .9rem; color: #b6bec6; display: block; margin-top: .2rem; }
.switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #5a626b; transition: background .15s; }
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform .15s;
}
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .6; }
.switch input:focus-visible + i { outline: 3px solid var(--blue-light); outline-offset: 2px; }

/* ---------- Mobile Schnellleiste ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .brand img { width: 170px; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: .5rem 1.25rem 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 14px 24px rgba(0, 0, 0, .35);
    max-height: calc(100vh - 72px); overflow: auto;
  }
  .nav.open { display: flex; }
  .nav > a { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .nav a.btn { margin-top: 1rem; border-bottom: 2px solid transparent; justify-content: center; }
  .has-sub { width: 100%; }
  .sub { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 .4rem .8rem; min-width: 0; border-radius: 0; }
  .has-sub.open .sub { display: block; }
  .sub a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .about, .contact { grid-template-columns: 1fr; }
  .form-grid, .form-actions { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.1fr .9fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--black); box-shadow: 0 -4px 16px rgba(0, 0, 0, .3);
  }
  .mobile-bar .btn { padding: .7rem .4rem; font-size: .93rem; gap: .4rem; }
  .mobile-bar .btn svg { width: 18px; height: 18px; }
  .mobile-bar .btn-wa { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
  .mobile-bar .btn-wa:hover { background: rgba(255, 255, 255, .12); }
  body { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .cookie-actions { grid-template-columns: 1fr; }
  .cookie-overlay { padding: .5rem; }
  .cookie { padding: 1.3rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 860px) { .hero-deco { opacity: .1; right: -20%; width: 80vw; } .brand img { width: 180px; } }

@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }



/* Kontaktbereich: linke Kacheln enden auf gleicher Höhe wie das Formular */
.contact { align-items: stretch; }
.contact > div:first-child { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; }
.contact > div:first-child .panel + .panel { margin-top: 0; }
@media (max-width: 860px) { .contact > div:first-child { justify-content: flex-start; } }

/* Standort: eigener Abschnitt im Stil der Bewertungen (ohne Rahmen-Kasten) */
.map-box iframe { height: 520px; }
#anfahrt .form-note { margin-top: 1rem; }
@media (max-width: 860px) { .map-box iframe { height: 380px; } }

/* Übergang Kontakt → Standort: weißer und grauer Abstand gleich groß und kompakter */
#kontakt.section { padding-bottom: 3rem; }
#anfahrt.section { padding-top: 3rem; }
@media (max-width: 860px) {
  #kontakt.section { padding-bottom: 2.2rem; }
  #anfahrt.section { padding-top: 2.2rem; }
}

/* ---------- Menü-Dropdown im schwarzen Header ---------- */
.nav .has-sub > button { color: #fff; padding: .4rem 0; }
.nav .has-sub > button:hover { color: var(--blue-light); }
.nav .sub a { color: var(--text); }
.nav .sub a:hover { color: var(--blue-dark); }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 17px; }
@media (hover: hover) and (min-width: 861px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
}
@media (max-width: 860px) {
  .nav .has-sub > button { width: 100%; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .nav .sub { background: transparent; }
  .nav .sub a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .nav .sub a:hover { background: transparent; color: var(--blue-light); }
  .sub::before { display: none; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.team-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--blue);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0, 124, 195, .28); }
.team-photo {
  position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #0b1a25, #00304d);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo svg { width: 78%; height: auto; color: var(--blue-light); opacity: .55; }
.team-badge {
  position: absolute; top: .9rem; left: .9rem; background: var(--blue); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.team-info { padding: 1.3rem 1.4rem 1.5rem; }
.team-info h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.team-role { margin: 0 0 .7rem; font-weight: 700; color: var(--blue-dark); font-size: .95rem; }
.team-info p:last-child { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .team-card:hover { transform: none; } }

.team-section { padding-bottom: 2.5rem; }
.team-cta { padding-top: 2.5rem; padding-bottom: 3rem; }
.team-info p:last-child { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 860px) { .team-section { padding-bottom: 1.8rem; } .team-cta { padding-top: 1.8rem; padding-bottom: 2.4rem; } }
.team-info p.team-lang { font-size: clamp(.72rem, 1.05vw, .88rem); hyphens: none; overflow-wrap: normal; }

.team-section { padding-top: 2.8rem; }
@media (max-width: 860px) { .team-section { padding-top: 2rem; } }

/* ---------- Pulsierender Live-Punkt (Öffnungsstatus) ---------- */
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 var(--pulse); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
.status.open::before   { --pulse: rgba(52, 211, 153, .65); animation: status-pulse 1.8s ease-out infinite; }
.status.break::before  { --pulse: rgba(245, 158, 11, .75); animation: status-pulse 1.8s ease-out infinite; }
.status.closed::before { --pulse: rgba(239, 68, 68, .7);  animation: status-pulse 1.8s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .status.open::before, .status.break::before, .status.closed::before { animation: none; }
}

/* Kennzeichen-Feld: immer Großbuchstaben */
#kennzeichen { text-transform: uppercase; }
#kennzeichen::placeholder { text-transform: none; }
.field-error { color: #c4352c; font-size: .88rem; line-height: 1.35; }
.field-error[hidden] { display: none; }

/* Öffnungszeiten leicht ausgegraut an Feiertagen und Schließtagen (setzt script.js) */
.hours.ausser-betrieb { opacity: .45; transition: opacity .2s; }
