:root {
    /* Marke */
    --brand: #003757;
    --brand-hover: #002f4a;
    --brand-tint: #eaeff2;
    --brand-tint-strong: #dbe6ec;

    /* Neutrals (helles Grundgerüst) */
    --bg: #ffffff;
    --bg-alt: #f6f9fa;
    --surface: #ffffff;
    --border: #e1e7ea;
    --border-strong: #c7d1d6;

    --text: #0f2a3a;
    --text-muted: #526270;
    --text-faint: #8896a1;

    --success: #1c7c4c;
    --success-tint: #e8f6ee;
    --danger: #c23b3b;
    --danger-tint: #fbecec;

    --font-heading: 'Lexend', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --max-width: 1180px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior: none; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text);
    line-height: 1.18;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-8) 0; }
.section-lg { padding: calc(var(--space-8) + var(--space-4)) 0 calc(var(--space-9)); }
.section-alt { background: var(--bg-alt); }
.eyebrow {
    display: inline-block;
    color: var(--brand);
    background: var(--brand-tint);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: var(--space-4);
}

.eyebrow-plain {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}
.eyebrow-plain::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--brand);
}

/* Grid helpers */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    font-family: var(--font-body);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); text-decoration: none; }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-outline.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.btn-text { border: none; background: none; color: var(--brand); padding: 12px 4px; }
.btn-text:hover { text-decoration: underline; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a52f2f; }

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: 0 1px 2px rgba(15, 42, 58, .04);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    background: var(--brand-tint);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    margin-bottom: var(--space-4);
}
.card-icon svg { width: 24px; height: 24px; }

/* Icon-Showcase (Cards & Badges) */
.icon-showcase { margin-top: 8px; }
.icon-tile {
    text-align: center;
    padding: var(--space-4) var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.icon-tile-box {
    width: 48px; height: 48px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-sm);
    background: var(--brand-tint);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
}
.icon-tile-box svg { width: 24px; height: 24px; }
.icon-tile-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.icon-tile-note { font-size: .75rem; color: var(--text-faint); margin-top: 2px; }

/* Bild-Text-Split */
.img-split-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.img-split-media img { width: 100%; height: 320px; object-fit: cover; display: block; }
@media (max-width: 900px) {
    .img-split [style*="order:2"] { order: 0 !important; }
    .img-split [style*="order:1"] { order: 1 !important; }
}

/* Bildkarten */
.img-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.img-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15,42,58,.10);
}
.img-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.img-card-body { padding: var(--space-5); }
.img-card-body h4 { margin-bottom: 4px; }
.img-card-body p:last-child { margin-bottom: 0; }
.img-card-label {
    display: block;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 2px;
    line-height: 1.2;
}
.img-card-body h4 { margin-top: 0; line-height: 1.25; }

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}
.badge-brand { background: var(--brand-tint); color: var(--brand); }
.badge-success { background: var(--success-tint); color: var(--success); }
.badge-danger { background: var(--danger-tint); color: var(--danger); }
.badge-neutral { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* Forms */
.form-row { margin-bottom: var(--space-4); }
.form-row label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: var(--text); }
.form-row .hint { color: var(--text-faint); font-weight: 400; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 11px 13px;
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-tint);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; }
.checkbox-row input { margin-top: 3px; }

/* Filter-Chips */
.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.filter-pill:hover { border-color: var(--brand); color: var(--brand); }
.filter-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Projekt-Lightbox */
.img-card-more { display: block; margin-top: var(--space-3); color: var(--brand); font-weight: 600; font-size: .85rem; }
.project-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15,42,58,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.project-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility 0s linear 0s;
}
.project-modal {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(20px);
    transition: transform .25s ease;
}
.project-modal-overlay.is-open .project-modal { transform: translateY(0); }
.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
}
.project-modal-close svg { width: 18px; height: 18px; }

/* Standard: Querformat-Bild oben in voller Breite, Text darunter */
#project-modal-content img { width: 100%; height: auto; display: block; }
.project-modal-body { padding: var(--space-6); }
.project-modal-details { color: var(--text-muted); padding-left: 1.2em; margin: var(--space-4) 0 0; }

