/*
 * seitech.ch · toxikum.com Templates | created with Actron-IT-Centricity
 *
 * VOICE   technisch, ruhig, präzise: wie ein sauber gezeichneter Werkplan
 * IDEA    Isolierung im Schnitt: Medium, Dämmung, Mantel. Haarlinien, Masslinien, Passermarken
 * PICTURE echte Baustellenfotos, dazu der animierte Querschnitt «Detail A»
 * COLOUR  Weiss und Aluminium, Indigo aus dem Logo, Thermo-Verlauf kalt > Indigo > warm als einziger Akzent
 * TYPE    Archivo (variabel, breite Schnitte für Titel)
 */

/* ------------------------------------------------------------ Grundlagen */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    --c-primary: #2e34a6;
    --c-ink: #0d0f2b;
    --c-cold: #1fa8e0;
    --c-warm: #f2602b;
    --c-text: #1b1d2c;
    --c-muted: #5a5f73;
    --c-line: #dcdfe6;
    --c-steel: #f2f3f5;
    --c-alu: #b8bdc8;
    --c-error: #c42b1c;
    --thermal: linear-gradient(90deg, var(--c-cold), var(--c-primary) 55%, var(--c-warm));
    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1240px;
    --gutter: max(5vw, 20px);
    --hd-h: 76px;
    --radius: 3px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --logo-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }

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

