/* KFZ Schlüter – Stylesheet
   Keine externen Schriften (DSGVO): Bahnschrift (Windows) / DIN Alternate (macOS) für Überschriften. */

:root {
    --slate: #22303b;
    --slate-2: #344654;
    --signal: #f4b400;
    --signal-dark: #c99300;
    --paper: #ffffff;
    --concrete: #eceeec;
    --line: #d3d8d6;
    --text: #1e262c;
    --muted: #55626b;
    --danger: #b3261e;
    --ok: #2e7d32;

    --font-head: "Bahnschrift", "DIN Alternate", "DIN 2014", "Roboto Condensed", "Arial Narrow", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --wrap: 1180px;
    --gap: clamp(1rem, 3vw, 2rem);
    --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { margin: 0; font: 1.0625rem/1.65 var(--font-body); color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-dark); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--signal); color: var(--slate); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.measure { max-width: 70ch; }
.center { text-align: center; margin-top: 2rem; }
.small { font-size: .875rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radius); font: 700 1rem/1.2 var(--font-head); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--signal { background: var(--signal); color: var(--slate); }
.btn--signal:hover { background: var(--signal-dark); color: var(--slate); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--ghost-dark { border-color: var(--slate); color: var(--slate); }

/* Topbar mit Warnmarkierung */
.topbar { background: var(--slate); color: #dfe5e8; font-size: .9rem; position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, var(--slate) 14px 28px); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding: .9rem 0 1.2rem; }
.topbar__item { display: flex; gap: .6rem; align-items: center; margin: 0; line-height: 1.35; }
.topbar__item a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar__cta { margin-left: auto; }

/* Header */
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { text-decoration: none; color: var(--slate); display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font: 700 1.6rem var(--font-head); }
.logo__claim { font-size: .85rem; color: var(--muted); }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .6rem .9rem; font: 600 1.02rem var(--font-head); color: var(--slate); text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--slate); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }
.nav-toggle { display: none; }

/* Hero */
.hero { background: var(--slate); color: #fff; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero .lead { color: #c9d3d9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__img { margin: 0; }
.hero__img img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--concrete { background: var(--concrete); }
.section--ink { background: var(--slate); color: #e6ebee; }
.section--ink a { color: #fff; }
.section--ink h2 { color: #fff; }
.h-section { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.page-head { background: var(--concrete); padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }

/* Startseite: drei Schwerpunkte */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.25rem; }
.feature h2 { font-size: 1.45rem; }

/* Startseite: Leistungen mit Icons */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--paper); padding: 2rem 1.5rem; text-decoration: none; color: var(--text); }
.service img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 1rem; }
.service h2 { margin-bottom: .4em; }
.service p { color: var(--muted); margin: 0; }
.service:hover h2 { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Text + Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }
.split__img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split__img--tall { aspect-ratio: 3 / 4; max-height: 620px; }

/* Kundenstimmen */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 2rem; }
.quote { margin: 0; padding: 1.75rem; border-left: 4px solid var(--signal); background: var(--slate-2); display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; font-family: var(--font-head); font-weight: 700; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote--light { background: var(--concrete); color: var(--text); }

/* Listen */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; columns: 3 11rem; column-gap: 1.5rem; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: .35rem; break-inside: avoid; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .45rem; border-left: 3px solid var(--signal-dark); border-bottom: 3px solid var(--signal-dark); transform: rotate(-45deg); }
.facts { margin: 0; }
.facts dt { font: 700 1.1rem var(--font-head); margin-top: 1.25rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .2rem 0 0; }
.logos { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.logos img { width: 120px; height: 120px; object-fit: contain; }

/* Kacheln (Angebot) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.tile { border-top: 4px solid var(--signal); padding-top: 1.25rem; }
.tile h2 { font-size: 1.35rem; color: #fff; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 5rem); }
.contact__info { background: var(--concrete); padding: 2rem; border-radius: var(--radius); align-self: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .8rem; border: 1px solid #a9b2b7; border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field__error { color: var(--danger); font-size: .9rem; margin: 0; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .7rem; }
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--slate); flex: none; }
.field--check label { font-weight: 400; flex: 1; }
.field--check .field__error { flex-basis: 100%; }
.notice { padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; border-left: 5px solid; }
.notice p:last-child { margin: 0; }
.notice--ok { background: #e8f3e8; border-color: var(--ok); }
.notice--error { background: #fbeaea; border-color: var(--danger); }

/* Rechtstexte */
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }

/* Footer */
.footer { background: #1a252e; color: #b9c4ca; font-size: .95rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr; gap: var(--gap); padding: 3.5rem 0 2.5rem; }
.footer h2 { color: #fff; font-size: 1.15rem; padding-bottom: .6rem; border-bottom: 2px solid var(--signal); display: inline-block; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: .5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 2px; }
.gallery a:hover img { opacity: .8; }
.footer__bottom { border-top: 1px solid #2e3c47; padding: 1.1rem 0; font-size: .875rem; }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { margin-left: 1rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 16, 20, .88); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: .5rem; right: .5rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--signal); color: var(--slate); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Responsive */
@media (max-width: 980px) {
    .services, .tiles { grid-template-columns: repeat(2, 1fr); }
    .quotes, .features { grid-template-columns: 1fr; max-width: 640px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .contact { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .topbar__item:nth-child(1), .topbar__item:nth-child(2) { display: none; }
    .topbar__inner { justify-content: space-between; }
    .hero__inner, .split { grid-template-columns: 1fr; }
    .hero__img { order: -1; }
    .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; padding: 0 10px; }
    .nav-toggle span:not(.sr) { height: 2px; background: var(--slate); display: block; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
    .nav.is-open { display: block; }
    .nav ul { flex-direction: column; padding: .5rem var(--gap) 1rem; }
    .nav a { border-bottom: 0; border-left: 3px solid transparent; }
    .nav a[aria-current="page"] { border-left-color: var(--signal); }
    .header__inner { position: relative; }
}
@media (max-width: 560px) {
    .services, .tiles, .form-grid, .footer__grid { grid-template-columns: 1fr; }
    .topbar__cta { padding: .6rem 1rem; }
}