/* Hochformat-Bild: Bild und Text nebeneinander, damit man nicht am Bild vorbeiscrollen muss */
#project-modal-content.is-portrait {
    display: flex;
    max-height: 88vh;
}
#project-modal-content.is-portrait img {
    flex: 0 0 45%;
    width: 45%;
    height: auto;
    max-height: 88vh;
    object-fit: contain;
    background: var(--bg-alt);
}
#project-modal-content.is-portrait .project-modal-body {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    max-height: 88vh;
}
@media (max-width: 760px) {
    .project-modal { max-width: 90vw; }
    #project-modal-content.is-portrait { flex-direction: column; }
    #project-modal-content.is-portrait img { width: 100%; flex: 0 0 auto; max-height: 38vh; }
    #project-modal-content.is-portrait .project-modal-body { max-height: 50vh; }
}

/* Energiefluss (Leistungen) */
.flow-wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.flow-track { position: relative; display: flex; justify-content: space-between; margin-bottom: 56px; }
.flow-line { position: absolute; top: 34px; left: 0; right: 0; height: 3px; background: var(--border); z-index: 0; }
.flow-progress { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--brand); transition: width .1s linear; }
.flow-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 68px; }
.flow-line + .flow-node { align-items: flex-start; }
.flow-line + .flow-node .flow-node-label { text-align: left; }
.flow-node:last-child { align-items: flex-end; }
.flow-node:last-child .flow-node-label { text-align: right; }
.flow-node-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-faint); transition: all .3s ease; }
.flow-node-icon svg { width: 30px; height: 30px; }
.flow-node.is-active .flow-node-icon { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 8px var(--brand-tint); }
.flow-node-label { font-size: .8rem; font-weight: 600; color: var(--text-faint); text-align: center; white-space: nowrap; transition: color .3s ease; }
.flow-node.is-active .flow-node-label { color: var(--brand); }
.flow-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); opacity: .4; transform: translateY(10px); transition: all .4s ease; }
.flow-card.is-active { opacity: 1; transform: translateY(0); border-color: var(--brand); box-shadow: 0 8px 24px rgba(15,42,58,.08); }
.flow-card h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-card p { font-size: .85rem; margin: 0; color: var(--text-muted); }
@media (max-width: 860px) {
    .flow-node-label { display: none; }
    .flow-cards { grid-template-columns: 1fr 1fr; }
}

/* Pinned Scroll-Slideshow (Leistungen) */
.sticky-scroll-wrap { position: relative; height: 400vh; }
.sticky-scroll-inner {
    position: sticky;
    top: 74px;
    height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    gap: 64px;
    overflow: hidden;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.sticky-text-col { position: relative; flex: 0 0 42%; height: 484px; }
.sticky-image-col { position: relative; flex: 1; height: 60%; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.sticky-slide-text {
    position: absolute;
    inset: 0;
    padding-bottom: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px) rotate(-3deg);
    transition: opacity .55s ease, transform .55s ease;
    pointer-events: none;
}
.sticky-slide-text.is-active { opacity: 1; transform: translateY(0) rotate(0deg); pointer-events: auto; }
.sticky-slide-text.is-prev { opacity: 0; transform: translateY(-50px) rotate(3deg); }
.sticky-slide-text .tag { display: inline-block; color: var(--brand); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.sticky-slide-text h2 { font-size: 1.9rem; margin: 0 0 14px; }
.sticky-slide-text p { color: var(--text-muted); margin: 0 0 16px; font-size: 1.05rem; }
.sticky-slide-features { list-style: none; margin: 0 0 22px; padding: 0; color: var(--text-muted); font-size: .92rem; }
.sticky-slide-features li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.sticky-slide-features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.sticky-slide-text .btn { align-self: flex-start; }
.sticky-slide-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.12) rotate(6deg);
    transition: opacity .55s ease, transform .55s ease;
}
.sticky-slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sticky-slide-img.is-active { opacity: 1; transform: scale(1) rotate(0deg); }
.sticky-slide-img.is-prev { opacity: 0; transform: scale(.9) rotate(-6deg); }
.sticky-progress-dots { position: absolute; bottom: 8px; left: 0; display: flex; gap: 8px; z-index: 3; }
.sticky-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; }
.sticky-dot.is-active { background: var(--brand); width: 22px; border-radius: 4px; transition: all .3s ease; }
@media (max-width: 860px) {
    .sticky-scroll-inner { flex-direction: column; justify-content: center; gap: 24px; }
    .sticky-text-col { flex: 0 0 auto; width: 100%; height: 384px; }
    .sticky-image-col { width: 100%; height: 32%; }
    .sticky-slide-text h2 { font-size: 1.5rem; }
    .sticky-slide-features { font-size: .85rem; }
}

