/* ============================================================
   Ihre Handwerker im Norden – Stylesheet
   Farbwelt: Dunkelblau #082b4b · Hellblau #2f70a6 · Nordisch
   Schriften lokal gehostet (keine Verbindung zu Google).
   ============================================================ */

/* ---- Fonts (variabel, latin) ---- */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/archivo.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans.woff2') format('woff2');
}

/* ---- Variablen ---- */
:root {
    --navy:        #082b4b;
    --navy-700:    #0c3c66;
    --navy-900:    #061f37;
    --blue:        #2f70a6;
    --blue-600:    #2a6699;
    --blue-400:    #6ea3cf;
    --blue-100:    #e4eef6;
    --sky:         #d8e7f2;

    --ink:         #0e1c2b;
    --ink-soft:    #4a5d70;
    --paper:       #ffffff;
    --paper-alt:   #f2f6f9;
    --line:        #dbe4ec;

    --ok:          #1f7a4d;
    --ok-bg:       #e7f5ee;
    --err:         #b42318;
    --err-bg:      #fdecea;

    --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 2px 6px rgba(8, 43, 75, 0.06);
    --shadow-md: 0 10px 28px rgba(8, 43, 75, 0.12);
    --shadow-lg: 0 22px 50px rgba(8, 43, 75, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-h: 76px;
}
@media (min-width: 1024px) { :root { --nav-h: 88px; } }

/* ---- Reset & Basis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

address { font-style: normal; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; overflow-wrap: break-word; hyphens: manual; }

::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 3000;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ============================================================
   Logo (SVG-Emblem + Wortmarke)
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.brand-mark { height: 44px; width: auto; flex-shrink: 0; }
/* Farben per Custom Properties, da sie in die <use>-Kopie des Symbols vererbt werden */
.logo { --logo-dark: var(--navy); --logo-accent: var(--blue); }
#brand .roof, #brand .window, #brand .compass-n { fill: var(--logo-dark, #082b4b); }
#brand .wave, #brand .compass { fill: var(--logo-accent, #2f70a6); }
#brand .ring { fill: none; stroke: var(--logo-accent, #2f70a6); stroke-width: 1.4; }

.brand-word {
    font-family: var(--font-display); font-weight: 800; font-style: italic; line-height: 1.02;
    letter-spacing: -0.015em; font-size: 1rem; display: flex; flex-direction: column;
}
.brand-word .word-a { color: var(--navy); }
.brand-word .word-b { color: var(--blue); }

@media (min-width: 400px) {
    .brand-word { flex-direction: row; white-space: nowrap; font-size: clamp(0.95rem, 3.4vw, 1.18rem); }
}
@media (min-width: 1024px) { .brand-mark { height: 52px; } }

/* Variante auf dunklem Grund */
.logo.is-light { --logo-dark: #fff; --logo-accent: var(--blue-400); }
.logo.is-light .word-a { color: #fff; }
.logo.is-light .word-b { color: var(--blue-400); }

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); background-color: rgba(255, 255, 255, 0.98); border-bottom-color: var(--line); }

.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: var(--nav-h); }

.nav-toggle {
    display: flex; justify-content: center; align-items: center; flex-shrink: 0;
    width: 48px; height: 48px; background: none; border: none; cursor: pointer; border-radius: var(--radius-sm);
}
.hamburger { display: block; width: 24px; height: 2px; background-color: var(--navy); position: relative; transition: background-color var(--transition); }
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; left: 0; width: 24px; height: 2px;
    background-color: var(--navy); transition: transform var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .hamburger { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    background-color: var(--paper); box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
    padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}
.nav-menu.open { transform: none; opacity: 1; visibility: visible; }

.nav-list { list-style: none; display: flex; flex-direction: column; }

.nav-link {
    display: block; padding: 14px 8px; color: var(--ink); font-weight: 600; font-size: 1rem;
    border-bottom: 1px solid var(--line);
}
.nav-link:hover, .nav-link.active { color: var(--blue); }

