/* ==========================================================================
   Mustermann — Summitmeisterbetrieb
   Craft-industrial design system: black + signal red, sharp edges, generous
   type. Light base for legibility/trust, black bands for weight.
   Mirrors the structure of evora.css (tokens → base → nav → blocks → footer)
   so both sites stay maintainable side by side.
   ========================================================================== */

:root {
    /* Brand */
    --red:        #D7262B;
    --red-dark:   #A81C21;
    --red-light:  #F0444A;
    --red-tint:   #FBEDED;

    /* Neutrals */
    --black:      #0E0E10;
    --black-2:    #17181B;
    --black-3:    #232529;
    --ink:        #16171A;
    --ink-2:      #5C6068;
    --ink-3:      #8B8F97;
    --line:       #E3E4E8;
    --line-dark:  rgba(255, 255, 255, 0.12);
    --bg:         #FFFFFF;
    --bg-2:       #F5F5F6;

    /* Type scale — fluid */
    --fs-display: clamp(2.6rem, 6.4vw, 5.25rem);
    --fs-h1:      clamp(2.2rem, 4.6vw, 3.75rem);
    --fs-h2:      clamp(1.9rem, 3.4vw, 2.9rem);
    --fs-h3:      clamp(1.15rem, 1.6vw, 1.4rem);
    --fs-lead:    clamp(1.05rem, 1.5vw, 1.3rem);

    /* Spacing */
    --gutter:     clamp(20px, 5vw, 48px);
    --section-y:  clamp(72px, 9vw, 136px);

    --radius:     10px;
    --radius-sm:  6px;
    --content-max: 1220px;
    --text-max:   68ch;

    --shadow:     0 1px 2px rgba(14, 14, 16, .05), 0 8px 28px rgba(14, 14, 16, .07);
    --shadow-lg:  0 2px 4px rgba(14, 14, 16, .06), 0 24px 60px rgba(14, 14, 16, .14);

    --ease:       cubic-bezier(.16, 1, .3, 1);

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;   /* sticky nav height + breathing room */
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: var(--red-dark); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-wrap: balance;
}
p { margin: 0; }

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

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
    border-radius: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--red);
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* Scroll reveal — matches the Evora behaviour/observer */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

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

/* --------------------------------------------------------------------------
   Full-bleed background media (image or video)

   Rendered by Views/Partials/summit/BgMedia.cshtml. Any section that hosts
   it must be `position: relative; isolation: isolate` (the .section and .hero
   rules already are). The media sits at z-index -2, the overlay at -1, so the
   section's own content stays above both without extra stacking rules.
   -------------------------------------------------------------------------- */
.sm-bg-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.sm-bg-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/* Darkening overlay, tuned to the dark/red palette so overlaid text stays
   legible. Strength is chosen by the editor (light / medium / strong). */
.sm-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(100deg, rgba(14,14,16,.92) 0%, rgba(14,14,16,.72) 46%, rgba(14,14,16,.40) 100%),
        radial-gradient(120% 90% at 78% 0%, rgba(215, 38, 43, .22) 0%, transparent 60%);
}
.sm-bg-overlay.ov-light {
    background:
        linear-gradient(100deg, rgba(14,14,16,.74) 0%, rgba(14,14,16,.48) 50%, rgba(14,14,16,.18) 100%),
        radial-gradient(120% 90% at 78% 0%, rgba(215, 38, 43, .16) 0%, transparent 60%);
}
.sm-bg-overlay.ov-strong {
    background:
        linear-gradient(100deg, rgba(12,12,14,.97) 0%, rgba(12,12,14,.88) 50%, rgba(12,12,14,.66) 100%),
        radial-gradient(120% 90% at 78% 0%, rgba(215, 38, 43, .26) 0%, transparent 60%);
}

/* The video poster doubles as the reduced-motion still: hidden while the video
   plays, shown (and the video hidden) when the visitor prefers reduced motion. */
.sm-bg-video-poster { display: none; }
@media (prefers-reduced-motion: reduce) {
    .sm-bg-video { display: none; }
    .sm-bg-video-poster { display: block; }
}