/* Zeitstrahl (scroll-triggered) */
.timeline { position: relative; max-width: 720px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}
.timeline-progress {
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--brand);
    transform: scaleY(0);
    transform-origin: top;
    will-change: transform;
}
.timeline-item {
    position: relative;
    display: flex;
    gap: 24px;
    padding: 20px 0 20px 40px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 27px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 2px var(--border);
}
.timeline-item.is-visible { opacity: 1; transform: translateY(0); }
.timeline-year { font-family: var(--font-heading); color: var(--brand); font-weight: 700; min-width: 70px; flex-shrink: 0; }

/* FAQ-Akkordeon */
.faq-group + .faq-group { margin-top: var(--space-7); }
.faq-group-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand);
    margin-bottom: var(--space-4);
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.faq-toggle h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
}
.faq-toggle-icon {
    flex-shrink: 0;
    display: flex;
    color: var(--brand);
    transition: transform .25s ease;
}
.faq-toggle-icon svg { width: 20px; height: 20px; }
.faq-item.is-open .faq-toggle-icon { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-answer p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* Kontaktformular-Designexperiment (nur Startseite, bis Freigabe) */
.contact-card-alt {
    background: var(--bg-alt);
    border: none;
}
.contact-card-alt .form-row input,
.contact-card-alt .form-row select,
.contact-card-alt .form-row textarea {
    background: var(--surface);
    border: 1px solid var(--border);
}
.contact-card-alt .form-row input::placeholder,
.contact-card-alt .form-row textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}


/* Footer bleibt dunkel, auch im ansonsten hellen Design */
:root {
    --footer-bg: #0f2a3a;
    --footer-bg-alt: #16374a;
    --footer-text: #cfdae1;
    --footer-text-muted: #8ea4b2;
    --footer-border: rgba(255,255,255,.12);
    --footer-heading: #ffffff;
}

/* Hero mit Hintergrundbild + Parallax */
.hero-parallax {
    position: sticky;
    top: 0;
    z-index: 0;
    min-height: calc(74px + max(620px, 82vh));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.hero-parallax-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/hero-haus.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    will-change: transform;
}
.hero-parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,42,58,.80) 0%, rgba(15,42,58,.60) 45%, rgba(15,42,58,.88) 100%);
}
.hero-parallax-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-9) 0 var(--space-8);
    text-align: left;
    will-change: filter, opacity;
}
.hero-parallax .eyebrow {
    background: transparent;
    color: #fff;
    padding: 0;
}
.hero-parallax h1 { color: #fff; }
.hero-parallax p.lead { color: rgba(255,255,255,.85); max-width: 760px; font-size: 1.15rem; margin-bottom: var(--space-6); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: var(--space-6); }
.hero-parallax .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.hero-parallax .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-scroll-hint {
    position: absolute;
    bottom: 22px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.75);
    font-size: 1.4rem;
    animation: dn-bounce 2s infinite;
}
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-hint { animation: none; }
}
@keyframes dn-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 700px) {
    .hero-parallax { min-height: calc(74px + max(520px, 78vh)); }
}

/* Kleinere Hero-Variante für Unterseiten: gleiche Komponente, nur kompakter
   und mit fester Höhe (kein vh, dadurch auch robuster gegenüber der
   iOS-Safari-Toolbar-Problematik bei großen vh-Werten). */
.hero-parallax.hero-sm { min-height: calc(74px + 320px + 61px + 24px); }
.hero-parallax.hero-sm .hero-parallax-content { padding: calc(var(--space-7) + 24px) 0 var(--space-7); }
@media (max-width: 700px) {
    .hero-parallax.hero-sm { min-height: calc(74px + 260px + 61px + 24px); }
}