.nav-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
    padding: 14px 18px; background-color: var(--navy); color: #fff; font-weight: 700;
    border-radius: var(--radius-sm); font-family: var(--font-display);
}
.nav-cta:hover { background-color: var(--blue); color: #fff; }
.nav-cta svg { width: 18px; height: 18px; }

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .nav-menu {
        position: static; transform: none; opacity: 1; visibility: visible; max-height: none; overflow: visible;
        background: none; box-shadow: none; padding: 0; border: 0; display: flex; align-items: center; gap: 10px;
    }
    .nav-list { flex-direction: row; align-items: center; gap: 2px; }
    .nav-link { padding: 10px 9px; border-bottom: none; font-size: 0.95rem; white-space: nowrap; }
    .nav-link::after {
        content: ''; display: block; height: 2px; width: 0; background: var(--blue);
        margin-top: 3px; transition: width var(--transition);
    }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
    .nav-cta { margin: 0 0 0 8px; padding: 11px 18px; font-size: 0.95rem; white-space: nowrap; }
}
@media (min-width: 1180px) { .nav-link { padding: 10px 16px; font-size: 0.97rem; } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative; isolation: isolate;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 48px) 0 72px;
    background-color: var(--navy-900);
    overflow: hidden; color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(circle at 82% 28%, rgba(255,255,255,0.10) 0, rgba(255,255,255,0) 40%),
        linear-gradient(115deg, rgba(6, 31, 55, 0.95) 0%, rgba(8, 43, 75, 0.86) 48%, rgba(47, 112, 166, 0.62) 100%);
}
.hero-compass {
    position: absolute; top: 50%; right: -160px; transform: translateY(-50%); z-index: -1;
    width: 620px; height: 620px; opacity: 0.09; color: #fff; pointer-events: none;
}
.hero-content { position: relative; }
.hero-content > * { max-width: 760px; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--sky); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em;
    text-transform: uppercase; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--blue-400); }

.hero-slogan {
    font-weight: 900; font-size: clamp(2.5rem, 9vw, 5.4rem); line-height: 0.98;
    letter-spacing: -0.01em; text-transform: uppercase; color: #fff; margin-bottom: 24px;
}
.hero-slogan span { display: block; }
.hero-slogan span:nth-child(2) { color: var(--blue-400); }