body {
    margin: 0;
    font: 400 17px/1.6 var(--font);
    color: var(--c-text);
    background: #fff;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-cold); outline-offset: 3px; }

svg use { pointer-events: none; }
svg:not(.xs__svg):not(.philo__rings) { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr { 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 { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-ink); color: #fff; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(64px, 9vw, 128px); }
.band--steel { background: var(--c-steel); }
.band--ink { background: var(--c-ink); color: rgba(255, 255, 255, .78); }
.band--ink a:not(.btn) { color: #fff; }
.modpos { padding-block: 40px; }
.page { padding-top: calc(var(--hd-h) + 48px); min-height: 60vh; }

/* ------------------------------------------------------------ Typografie */
.hero__title, .h2, .h3, .ft__h, .philo__number, .fact__value, .tile__title, .rq__title {
    font-family: var(--font);
    color: var(--c-ink);
    text-wrap: balance;
}

.h2 {
    margin: 0 0 .5em;
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 700;
    font-stretch: 112%;
    line-height: 1.06;
    letter-spacing: -.01em;
}

.h3 {
    margin: 0 0 .35em;
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 690;
    font-stretch: 108%;
    line-height: 1.1;
}

.band--ink .h2, .band--ink .h3 { color: #fff; }
.lead { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.55; color: var(--c-muted); max-width: 62ch; }
.band--ink .lead { color: rgba(255, 255, 255, .72); }
.sub { margin: -.2em 0 1.1em; font-size: 18.5px; font-weight: 620; color: var(--c-primary); }
.band--ink .sub { color: var(--c-cold); }

/* ------------------------------------------------------------ Schaltflächen */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 640;
    font-stretch: 106%;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}

.btn svg { width: 19px; height: 19px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-ink); color: #fff; }
.btn--ghost { border-color: var(--c-alu); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.band--ink .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.band--ink .btn--primary:hover { background: #fff; color: var(--c-ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------ Kopfbereich */
.hd {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}

.hd.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 10px 30px -24px rgba(13, 15, 43, .5); }

.hd__bar { display: flex; align-items: center; gap: 28px; height: var(--hd-h); }
.hd__logo { flex: none; display: flex; align-items: center; text-decoration: none; }
.hd__logo img { height: var(--logo-h); width: auto; max-height: calc(var(--hd-h) - 16px); transition: height .3s var(--ease); }
.hd.is-scrolled .hd__logo img { height: calc(var(--logo-h) * .82); }
.hd__wordmark { font-weight: 750; font-stretch: 115%; color: var(--c-primary); font-size: 20px; }

.hd__nav { margin-left: auto; }
.hd__menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hd__menu a {
    position: relative;
    display: block;
    padding: 10px 12px;
    font-size: 15.5px;
    font-weight: 560;
    color: var(--c-text);
    text-decoration: none;
}

.hd__menu a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--thermal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}

.hd__menu a:hover, .hd__menu a.is-active { color: var(--c-primary); }
.hd__menu a:hover::after, .hd__menu a.is-active::after { transform: scaleX(1); }
.hd__panelmeta { display: none; }

.hd__actions { display: flex; align-items: center; gap: 14px; }
.hd__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.hd__phone svg { width: 19px; height: 19px; color: var(--c-primary); }
.hd__phone:hover { color: var(--c-primary); }

.hd__burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}

.hd__lines, .hd__lines::before, .hd__lines::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: auto;
    background: var(--c-ink);
    transition: transform .3s var(--ease), background-color .2s;
}

.hd__lines { position: relative; }
.hd__lines::before, .hd__lines::after { content: ""; position: absolute; left: 0; }
.hd__lines::before { transform: translateY(-6px); }
.hd__lines::after { transform: translateY(6px); }
.nav-open .hd__lines { background: transparent; }
.nav-open .hd__lines::before { transform: rotate(45deg); }
.nav-open .hd__lines::after { transform: rotate(-45deg); }

.hd__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.hd__progress span { display: block; height: 100%; background: var(--thermal); transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (max-width: 1240px) {
    .hd__phone span { display: none; }
}

@media (max-width: 1020px) {
    :root { --hd-h: 68px; }
    /* backdrop-filter würde das fixierte Menü-Panel auf die Kopfzeile begrenzen */
    .hd { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .hd__burger { display: grid; place-items: center; }
    .hd__nav {
        position: fixed;
        inset: var(--hd-h) 0 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 28px var(--gutter) 40px;
        background: #fff;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
        overflow-y: auto;
    }

    .nav-open .hd__nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .35s var(--ease); }
    .hd__menu { flex-direction: column; gap: 0; }
    .hd__menu a { padding: 16px 0; font-size: 26px; font-weight: 650; font-stretch: 110%; border-bottom: 1px solid var(--c-line); }
    .hd__menu a::after { left: 0; right: auto; width: 48px; bottom: -1px; }
    .hd__panelmeta { display: grid; gap: 12px; margin-top: 32px; }
    .hd__panelmeta a { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; text-decoration: none; }
    .hd__panelmeta svg { width: 20px; height: 20px; }
    .hd__actions { margin-left: auto; }
    .nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
    .hd__cta { display: none; }
    .hd__bar { gap: 12px; }
}

/* ------------------------------------------------------------ Start */
.hero {
    position: relative;
    padding-top: calc(var(--hd-h) + clamp(32px, 6vw, 84px));
    background:
        linear-gradient(rgba(46, 52, 166, .055) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(46, 52, 166, .055) 1px, transparent 1px) 0 0 / 48px 48px,
        #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, #fff 92%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    padding-bottom: clamp(72px, 8vw, 120px);
}

.hero__kicker { margin: 0 0 18px; font-size: 18px; font-weight: 600; font-stretch: 110%; color: var(--c-primary); }

.hero__title {
    margin: 0 0 26px;
    font-size: clamp(38px, 5.1vw, 70px);
    font-weight: 730;
    font-stretch: 116%;
    line-height: 1.02;
    letter-spacing: -.015em;
}

.hero__lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.62; color: var(--c-muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 26px; font-size: 15.5px; color: var(--c-muted); }
.hero__direct svg { width: 18px; height: 18px; color: var(--c-primary); }
.hero__direct a { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.hero__direct a:hover { color: var(--c-primary); }

.hero__media { position: relative; margin: 0; }
.hero__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-steel); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.08); will-change: transform; }

/* Passermarken wie auf einem Werkplan */
.mark { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.mark--tl { top: -12px; left: -12px; border-top: 1.5px solid var(--c-primary); border-left: 1.5px solid var(--c-primary); }
.mark--br { right: -12px; bottom: -12px; border-right: 1.5px solid var(--c-primary); border-bottom: 1.5px solid var(--c-primary); }

/* ------------------------------------------------------------ Querschnitt «Detail A» */
.xs {
    position: absolute;
    left: clamp(-80px, -5vw, -24px);
    bottom: -56px;
    z-index: 2;
    width: clamp(240px, 24vw, 320px);
    padding: 12px 10px 8px;
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: 0 30px 60px -32px rgba(13, 15, 43, .45);
}

.xs__svg { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.xs__s1 { stop-color: var(--c-warm); }
.xs__s2 { stop-color: var(--c-primary); }
.xs__hatchline { stroke: var(--c-primary); stroke-width: 1.1; opacity: .38; }
.xs__axes { fill: none; stroke: var(--c-alu); stroke-width: .8; stroke-dasharray: 14 4 2 4; }
.xs__spin { fill: none; stroke: var(--c-alu); stroke-width: .9; stroke-dasharray: 2 6; transform-origin: 112px 122px; animation: stc-spin 48s linear infinite; }
.xs__ins { fill: none; stroke: url(#xs-hatch); stroke-width: 35; }
.xs__core { fill: url(#xs-heat); transform-origin: 112px 122px; animation: stc-pulse 3.6s ease-in-out infinite; }
.xs__flow { fill: none; stroke: var(--c-warm); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 7; animation: stc-flow 1.6s linear infinite; }
.xs__ring { fill: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.xs__ring--pipe { stroke: var(--c-ink); stroke-width: 3; }
.xs__ring--ins { stroke: var(--c-primary); stroke-width: 1; opacity: .6; }
.xs__ring--clad { stroke: var(--c-alu); stroke-width: 4.5; }
.xs__seams, .xs__dim { fill: none; stroke: var(--c-ink); stroke-width: 1; }
.xs__dim path:last-child { fill: var(--c-ink); stroke: none; }
.xs__label path { fill: none; stroke: var(--c-ink); stroke-width: 1; }
.xs__label circle { fill: #fff; stroke: var(--c-ink); stroke-width: 1.2; }
.xs__label text { font-size: 13px; font-weight: 620; font-stretch: 108%; fill: var(--c-ink); }

.js .xs .xs__ring { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.js .xs .xs__ring--ins { transition-delay: .25s; }
.js .xs .xs__ring--clad { transition-delay: .5s; }
.js .xs .xs__ins, .js .xs .xs__core, .js .xs .xs__flow, .js .xs .xs__dim, .js .xs .xs__seams { opacity: 0; transition: opacity 1s .6s; }
.js .xs .xs__label { opacity: 0; transform: translateX(-8px); transition: opacity .6s, transform .6s var(--ease); transition-delay: calc(1s + var(--d) * .18s); }
.js .xs.is-drawn .xs__ring { stroke-dashoffset: 0; }
.js .xs.is-drawn .xs__ins, .js .xs.is-drawn .xs__core, .js .xs.is-drawn .xs__flow, .js .xs.is-drawn .xs__dim, .js .xs.is-drawn .xs__seams { opacity: 1; }
.js .xs.is-drawn .xs__label { opacity: 1; transform: none; }

@keyframes stc-spin { to { transform: rotate(360deg); } }
@keyframes stc-pulse { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1); } }
@keyframes stc-flow { to { stroke-dashoffset: -10; } }

/* Einstieg */
.js .hero [data-anim], .js .hero .hero__lead { animation: stc-rise .9s var(--ease) both; }
.js .hero [data-anim="1"] { animation-delay: .05s; }
.js .hero [data-anim="2"] { animation-delay: .14s; }
.js .hero .hero__lead { animation-delay: .26s; }
.js .hero [data-anim="4"] { animation-delay: .38s; }
.js .hero [data-anim="5"] { animation-delay: .48s; }
.js .hero__img { animation: stc-clip 1.3s .1s var(--ease) both; }
@keyframes stc-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes stc-clip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Laufband */
.ticker { position: relative; overflow: hidden; background: var(--c-ink); color: #fff; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 80px; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--c-ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--c-ink), transparent); }
.ticker__track { display: flex; width: max-content; animation: stc-marquee 55s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker__list li { display: flex; align-items: center; gap: 28px; padding: 19px 0 19px 28px; font-size: 17px; font-weight: 600; font-stretch: 114%; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--thermal); background-size: 300% 100%; }
.ticker__list li:nth-child(3n+1)::after { background: var(--c-cold); }
.ticker__list li:nth-child(3n+2)::after { background: var(--c-primary); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.ticker__list li:nth-child(3n)::after { background: var(--c-warm); }
@keyframes stc-marquee { to { transform: translateX(-50%); } }

@media (max-width: 1200px) {
    .xs { left: -24px; width: clamp(230px, 26vw, 290px); }
}

@media (max-width: 1000px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { margin-bottom: 64px; }
    .xs { left: auto; right: 16px; bottom: -64px; width: min(270px, 70vw); }
}

@media (max-width: 600px) {
    .xs { position: relative; right: auto; bottom: auto; margin: -48px 0 0 auto; width: min(280px, 86%); }
    .hero__media { margin-bottom: 0; }
    .mark { display: none; }
}

/* ------------------------------------------------------------ Über uns */
.intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.intro__text { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; max-width: 62ch; }
.facts { margin: 0; display: grid; gap: 0; }
.fact { position: relative; display: flex; flex-direction: column-reverse; padding: 22px 0 24px; border-top: 1px solid var(--c-line); }
.fact:last-child { border-bottom: 1px solid var(--c-line); }
.fact::before { content: ""; position: absolute; top: -1px; left: 0; width: 72px; height: 2px; background: var(--thermal); transform: scaleX(0); transform-origin: left; transition: transform 1s .3s var(--ease); }
.fact.is-in::before { transform: scaleX(1); }
.fact__label { font-size: 16px; color: var(--c-muted); }
.fact__value { margin: 0 0 2px; font-size: clamp(48px, 5vw, 72px); font-weight: 720; font-stretch: 122%; line-height: 1; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.fact__suffix { color: var(--c-warm); }

@media (max-width: 860px) {
    .intro__grid { grid-template-columns: 1fr; }
    .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .fact:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
    .facts { grid-template-columns: 1fr; gap: 0; }
    .fact { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 16px; }
    .fact:last-child { border-bottom: 1px solid var(--c-line); }
}

/* ------------------------------------------------------------ Leistungen */
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 780px; }
.sec-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; max-width: none; }
.sec-head--split .h2 { margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tile__link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
    padding: 28px 24px 22px;
    background: #fff;
    border: 1px solid var(--c-line);
    color: var(--c-text);
    text-decoration: none;
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}

.tile__link::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--thermal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tile__link:hover { transform: translateY(-5px); border-color: var(--c-primary); box-shadow: 0 24px 40px -28px rgba(46, 52, 166, .55); color: var(--c-text); }
.tile__link:hover::before { transform: scaleX(1); }
.tile__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px; border: 1px solid var(--c-line); border-radius: 50%; color: var(--c-primary); transition: background-color .3s, color .3s, transform .6s var(--ease); }
.tile__icon svg { width: 28px; height: 28px; }
.tile__link:hover .tile__icon { background: var(--c-primary); color: #fff; transform: rotate(-8deg); }
.tile__title { font-size: 20px; font-weight: 700; font-stretch: 108%; line-height: 1.2; }
.tile__text { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--c-muted); }
.tile__more { margin-top: auto; padding-top: 22px; color: var(--c-primary); }
.tile__more svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.tile__link:hover .tile__more svg { transform: translateX(6px); }

/* Sprungleiste der Bereiche */
.svcnav {
    position: sticky;
    top: var(--hd-h);
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-line);
}

.svcnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.svcnav__inner::-webkit-scrollbar { display: none; }
.svcnav__link { flex: none; padding: 17px 14px; font-size: 15px; font-weight: 600; color: var(--c-muted); text-decoration: none; white-space: nowrap; transition: color .25s; }
.svcnav__link:hover, .svcnav__link.is-active { color: var(--c-primary); }
.svcnav__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.svcnav__bar span { position: absolute; left: 0; bottom: 0; width: var(--w, 0); height: 3px; background: var(--thermal); transform: translateX(var(--x, 0)); transition: transform .5s var(--ease), width .5s var(--ease); }

.svc { position: relative; }
.svc + .svc { border-top: 1px solid var(--c-line); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.svc--flip .svc__media { order: 2; }
.svc--noimg .svc__grid { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

.svc__media { position: sticky; top: calc(var(--hd-h) + 90px); margin: 0; }
.svc__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--c-steel); }

.svc__head { margin-bottom: 26px; }
.svc__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: var(--c-primary); color: #fff; }
.svc__icon svg { width: 26px; height: 26px; }
.svc__sub { margin: 0; font-size: 18px; font-weight: 600; color: var(--c-primary); }
.svc__text { font-size: 18px; line-height: 1.65; margin-bottom: 28px; max-width: 62ch; }

.specs { margin: 0 0 34px; }
.spec { position: relative; display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 6px 28px; padding: 18px 0 18px 18px; border-top: 1px solid var(--c-line); }
.spec:last-child { border-bottom: 1px solid var(--c-line); }
.spec::before { content: ""; position: absolute; left: 0; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-alu); transition: background-color .3s, transform .3s var(--ease); }
.spec:hover::before { background: var(--c-warm); transform: scale(1.4); }
.spec dt { font-weight: 660; color: var(--c-ink); line-height: 1.4; }
.spec dd { margin: 0; color: var(--c-muted); line-height: 1.55; }
.svc__cta { margin: 0; }

@media (max-width: 1000px) {
    .svc__grid { grid-template-columns: 1fr; }
    .svc--flip .svc__media { order: 0; }
    .svc__media { position: relative; top: 0; }
    .svc__media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
    .spec { grid-template-columns: 1fr; }
    .sec-head--split { grid-template-columns: 1fr; }
}

/* Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Bild wird freigelegt wie ein Mantel, der abgezogen wird (Overlay statt clip-path, damit Lazy Loading greift) */
.partner__media { position: relative; }
.wipe > img { display: block; }
.js .wipe::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--wipe-bg, #fff); transform-origin: right center; transition: transform 1.2s var(--ease); pointer-events: none; }
.js .wipe.is-in::after { transform: scaleX(0); }

.svc__media .mark { z-index: 2; }

/* ------------------------------------------------------------ Aus der Praxis */
.praxis { overflow: hidden; }
.praxis .h2 { color: #fff; }
.marquee { display: grid; gap: 14px; }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: stc-marquee var(--dur, 70s) linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; }
.marquee--slow { --dur: 110s; }
.marquee--fast { --dur: 42s; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 14px; flex: none; margin: 0; padding: 0 14px 0 0; list-style: none; }
.shot { position: relative; display: block; width: clamp(240px, 26vw, 360px); aspect-ratio: 4 / 3; padding: 0; border: 0; background: #1a1d40; cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); filter: none; }
.shot__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--c-ink); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.shot__zoom svg { width: 20px; height: 20px; }
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom { opacity: 1; transform: none; }

/* Grossansicht */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 8, 24, .95); color: #fff; }
.lb::backdrop { background: rgba(7, 8, 24, .7); }
.lb[open] { display: grid; place-items: center; }
.lb__fig { margin: 0; padding: 64px 88px 72px; display: grid; justify-items: center; gap: 14px; }
.lb__img { max-width: min(100%, 1600px); max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.lb__cap { font-size: 15px; color: rgba(255, 255, 255, .8); text-align: center; max-width: 70ch; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb__btn:hover { background: rgba(255, 255, 255, .18); }
.lb__btn svg { width: 24px; height: 24px; }
.lb__btn--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__btn--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb__btn--close { right: 20px; top: 20px; }
.lb__count { position: absolute; left: 24px; top: 30px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
    .lb__fig { padding: 72px 12px 96px; }
    .lb__btn--prev, .lb__btn--next { top: auto; bottom: 20px; transform: none; }
    .lb__btn--prev { left: calc(50% - 64px); }
    .lb__btn--next { right: calc(50% - 64px); }
}

/* ------------------------------------------------------------ Partner */
.partner__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.partner__copy { font-size: 17.5px; line-height: 1.65; max-width: 64ch; }
.partner__media { margin: 0; }
.partner__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.plink {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    align-items: center;
    height: 100%;
    padding: 20px 22px;
    border: 1px solid var(--c-line);
    color: var(--c-ink);
    text-decoration: none;
    transition: border-color .3s, background-color .3s;
}

.plink__name { font-size: 18px; font-weight: 680; font-stretch: 106%; }
.plink__host { grid-row: 2; font-size: 14px; color: var(--c-muted); }
.plink__icon { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--c-primary); transition: transform .35s var(--ease); }
a.plink:hover { border-color: var(--c-primary); background: var(--c-steel); color: var(--c-ink); }
a.plink:hover .plink__icon { transform: translate(3px, -3px); }

@media (max-width: 860px) {
    .partner__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Philosophie */
.philo__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.philo__figure { position: relative; display: grid; place-items: center; align-content: center; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; text-align: center; }
.philo__rings { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; animation: stc-spin 90s linear infinite; }
.philo__rings .philo__dash { stroke: var(--c-cold); stroke-width: 1.4; stroke-dasharray: 3 9; opacity: .8; }
.philo__number { position: relative; margin: 0; font-size: clamp(80px, 9.5vw, 140px); font-weight: 760; font-stretch: 118%; line-height: .9; color: #fff; font-variant-numeric: tabular-nums; }
.philo__suffix { color: var(--c-warm); }
.philo__label { position: relative; margin: 12px 0 0; font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.philo__copy { font-size: 17.5px; line-height: 1.68; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.values li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 15px; font-weight: 560; color: #fff; }
.values svg { width: 18px; height: 18px; color: var(--c-cold); }

@media (max-width: 900px) {
    .philo__grid { grid-template-columns: 1fr; }
    .philo__figure { max-width: 340px; }
}

/* ------------------------------------------------------------ Kontakt */
.contact__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact__copy { position: sticky; top: calc(var(--hd-h) + 40px); font-size: 17.5px; line-height: 1.65; }
.cards { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; transition: border-color .3s, transform .35s var(--ease); }
.card:hover { border-color: var(--c-primary); transform: translateX(4px); color: var(--c-ink); }
.card__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff; }
.card__icon svg { width: 22px; height: 22px; }
.card__label { font-size: 14px; color: var(--c-muted); }
.card__value { font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }

@media (max-width: 960px) {
    .contact__grid { grid-template-columns: 1fr; }
    .contact__copy { position: static; }
}

/* Formular */
.rq { position: relative; scroll-margin-top: calc(var(--hd-h) + 20px); padding: clamp(22px, 3.4vw, 40px); background: #fff; border: 1px solid var(--c-line); box-shadow: 0 40px 70px -46px rgba(13, 15, 43, .45); }
.rq__head { margin-bottom: 28px; }
.rq__title { margin: 0 0 20px; font-size: clamp(22px, 2vw, 27px); font-weight: 700; font-stretch: 110%; }
.rq__steps { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; list-style: none; }
.rq__steps li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--c-muted); transition: color .3s; }
.rq__num { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--c-line); border-radius: 50%; font-size: 13.5px; font-variant-numeric: tabular-nums; transition: background-color .3s, border-color .3s, color .3s; }
.rq__steps li.is-active { color: var(--c-ink); }
.rq__steps li.is-active .rq__num { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.rq__steps li.is-done .rq__num { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.rq__bar { height: 3px; background: var(--c-steel); overflow: hidden; }
.rq__bar span { display: block; height: 100%; width: 33.34%; background: var(--thermal); background-size: 300% 100%; transition: width .6s var(--ease); }

.rq__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.js .rq__step { display: none; }
.js .rq__step.is-active { display: block; animation: stc-step .5s var(--ease) both; }
.no-js .rq__step + .rq__step { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.no-js [data-next], .no-js [data-prev], .no-js .rq__bar { display: none; }
@keyframes stc-step { from { opacity: 0; transform: translateX(18px); } }

.fld { margin-bottom: 22px; }
.fld__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 620; color: var(--c-ink); }
.fld__opt { font-weight: 400; color: var(--c-muted); }
.fld__req { color: var(--c-warm); }
.fld__err { margin: 7px 0 0; font-size: 14px; font-weight: 560; color: var(--c-error); }
.fld__err:empty { display: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

.inp {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    font-size: 16px;
    color: var(--c-text);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.inp::placeholder { color: #9095a5; }
.inp:hover { border-color: var(--c-alu); }
.inp:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(46, 52, 166, .12); }
textarea.inp { min-height: 140px; resize: vertical; line-height: 1.5; }
.sel { position: relative; }
.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--c-ink); border-bottom: 1.5px solid var(--c-ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel .inp { padding-right: 40px; cursor: pointer; }
.fld.has-error .inp { border-color: var(--c-error); }

.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 156px), 1fr)); gap: 10px; }
.area { position: relative; cursor: pointer; }
.area input, .chip input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.area__box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-height: 108px;
    padding: 16px 14px;
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 620;
    line-height: 1.3;
    color: var(--c-ink);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.area__box svg { width: 28px; height: 28px; color: var(--c-muted); transition: color .2s, transform .4s var(--ease); }
.area__box::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border: 1.5px solid var(--c-line); border-radius: 50%; transition: all .2s; }
.area:hover .area__box { border-color: var(--c-alu); }
.area input:checked + .area__box { border-color: var(--c-primary); background: rgba(46, 52, 166, .05); box-shadow: inset 0 0 0 1px var(--c-primary); }
.area input:checked + .area__box svg { color: var(--c-primary); transform: scale(1.08); }
.area input:checked + .area__box::after { border-color: var(--c-primary); background: var(--c-primary); box-shadow: inset 0 0 0 4px #fff; }
.area input:focus-visible + .area__box, .chip input:focus-visible + span, .check input:focus-visible + .check__box { outline: 2px solid var(--c-cold); outline-offset: 2px; }
.has-error .area__box { border-color: rgba(196, 43, 28, .55); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--c-line); border-radius: 999px; font-size: 15px; font-weight: 560; color: var(--c-ink); transition: all .2s; }
.chip:hover span { border-color: var(--c-alu); }
.chip input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.has-error .chip span { border-color: rgba(196, 43, 28, .55); }

.drop { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 18px 20px; border: 1.5px dashed var(--c-alu); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.is-over { border-color: var(--c-primary); background: rgba(46, 52, 166, .04); }
.drop svg { grid-row: 1 / span 2; width: 30px; height: 30px; color: var(--c-primary); }
.drop__btn { font-weight: 650; color: var(--c-primary); }
.drop__hint { font-size: 14px; color: var(--c-muted); }
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filelist { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.filelist:empty { display: none; }
.filelist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 8px 8px 12px; background: var(--c-steel); font-size: 14.5px; }
.filelist li.is-bad { background: rgba(196, 43, 28, .08); color: var(--c-error); }
.filelist svg { width: 18px; height: 18px; }
.filelist .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .fsize { color: var(--c-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.filelist button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--c-muted); cursor: pointer; }
.filelist button:hover { color: var(--c-error); }

.summary { margin: 4px 0 24px; padding: 18px 20px; background: var(--c-steel); border-left: 3px solid var(--c-primary); }
.summary__title { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; color: var(--c-ink); }
.summary__list { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 14.5px; }
.summary__list dt { color: var(--c-muted); }
.summary__list dd { margin: 0; color: var(--c-ink); overflow-wrap: anywhere; white-space: pre-line; }

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; position: relative; cursor: pointer; font-size: 15px; line-height: 1.5; }
.check__box { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid var(--c-alu); border-radius: var(--radius); transition: all .2s; }
.check__box svg { width: 16px; height: 16px; color: #fff; stroke-width: 2.4; opacity: 0; transform: scale(.6); transition: all .2s var(--ease); }
.check input:checked + .check__box { background: var(--c-primary); border-color: var(--c-primary); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.has-error .check__box { border-color: var(--c-error); }

.captcha { min-height: 78px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq__status { margin: 0; font-size: 15px; font-weight: 560; color: var(--c-error); }
.rq__status:empty { display: none; }
.rq__status.is-ok { color: var(--c-primary); }
.rq__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.rq__nav .btn--primary { margin-left: auto; }

.rq__done { padding: 40px 0 20px; text-align: center; outline: none; }
.rq__done:not([hidden]) { animation: stc-step .6s var(--ease) both; }
.rq__doneicon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; background: var(--c-primary); color: #fff; }
.rq__doneicon svg { width: 38px; height: 38px; stroke-width: 2.2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: stc-draw .7s .3s var(--ease) forwards; }
.rq__done p { max-width: 46ch; margin-inline: auto; color: var(--c-muted); }
.rq.is-done .rq__head, .rq.is-done .rq__step { display: none !important; }
@keyframes stc-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 620px) {
    .grid2 { grid-template-columns: 1fr; }
    .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .area__box { min-height: 92px; padding: 14px 12px; font-size: 14.5px; }
    .tile__link { min-height: 0; }
    .summary__list { grid-template-columns: 1fr; gap: 0; }
    .summary__list dd { margin-bottom: 8px; }
    .rq__steps .rq__name { display: none; }
    .rq__steps li.is-active .rq__name { display: inline; }
}

/* ------------------------------------------------------------ Fussbereich */
.ft { position: relative; background: var(--c-ink); color: rgba(255, 255, 255, .7); font-size: 15.5px; }
.ft__line { height: 3px; background: var(--thermal); }
.ft__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(56px, 7vw, 96px) 48px; }
.ft__logo { height: 54px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.ft__wordmark { margin: 0 0 16px; font-size: 22px; font-weight: 750; color: #fff; }
.ft__text { max-width: 40ch; line-height: 1.6; }
.ft__h { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: #fff; }
.ft__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ft__list a, .ft__linkbtn { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .78); text-decoration: none; cursor: pointer; text-align: left; font-size: 15.5px; }
.ft__list svg { width: 17px; height: 17px; color: var(--c-cold); }
.ft__list a:hover, .ft__linkbtn:hover { color: #fff; text-decoration: underline; }
.ft__mods { padding-bottom: 32px; }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .55); }
.ft__gen a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.ft__gen a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
    .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ft__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .ft__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Dialoge */
.dlg { width: min(780px, calc(100% - 24px)); max-height: min(88vh, 900px); margin: auto; padding: 0; border: 0; border-radius: 6px; background: #fff; color: var(--c-text); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); }
.dlg::backdrop { background: rgba(13, 15, 43, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg[open] { animation: stc-pop .35s var(--ease); }
.dlg__inner { position: relative; padding: clamp(28px, 5vw, 56px); }
.dlg__close { position: sticky; top: 0; float: right; display: grid; place-items: center; width: 44px; height: 44px; margin: -12px -12px 0 12px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; cursor: pointer; z-index: 1; }
.dlg__close svg { width: 22px; height: 22px; }
.dlg__close:hover { border-color: var(--c-primary); color: var(--c-primary); }
@keyframes stc-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.prose { font-size: 16.5px; line-height: 1.65; }
.prose h1, .prose h2 { margin: 0 0 .6em; font-size: clamp(28px, 3vw, 38px); font-weight: 700; font-stretch: 112%; line-height: 1.1; color: var(--c-ink); }
.prose h3 { margin: 1.8em 0 .4em; font-size: 19px; font-weight: 700; color: var(--c-ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { overflow-wrap: anywhere; }
.page .prose, .page { font-size: 17px; }

/* ------------------------------------------------------------ Cookie-Banner */
.cb {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 70;
    width: min(440px, calc(100% - 24px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: 0 30px 70px -30px rgba(13, 15, 43, .55);
    font-size: 14.5px;
    line-height: 1.55;
    animation: stc-rise .6s var(--ease) both;
}

.cb[hidden] { display: none; }
.cb::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--thermal); }
.cb__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; font-stretch: 108%; color: var(--c-ink); }
.cb__text { margin-bottom: 16px; color: var(--c-muted); }
.cb__prefs { display: grid; gap: 10px; margin-bottom: 16px; }
.cb__prefs[hidden] { display: none; }
.cb__pref { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; background: var(--c-steel); cursor: pointer; }
.cb__pref input { position: absolute; opacity: 0; }
.cb__pref small { display: block; color: var(--c-muted); font-size: 13.5px; }
.cb__switch { position: relative; width: 40px; height: 24px; margin-top: 1px; border-radius: 999px; background: var(--c-alu); transition: background-color .2s; }
.cb__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.cb__pref input:checked + .cb__switch { background: var(--c-primary); }
.cb__pref input:checked + .cb__switch::after { transform: translateX(16px); }
.cb__pref input:disabled + .cb__switch { opacity: .6; }
.cb__pref input:focus-visible + .cb__switch { outline: 2px solid var(--c-cold); outline-offset: 2px; }
.cb__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb__actions .btn { flex: 1 1 auto; }
.cb__more { flex-basis: 100%; padding: 6px 0 0; border: 0; background: none; color: var(--c-primary); font-size: 14.5px; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 520px) {
    .cb { left: 12px; bottom: 12px; padding: 20px; }
}

/* ------------------------------------------------------------ Nach oben */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 50px; height: 50px; background: var(--c-ink); color: #fff; border-radius: 50%; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background-color .2s; }
.totop svg { width: 22px; height: 22px; }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.totop:hover { background: var(--c-primary); color: #fff; }

/* ------------------------------------------------------------ Systemmeldungen, Unterseiten, Fehler */
#system-message-container { position: relative; z-index: 45; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--hd-h) + 16px) var(--gutter) 0; }
#system-message-container:empty { display: none; }
.is-home #system-message-container ~ .hero { padding-top: clamp(32px, 6vw, 84px); }

.errpage { display: grid; place-items: center; min-height: 100vh; padding: 24px; background:
    linear-gradient(rgba(46, 52, 166, .06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(46, 52, 166, .06) 1px, transparent 1px) 0 0 / 48px 48px, #fff; }
.errpage__card { max-width: 560px; padding: 48px; background: #fff; border: 1px solid var(--c-line); text-align: center; }
.errpage__logo { height: 56px; width: auto; margin: 0 auto 32px; }
.errpage__code { margin: 0; font-size: 96px; font-weight: 760; font-stretch: 125%; line-height: 1; background: var(--thermal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.errpage__debug { text-align: left; white-space: pre-wrap; font-size: 13px; }

/* ------------------------------------------------------------ Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .wipe::after { display: none; }
    .hero__img img { transform: none; }
    .ticker__track { flex-wrap: wrap; width: auto; }
    .ticker__list[aria-hidden="true"], .marquee__list[aria-hidden="true"] { display: none; }
    .marquee__row { overflow-x: auto; scroll-snap-type: x mandatory; }
    .marquee__track { width: max-content; }
    .shot { scroll-snap-align: start; }
}

@media print {
    .hd, .cb, .totop, .ticker, .svcnav, .marquee, .rq, .lb, .dlg { display: none !important; }
    .hero { padding-top: 0; }
    .js .reveal { opacity: 1; transform: none; }
    .js .wipe::after { display: none; }
}
