/* Höhtal Garage – Stylesheet
   Layout: ruhiges Raster mit Werkstatt-Schild-Typografie (schmale Versalien),
   tiefes Petrol als Grundfarbe, Markenrot (aus dem Logo) nur für Handlungen (Anrufen, Termin). */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0e2f3a;          /* Petrol, Hauptfarbe */
  --ink-soft: #3d5a64;
  --paper: #f5f7f6;        /* Grund, leicht grünstichig */
  --surface: #ffffff;
  --line: #d6dfdd;
  --signal: #d90a17;       /* Markenrot aus dem Logo, für Aktionen */
  --signal-ink: #ffffff;
  --brand-red: #d90a17;
  --brand-red-on-dark: #ff4d52;
  --band: #0e2f3a;         /* dunkle Bänder */
  --band-fg: #eef4f2;
  --band-muted: #a9c0bf;
  --ok: #1f8a4c;
  --closed: #b4432f;
  --todo-bg: #fff1b8;
  --todo-fg: #5a4500;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 2.8rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgb(16 32 40 / .05), 0 4px 16px rgb(16 32 40 / .06);
  --shadow-md: 0 2px 4px rgb(16 32 40 / .05), 0 12px 32px rgb(16 32 40 / .09);
  --wrap: 72rem;
  color-scheme: only light;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: 0.005em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); text-transform: uppercase; }
h2 { font-size: var(--step-3); text-transform: uppercase; }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0; max-width: 65ch; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.lead { font-size: var(--step-1); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--signal); color: var(--signal-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Platzhalter: deutlich sichtbar, damit nichts Erfundenes online geht */
.todo { background: var(--todo-bg); color: var(--todo-fg); padding: 0 .3em; border-radius: 3px; font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Topbar + Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band); }
.topbar { background: var(--band); color: var(--band-muted); font-size: var(--step--1); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-block: .4rem; }
.topbar a { color: var(--band-fg); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 700px) { .topbar-contact { display: none; } }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; height: 58px; width: auto; color: var(--ink); overflow: visible; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 45px; fill: currentColor; }
.brand-red { fill: var(--brand-red); }
.site-header .brand svg { color: var(--ink) !important; }
.footer-logo { height: 64px; color: var(--band-fg) !important; margin-bottom: .75rem; }
.footer-logo .brand-word { fill: var(--band-fg); }
.footer-logo .brand-red { fill: var(--brand-red-on-dark); }
.slogan { font-style: italic; color: var(--band-fg); }
@media (max-width: 420px) { .site-header .brand-logo { height: 44px; } }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.brand-name small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; padding: .5rem .6rem; white-space: nowrap; border-radius: var(--radius); }
.nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav .btn { margin-left: .5rem; min-height: 42px; font-size: 1.05rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .5rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--signal); padding-left: 1rem; }
  .nav .btn { margin: .5rem 0 0; }
}

/* Offen/geschlossen */
.status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink-soft); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.status.is-closed::before { background: var(--closed); }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 span { color: var(--ink-soft); display: block; }
.hero .lead { margin-top: 1.25rem; }
.hero .btn-row { margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; padding: 0; list-style: none; font-weight: 600; }
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts svg { width: 1.2rem; height: 1.2rem; color: var(--ok); flex: none; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Foto mit Platzhalter, falls Bild fehlt */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); aspect-ratio: 4 / 3; max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { display: none; }
.photo.missing img { display: none; }
.photo.missing { display: grid; place-items: center; border: 2px dashed var(--line); }
.photo.missing figcaption { display: block; padding: 1.25rem; text-align: center; color: var(--ink-soft); font-size: var(--step--1); max-width: 30ch; }
.photo.missing figcaption strong { display: block; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; color: var(--ink); margin-bottom: .25rem; }