/* Noch kompaktere Hero-Variante für die Rechtsseiten: nur Titel, kein CTA */
.hero-parallax.hero-xs { min-height: calc(74px + 160px); }
.hero-parallax.hero-xs .hero-parallax-content { padding: var(--space-6) 0; }
@media (max-width: 700px) {
    .hero-parallax.hero-xs { min-height: calc(74px + 130px); }
}

/* Wrapper für allen Inhalt nach dem Hero: sorgt dafür, dass er beim Scrollen
   über den sticky Hero läuft (eigener Stacking-Context + Hintergrund). */
.page-content-after-hero {
    position: relative;
    z-index: 1;
    background: var(--bg);
}

/* Trustleiste unter dem Hero */
.trust-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-6) 0;
}
.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    justify-content: center;
    text-align: center;
}
.trust-bar-inner .stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand);
}
.trust-bar-inner .stat-label {
    font-size: .82rem;
    color: var(--text-muted);
}
@media (max-width: 700px) {
    .trust-bar-inner { gap: var(--space-5); }
}

/* Echte Navbar (Klickdummy) */
.site-header-real {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    --nav-progress: 0;
    background: rgba(255, 255, 255, calc(var(--nav-progress) * 0.92));
    backdrop-filter: blur(calc(var(--nav-progress) * 8px));
    -webkit-backdrop-filter: blur(calc(var(--nav-progress) * 8px));
    border-bottom: 1px solid rgba(225, 231, 234, var(--nav-progress));
}
.site-header-real .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

/* Logo-Crossfade: weiß auf dem transparenten Hero, blau sobald Hintergrund da ist —
   beide Bilder liegen übereinander, Opacity hängt kontinuierlich am Scroll-Fortschritt. */
.brand-logo { display: block; position: relative; height: 34px; width: 190px; }
.brand-logo img { height: 34px; width: auto; display: block; position: absolute; top: 0; left: 0; }
.brand-logo .logo-transparent { opacity: calc(1 - var(--nav-progress)); }
.brand-logo .logo-solid { opacity: var(--nav-progress); }

/* CTA-Button: outline-weiß auf transparentem Hero, gefüllt sobald Hintergrund da ist */
.site-header-real .nav-cta {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.7);
    color: #fff;
    transition: background-color .45s cubic-bezier(.4,0,.2,1), border-color .45s cubic-bezier(.4,0,.2,1), color .45s cubic-bezier(.4,0,.2,1);
}
.site-header-real .nav-cta:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.site-header-real.is-scrolled .nav-cta {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.site-header-real.is-scrolled .nav-cta:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    width: 42px; height: 42px;
    padding: 0;
    cursor: pointer;
    color: #fff;
    transition: color .45s cubic-bezier(.4,0,.2,1);
}
.nav-toggle svg { width: 24px; height: 24px; }
.site-header-real.is-scrolled .nav-toggle {
    color: var(--text);
}
@media (max-width: 860px) {
    .main-nav-real .nav-links, .main-nav-real .btn { display: none; }
    .nav-toggle { display: block; }
}