.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: rgba(255, 255, 255, 0.9);
    max-width: 580px; margin-bottom: 36px;
}
.hero-subtitle strong { color: #fff; font-weight: 600; }

.hero-buttons { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) { .hero-buttons { flex-direction: row; flex-wrap: wrap; } }

.hero-facts {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px;
    color: rgba(255,255,255,0.85); font-size: 0.95rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--blue-400); flex-shrink: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 14px 30px; font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    letter-spacing: 0.01em; line-height: 1.2; border-radius: var(--radius-sm); border: 2px solid transparent;
    cursor: pointer; text-align: center; text-decoration: none;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background-color: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero .btn-primary:hover, .services-more .btn-primary:hover { background-color: #fff; border-color: #fff; color: var(--navy); }

.btn-secondary { background-color: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-secondary:hover { background-color: #fff; color: var(--navy); border-color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }

.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

/* ============================================================
   Sections allgemein
   ============================================================ */
.section { padding: 80px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section-light { background-color: var(--paper-alt); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-eyebrow {
    display: inline-block; color: var(--blue); font-weight: 700; font-size: 0.82rem;
    letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.85rem, 4.2vw, 2.8rem); font-weight: 800; margin-bottom: 18px; }
.section-divider {
    width: 64px; height: 4px; margin: 0 auto; border-radius: 2px;
    background: linear-gradient(90deg, var(--navy), var(--blue));
}
.section-subtitle { font-size: 1.1rem; color: var(--ink-soft); margin-top: 18px; }

/* ============================================================
   Merkmale
   ============================================================ */
.values { padding: 64px 0; background: var(--paper); }
@media (min-width: 768px) { .values { padding: 80px 0; } }
.values-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.value-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-icon {
    grid-row: span 2; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff;
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.value-card p { color: var(--ink-soft); font-size: 0.97rem; }

@media (min-width: 560px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
    .values-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .value-card { display: block; padding: 32px 26px; }
    .value-icon { margin-bottom: 18px; }
    .value-card h3 { margin-bottom: 6px; }
}

/* ============================================================
   Über uns
   ============================================================ */
.about-content { display: grid; gap: 44px; align-items: center; }
.about-text > p { margin-bottom: 20px; font-size: 1.07rem; color: var(--ink-soft); line-height: 1.85; }
.about-text strong { color: var(--navy); font-weight: 600; }
.about-text .btn { margin-top: 8px; }

.about-features { list-style: none; display: grid; gap: 14px; }
.feature-item {
    display: flex; align-items: center; gap: 18px; padding: 18px 20px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: transparent; }
.feature-icon {
    flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: var(--blue-100); border-radius: var(--radius-md); color: var(--blue);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-item strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; color: var(--navy); }
.feature-item span { color: var(--ink-soft); font-size: 0.94rem; }

@media (min-width: 768px) { .about-content { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

/* ============================================================
   Leistungen
   ============================================================ */
.services-grid { list-style: none; display: grid; gap: 20px; margin-bottom: 52px; grid-template-columns: 1fr; }
.service-card {
    position: relative; background: var(--paper); padding: 32px 26px; border-radius: var(--radius-lg);
    border: 1px solid var(--line); overflow: hidden; height: 100%;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--blue)); transform: scaleX(0); transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 70px; height: 70px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
    background: var(--blue-100); border-radius: var(--radius-md); color: var(--navy);
    transition: background var(--transition), color var(--transition);
}
.service-icon svg { width: 34px; height: 34px; }
.service-card:hover .service-icon { background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff; }
.service-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.service-card p { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.75; }

.services-more {
    text-align: center; padding: 44px 24px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-600) 100%); color: #fff;
}
.services-more p { font-size: 1.13rem; color: rgba(255,255,255,0.94); margin: 0 auto 24px; max-width: 620px; }

@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ============================================================
   Ablauf
   ============================================================ */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
.step {
    position: relative; padding: 30px 26px 28px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); counter-increment: step;
}
.step::before {
    content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px;
    font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px var(--blue);
}
.step h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ============================================================
   Referenzen / Galerie
   ============================================================ */
.gallery-grid { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.gallery-item {
    position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 3 / 4;
    background: linear-gradient(140deg, var(--navy), var(--blue-600)); cursor: zoom-in;
}
.gallery-item picture, .gallery-item img { width: 100%; height: 100%; }
.gallery-item img { object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
    background: linear-gradient(0deg, rgba(8,43,75,0.88) 0%, rgba(8,43,75,0) 55%);
    opacity: 0; transition: opacity var(--transition);
}
.gallery-overlay span { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay, .gallery-item:focus-visible .gallery-overlay { opacity: 1; }
@media (hover: none) { .gallery-overlay { opacity: 1; } }

@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ============================================================
   Kontakt
   ============================================================ */
.contact-grid { display: grid; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    display: flex; align-items: center; gap: 18px; padding: 22px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); color: inherit;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
a.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; color: inherit; }
.contact-icon {
    flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, var(--navy), var(--blue)); border-radius: var(--radius-sm); color: #fff;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-details { min-width: 0; }
.contact-details h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 2px; }
.contact-details p, .contact-details address { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.55; overflow-wrap: anywhere; }

.contact-form-wrapper { background: var(--paper); padding: 28px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 560px) { .contact-form-wrapper { padding: 36px; } }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.95rem; font-weight: 600; color: var(--navy); }
.form-group .req { color: var(--blue); }
.form-group input, .form-group textarea {
    width: 100%; padding: 13px 15px; font-size: 1rem; font-family: inherit; line-height: 1.4;
    border: 1.5px solid #c9d6e2; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 112, 166, 0.18); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8797a8; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input:user-invalid, .form-group textarea:user-invalid { border-color: var(--err); }

/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.form-note a { text-decoration: underline; }

/* Datenschutz-Häkchen */
.form-checkbox { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; }
.form-checkbox input[type="checkbox"] {
    width: 22px; height: 22px; margin-top: 2px; cursor: pointer; accent-color: var(--blue);
    -webkit-appearance: auto; appearance: auto; padding: 0;
}
.form-checkbox label { font-size: 0.95rem; font-weight: 400; color: var(--ink); cursor: pointer; line-height: 1.5; }
.form-checkbox label a { text-decoration: underline; }
.form-checkbox .field-error { grid-column: 2; }

/* Fehler */
.form-alert {
    padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.97rem; font-weight: 500;
    background: var(--err-bg); color: var(--err); border: 1px solid #f5c2bd;
}
.form-alert a { color: var(--err); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.field-error { color: var(--err); font-size: 0.88rem; font-weight: 500; line-height: 1.4; }
.form-group [aria-invalid="true"] { border-color: var(--err); }
.form-checkbox [aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }

/* Bestätigung nach dem Absenden (ersetzt das Formular) */
.form-success { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0; outline: none; }
.form-success[hidden] { display: none; }
.form-success-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--ok-bg); color: var(--ok); border: 1px solid #b7e1cb;
}
.form-success-icon svg { width: 26px; height: 26px; }
.form-success p { font-size: 1.08rem; line-height: 1.6; color: var(--ink); padding-top: 4px; }
.form-success strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.form-success:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: var(--radius-sm); }

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; } }