/* Öffnungszeiten-Karte */
.hours-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 700; }
.hours tr.today th::after { content: " · heute"; font-weight: 400; color: var(--ink-soft); }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--surface); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.service svg { width: 36px; height: 36px; color: var(--ink); }
.service h3 { font-size: 1.5rem; }
.service p { color: var(--ink-soft); font-size: .97rem; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head .stack { max-width: 44rem; }

/* Dunkles Band */
.band { background: var(--band); color: var(--band-fg); }
.band .eyebrow, .band .muted, .band .lead { color: var(--band-muted); }
.band .btn-ghost { color: var(--band-fg); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .6rem; }
.checks svg { width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: var(--signal); }
.band .checks svg { color: var(--signal); }
.surface .checks svg, .section:not(.band) .checks svg { color: var(--ok); }

/* Familie */
.family { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; }
.family-item { border-top: 3px solid var(--signal); padding-top: 1rem; display: grid; gap: .35rem; }
.family-item h3 { font-size: 1.45rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; }
.member { display: grid; gap: .75rem; align-content: start; }
.member .photo { aspect-ratio: 1; }
.member .photo.missing { border: 0; }
.member .initials { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--ink-soft); }
.member .photo.missing figcaption { display: none; }
.member h3 { font-size: 1.45rem; }
.member p { color: var(--ink-soft); font-size: .95rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 3px; background: color-mix(in srgb, var(--signal) 30%, transparent); color: var(--ink); width: fit-content; }

/* Callout / CTA */
.cta { background: var(--signal); color: var(--signal-ink); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2.5rem; }
.cta h2 { font-size: var(--step-3); }
.cta .btn-dark { background: #ffffff; color: #14232a; }
.cta .btn-ghost { color: var(--signal-ink); }

/* Info-Box */
.note { border: 1px solid var(--line); border-left: 4px solid var(--signal); background: var(--surface); padding: 1.25rem 1.5rem; border-radius: var(--radius); display: grid; gap: .5rem; }

/* Karte (2-Klick) */
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background:
  repeating-linear-gradient(0deg, transparent 0 39px, color-mix(in srgb, var(--ink) 7%, transparent) 39px 40px),
  repeating-linear-gradient(90deg, transparent 0 39px, color-mix(in srgb, var(--ink) 7%, transparent) 39px 40px), var(--surface); display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { display: grid; gap: .75rem; justify-items: center; text-align: center; padding: 1.5rem; max-width: 26rem; }
.map-consent p { font-size: var(--step--1); color: var(--ink-soft); }

/* Bewertungen */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2rem; align-items: center; }
@media (max-width: 700px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* Formular */
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; width: 100%; min-height: 48px; }
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--signal) 70%, transparent); outline-offset: 0; border-color: var(--signal); }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span { display: inline-block; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; background: var(--surface); }
.chips input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .92rem; }
.consent input { width: 1.2rem; height: 1.2rem; min-height: 0; margin-top: .2rem; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.form-msg.ok { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); border: 1px solid var(--ok); }
.form-msg.err { background: color-mix(in srgb, var(--closed) 12%, var(--surface)); border: 1px solid var(--closed); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact-list li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .7rem; align-items: start; }
.contact-list svg { width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: var(--ink-soft); }
.contact-list a { font-weight: 600; }

/* Seitenkopf Unterseiten */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1rem; }
.crumbs { font-size: var(--step--1); color: var(--ink-soft); }
.crumbs a { color: inherit; }

.prose { display: grid; gap: 1rem; max-width: 48rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); font-size: .95rem; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); }
.site-footer .wrap { padding-block: 3rem 1.5rem; display: grid; gap: 2rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 2rem; }
.site-footer h2 { font-size: 1.3rem; color: var(--band-fg); margin-bottom: .75rem; }
.site-footer a { color: var(--band-fg); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--brand-red-on-dark); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--band-fg) 15%, transparent); padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.site-footer .hours th, .site-footer .hours td { border-color: color-mix(in srgb, var(--band-fg) 15%, transparent); color: var(--band-fg); padding: .3rem 0; }

/* Mobile Aktionsleiste */
.action-bar { display: none; }
@media (max-width: 700px) {
  .action-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--line);
    padding: .4rem max(8px, env(safe-area-inset-right, 0px)) calc(.4rem + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); gap: .4rem; }
  .action-bar a { display: grid; justify-items: center; gap: .1rem; padding: .35rem; text-decoration: none; font-size: .78rem; font-weight: 600; border-radius: var(--radius); }
  .action-bar a svg { width: 22px; height: 22px; }
  .action-bar a.primary { background: var(--signal); color: var(--signal-ink); }
  body { padding-bottom: 72px; }
}
.member .photo .initials { display: none; }
.member .photo.missing .initials { display: block; }
.map-consent svg { width: 40px; height: 40px; color: var(--ink-soft); }
.site-footer .hours tr.today th, .site-footer .hours tr.today td { color: var(--band-fg); }
.site-footer .hours tr.today th::after { color: var(--band-muted); }
/* Portraits sind rund fotografiert: als Kreis zeigen, weisse Ecken ausblenden */
.member .photo { border-radius: 50%; }
.member .photo img { transform: scale(1.04); }
.member .photo.missing { border-radius: var(--radius); }
.portrait-lg { aspect-ratio: 1; border-radius: 50%; width: min(100%, 22rem); justify-self: center; }
.portrait-lg img { transform: scale(1.04); }