/* Mobiles Vollbild-Popup-Menü (fade statt transform, siehe NAVBAR-FOOTER-BUTTONS.md Gotcha 1) */
.main-nav-real {
    position: fixed;
    inset: 0;
    height: 100vh;
    z-index: 60;
    background: var(--footer-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.main-nav-real.open { opacity: 1; visibility: visible; }
.main-nav-real .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.main-nav-real .nav-links a:not(.btn) {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
}
.main-nav-real .nav-links a.active:not(.btn),
.main-nav-real .nav-links a:not(.btn):hover { color: #fff; opacity: .75; }
.main-nav-real .nav-cta {
    background: var(--brand-hover);
    border-color: #fff;
    color: #fff;
}
.main-nav-real .nav-cta:hover { background: #fff; color: var(--brand); }
.nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}
.nav-close svg { width: 20px; height: 20px; }

@media (min-width: 861px) {
    .main-nav-real {
        position: static;
        height: auto;
        opacity: 1;
        visibility: visible;
        background: none;
        flex-direction: row;
        padding: 0;
        gap: 28px;
    }
    .main-nav-real .nav-links { flex-direction: row; gap: 26px; }
    .main-nav-real .nav-links a:not(.btn) {
        color: #fff;
        font-family: var(--font-body);
        font-size: .95rem;
        font-weight: 500;
        transition: color .45s cubic-bezier(.4,0,.2,1);
    }
    .main-nav-real .nav-links a.active:not(.btn),
    .main-nav-real .nav-links a:not(.btn):hover { color: #fff; opacity: .8; }
    .nav-close { display: none; }
    .site-header-real.is-scrolled .main-nav-real .nav-links a:not(.btn) { color: var(--text-muted); }
    .site-header-real.is-scrolled .main-nav-real .nav-links a.active:not(.btn),
    .site-header-real.is-scrolled .main-nav-real .nav-links a:not(.btn):hover { color: var(--brand); opacity: 1; }
}

/* Echter (dunkler) Footer, edge-to-edge */
.site-footer-real {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-8) 0 var(--space-5);
}
.site-footer-real h5 { color: var(--footer-heading); margin-bottom: var(--space-3); }
.site-footer-real p { color: var(--footer-text-muted); }
.site-footer-real ul { list-style: none; padding: 0; margin: 0; }
.site-footer-real li { margin-bottom: 8px; font-size: .9rem; color: var(--footer-text-muted); }
.site-footer-real a { color: var(--footer-text-muted); }
.site-footer-real a:hover { color: #fff; }
.site-footer-real .footer-bottom {
    border-top: 1px solid var(--footer-border);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: .82rem; color: var(--footer-text-muted);
}
.site-footer-real .footer-bottom nav a { margin-left: 16px; }

/* Hochspringbutton */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 35;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15,42,58,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-hover); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 700px) {
    .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}

/* Mobile Floating-CTA-Leiste: Wrapper ist auf Desktop unsichtbar OHNE eigene Box
   (display:contents), damit der Back-to-top-Button darin unabhängig fixiert bleibt. */
.mobile-cta-bar { display: contents; }

.mobile-cta-btn {
    display: none; /* nur mobil sichtbar */
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15,42,58,.18);
}
.mobile-cta-btn:hover { background: var(--brand-hover); text-decoration: none; }

@media (max-width: 860px) {
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        gap: 12px;
        padding: 12px 16px;
        z-index: 90;
    }
    .mobile-cta-bar .mobile-cta-btn { display: flex; flex: 1; }
    .mobile-cta-bar .back-to-top {
        position: static;         /* raus aus eigener Fixierung, wird Flex-Kind der Leiste */
        display: flex !important; /* überschreibt die .visible-Scroll-Logik: immer sichtbar */
        opacity: 1; visibility: visible; transform: none;
        flex: 0 0 48px;
        width: 48px; height: 48px; /* überschreibt die 44px-Verkleinerung bei ≤700px */
        box-shadow: none;
    }
    .site-footer-real { padding-bottom: 96px; } /* Platz, damit die Leiste den Footer nicht überdeckt */
}

/* Seiten-übergreifende Hilfsklassen */
.section-header { max-width: 640px; margin: 0 0 var(--space-7); }
.cta-band {
    background: var(--brand-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    text-align: center;
}

/* Rechtstexte (Impressum, Datenschutz, AGB, Widerruf) */
.legal-content { max-width: 760px; }
.legal-content .legal-meta { color: var(--text-faint); font-size: .85rem; margin-top: -.6em; }
.legal-content h2 { margin-top: 1.6em; }
.legal-content h3 { margin-top: 1.3em; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul, .legal-content ol { color: var(--text-muted); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.legal-content th, .legal-content td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: .92rem;
}
.legal-content th { background: var(--bg-alt); color: var(--text); }
.legal-content blockquote {
    border-left: 3px solid var(--brand);
    margin: 1em 0;
    padding: 4px 20px;
    background: var(--bg-alt);
    border-radius: 0 8px 8px 0;
}
.legal-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }


