/* North Industries – Designvorschlag „Industrie klar“
   Hell, ruhig, viel Weißraum. Eine Akzentfarbe (Koralle) nur für Handlungen,
   Holzton als Material-Hinweis, dunkle Farbe nur für Schrift. */

:root {
    --ink: #1F2A30;
    --ink-soft: #4B5A62;
    --muted: #5F6B73;
    --line: #E7E2DB;
    --bg: #FFFFFF;
    --bg-soft: #F7F4EF;
    --wood: #C9A27A;
    --wood-soft: #F3EADF;
    --accent: #E0573C;
    --accent-btn: #B8432C;
    --accent-btn-hover: #A33A25;
    --accent-soft: #FCEEE9;
    --accent-hell: #F4A58A;
    --stern: #9C6500;
    --ok-bg: #EAF5EC;
    --ok-line: #B9DDBF;
    --ok-text: #1E5A2B;
    --fehler-line: #F1C4B8;
    --fehler-text: #8E2F1C;
    --hero-dunkel: #172024;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(31, 42, 48, 0.06), 0 8px 24px rgba(31, 42, 48, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; letter-spacing: -0.015em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-holz { background: var(--wood-soft); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-btn);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 14px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: 10px; border: 1.5px solid transparent;
    font: 600 16px/1.2 'DM Sans', sans-serif; text-decoration: none; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: var(--accent-btn-hover); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { flex-shrink: 0; }

/* Top-Leiste */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.topbar-usps { display: flex; gap: 22px; }
.topbar-usps span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-usps svg { color: var(--accent); }
.topbar a { text-decoration: none; font-weight: 600; color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { margin-top: 5px; font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-btn); white-space: nowrap; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; }
.header-phone svg { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

/* Hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent-btn); }
.hero-lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.hero-checks { list-style: none; margin: 26px 0 32px; display: grid; gap: 10px; }
.hero-rating + .hero-checks, .hero-actions + .hero-checks { margin: 22px 0 0; }
.hero-checks li { display: flex; gap: 12px; align-items: flex-start; }
.hero-checks svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.quote-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.quote-card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.quote-card-body { padding: 26px 26px 28px; }
.quote-card h2 { font-size: 22px; margin-bottom: 6px; }
.quote-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* Formular */
.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form textarea {
    width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
    font: 400 16px 'DM Sans', sans-serif; color: var(--ink); background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form textarea { min-height: 96px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-btn); flex-shrink: 0; }
.form .btn { width: 100%; }
.form-trust { display: flex; gap: 14px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.form-trust span::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* Vertrauensleiste */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 24px; display: flex; gap: 14px; align-items: center; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--wood-soft); color: #8A6440; display: grid; place-items: center; flex-shrink: 0; }
.trust-item strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 17px; }
.trust-item span { font-size: 14px; color: var(--muted); }

/* Produkte */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.product:hover { border-color: var(--wood); transform: translateY(-2px); }
.product img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 20px; margin-bottom: 8px; }
.product p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.product a { margin-top: 16px; font-weight: 700; color: var(--accent-btn); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.product a:hover { text-decoration: underline; }
.product-wide { grid-column: span 2; flex-direction: row; }
.product-wide img { width: 50%; aspect-ratio: auto; }

/* Ablauf */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--accent-btn); background: var(--accent-soft); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
.step ul { list-style: none; margin-top: 14px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.step li::before { content: '—'; color: var(--wood); margin-right: 8px; }

/* Split-Abschnitte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 14px 0 16px; }
.split p { color: var(--ink-soft); margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 10px; margin: 20px 0 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); }

/* ISPM-15 Info */
.info-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--wood); border-radius: var(--radius); padding: 30px 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.info-box h3 { font-size: 22px; margin-bottom: 10px; }
.info-box p { color: var(--ink-soft); }
.info-box ul { list-style: none; display: grid; gap: 10px; align-content: center; }
.info-box li { display: flex; gap: 10px; font-weight: 600; }
.info-box li svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font: 700 17px 'Space Grotesk', sans-serif; color: var(--ink); cursor: pointer; }
.faq-question svg { transition: transform .2s ease; color: var(--accent-btn); flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 0 20px; color: var(--ink-soft); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.contact-list svg { color: var(--accent); flex-shrink: 0; }
.contact-list a { text-decoration: none; font-weight: 600; }
.map-box { margin-top: 14px; border: 1px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 15px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-btn); }
.site-footer a.footer-alle { font-weight: 700; color: var(--accent-btn); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

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

/* Cookie-Hinweis (Logik aus script.js) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(31, 42, 48, 0.16); padding: 22px 24px; z-index: 100; transform: translateY(140%); transition: transform .4s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-content { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-text h4 { font-size: 17px; margin-bottom: 6px; }
.cookie-banner-text p { font-size: 14px; color: var(--ink-soft); }
.cookie-banner-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 18px; font-size: 15px; }

/* Responsive */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .hero-grid, .split, .contact-grid, .faq-wrap, .info-box { grid-template-columns: 1fr; }
    .products { grid-template-columns: 1fr 1fr; }
    .product-wide { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 16px; padding-bottom: 68px; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 64px 0; }
    .topbar-usps span:nth-child(n+2) { display: none; }
    .topbar a { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
    .site-header .container { height: 64px; }
    .header-phone span, .header-cta .btn { display: none; }
    .header-cta { gap: 10px; }
    .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 10px; }
    .footer-grid > div:nth-child(2) ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
@media (max-width: 420px) {
    .topbar a[href^="mailto:"] { display: none; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-name { font-size: 18px; }
    .brand-sub { font-size: 9px; }
    .hero { padding: 44px 0 56px; }
    .form-row { grid-template-columns: 1fr; }
    .products, .steps { grid-template-columns: 1fr; }
    .product-wide { grid-column: auto; flex-direction: column; }
    .product-wide img { width: 100%; aspect-ratio: 4 / 3; }
    .footer-grid { grid-template-columns: 1fr; }
    .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: rgba(255,255,255,0.97); border-top: 1px solid var(--line); z-index: 60; }
    .mobile-bar .btn { padding: 13px 12px; }
}

/* Navigation auf Tablet/Handy und kleinen Laptops: Menü-Knopf, Liste klappt unter dem Kopf auf */
@media (max-width: 1100px) {
    .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; flex-shrink: 0; }
    .menu-toggle span { margin: 2px auto; transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(31, 42, 48, 0.12); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; }
    .main-nav.active { display: flex; }
    .main-nav > a, .main-nav .nav-drop-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
}
/* Bis 1280 px nur das Telefon-Symbol im Kopf, damit Logo, Menü und Knöpfe in eine Zeile passen */
@media (max-width: 1280px) { .header-phone span { display: none; } .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 10px; } }
/* Handy: Menü endet über der unteren Anruf-Leiste */
@media (max-width: 720px) { .main-nav { max-height: calc(100vh - 176px); max-height: calc(100dvh - 176px); } }

/* Karte */
.map-box { padding: 0; overflow: hidden; }
.map-placeholder { padding: 22px; display: grid; gap: 12px; justify-items: center; }
.map-placeholder.hidden { display: none; }
.map-box iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Rechtstexte */
.legal { max-width: 860px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin: 14px 0 28px; }
.legal-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px 40px; }
.legal-box h2 { font-size: 22px; margin: 32px 0 12px; }
.legal-box h2:first-child { margin-top: 0; }
.legal-box h3 { font-size: 18px; margin: 22px 0 8px; }
.legal-box p { color: var(--ink-soft); margin-bottom: 12px; }
.legal-box a { color: var(--accent-btn); }
@media (max-width: 720px) { .legal-box { padding: 24px 20px; } }

/* Topbar: auf Tablets nur die ersten zwei Vorteile zeigen, damit nichts über den Rand ragt */
@media (max-width: 1100px) {
    .topbar-usps span:nth-child(n+3) { display: none; }
}

/* Lange Adressen und Links (z. B. im Datenschutz) brechen statt über den Rand zu ragen */
main p, main li, main td, main a { overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 360px) { h1, h2, h3 { hyphens: auto; } }

/* Leistungen-Menü oben (Aufklappmenü, Logik in script.js) */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: none; border: 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: var(--ink); }
.nav-drop-btn svg { transition: transform .2s ease; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-panel { display: none; position: absolute; top: calc(100% + 18px); left: -28px; z-index: 70; width: max-content; max-width: min(760px, calc(100vw - 32px)); grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 6px 32px; padding: 24px 28px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(31, 42, 48, 0.14); }
.nav-drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav-drop.open .nav-drop-panel { display: grid; }
@media (hover: hover) and (min-width: 1101px) { .nav-drop:hover .nav-drop-panel { display: grid; } }
.nav-drop-title { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-btn); }
.main-nav .nav-drop-panel a { display: block; padding: 6px 0; font-weight: 400; font-size: 15px; color: var(--ink); white-space: nowrap; }
.main-nav .nav-drop-panel a:hover { color: var(--accent-btn); }
.main-nav .nav-drop-panel a.nav-drop-all { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--accent-btn); }
@media (max-width: 1100px) {
    .nav-drop { position: static; flex-direction: column; align-items: stretch; }
    .nav-drop-panel { position: static; width: auto; max-width: none; grid-template-columns: 1fr 1fr; gap: 4px 20px; padding: 14px 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
    .nav-drop-panel::before { display: none; }
    .main-nav .nav-drop-panel a { padding: 10px 0; }
}
@media (max-width: 560px) { .nav-drop-panel { grid-template-columns: 1fr; } }

/* Sehr schmale Handys (ab 320 px): Hero-Spalte darf schrumpfen, lange Wörter umbrechen */
.hero-grid > * { min-width: 0; }
.eyebrow { overflow-wrap: anywhere; }
@media (max-width: 380px) { .hero h1 { font-size: 30px; } .eyebrow { letter-spacing: 0.08em; } }
@media (max-width: 380px) { .btn { white-space: normal; max-width: 100%; text-align: center; padding-left: 16px; padding-right: 16px; } }
@media (max-width: 380px) { .btn { font-size: 15px; } .btn svg { display: none; } .nur-breit { display: none; } }

/* Bewertungs-Hinweis im Hero (springt zu den Kundenstimmen) */
.hero-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 22px; font-size: 18px; color: var(--ink-soft); text-decoration: none; }
.hero-rating .stars { color: #E8A33C; letter-spacing: 2px; font-size: 24px; line-height: 1; }
.hero-rating strong { color: var(--ink); }
.hero-rating:hover span:last-child { text-decoration: underline; }

/* 320-px-Handys: Telefon steckt in der unteren Leiste, im Kopf nur Logo und Menü */
@media (max-width: 360px) { .header-phone { display: none; } .site-header .container { gap: 16px; } .footer-grid > div:nth-child(2) ul { grid-template-columns: 1fr; } }

/* Kennungen wie DE-BE1 49051 nicht am Bindestrich umbrechen */
.nobr { white-space: nowrap; }

/* Sichtbarer Tastatur-Fokus (WCAG 1.4.11: mindestens 3 : 1, hier 14 : 1) */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* Abstand zwischen Einleitung und Knöpfen im Hero */
.hero-lead + .hero-actions { margin-top: 30px; }
@media (max-width: 720px) { .hero-lead + .hero-actions { margin-top: 20px; } }

/* Startseite: Hero mit eigenem Kistenfoto, abgedunkelt; weiße Schrift (≥ 4,5 : 1 auch über den hellsten Bildstellen) */
.hero-foto { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-dunkel); padding: 64px 0 72px; }
.hero-foto .hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-foto::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 32, 36, 0.9) 0%, rgba(23, 32, 36, 0.82) 55%, rgba(23, 32, 36, 0.5) 80%, rgba(23, 32, 36, 0.42) 100%); }
.hero-foto .hero-grid { align-items: start; }
.hero-foto .eyebrow, .hero-foto h1 em { color: var(--accent-hell); }
.hero-foto .eyebrow::before { background: var(--accent-hell); }
.hero-foto h1 { color: #fff; }
.hero-foto .hero-lead { color: rgba(255, 255, 255, 0.9); }
.hero-foto .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero-foto .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.hero-foto .hero-rating { color: rgba(255, 255, 255, 0.88); }
.hero-foto .hero-rating strong { color: #fff; }
.hero-foto .hero-text :focus-visible { outline-color: #fff; }
/* Formular-Karte ohne Bild, oben bündig mit der H1 */
.hero-foto .quote-card { margin-top: 44px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28); }
.hero-foto .quote-card-body { padding: 26px 26px 24px; }
.hero-foto .quote-card .form textarea { min-height: 80px; }
@media (max-width: 1024px) {
    .hero-foto .quote-card { margin-top: 0; }
    .hero-foto .hero-bg { height: 62%; }
    .hero-foto::before { background: linear-gradient(180deg, rgba(23, 32, 36, 0.8) 0%, rgba(23, 32, 36, 0.86) 40%, var(--hero-dunkel) 62%); }
}
@media (max-width: 420px) { .hero-foto { padding: 40px 0 48px; } }

/* Raster-Kinder dürfen schmaler werden als ihr längstes Wort (sonst ragen Karten über den Rand, z. B. iPhone Pro Max 430 px) */
.steps > *, .products > *, .trust .container > *, .footer-grid > * { min-width: 0; }

/* Rückmeldung nach dem Absenden (Logik in script.js, ersetzt das frühere Pop-up) */
.form-hinweis { padding: 14px 16px; border: 1px solid; border-radius: 10px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.form-hinweis:focus { outline: none; }
.form-hinweis strong { display: block; margin-bottom: 2px; font-size: 16px; }
.form-hinweis a { color: inherit; font-weight: 700; }
.form-hinweis--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.form-hinweis--fehler { background: var(--accent-soft); border-color: var(--fehler-line); color: var(--fehler-text); }

/* Vertrauensleiste: Symbol immer links und senkrecht mittig zu Titel + Unterzeile, gleicher Innenabstand in allen Punkten,
   Titel einzeilig. 4 Spalten ab 1200 px, 2 × 2 von 600–1199 px, darunter 1 Spalte (sonst bricht „Meisterbetrieb seit 2021“ um). */
.trust-item, .trust-item:first-child { flex-direction: row; align-items: center; gap: 12px; padding: 22px 18px; border-left: 1px solid var(--line); border-top: none; }
.trust-item:first-child { border-left-color: transparent; }
.trust-icon { width: 40px; height: 40px; }
.trust-item strong { font-size: 16px; line-height: 1.3; }
.trust-item span { font-size: 14px; line-height: 1.4; }
@media (max-width: 1199px) {
    .trust .container { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(3) { border-left-color: transparent; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 719px) { .trust-item strong { font-size: 15px; } }
@media (max-width: 599px) {
    .trust .container { grid-template-columns: 1fr; }
    .trust-item, .trust-item:first-child { padding: 14px 0; border-left: none; }
    .trust-item:nth-child(n+2) { border-top: 1px solid var(--line); }
    .trust-item strong { font-size: 16px; }
}

/* Ausgewogene Umbrüche: keine einzelnen Wörter in der letzten Zeile von Überschriften und Absätzen */
h1, h2, h3, .hero-lead, .section-head p { text-wrap: balance; }
p, li, figcaption, blockquote { text-wrap: pretty; }

/* Ablauf: drei Spalten erst ab 1025 px; darunter bricht „Fertigung und Lieferung“ um und die Texte stehen nicht mehr auf einer Linie */
@media (max-width: 1024px) { .steps { grid-template-columns: 1fr; } }

/* Handy-Ansicht (Wunsch Karim 31.10.2026): Überschriften, Hero, Knöpfe und Vertrauensleiste mittig, etwas größere Schrift,
   kompakter Ablauf, Cookie-Hinweis mit gleich breiten Knöpfen. Fließtext in Karten bleibt linksbündig, das liest sich besser. */
@media (max-width: 720px) {
    body { font-size: 17px; }
    .container { padding: 0 20px; }
    .section-head { margin-left: auto; margin-right: auto; margin-bottom: 32px; text-align: center; }
    .section-head p { font-size: 17px; }
    .eyebrow { justify-content: center; font-size: 13.5px; }
    .contact-grid > div > .eyebrow { display: flex; }

    .hero-foto .hero-text { text-align: center; }
    .hero-foto .hero-lead { margin-left: auto; margin-right: auto; font-size: 18px; }
    .hero-foto .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-foto .hero-actions .btn { width: 100%; }
    .hero-foto .hero-rating { display: flex; justify-content: center; }

    .trust .container { grid-template-columns: 1fr 1fr; }
    .trust-item, .trust-item:first-child { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 18px 8px; text-align: center; border-left: none; border-top: none; }
    .trust-item:nth-child(even) { border-left: 1px solid var(--line); }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .trust-item strong { font-size: 16px; }
    .trust-item span { font-size: 14.5px; }

    .steps { gap: 12px; }
    .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 20px 18px; }
    .step-num { grid-row: 1 / span 3; align-self: start; margin-bottom: 0; }
    .step > :not(.step-num) { grid-column: 2; }
    .step h3 { font-size: 18px; margin-bottom: 4px; }
    .step p { font-size: 16px; }

    .cookie-banner { padding: 18px; bottom: 80px; }
    .cookie-banner-text { flex-basis: 100%; min-width: 0; text-align: center; }
    .cookie-banner-buttons { width: 100%; }
    .cookie-banner-buttons .btn { flex: 1 1 0; }

    .site-footer { text-align: center; }
    .site-footer li a { display: inline-block; padding: 6px 0; }
    .site-footer ul { gap: 2px; }
    .topbar a { padding: 10px 0; }
    .footer-bottom { justify-content: center; }

    /* Untere Leiste „Anrufen / Angebot“ auf allen Handys, nicht erst bis 420 px (iPhone Pro Max hat 430–440 px) */
    .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: rgba(255,255,255,0.97); border-top: 1px solid var(--line); z-index: 60; }
    .mobile-bar .btn { padding: 13px 12px; }
}