/* Organigramm (Teamseite) */
.org { --line-c: var(--line); display: grid; gap: 0; }
.org-card { display: grid; justify-items: center; text-align: center; gap: .5rem; width: 9.5rem; min-width: 0; }
.org-card .photo { width: 9rem; aspect-ratio: 1; border-radius: 50%; }
.org-card .photo img { transform: scale(1.04); }
.org-card .photo.missing { border: 0; }
.org-card .initials { display: none; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--ink-soft); }
.org-card .photo.missing .initials { display: block; }
.org-card .photo.missing figcaption { display: none; }
.org-text { display: grid; gap: .15rem; justify-items: center; }
.org-card h3 { font-size: 1.3rem; }
.org-role { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.org-note { font-size: .85rem; color: var(--ink-soft); }
.org-top { display: flex; justify-content: center; padding-bottom: 2rem; position: relative; }
.org-top::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 2rem; border-left: 2px solid var(--line-c); }
.org-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; position: relative; padding-top: 2rem; }
.org-branches::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; border-top: 2px solid var(--line-c); }
.org-branch { position: relative; display: grid; gap: 1.5rem; justify-items: center; align-content: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.5rem .75rem 2rem; }
.org-branch::before { content: ""; position: absolute; top: -2rem; left: 50%; height: 2rem; border-left: 2px solid var(--line-c); }
.org-label { font-size: var(--step-2); }
.org-sublabel { font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.25rem; width: 100%; text-align: center; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem .75rem; }
@media (max-width: 800px) {
  .org-branches { grid-template-columns: minmax(0, 1fr); }
  .org-branches::before { display: none; }
  .org-branch + .org-branch::before { top: -2rem; }
}

/* Markenleiste (Startseite) */
.brands { background: var(--paper); border-bottom: 1px solid var(--line); }
.brands .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.25rem; }
.brands-label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.brands-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.brands-list li { background: #ffffff; border: 1px solid var(--line); border-radius: 999px; height: 56px; padding: 0 .9rem; display: flex; align-items: center; }
.brands-list img { height: 38px; width: auto; }
.brands-list .brands-more { background: transparent; border-style: dashed; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
@media (max-width: 640px) { .brands-list li { height: 46px; padding: 0 .65rem; } .brands-list img { height: 30px; } }

/* Klickbare AutoScout24-Fläche */
.as-panel { display: grid; gap: .75rem; align-content: center; justify-items: start; min-height: 18rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); text-decoration: none;
  background: var(--surface); color: var(--ink); border: 2px solid var(--signal); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--ink) 50%, transparent); transition: transform .15s ease, box-shadow .15s ease; }
.as-panel:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--ink) 60%, transparent); }
.as-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--signal-ink); }
.as-icon svg { width: 2rem; height: 2rem; }
.as-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); text-transform: uppercase; line-height: 1.05; }
.as-text { color: var(--ink-soft); max-width: 40ch; }
.as-go { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; color: var(--signal); }
.as-go svg { width: 1.1em; height: 1.1em; }
.band .as-panel { color: var(--ink); }