/* On a light section (Story/Contact without .section-dark) a full-bleed media
   makes the section effectively dark, so lift its default text to white. */
.section.has-bg-media,
.section.has-bg-media h2,
.section.has-bg-media h3 { color: #fff; }
.section.has-bg-media .lead,
.section.has-bg-media .muted { color: rgba(255, 255, 255, .72); }
.section.has-bg-media .eyebrow { color: #fff; }

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
/* Scope any full-bleed .sm-bg-media (z-index -2/-1) to inside the section. */
.section.has-bg-media { isolation: isolate; overflow: hidden; }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.section-alt { background: var(--bg-2); }

.section-dark {
    background: var(--black);
    color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: rgba(255, 255, 255, .68); }

/* Eyebrow: uppercase label preceded by a short red rule */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--red);
    flex: none;
}
.center .eyebrow, .head-center .eyebrow { justify-content: center; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head.head-center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead { margin-top: 18px; }

.lead {
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: var(--text-max);
}
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease),
                border-color .2s var(--ease), transform .2s var(--ease),
                box-shadow .2s var(--ease);
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn i, .btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 6px 18px rgba(215, 38, 43, .28);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    box-shadow: 0 10px 26px rgba(215, 38, 43, .34);
}

.btn-dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn-dark:hover { background: var(--black-3); border-color: var(--black-3); color: #fff; }

.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; color: var(--ink); }

.btn-on-dark { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.btn-on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* Text link with animated arrow */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--red-dark);
}
.text-link i, .text-link svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.text-link:hover i, .text-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav > .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    flex: none;
}
.brand img, .brand-mark { height: 36px; width: auto; flex: none; }
/* The mark's body inherits `color`; roof and notch are set here so the logo
   reads on white and on black without shipping two files. */
.brand-mark .mark-roof { stroke: var(--red); }
.brand-mark .mark-notch { fill: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.brand-sub {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}
.nav-links a {
    /*display: inline-block;*/
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--red);
    margin-top: 4px;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}
.nav-phone i, .nav-phone svg { width: 17px; height: 17px; color: var(--red); }
.nav-phone:hover { color: var(--red); }

.nav-cta { padding: 11px 20px !important; }
.nav-links .nav-cta {
    background: var(--red);
    color: #fff !important;
}
.nav-links .nav-cta:hover { background: var(--red-dark); }
.nav-links .nav-cta::after { display: none; }

/* CSS-only mobile drawer */
.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 940px) {
    .nav > .wrap { gap: 12px; }
    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0 10px;
        cursor: pointer;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
    }
    .nav-burger span {
        display: block;
        height: 2px;
        background: var(--ink);
        transition: transform .25s var(--ease), opacity .2s var(--ease);
    }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 12px var(--gutter) 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
    .nav-links a.active::after { display: none; }
    .nav-links a.active { color: var(--red); }
    .nav-links .nav-cta-li { margin-top: 15px; }
    .nav-links .nav-cta { text-align: center; margin-top: 8px; }
    .nav-phone-item { order: -1; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--black);
    color: #fff;
    padding-block: clamp(72px, 10vw, 132px) clamp(72px, 10vw, 128px);
    isolation: isolate;
}

/* Layered backdrop: roof-tile texture + a red angled band. Pure CSS so the
   hero looks finished before the client supplies photography. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px),
        repeating-linear-gradient(45deg,  rgba(255,255,255,.028) 0 2px, transparent 2px 22px),
        radial-gradient(120% 90% at 78% 0%, rgba(215, 38, 43, .30) 0%, transparent 60%),
        linear-gradient(180deg, #131417 0%, var(--black) 60%);
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -12%;
    top: -30%;
    width: 62%;
    height: 190%;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
    opacity: .16;
    transform: skewX(-14deg);
}

/* When a real background image/video is present, drop the CSS roof-tile backdrop
   so it does not show through / fight the photography. The .sm-bg-media partial
   supplies the media and its own overlay. */