/* ============================================================
   CTA-Band
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 55%, var(--blue-600) 130%); color: #fff; padding: 56px 0; }
.cta-inner { display: grid; gap: 32px; align-items: center; }
.cta-claim { font-family: var(--font-display); }
.cta-claim .line1 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); font-style: italic; }
.cta-claim .line2 { font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--blue-400); }
.cta-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.cta-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 72px; }
.cta-badge svg { width: 30px; height: 30px; color: var(--blue-400); }
.cta-badge span { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-domain { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

@media (min-width: 960px) {
    .cta-inner { grid-template-columns: auto 1fr auto; gap: 48px; }
    .cta-badges { justify-content: center; }
    .cta-action { align-items: flex-end; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 56px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 36px; }
.footer h2 { color: #fff; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-list { list-style: none; display: grid; gap: 8px; }
.footer-bottom {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.88rem;
}
.footer-bottom nav ul { list-style: none; display: flex; gap: 20px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ============================================================
   Mobile Schnellkontakt-Leiste
   ============================================================ */
.quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
    box-shadow: 0 -6px 20px rgba(8,43,75,0.12);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform var(--transition);
}
.quickbar.show { transform: none; }
.quickbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px;
    font-family: var(--font-display); font-weight: 700; background: #fff; color: var(--navy);
}
.quickbar a:last-child { background: var(--blue); color: #fff; }
.quickbar svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .quickbar { display: none; } }
@media (max-width: 1023px) { body.has-quickbar .footer { padding-bottom: calc(28px + 56px + env(safe-area-inset-bottom)); } }

/* ============================================================
   Rechtsseiten (Impressum / Datenschutz / 404)
   ============================================================ */
.legal-section { padding: calc(var(--nav-h) + 56px) 0 88px; }
.legal-container { max-width: 860px; }
.legal-section h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.legal-section .section-divider { margin: 0 0 40px; }
.legal-content { font-size: 1rem; line-height: 1.8; }
.legal-content h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 800; margin: 44px 0 14px;
    padding-top: 22px; border-top: 1px solid var(--line);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content h3 { font-size: 1.1rem; font-weight: 700; margin: 26px 0 8px; }
.legal-content p, .legal-content ul { margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; }
.legal-content li { margin-bottom: 4px; }
.legal-content a { overflow-wrap: anywhere; text-decoration: underline; }
.legal-content .muted { color: var(--ink-soft); font-size: 0.92rem; }

.notfound { min-height: calc(100vh - 300px); display: flex; align-items: center; }
.legal-section.notfound { padding-top: 56px; }
.notfound p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 28px; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; background: rgba(6, 16, 28, 0.95);
    display: flex; align-items: center; justify-content: center; padding: 64px 16px;
    opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox img { max-width: min(92vw, 900px); max-height: calc(100vh - 160px); width: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { color: rgba(255,255,255,0.85); text-align: center; font-size: 0.95rem; }
.lb-btn {
    position: absolute; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 50%;
    color: #fff; cursor: pointer; transition: background var(--transition);
}
.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); } }

/* ============================================================
   Scroll-Reveal (nur wenn JS aktiv)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Barrierefreiheit
   ============================================================ */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .services-more :focus-visible, .cta-band :focus-visible, .footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .navbar, .quickbar, .lightbox, .hero-compass, .cta-band, .contact-form-wrapper { display: none !important; }
    .hero { min-height: 0; color: #000; padding: 20px 0; }
    .hero::before, .hero-bg { display: none; }
    .hero-slogan, .hero-subtitle, .hero-subtitle strong { color: #000; }
    body { font-size: 11pt; }
}