/* Occasionen: AutoScout24-Fahrzeugliste */
.as-widget { background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(.5rem, 2vw, 1.25rem); min-height: 20rem; }
.as-widget noscript p { padding: 1rem; }
.as-headline { color: var(--signal); text-decoration: none; }
.as-headline:hover { text-decoration: underline; }
.map-direct { min-height: 420px; }
.map-route { margin-top: .75rem; }
.map-route a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.map-route svg { width: 1.1em; height: 1.1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.map-wrap { display: flex; flex-direction: column; } .map-wrap .map { flex: 1; }

/* Kundenstimmen */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.quote { margin: 0; display: grid; gap: .75rem; align-content: start; padding: 1.5rem; border-radius: var(--radius); background: color-mix(in srgb, var(--band-fg) 6%, transparent); border: 1px solid color-mix(in srgb, var(--band-fg) 14%, transparent); }
.quote-stars { display: flex; gap: .15rem; color: #f5b301; }
.quote-stars svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.quote blockquote { margin: 0; color: var(--band-fg); font-size: 1.05rem; line-height: 1.5; }
.quote figcaption { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--band-muted); }

/* Ablauf in Schritten (Autoankauf) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.steps li { display: grid; gap: .5rem; align-content: start; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-nr { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--signal-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--ink-soft); }

/* Leistungen mit Foto */
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.svc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-body { display: grid; gap: .5rem; align-content: start; padding: 1.25rem 1.25rem 1.5rem; flex: 1; }
.svc h3 { font-size: 1.5rem; }
.svc p { color: var(--ink-soft); font-size: .97rem; }
.svc a { font-weight: 600; justify-self: start; }

/* Startseite: Intro mit Motor-Foto */
.photo.photo-tall { aspect-ratio: 4 / 5; max-height: 560px; justify-self: center; width: 100%; max-width: 460px; }
@media (max-width: 800px) { .intro-split .photo-tall { aspect-ratio: 1; max-width: none; } .intro-split .photo-tall img { object-position: 50% 20%; } }

/* Startseite: 8. Karte «Alle Leistungen» */
.svc-more { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); text-decoration: none; }
.svc-more-icon { display: grid; place-items: center; aspect-ratio: 4 / 3; background: color-mix(in srgb, #000 12%, var(--signal)); }
.svc-more-icon svg { width: 4.5rem; height: 4.5rem; color: var(--signal-ink); }
.svc-more-title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; }
.svc-more-text { opacity: .9; font-size: .97rem; }
.svc-more-go { font-weight: 600; margin-top: auto; }
.svc-more:hover { background: color-mix(in srgb, #000 10%, var(--signal)); }

/* Kontaktformular: Sicherheitscode */
.captcha-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.captcha-row img { border: 1px solid var(--line); border-radius: 6px; background: #f4f5f6; width: 160px; height: 50px; }
.captcha-new { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.captcha-new:hover { border-color: var(--ink); }
.captcha-row input { flex: 1 1 8rem; max-width: 12rem; text-transform: uppercase; letter-spacing: .15em; }

/* Abschnitt mit hellem Flächenhintergrund (z.B. «Ihr Fahrzeug in besten Händen») */
.section-alt { background: var(--surface); border-bottom: 1px solid var(--line); }

/* Occasionen: Fahrzeugkarten (Übergang, bis die AutoScout-Einbindung freigeschaltet ist) */
.cars { display: grid; gap: 1.25rem; }
.car { display: grid; grid-template-columns: minmax(0, 318px) 1fr; gap: 1.5rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.car-img { display: block; border-radius: calc(var(--radius) - 4px); overflow: hidden; align-self: start; }
.car-img img { display: block; width: 100%; height: auto; }
.car-body { display: grid; gap: .5rem; align-content: start; }
.car h3 { font-size: var(--step-1); line-height: 1.15; }
.car h3 a { color: var(--ink); text-decoration: none; }
.car h3 a:hover { color: var(--signal); }
.car-text { color: var(--ink-soft); font-size: var(--step--1); }
.car-price { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1; margin-top: .25rem; }
.car-specs { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .4rem 1rem; font-size: var(--step--1); }
.car-specs li { display: flex; align-items: center; gap: .5rem; }
.car-specs svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--ink-soft); }
.car-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin-top: .25rem; justify-self: start; }
.car-more svg { width: 1em; height: 1em; }
@media (max-width: 640px) { .car { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; } .car-img { max-width: 318px; } }

/* Startseite: Teamfoto (ohne Schrift) rechts neben dem Text */
.hero .photo.hero-photo { aspect-ratio: 1280 / 720; }
@media (min-width: 801px) {
  .hero:has(.hero-photo) { position: relative; overflow: hidden; }
  .hero .wrap:has(.hero-photo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .wrap:has(.hero-photo) > div { position: relative; z-index: 2; }
  .hero .photo.hero-photo { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; margin: 0; background: none; }
  .hero .photo.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; }
  .hero .photo.hero-photo::after { content: none; }
  .hero:has(.hero-photo)::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 76%, transparent) 0, color-mix(in srgb, var(--surface) 72%, transparent) calc(50% - 10rem), color-mix(in srgb, var(--surface) 58%, transparent) calc(50% - 5rem), color-mix(in srgb, var(--surface) 36%, transparent) calc(50% - 1rem), color-mix(in srgb, var(--surface) 16%, transparent) calc(50% + 3rem), color-mix(in srgb, var(--surface) 5%, transparent) calc(50% + 7rem), transparent calc(50% + 10rem)); }
}

/* Marken-Logos verlinkt */
.brands-list a { display: flex; align-items: center; height: 100%; }
.brands-list li:has(a):hover { border-color: var(--ink-soft); }

/* Startseite Handy: Teamfoto flächig oben im Banner, weich in den Text auslaufend */
@media (max-width: 800px) {
  .hero:has(.hero-photo) { position: relative; overflow: hidden; }
  .hero .wrap:has(.hero-photo) { padding-top: calc(min(78vw, 420px) - 4.5rem); }
  .hero .wrap:has(.hero-photo) > div { position: relative; z-index: 2; }
  .hero .photo.hero-photo { position: absolute; top: 0; left: 0; right: 0; height: min(78vw, 420px); width: auto; aspect-ratio: auto; border-radius: 0; margin: 0; background: none; }
  .hero .photo.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .hero .photo.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 0, transparent 45%, color-mix(in srgb, var(--surface) 35%, transparent) 62%, color-mix(in srgb, var(--surface) 75%, transparent) 80%, var(--surface) 100%); }
}

/* Marken-Leiste modernisiert: gleich grosse Kacheln, ruhiger Rahmen */
.brands { background: var(--surface); }
.brands .wrap { gap: 1rem 2.5rem; padding-block: 1.75rem; }
.brands-label { display: flex; align-items: center; gap: .75rem; color: var(--ink); max-width: 22rem; line-height: 1.25; }
.brands-label::before { content: ""; flex: none; width: 4px; align-self: stretch; min-height: 2.4rem; border-radius: 2px; background: var(--signal); }
.brands-list { display: grid; grid-template-columns: repeat(4, 112px) auto; gap: .75rem; }
.brands-list li { height: 68px; padding: 0; justify-content: center; border-radius: 12px; border-color: color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 4px 14px rgb(0 0 0 / .05); transition: border-color .15s, box-shadow .15s; }
.brands-list li:has(a):hover { border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 6px 18px rgb(0 0 0 / .08); }
.brands-list a { justify-content: center; width: 100%; }
.brands-list img { height: 40px; max-width: 88px; object-fit: contain; }
.brands-list .brands-more { border: 0; box-shadow: none; background: transparent; padding: 0 .5rem; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
@media (max-width: 640px) {
  .brands .wrap { padding-block: 1.5rem; }
  .brands-label { max-width: none; }
  .brands-list { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  .brands-list li { height: 60px; padding: 0; }
  .brands-list img { height: 32px; max-width: 72px; }
  .brands-list .brands-more { grid-column: 1 / -1; height: auto; justify-content: center; padding-top: .25rem; }
}

/* ===== Modernisierung 2026: weichere Ecken, ruhige Schatten, mehr Luft ===== */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { margin-bottom: 2.5rem; }

/* Kleine Überschriften mit rotem Akzent */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.05rem; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; border-radius: 2px; background: var(--signal); flex: none; }
.hero .eyebrow::before { display: none; }

/* Buttons: etwas runder, klarer Fokus, kein Anheben */
.btn { border-radius: 10px; letter-spacing: .03em; }
.btn-signal { box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--signal) 70%, transparent); }
.btn-signal:hover { filter: brightness(1.08); }

/* Kopfzeile: leicht durchscheinend mit Unschärfe */
.site-header { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }

/* Karten einheitlich: dünner Rahmen + weicher Schatten */
.hours-card, .svc, .steps li, .org-branch, .car, .note, .as-widget, .map { border-color: color-mix(in srgb, var(--line) 75%, transparent); box-shadow: var(--shadow-sm); }
.svc { transition: box-shadow .2s ease, border-color .2s ease; }
.svc:hover { box-shadow: var(--shadow-md); }
.svc .photo, .svc img { border-radius: 0; }
.photo:not(.hero-photo) { box-shadow: var(--shadow-sm); }