.hero-has-media::before,
.hero-has-media::after { display: none; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

.hero h1 {
    font-size: var(--fs-display);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
}
.hero h1 .accent { color: var(--red-light); }
.hero .hero-sub {
    margin-top: 24px;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: rgba(255, 255, 255, .74);
    max-width: 54ch;
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}
/* On phones the CTA labels (which never wrap, .btn is white-space:nowrap) can be
   wider than the viewport. Let each button take the full row so nothing spills
   past the right edge. */
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 38px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--line-dark);
    list-style: none;
}
.hero-badges li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
}
.hero-badges i, .hero-badges svg { width: 18px; height: 18px; color: var(--red-light); flex: none; }

/* Quick-facts card floating in the hero's right column */
.hero-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 34px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-card h2 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 18px;
}
.hero-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.hero-card li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .97rem;
    color: rgba(255, 255, 255, .78);
    line-height: 1.45;
}
.hero-card li i, .hero-card li svg { width: 19px; height: 19px; color: var(--red-light); flex: none; margin-top: 2px; }
.hero-card .btn { width: 100%; margin-top: 24px; }
.hero-card-note {
    margin-top: 14px;
    font-size: .8rem;
    text-align: center;
    color: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(40px, 5vw, 64px);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.trust-item {
    background: #fff;
    padding: 28px clamp(20px, 2.4vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trust-item i, .trust-item svg { width: 26px; height: 26px; color: var(--red); }
.trust-item h3 { font-size: 1.02rem; font-weight: 700; }
.trust-item p { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(18px, 2vw, 26px);
}

.service-card {
    --card-pad: clamp(26px, 3vw, 36px);
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--card-pad);
    overflow: hidden;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.service-card:hover {
    border-color: #D6D7DC;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--red-tint);
    color: var(--red);
    margin-bottom: 22px;
}
.service-icon i, .service-icon svg { width: 25px; height: 25px; }

.service-card h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.service-card > p { color: var(--ink-2); font-size: .97rem; line-height: 1.6; }

.service-bullets {
    margin: 22px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    display: grid;
    gap: 10px;
}
.service-bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .92rem;
    color: var(--ink-2);
    line-height: 1.45;
}
.service-bullets li::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 8px;
    background: var(--red);
    transform: rotate(45deg);
}

/* Pull the photo out to the card edges, whatever the padding currently is. */
.service-media {
    margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 24px;
    aspect-ratio: 16 / 9;
    background: var(--bg-2);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Story + stats
   -------------------------------------------------------------------------- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}
.story-figure {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black);
    aspect-ratio: 4 / 3;
}
.story-figure img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder pattern when no photo has been picked yet */
.story-figure.is-empty {
    background-image:
        repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 20px),
        radial-gradient(90% 80% at 20% 10%, rgba(215,38,43,.35) 0%, transparent 62%),
        linear-gradient(160deg, #1b1c20, var(--black));
}
.story-figure.is-empty::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 3px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
}
.story-body h2 { font-size: var(--fs-h2); }
.story-text { margin-top: 22px; color: var(--ink-2); font-size: 1.03rem; line-height: 1.7; }
.story-text p + p { margin-top: 1em; }
.story-text strong { color: var(--ink); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 24px 20px;
    margin-top: 40px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}