/* Occasionen-Kasten ohne Anheben beim Darüberfahren */
.as-panel, .as-panel:hover { transform: none; }
.as-panel { border-width: 1px; border-color: color-mix(in srgb, var(--signal) 55%, var(--line)); box-shadow: var(--shadow-md); }

/* Dunkle Bänder mit sanftem Verlauf */
.band { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--band) 82%, #1d4f60) 0%, var(--band) 55%); }
.quote { border-radius: var(--radius); background: color-mix(in srgb, var(--band-fg) 7%, transparent); }

/* Formularfelder runder, mit sichtbarem Fokus */
input, select, textarea { border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 18%, transparent); outline: none; }

/* Aufruf-Band rot mit leichtem Verlauf */
.cta { background: linear-gradient(135deg, var(--signal) 0%, color-mix(in srgb, var(--signal) 82%, #000) 100%); }

/* Leistungs-Unterseiten */
.svc-img { display: block; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a:hover { color: var(--signal); }
.page-head .btn-row { margin-top: .5rem; }
.svc-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.svc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-intro { align-items: start; }
.svc-intro .stack p { color: var(--ink-soft); }
.svc-more-info { align-items: start; }
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .6rem; color: var(--ink-soft); }

/* Occasionen */
.occ-facts { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.occ-facts li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .97rem; }
.occ-facts svg { width: 1.2rem; height: 1.2rem; color: var(--signal); flex: none; }
.occ-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.occ-list-head .stack { max-width: 40rem; }

/* Banner: Bild sichtbarer, Text bleibt durch leichten hellen Schein lesbar */
@media (min-width: 801px) {
  .hero:has(.hero-photo) :is(h1, p, li) { text-shadow: 0 0 .9rem color-mix(in srgb, var(--surface) 85%, transparent), 0 0 .25rem color-mix(in srgb, var(--surface) 70%, transparent); }
}
.occ-top .wrap { padding-block: clamp(1rem, 2.5vw, 1.75rem) clamp(2rem, 4vw, 3rem); display: grid; gap: 1rem; }
.occ-top h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.occ-top .occ-list-head { align-items: center; }
.section.occ-intro { padding-top: 0; }

/* Untermenü «Über uns» */
.nav-group { position: relative; }
.nav-group-btn { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; padding: .5rem .6rem; background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; border-radius: var(--radius); white-space: nowrap; }
.nav-group-btn svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
.nav-group-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav-group.is-active .nav-group-btn { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 12rem; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 60; }
.nav-sub a { display: block; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group-btn[aria-expanded="true"] + .nav-sub { display: grid; }
.nav-group:hover .nav-group-btn svg, .nav-group-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 940px) {
  .nav-group-btn { display: none; }
  .nav-sub { display: grid; position: static; padding: 0; border: 0; box-shadow: none; background: none; min-width: 0; }
  .nav-sub a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--signal); padding-left: 1rem; }
}

/* Aktion und Bildergalerie (Leistungsseiten, Occasionen, Kontakt) */
.promo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface); border: 2px solid var(--signal); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.promo-imgs { display: flex; gap: 1rem; justify-content: center; align-items: center; }
.promo-imgs img { width: min(45%, 10rem); height: auto; object-fit: contain; }
@media (max-width: 700px) { .promo { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface); }
.gallery img { display: block; width: 100%; height: 20rem; object-fit: cover; }
.gallery-cars img { height: auto; aspect-ratio: 4 / 3; }
.kontakt-split { align-items: start; }
.kontakt-photo img { aspect-ratio: 3 / 4; object-position: 50% 30%; }
.storage-split { align-items: center; }
.photo.storage-photo { aspect-ratio: 3 / 4; max-width: 440px; width: 100%; justify-self: center; }
.storage-photo img { object-position: 50% 40%; }

/* Kompaktes Menü auf mittleren Breiten */
@media (min-width: 941px) and (max-width: 1180px) { .nav { gap: 0; } .nav a, .nav .nav-group-btn { font-size: 1.05rem; padding-inline: .45rem; letter-spacing: .02em; } .nav .btn { margin-left: .25rem; } }