.section-dark .stat-grid { border-color: var(--line-dark); }
.stat-value {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--red);
}
.stat-label {
    margin-top: 8px;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.section-dark .stat-label { color: rgba(255, 255, 255, .55); }

/* --------------------------------------------------------------------------
   Steps / Ablauf
   -------------------------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: clamp(28px, 3vw, 40px);
    counter-reset: step;
}
.step {
    position: relative;
    counter-increment: step;
    padding-top: 30px;
    border-top: 2px solid var(--line-dark);
}
.section:not(.section-dark) .step { border-top-color: var(--line); }
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -16px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    padding-inline: 10px;
    background: var(--red);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .04em;
    border-radius: 4px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.section-dark .step p { color: rgba(255, 255, 255, .66); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(18px, 2vw, 26px);
}
.quote-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(26px, 3vw, 34px);
}
.section-dark .quote-card {
    background: var(--black-2);
    border-color: var(--line-dark);
}
.quote-stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--red); }
.quote-stars i, .quote-stars svg { width: 17px; height: 17px; fill: currentColor; }
.quote-card blockquote {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
    flex: 1;
}
.section-dark .quote-card blockquote { color: rgba(255, 255, 255, .9); }
.quote-meta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.section-dark .quote-meta { border-top-color: var(--line-dark); }
.quote-author { font-weight: 700; font-size: .97rem; }
.quote-place { font-size: .87rem; color: var(--ink-3); margin-top: 2px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 4px;
    cursor: pointer;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex: none;
    width: 13px;
    height: 13px;
    border-right: 2.5px solid var(--red);
    border-bottom: 2.5px solid var(--red);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { color: var(--red-dark); }
.faq-answer {
    padding: 0 4px 26px;
    max-width: var(--text-max);
    color: var(--ink-2);
    line-height: 1.7;
}
.faq-answer p + p { margin-top: 1em; }

/* --------------------------------------------------------------------------
   Contact — form card + details panel
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}
@media (max-width: 940px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(26px, 3.4vw, 44px);
    box-shadow: var(--shadow);
}

.contact-panel {
    background: var(--black);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(26px, 3.4vw, 40px);
    position: relative;
    overflow: hidden;
}
.contact-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 20px),
        radial-gradient(100% 70% at 100% 0%, rgba(215,38,43,.32) 0%, transparent 62%);
    pointer-events: none;
}
.contact-panel > * { position: relative; }
.contact-panel h3 { font-size: 1.3rem; color: #fff; }
.contact-panel .panel-lead { margin-top: 12px; color: rgba(255, 255, 255, .68); font-size: .97rem; line-height: 1.6; }

.contact-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line-dark);
    color: var(--red-light);
}
.contact-list .ci i, .contact-list .ci svg { width: 19px; height: 19px; }
.contact-label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .48);
}
.contact-value { font-size: 1.02rem; font-weight: 600; color: #fff; margin-top: 3px; }
.contact-value a { color: #fff; }
.contact-value a:hover { color: var(--red-light); }
.contact-value .small { display: block; font-size: .9rem; font-weight: 400; color: rgba(255,255,255,.64); white-space: pre-line; }

.contact-emergency {
    margin-top: 30px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: var(--red);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.contact-emergency i, .contact-emergency svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.contact-emergency strong { display: block; font-size: .97rem; }
.contact-emergency span { font-size: .88rem; color: rgba(255, 255, 255, .88); }

/* --------------------------------------------------------------------------
   Form controls
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .col-span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .col-span-2 { grid-column: auto; }
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--ink);
}
.field .req { color: var(--red); }
.field .hint { font-size: .8rem; color: var(--ink-3); font-weight: 400; }

.input, .textarea, .select {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    font-size: .98rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
    appearance: none;
}
.textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6068' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
    cursor: pointer;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .textarea:hover, .select:hover { border-color: #C9CBD1; }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(215, 38, 43, .13);
}
.input.has-error, .textarea.has-error, .select.has-error { border-color: var(--red); background: #FFFAFA; }

.field-error {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: var(--red-dark);
}

/* Honeypot — off-screen, never shown to humans, ignored by assistive tech */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--ink-2);
    cursor: pointer;
}
.check input[type="checkbox"] {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--red);
    cursor: pointer;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.form-actions .note { font-size: .85rem; color: var(--ink-3); }

/* Alerts */
.alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid;
    margin-bottom: 26px;
    font-size: .96rem;
    line-height: 1.55;
}
.alert i, .alert svg { width: 21px; height: 21px; flex: none; margin-top: 1px; }
.alert strong { display: block; margin-bottom: 3px; font-size: 1rem; }
.alert-success { background: #F1F8F3; border-color: #BFDFC8; color: #1F5B32; }
.alert-success i, .alert-success svg { color: #2E7D48; }
.alert-error { background: var(--red-tint); border-color: #EFC2C3; color: #8E1418; }
.alert-error i, .alert-error svg { color: var(--red); }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

/* Success state replaces the form entirely */
.form-success {
    text-align: center;
    padding: clamp(24px, 4vw, 48px) 0;
}
.form-success .tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #E9F5ED;
    color: #2E7D48;
    margin-bottom: 24px;
}
.form-success .tick i, .form-success .tick svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 14px; }
.form-success p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Editorial / markdown pages (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.page-header {
    background: var(--black);
    color: #fff;
    padding-block: clamp(56px, 7vw, 96px);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px),
        radial-gradient(90% 100% at 85% 0%, rgba(215,38,43,.28) 0%, transparent 62%);
}
.page-header > .wrap { position: relative; }
.page-header h1 { font-size: var(--fs-h1); color: #fff; }

.prose {
    max-width: var(--text-max);
    margin-inline: auto;
    font-size: 1.03rem;
    line-height: 1.75;
    color: var(--ink-2);
}
.prose h2 {
    margin: 2.2em 0 .7em;
    font-size: 1.6rem;
    color: var(--ink);
}
.prose h3 {
    margin: 1.9em 0 .6em;
    font-size: 1.2rem;
    color: var(--ink);
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--red);
    color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-2); color: var(--ink); font-weight: 700; }
.prose-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, .62);
    padding-block: clamp(52px, 6vw, 78px) 32px;
    font-size: .94rem;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(min(100%, 240px), 1.3fr) repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: clamp(32px, 4vw, 56px);
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line-dark);
}
/* Below the point where 4 columns get cramped, drop to two, then one. */
@media (max-width: 720px) {
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
    .footer-top { grid-template-columns: minmax(0, 1fr); }
}
/* Body of the mark follows `color`; the notch has to flip so it stays visible. */
.footer .brand { color: #fff; }
.footer .brand-mark .mark-notch { fill: var(--black); }
.footer .brand-sub { color: rgba(255, 255, 255, .45); }
.footer-about { margin-top: 20px; max-width: 42ch; line-height: 1.65; }

.footer h4 {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 18px;
}
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
/* Long unbreakable strings (email address, URLs) must be allowed to wrap, or
   their intrinsic width forces the grid column — and the page — past the
   viewport. This, not the grid tracks, is what overflowed the footer. */
.footer a, .footer .footer-about, .footer .contact-line span { overflow-wrap: anywhere; }
.footer .contact-line { display: flex; gap: 9px; align-items: flex-start; }
/* Flex children default to min-width:auto and won't shrink below their content;
   min-width:0 lets the email/address wrap instead of overflowing. */
.footer .contact-line a, .footer .contact-line span { min-width: 0; }
.footer .contact-line i, .footer .contact-line svg { width: 16px; height: 16px; color: var(--red-light); flex: none; margin-top: 4px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-items: center;
    justify-content: space-between;
    padding-top: 26px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .45);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* Sticky mobile call bar — high-intent shortcut on phones */
.call-bar { display: none; }
@media (max-width: 640px) {
    .call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        /* minmax(0,1fr) — plain 1fr has min-width:auto, so a long non-wrapping
           label ("Angebot anfordern") forces the track wider than half and the
           bar spills past the viewport. minmax(0,…) lets the cell shrink. */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1px;
        background: var(--line-dark);
        box-shadow: 0 -6px 24px rgba(14, 14, 16, .18);
    }
    .call-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-width: 0;                 /* allow the flex row to shrink below content */
        padding: 15px 10px;
        font-weight: 700;
        font-size: .97rem;
        white-space: nowrap;          /* keep label on one line… */
        overflow: hidden;
        text-overflow: ellipsis;      /* …and ellipsize rather than overflow */
    }
    .call-bar a span,
    .call-bar a { min-width: 0; }
    .call-bar a i, .call-bar a svg { width: 18px; height: 18px; flex: none; }
    .call-bar .cb-call { background: var(--black); color: #fff; }
    .call-bar .cb-quote { background: var(--red); color: #fff; }
    body { padding-bottom: 54px; }
}
