/* =========================================================
   P² Intelligence – Stylesheet
   Farben aus dem Logo, Typografie & Bewegung im Apple-Stil
   ========================================================= */

:root {
    /* Markenfarben (aus dem Logo) */
    --navy-950: #040d27;
    --navy-900: #071b4a;
    --navy-800: #0a2c64;
    --blau-700: #0e559a;
    --blau-600: #1769df;
    --blau-650: #1259c2;
    --blau-500: #168ef0;
    --cyan-400: #25c7ed;
    --verlauf: linear-gradient(100deg, #1769df 0%, #168ef0 45%, #25c7ed 100%);
    /* Für Text: dunklerer Verlauf, damit jede Stelle mind. 3:1 Kontrast hat */
    --verlauf-text: linear-gradient(100deg, #1769df 0%, #1478d0 50%, #0e8fc4 100%);

    /* Flächen & Text */
    --bg: #ffffff;
    --bg-soft: #f4f6fa;
    --bg-soft-2: #eaeef5;
    --linie: #dfe4ee;
    --text: #0b1530;
    --text-2: #4a5470;
    --text-3: #5b6483;
    --rand-feld: #8a93ab;
    --gruen: #1f9d55;
    --rot: #d1373a;

    /* Form & Tiefe */
    --r-s: 12px;
    --r-m: 18px;
    --r-l: 28px;
    --schatten-s: 0 1px 2px rgba(11, 21, 48, .05), 0 2px 8px rgba(11, 21, 48, .05);
    --schatten-m: 0 2px 6px rgba(11, 21, 48, .04), 0 12px 32px rgba(11, 21, 48, .08);
    --schatten-l: 0 4px 12px rgba(4, 13, 39, .08), 0 30px 80px rgba(4, 13, 39, .22);

    /* Bewegung – kritisch gedämpft, kein Überschwingen */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-inout: cubic-bezier(.65, 0, .35, 1);
    --ease-press: cubic-bezier(.3, 0, .2, 1);

    --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --schrift-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

    --nav-h: 64px;
    --rand: 24px;

    color-scheme: light;
}

@media (max-width: 640px) {
    :root { --rand: 16px; --nav-h: 58px; }
}

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

[hidden] { display: none !important; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 1.0625rem;
    line-height: 1.55;
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--schrift-display);
    font-weight: 700;
    color: var(--text);
    text-wrap: balance;
}
h2 {
    font-size: clamp(2.25rem, 5.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}
h3 {
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--blau-600); text-decoration: none; }
a:hover { color: var(--blau-650); }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(22, 142, 240, .2); }

:focus-visible {
    outline: 2px solid var(--blau-600);
    outline-offset: 3px;
    border-radius: 6px;
}
.kontakt-text :focus-visible,
.kachel-dunkel :focus-visible { outline-color: var(--cyan-400); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--rand); }

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

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 100;
    padding: 10px 16px; border-radius: 999px;
    background: var(--text); color: #fff; font-weight: 600; font-size: .9rem;
    transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; color: #fff; }

.verlauf {
    background: var(--verlauf-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--blau-600);
}
.eyebrow-hell { color: var(--cyan-400); }

/* ---------- Buttons ---------- */
.btn {
    --btn-h: 50px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--btn-h);
    padding: 0 26px;
    border: 0; border-radius: 999px;
    font: inherit; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em;
    line-height: 1; white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .18s var(--ease-press), box-shadow .25s var(--ease-out);
}
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primaer { background: var(--blau-600); color: #fff; box-shadow: 0 1px 2px rgba(23, 105, 223, .2), 0 6px 20px -6px rgba(23, 105, 223, .55); }
.btn-primaer:hover { background: var(--blau-650); color: #fff; }

.btn-text { padding: 0 6px; background: none; color: var(--blau-600); }
.btn-text:hover { color: var(--blau-650); }
.btn-text svg { transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .btn-text:hover svg { transform: translateX(4px); }
}

.btn-klein { --btn-h: 36px; padding: 0 16px; font-size: .9rem; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50;
    transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), -webkit-backdrop-filter .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.ist-gescrollt,
.nav.ist-offen {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(11, 21, 48, .07);
}
/* Über dunklen Flächen und bei offenem Menü dichteres Glas, damit Logo und Text klar bleiben */
.nav.ist-ueber-dunkel { background: rgba(255, 255, 255, .9); }
.nav.ist-offen { background: rgba(255, 255, 255, .97); }
.nav-inner {
    display: flex; align-items: center; gap: 32px;
    max-width: 1180px; height: var(--nav-h); margin: 0 auto; padding: 0 var(--rand);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-symbol { width: auto; height: 32px; }
.brand-wortmarke { width: auto; height: 17px; margin-top: 2px; }

.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
    position: relative;
    color: var(--text-2); font-size: .9375rem; font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.menu-knopf {
    display: none;
    position: relative; width: 44px; height: 44px; margin: 0 -10px 0 auto;
    border: 0; background: none; cursor: pointer; border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
}
.menu-linie {
    position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px;
    background: var(--text);
    transition: transform .45s var(--ease-out);
}
.menu-linie:nth-child(1) { top: 18px; }
.menu-linie:nth-child(2) { top: 24px; }
.nav.ist-offen .menu-linie:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav.ist-offen .menu-linie:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobil-menue {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s var(--ease-out);
}
.mobil-menue.ist-offen { grid-template-rows: 1fr; }
.mobil-menue-inhalt {
    min-height: 0;
    overflow: hidden;
}
.mobil-menue-inhalt > * { margin-left: var(--rand); margin-right: var(--rand); }
.mobil-menue nav { display: grid; margin-top: 8px; margin-bottom: 24px; }
.mobil-menue nav a,
.mobil-menue .btn {
    opacity: 0; transform: translateY(-8px);
    transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.mobil-menue.ist-offen nav a,
.mobil-menue.ist-offen .btn { opacity: 1; transform: none; }
.mobil-menue.ist-offen nav a:nth-child(1) { transition-delay: 60ms; }
.mobil-menue.ist-offen nav a:nth-child(2) { transition-delay: 100ms; }
.mobil-menue.ist-offen nav a:nth-child(3) { transition-delay: 140ms; }
.mobil-menue.ist-offen nav a:nth-child(4) { transition-delay: 180ms; }
.mobil-menue.ist-offen .btn { transition-delay: 220ms; }
.mobil-menue nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--linie);
    color: var(--text); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
}
.mobil-menue .btn { width: calc(100% - 2 * var(--rand)); margin-bottom: 28px; }

@media (max-width: 820px) {
    .nav-links, .nav-cta { display: none; }
    .menu-knopf { display: block; }
    /* Ohne JavaScript funktioniert das Menü nicht – dann direkt den Button zeigen */
    .no-js .menu-knopf { display: none; }
    .no-js .nav-cta { display: inline-flex; margin-left: auto; }
}
@media (min-width: 821px) {
    .mobil-menue { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid; place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 24px) 0 64px;
    overflow: hidden;
    isolation: isolate;
}
.hero-glow {
    position: absolute; z-index: -1;
    top: 8%; left: 50%;
    width: min(1100px, 140vw); aspect-ratio: 1.4;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side at 50% 42%, rgba(37, 199, 237, .20), transparent 70%),
        radial-gradient(closest-side at 38% 55%, rgba(23, 105, 223, .16), transparent 75%),
        radial-gradient(closest-side at 64% 58%, rgba(22, 142, 240, .12), transparent 75%);
    filter: blur(10px);
    pointer-events: none;
}
.hero-inner {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; padding: 0 var(--rand);
    text-align: center;
}

.hero-wuerfel {
    position: relative;
    width: clamp(170px, min(24vw, 32svh), 290px);
    margin-bottom: clamp(28px, 5svh, 52px);
    perspective: 900px;
    will-change: transform;
}
.wuerfel-kippen { transform-style: preserve-3d; will-change: transform; }
.wuerfel-svg { width: 100%; height: auto; overflow: visible; }
.wuerfel-svg .face-scroll { will-change: transform; }
.wuerfel-schatten {
    position: absolute; left: 14%; right: 14%; bottom: -9%;
    height: 12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(7, 27, 74, .28), transparent);
    filter: blur(6px);
    z-index: -1;
}

.hero-titel {
    font-size: clamp(3rem, 9vw, 6.75rem);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 700;
}
.hero-titel .zeile { display: block; overflow: hidden; padding: 0 .04em .1em; margin-bottom: -.1em; }
.hero-titel .zeile > span { display: inline-block; }

@media (min-width: 821px) and (max-height: 760px) {
    .hero-wuerfel { width: clamp(140px, 26svh, 290px); margin-bottom: clamp(20px, 3.5svh, 40px); }
    .hero-titel { font-size: clamp(3rem, min(9vw, 11.5svh), 6.75rem); }
}

.hero-unterzeile {
    max-width: 34em;
    margin: clamp(20px, 3svh, 28px) auto 0;
    color: var(--text-2);
    font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
    line-height: 1.5;
    letter-spacing: -.015em;
}
.hero-aktionen {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px;
    margin-top: clamp(28px, 4svh, 40px);
}

/* Intro-Animation (startet sofort beim Laden, ohne JS-Abhängigkeit) */
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes flaeche-links  { from { opacity: 0; transform: translate(-34px, 26px); } to { opacity: 1; transform: none; } }
@keyframes flaeche-rechts { from { opacity: 0; transform: translate(34px, 26px); }  to { opacity: 1; transform: none; } }
@keyframes flaeche-oben   { from { opacity: 0; transform: translate(0, -44px); }    to { opacity: 1; transform: none; } }
@keyframes zeile-hoch     { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sanft-hoch     { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes schatten-ein   { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.hero-glow                       { animation: einblenden 2s var(--ease-out) both; }
.hero .face-left  .face-intro    { animation: flaeche-links 1.3s var(--ease-out) .1s both; }
.hero .face-right .face-intro    { animation: flaeche-rechts 1.3s var(--ease-out) .22s both; }
.hero .face-top   .face-intro    { animation: flaeche-oben 1.3s var(--ease-out) .42s both; }
.wuerfel-schatten                { animation: schatten-ein 1.4s var(--ease-out) .2s both; }
.hero-titel .zeile:nth-child(1) > span { animation: zeile-hoch 1.1s var(--ease-out) .5s both; }
.hero-titel .zeile:nth-child(2) > span { animation: zeile-hoch 1.1s var(--ease-out) .6s both; }
.hero-unterzeile                 { animation: sanft-hoch 1s var(--ease-out) .82s both; }
.hero-aktionen                   { animation: sanft-hoch 1s var(--ease-out) .94s both; }

/* ---------- Aussage (Wort-für-Wort beim Scrollen) ---------- */
.aussage {
    position: relative; height: 184vh;
    /* Zieht den Satz unter den ausblendenden Hero, damit keine leere Bildschirmhälfte entsteht */
    margin-top: -30vh; margin-top: -30svh;
    /* Liegt dadurch teilweise über dem Hero – Klicks auf dessen Buttons durchlassen */
    pointer-events: none;
}
.aussage-sticky {
    position: sticky; top: 0;
    display: grid; place-items: safe center;
    min-height: 100vh; min-height: 100svh;
    padding: calc(var(--nav-h) + 16px) 0 24px;
}
.aussage-text {
    max-width: 1020px;
    font-family: var(--schrift-display);
    font-size: clamp(1.85rem, 4.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.035em;
    text-align: center;
    text-wrap: balance;
}
.wort { display: inline; }
.js .wort { opacity: .14; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(96px, 13vw, 168px) 0; }
.abschnitt-getoent { background: var(--bg-soft); }
.aussage + .abschnitt { padding-top: clamp(24px, 4vw, 56px); }
.abschnitt-kopf { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.abschnitt-kopf .leise, h2 .leise { color: var(--text-3); }
.abschnitt-intro { margin-top: 20px; color: var(--text-2); font-size: 1.1875rem; line-height: 1.5; max-width: 30em; }

/* Scroll-Einblendung */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease-out) var(--d, 0ms), transform 1.2s var(--ease-out) var(--d, 0ms);
}
.js [data-reveal].ist-sichtbar,
.js [data-reveal]:focus-within { opacity: 1; transform: none; }
.js.reveal-alle [data-reveal] { opacity: 1; transform: none; }

/* ---------- Leistungen: Bento-Raster ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}
.kachel {
    position: relative;
    display: flex; flex-direction: column;
    grid-column: span 2;
    min-height: 460px;
    padding: clamp(28px, 3vw, 40px);
    border-radius: var(--r-l);
    background: var(--bg-soft);
    overflow: hidden;
    isolation: isolate;
}
.kachel-gross { grid-column: span 4; }
.kachel-breit { grid-column: span 6; }
.kachel-label { margin-bottom: 10px; font-size: .9375rem; font-weight: 600; color: var(--blau-600); }
.kachel h3 { margin-bottom: 12px; }
.kachel-text p:not(.kachel-label) { color: var(--text-2); font-size: 1.0625rem; max-width: 30em; }
.vis { margin-top: auto; padding-top: 32px; }

/* Bauteile der Illustrationen erscheinen erst, wenn die Kachel sichtbar ist */
.js .kachel .mock-block,
.js .kachel .notiz {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: calc(350ms + var(--i, 0) * 90ms);
}
.js .kachel.ist-sichtbar .mock-block,
.js .kachel.ist-sichtbar .notiz { opacity: 1; transform: none; }

/* Haken-Symbol (Domain, Wartung) – springt kurz auf, sobald etwas erledigt ist */
.haken {
    display: grid; place-items: center; flex: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gruen);
}
.haken svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@keyframes blinken { 50% { opacity: 0; } }
.caret { display: none; width: 1.5px; height: 1.15em; background: var(--blau-600); animation: blinken 1s steps(1) infinite; }
.tippt .caret { display: block; }

/* ---- Webseiten: Browser + Smartphone mit Mini-Website ---- */
.vis-web { position: relative; padding-right: clamp(56px, 12%, 110px); padding-bottom: 8px; }
.mock-browser { border-radius: 14px; background: #fff; box-shadow: var(--schatten-m); overflow: hidden; }
.mock-leiste {
    display: flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px;
    background: #f7f8fb; border-bottom: 1px solid #edf0f5;
}
.mock-leiste i { width: 9px; height: 9px; border-radius: 50%; background: #dfe3ea; }
.mock-leiste span {
    margin: 0 auto; padding: 3px clamp(10px, 4vw, 28px); border-radius: 6px;
    white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
    background: #eceff4; color: var(--text-3); font-size: .72rem; letter-spacing: 0;
}
.ms { display: grid; gap: 12px; padding: 14px 16px 18px; }
.ms-nav { display: flex; align-items: center; gap: 12px; }
.ms-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--verlauf); flex: none; }
.ms-links { display: flex; gap: 10px; margin-left: auto; }
.ms-links i { width: clamp(18px, 3vw, 34px); height: 6px; border-radius: 3px; background: #dfe4ee; }
.ms-knopf { width: 54px; height: 18px; border-radius: 999px; background: var(--navy-900); flex: none; }
.ms-hero {
    position: relative;
    display: grid; align-content: center; justify-items: start; gap: 8px;
    min-height: clamp(116px, 13vw, 170px);
    padding: 18px 20px;
    border-radius: 12px;
    background: linear-gradient(120deg, #0b2a66 0%, #1769df 55%, #25c7ed 100%);
    overflow: hidden;
}
.ms-titel { width: 52%; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .95); }
.ms-kurz { width: 34%; }
.ms-zeile { width: 44%; height: 7px; margin-top: 2px; border-radius: 4px; background: rgba(255, 255, 255, .55); }
.ms-cta {
    position: relative; z-index: 1;
    margin-top: 6px; padding: 6px 12px;
    border-radius: 999px; background: #fff;
    color: var(--blau-600); font-size: .7rem; font-weight: 700; letter-spacing: 0; line-height: 1.2; white-space: nowrap;
}
.ms-kreis { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.ms-kreis-1 { width: 150px; height: 150px; right: -36px; top: -50px; }
.ms-kreis-2 { width: 80px; height: 80px; right: 90px; bottom: -44px; background: rgba(255, 255, 255, .08); }
.ms-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-features > div, .mh-karte { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: #f3f5fa; }
.ms-icon { width: 20px; height: 20px; margin-bottom: 4px; border-radius: 6px; background: #dbe7fb; }
.ms-features i, .mh-karte i { height: 6px; border-radius: 3px; background: #dfe4ee; }
.ms-features i:last-child, .mh-karte i:last-child { width: 65%; }

/* Mauszeiger fährt zum Button und klickt – in Schleife, solange die Kachel zu sehen ist */
.zeiger {
    position: absolute; left: 62%; top: 48%;
    width: 18px; height: 18px;
    fill: #0b1530; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round;
    opacity: 0; pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}
@keyframes zeiger-weg {
    0%        { opacity: 0; transform: translate(170px, 50px); }
    8%        { opacity: 1; }
    36%       { transform: translate(0, 0); }
    40%       { transform: translate(0, 0) scale(.82); }
    45%, 70%  { opacity: 1; transform: translate(0, 0); }
    86%, 100% { opacity: 0; transform: translate(46px, 34px); }
}
@keyframes cta-klick {
    0%, 38%   { transform: none; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
    41%       { transform: scale(.93); }
    46%       { transform: none; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
    72%, 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
}
.kachel.im-bild .zeiger { animation: zeiger-weg 7s var(--ease-inout) 1.6s infinite; }
.kachel.im-bild .mock-browser .ms-cta { animation: cta-klick 7s var(--ease-out) 1.6s infinite; }

.mock-handy {
    position: absolute; right: 0; bottom: -14px;
    width: clamp(92px, 19%, 150px); aspect-ratio: 9 / 18.5;
    border: 5px solid #0b1530; border-radius: 26px;
    background: #fff;
    box-shadow: var(--schatten-l);
    overflow: hidden;
}
.mock-handy::before {
    content: ""; position: absolute; z-index: 2; top: 7px; left: 50%;
    width: 34%; height: 8px; border-radius: 6px; background: #0b1530;
    transform: translateX(-50%);
}
.mh-bildschirm { position: absolute; inset: 0; padding: 22px 8px 0; overflow: hidden; }
.mh-scroll { display: grid; gap: 7px; }
.mock-handy .ms-nav { gap: 6px; }
.mock-handy .ms-logo { width: 14px; height: 14px; border-radius: 4px; }
.ms-burger { width: 12px; height: 8px; margin-left: auto; border-top: 2px solid #b8c0d0; border-bottom: 2px solid #b8c0d0; }
.mock-handy .ms-hero { min-height: 0; padding: 14px 10px; gap: 5px; border-radius: 9px; }
.mock-handy .ms-titel { width: 80%; height: 7px; }
.mock-handy .ms-kurz { width: 55%; }
.mock-handy .ms-cta { margin-top: 3px; padding: 3px 7px; font-size: .5rem; }
.mh-karte { padding: 8px; gap: 4px; border-radius: 8px; }
.mh-karte .ms-icon { width: 12px; height: 12px; margin-bottom: 2px; border-radius: 4px; }
.mh-karte i { height: 4px; }
/* Das Handy scrollt langsam durch die Seite */
@keyframes handy-scroll {
    0%, 20%   { transform: none; }
    50%, 70%  { transform: translateY(-34%); }
    100%      { transform: none; }
}
.kachel.im-bild .mh-scroll { animation: handy-scroll 9s var(--ease-inout) 2s infinite; }

/* ---- Relaunch: Vorher/Nachher-Regler (fährt beim Erscheinen auf, mit Maus/Finger verschiebbar) ---- */
@property --pos { syntax: "<number>"; inherits: true; initial-value: 0; }
.vg {
    --pos: 0;
    position: relative;
    height: clamp(190px, 18vw, 230px);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--schatten-m);
    overflow: hidden;
    cursor: ew-resize;
    touch-action: pan-y;
    -webkit-user-select: none; user-select: none;
    transition: --pos 1.9s var(--ease-inout) .6s;
}
.js .kachel.ist-sichtbar .vg, .no-js .vg { --pos: 58; }
.vg.zieht { transition: none; }
.vg.zurueck { transition: --pos .9s var(--ease-out); }
.vg-alt, .vg-neu { position: absolute; inset: 0; padding: 16px; }
.vg-alt { background: #ece9e0; font-family: "Times New Roman", Times, serif; color: #333; letter-spacing: 0; }
.vg-alt-titel { padding-bottom: 6px; border-bottom: 2px ridge #c9c3b3; color: #7a1f1f; font-size: .92rem; font-weight: 700; text-align: center; }
.vg-alt-links { margin-top: 6px; color: #0000ee; font-size: .72rem; text-align: center; }
.vg-alt-tabelle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px; padding: 4px; border: 1px solid #b9b2a0; }
.vg-alt-tabelle i { height: 22px; border: 1px solid #c4bca8; background: #d8d2c2; }
.vg-alt-zaehler { position: absolute; left: 0; right: 0; bottom: 42px; color: #555; font-family: "Courier New", monospace; font-size: .65rem; text-align: center; }
.vg-neu {
    display: grid; align-content: start; gap: 10px;
    background: #fff;
    clip-path: inset(0 calc((100 - var(--pos)) * 1%) 0 0);
}
.vg-neu-hero {
    display: grid; align-content: center; justify-items: start; gap: 6px;
    height: 92px; padding: 14px;
    border-radius: 9px;
    background: linear-gradient(120deg, #0b2a66 0%, #1769df 55%, #25c7ed 100%);
}
.vg-neu-hero i { width: 60%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .95); }
.vg-neu-hero i + i { width: 40%; }
.vg-neu-hero span { width: 54px; height: 14px; margin-top: 4px; border-radius: 999px; background: #fff; }
.vg-neu-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vg-neu-kacheln i { height: 40px; border-radius: 7px; background: #eef1f7; }
.vg-griff {
    position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%);
    width: 2px; margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 21, 48, .08);
}
.vg-griff span {
    position: absolute; top: 50%; left: 50%;
    display: grid; place-items: center;
    width: 32px; height: 32px; margin: -16px 0 0 -16px;
    border-radius: 50%; background: #fff;
    box-shadow: var(--schatten-m);
}
.vg-griff svg { width: 16px; height: 16px; fill: none; stroke: var(--blau-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vg-label {
    position: absolute; bottom: 10px;
    box-shadow: var(--schatten-s);
    padding: 3px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.vg-label-neu { left: 10px; color: var(--blau-600); opacity: calc((var(--pos) - 22) / 10); }
.vg-label-alt { right: 10px; color: #7a6f55; opacity: calc((78 - var(--pos)) / 10); }

/* ---- Domain: Adresse wird getippt, dann haken sich die Schritte ab ---- */
.vis-domain { display: grid; gap: 14px; }
.adresszeile, .suchfeld {
    display: flex; align-items: center; gap: 10px;
    min-height: 46px; padding: 12px 16px;
    border-radius: 999px;
    background: #fff; box-shadow: var(--schatten-s);
    font-size: .95rem; font-weight: 500;
}
.adresszeile svg, .suchfeld svg {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: var(--text-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke .4s var(--ease-out);
}
.suchfeld svg { stroke: var(--blau-600); }
.vis-domain.getippt .adresszeile svg { stroke: var(--gruen); }
.adresszeile .caret, .suchfeld .caret { margin-left: -9px; }
.checkliste { display: grid; gap: 9px; }
.checkliste li {
    display: flex; align-items: center; gap: 10px;
    font-size: .95rem; font-weight: 500;
    transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
    transition-delay: calc(var(--i) * 280ms);
}
.js .vis-domain:not(.getippt) .checkliste li { opacity: 0; transform: translateX(-8px); }
.js .vis-domain .haken { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * 280ms + 150ms); }
.js .vis-domain.getippt .haken { transform: none; }

/* ---- SEO: Suchanfrage wird getippt, „Ihre Firma“ steigt nach oben ---- */
.vis-suche { display: grid; gap: 12px; }
.treffer-liste { display: grid; gap: 8px; margin: 0; padding: 0; transition: opacity .5s var(--ease-out); }
.js .vis-suche:not(.zeigt) .treffer-liste { opacity: 0; }
.treffer {
    position: relative;
    display: grid; align-content: center; gap: 4px;
    height: 54px; padding: 0 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .6);
    transition: transform 1.2s var(--ease-inout), background-color .6s, box-shadow .6s;
}
.treffer i { width: 70%; height: 7px; border-radius: 4px; background: #dfe4ee; }
.treffer i + i { width: 45%; }
.treffer-ihr { z-index: 1; background: #fff; box-shadow: var(--schatten-m); }
.treffer-ihr::before {
    content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--verlauf);
}
.treffer-ihr b { color: var(--blau-600); font-size: .95rem; line-height: 1.2; }
.treffer-ihr small { color: var(--gruen); font-size: .78rem; line-height: 1.2; }
.js .vis-suche:not(.getippt) .treffer-ihr { transform: translateY(124px); background: rgba(255, 255, 255, .6); box-shadow: none; }
.js .vis-suche:not(.getippt) .treffer-a,
.js .vis-suche:not(.getippt) .treffer-b { transform: translateY(-62px); }

/* ---- Wartung: Aufgaben laufen nacheinander durch und werden abgehakt ---- */
.vis-wartung { display: grid; gap: 8px; }
.vis-wartung li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff; box-shadow: var(--schatten-s);
}
.w-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #e8f0fd; }
.w-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--blau-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.w-text { display: grid; gap: 7px; flex: 1; min-width: 0; }
.w-text p { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; line-height: 1.2; }
.w-status { position: relative; color: var(--text-3); font-size: .82rem; white-space: nowrap; }
.w-status em { font-style: normal; }
.w-laeuft { position: absolute; top: 0; right: 0; opacity: 0; color: var(--blau-600); }
.w-balken { display: block; height: 4px; border-radius: 2px; background: #e6eaf2; overflow: hidden; }
.w-balken i { display: block; height: 100%; background: var(--verlauf); transform-origin: left; }
@keyframes kurz-zeigen { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
.js .vis-wartung .w-balken i { transform: scaleX(0); transition: transform 1.3s var(--ease-inout) calc(500ms + var(--i) * 900ms); }
.js .vis-wartung .w-fertig { opacity: 0; transition: opacity .4s var(--ease-out) calc(1800ms + var(--i) * 900ms); }
.js .vis-wartung .haken { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(1800ms + var(--i) * 900ms); }
.js .kachel.ist-sichtbar .vis-wartung .w-balken i,
.js .kachel.ist-sichtbar .vis-wartung .haken { transform: none; }
.js .kachel.ist-sichtbar .vis-wartung .w-fertig { opacity: 1; }
.js .kachel.ist-sichtbar .vis-wartung .w-laeuft { animation: kurz-zeigen 1.3s linear calc(500ms + var(--i) * 900ms) both; }
.vis-wartung li:nth-child(1) { --i: 0; } .vis-wartung li:nth-child(2) { --i: 1; } .vis-wartung li:nth-child(3) { --i: 2; }

/* Formulare & Anfragen: dunkle Kachel mit Benachrichtigungen */
.kachel-dunkel {
    min-height: 420px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px;
    background: radial-gradient(120% 140% at 0% 0%, #0d2f6e 0%, var(--navy-900) 45%, var(--navy-950) 100%);
    color: #fff;
}
.kachel-dunkel h3 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.kachel-dunkel .kachel-label { color: var(--cyan-400); }
.kachel-dunkel .kachel-text p:not(.kachel-label) { color: rgba(255, 255, 255, .72); font-size: 1.125rem; }
.orb {
    position: absolute; z-index: -1;
    top: -30%; right: -10%;
    width: 70%; aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1769df, #25c7ed, #168ef0, #0e559a, #1769df);
    filter: blur(80px);
    opacity: .45;
    animation: drehen 28s linear infinite;
    animation-play-state: paused;
}
.orb.laeuft { animation-play-state: running; }
@keyframes drehen { to { transform: rotate(1turn); } }

.vis-notizen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; margin: 0; padding: 0; align-content: center; }
.kachel-dunkel > * { min-width: 0; }
.notiz {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .18);
    color: #fff;
}
.notiz-icon {
    display: grid; place-items: center; flex: none;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--verlauf);
}
.notiz-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notiz-inhalt { min-width: 0; flex: 1; font-size: .95rem; line-height: 1.35; }
.notiz-kopf { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.notiz-kopf small { color: rgba(255, 255, 255, .6); font-size: .8rem; }
.notiz-vorschau { color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Neueste Meldung kommt zuerst und fällt von oben ins Bild – wie Mitteilungen auf dem iPhone */
.js .kachel .notiz { transform: translateY(-18px) scale(.96); transform-origin: 50% 0; transition-delay: calc(450ms + var(--i, 0) * 260ms); }
.notiz:nth-child(2) { opacity: .85; }
.notiz:nth-child(3) { opacity: .7; }
.js .kachel.ist-sichtbar .notiz:nth-child(2) { opacity: .85; }
.js .kachel.ist-sichtbar .notiz:nth-child(3) { opacity: .7; }

/* Vorteile: helles Panel mit Trennlinien, Symbole werden beim Erscheinen gezeichnet */
.vorteile-panel {
    position: relative;
    margin-top: clamp(64px, 8vw, 96px);
    padding: clamp(28px, 4vw, 56px);
    border-radius: var(--r-l);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(37, 199, 237, .10), transparent 60%),
        radial-gradient(50% 100% at 0% 100%, rgba(23, 105, 223, .07), transparent 60%),
        var(--bg-soft);
    overflow: hidden;
}
.vorteile-kopf { margin-bottom: clamp(32px, 4vw, 48px); }
.vorteile-kopf .eyebrow { margin-bottom: 8px; }
.vorteile-kopf h3 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); letter-spacing: -.03em; }
.vorteile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vorteil {
    display: flex; flex-direction: column; gap: 10px;
    padding: 4px clamp(20px, 2.4vw, 32px);
    border-left: 1px solid var(--linie);
}
.vorteil:first-child { padding-left: 0; border-left: 0; }
.vorteil:last-child { padding-right: 0; }
.vorteil-icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; margin-bottom: 10px;
    border-radius: 15px;
    background: var(--verlauf);
    box-shadow: 0 8px 20px -8px rgba(23, 105, 223, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.vorteil-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vorteil strong { font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.25; }
.vorteil-text { color: var(--text-2); font-size: .975rem; line-height: 1.5; }

.js .vorteil-icon { transform: scale(.7); opacity: 0; transition: transform .8s cubic-bezier(.34, 1.4, .64, 1), opacity .5s var(--ease-out); transition-delay: calc(300ms + var(--i) * 140ms); }
.js .vorteil-icon svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-inout) calc(550ms + var(--i) * 140ms); }
.js .vorteile-panel.ist-sichtbar .vorteil-icon { transform: none; opacity: 1; }
.js .vorteile-panel.ist-sichtbar .vorteil-icon svg * { stroke-dashoffset: 0; }

/* ---------- Ablauf ---------- */
.ablauf {
    display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 8vw, 120px);
    align-items: start;
}
.ablauf-kopf { position: sticky; top: calc(var(--nav-h) + 56px); }
.schritte-wrap { position: relative; }
.schritte { position: relative; display: grid; }
.schritte-linie {
    position: absolute; left: 23px; top: 40px; bottom: 40px;
    width: 2px; border-radius: 2px;
    background: var(--linie);
    overflow: hidden;
}
.schritte-linie span {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--blau-600), var(--cyan-400));
    transform-origin: top;
    transform: scaleY(1);
}
.js .schritte-linie span { transform: scaleY(0); }

.schritt {
    position: relative;
    display: grid; grid-template-columns: 48px 1fr; gap: 28px;
    padding: 28px 0;
}
.schritt-nr {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--blau-600);
    color: #fff; font-weight: 700; font-size: 1.0625rem;
    box-shadow: 0 0 0 6px var(--bg-soft);
    transition: background-color .5s var(--ease-out), color .5s var(--ease-out), transform .6s var(--ease-out);
}
.schritt h3 { padding-top: 9px; margin-bottom: 8px; font-size: clamp(1.3rem, 2vw, 1.6rem); transition: color .5s var(--ease-out); }
.schritt p { color: var(--text-2); max-width: 28em; transition: color .5s var(--ease-out); }

.js .schritt:not(.ist-aktiv) .schritt-nr { background: #fff; color: var(--text-3); transform: scale(.88); box-shadow: 0 0 0 6px var(--bg-soft), inset 0 0 0 2px var(--linie); }
.js .schritt:not(.ist-aktiv) h3 { color: var(--text-3); }
.js .schritt:not(.ist-aktiv) p { color: var(--text-3); }

/* ---------- Kontakt ---------- */
.kontakt {
    position: relative;
    padding: clamp(96px, 13vw, 168px) 0;
    background:
        radial-gradient(90% 70% at 85% 0%, rgba(14, 85, 154, .55), transparent 70%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: #fff;
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
}
.kontakt-glow {
    position: absolute; z-index: -1;
    left: -10%; bottom: -30%;
    width: 60%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(37, 199, 237, .22), transparent);
    filter: blur(40px);
}
.kontakt-inner {
    display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 7vw, 96px);
    align-items: start;
}
.kontakt-text { position: sticky; top: calc(var(--nav-h) + 56px); }
.kontakt h2 { color: #fff; }
.kontakt-text > p:not(.eyebrow) { margin-top: 22px; color: rgba(255, 255, 255, .74); font-size: 1.1875rem; max-width: 26em; }
.kontakt-mail {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 32px; padding: 12px 20px 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    color: #fff; font-weight: 600;
    transition: background-color .25s var(--ease-out);
}
.kontakt-mail:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.kontakt-mail svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cyan-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kontakt-mail span { overflow-wrap: anywhere; }

.formular-karte {
    position: relative;
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--r-l);
    background: #fff;
    color: var(--text);
    box-shadow: var(--schatten-l);
}
.formular { display: grid; gap: 20px; transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.formular.ist-weg { opacity: 0; transform: scale(.98); pointer-events: none; }

.themen { margin: 0; padding: 0; border: 0; min-width: 0; }
.themen legend { margin-bottom: 10px; padding: 0; font-size: .9375rem; font-weight: 600; }
.themen-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.thema { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.thema input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.thema span {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--text-2); font-size: .9rem; font-weight: 500;
    box-shadow: inset 0 0 0 1px transparent;
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .15s var(--ease-press);
}
@media (hover: hover) and (pointer: fine) {
    .thema:hover span { background: var(--bg-soft-2); }
}
.thema input:checked + span { background: #e7f0fd; color: var(--blau-650); box-shadow: inset 0 0 0 1.5px var(--blau-600); }
.thema input:focus-visible + span { outline: 2px solid var(--blau-600); outline-offset: 2px; }
.thema:active span { transform: scale(.96); }

.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feld { display: grid; gap: 7px; min-width: 0; }
.feld > label { font-size: .9375rem; font-weight: 600; }
.feld small, .themen small { font-weight: 400; color: var(--text-3); }
.feld input, .feld textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--rand-feld);
    border-radius: var(--r-s);
    background: #fff;
    color: var(--text);
    font: inherit; font-size: 1.0625rem; letter-spacing: -.01em;
    transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
    -webkit-appearance: none; appearance: none;
}
.feld textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.feld input:hover, .feld textarea:hover { border-color: var(--text-2); }
.feld input:focus, .feld textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    background: #fff;
    border-color: var(--blau-500);
    box-shadow: 0 0 0 4px rgba(22, 142, 240, .16);
}
.feld.ist-fehlerhaft input, .feld.ist-fehlerhaft textarea { border-color: var(--rot); background: #fff; box-shadow: 0 0 0 4px rgba(209, 55, 58, .1); }
.feld-fehler { margin: 0; color: var(--rot); font-size: .875rem; font-weight: 500; }
.feld-fehler:empty { display: none; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.checkbox input {
    flex: none; width: 22px; height: 22px; margin: 0;
    border: 1.5px solid var(--rand-feld); border-radius: 7px;
    background: #fff;
    -webkit-appearance: none; appearance: none;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.checkbox input::after {
    content: ""; width: 11px; height: 6px;
    border: solid #fff; border-width: 0 0 2px 2px;
    transform: translateY(-1px) rotate(-45deg) scale(0);
    transition: transform .25s var(--ease-out);
}
.checkbox input:checked { background: var(--blau-600); border-color: var(--blau-600); }
.checkbox input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.checkbox a { text-decoration: underline; text-underline-offset: 2px; }
.checkbox input:hover { border-color: var(--blau-600); }
.feld.ist-fehlerhaft .checkbox input { border-color: var(--rot); }
.pflicht { color: var(--rot); font-weight: 600; }
.pflicht-hinweis { margin-top: -6px; color: var(--text-3); font-size: .875rem; }
.pflicht-hinweis span { color: var(--rot); }

.btn-senden { justify-self: start; min-width: 210px; }
.spinner {
    position: absolute; width: 20px; height: 20px;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
    opacity: 0;
}
.btn-senden.ist-sendend { pointer-events: none; }
.btn-senden.ist-sendend .btn-label { opacity: 0; }
.btn-senden.ist-sendend .spinner { opacity: 1; animation: drehen .8s linear infinite; }
.btn-label { transition: opacity .2s; }

.hinweis { padding: 14px 16px; border-radius: var(--r-s); font-size: .95rem; font-weight: 500; }
.hinweis:empty { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }
.hinweis-info { background: var(--bg-soft); color: var(--text-2); }
.hinweis-erfolg { background: #e8f6ee; color: #146c3b; }
.hinweis-fehler { background: #fdeeee; color: #a42628; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.erfolg {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px; text-align: center;
    opacity: 0; transform: scale(.97);
    pointer-events: none;
    transition: opacity .6s var(--ease-out) .15s, transform .8s var(--ease-out) .15s;
}
.erfolg:focus { outline: none; }
.erfolg.ist-da { opacity: 1; transform: none; pointer-events: auto; }
.erfolg h3 { margin: 22px 0 10px; font-size: 2.1rem; }
.erfolg p { color: var(--text-2); max-width: 22em; }
.erfolg-haken { width: 88px; height: 88px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.erfolg-haken circle { stroke: #d6e6fb; }
.erfolg-haken path { stroke: var(--blau-600); stroke-dasharray: 36; stroke-dashoffset: 36; }
.erfolg.ist-da .erfolg-haken path { animation: haken .6s var(--ease-out) .5s forwards; }
@keyframes haken { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.fuss { padding: 40px 0 48px; border-top: 1px solid var(--linie); color: var(--text-3); font-size: .9rem; }
.fuss-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.fuss-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.fuss-symbol { height: 28px; width: auto; }
.fuss-wortmarke { height: 15px; width: auto; margin-top: 2px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fuss-links a { color: var(--text-2); }
.fuss-links a:hover { color: var(--text); }
.fuss-copy { width: 100%; margin-top: 4px; }

/* ---------- Rechtstexte ---------- */
.rechtstext { padding: calc(var(--nav-h) + 72px) 0 120px; }
.rechtstext .container { max-width: 760px; }
.rechtstext h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 40px; }
.rechtstext h2 { font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.25; margin: 48px 0 12px; }
.rechtstext p, .rechtstext li { color: var(--text-2); }
.rechtstext p + p { margin-top: 12px; }
.rechtstext ul { margin: 12px 0; padding-left: 1.2em; list-style: disc; }
.rechtstext li { margin: 4px 0; }
.rechtstext a { text-decoration: underline; text-underline-offset: 2px; }
.platzhalter { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #fff4cc; color: #5c4600; font-size: .95rem; }
.seite-recht .nav { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(11, 21, 48, .07); }

/* ---------- Responsiv ---------- */
@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kachel, .kachel-gross { grid-column: span 1; }
    .kachel-gross, .kachel-breit { grid-column: span 2; }
    .vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .vorteil:nth-child(3) { padding-left: 0; border-left: 0; }
    .vorteil:nth-child(2) { padding-right: 0; }
}

@media (max-width: 860px) {
    .ablauf, .kontakt-inner { grid-template-columns: 1fr; }
    .ablauf-kopf, .kontakt-text { position: static; }
    .kachel-dunkel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 700px) {
    .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .kachel, .kachel-gross, .kachel-breit { grid-column: auto; min-height: 0; }
    .kachel { border-radius: 24px; }
    .vis { padding-top: 28px; }
    .feld-reihe { grid-template-columns: 1fr; }
    .btn-senden { justify-self: stretch; }
    .aussage { height: 160vh; }
}

@media (max-width: 480px) {
    .vorteile { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .vorteil, .vorteil:nth-child(n) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--linie); }
    .vorteil:first-child { padding-top: 0; border-top: 0; }
    .vorteil:last-child { padding-bottom: 0; }
    .vorteil { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; }
    .vorteil-icon { grid-row: span 2; margin-bottom: 0; }
    .hero-aktionen { flex-direction: column; gap: 8px; }
    .hero-aktionen .btn-primaer { width: 100%; max-width: 320px; }
    .vis-relaunch { height: 180px; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .2s !important;
        transition-delay: 0ms !important;
    }
    .js [data-reveal] { transform: none; }
    .js .kachel .mock-block, .js .kachel .notiz { transform: none; }
    .vg { transition: none; }
    .js .vis-domain .checkliste li, .js .vis-suche .treffer { transform: none !important; }
    .aussage { height: auto; padding: 120px 0; margin-top: 0; }
    .aussage-sticky { position: static; height: auto; }
    .js .wort { opacity: 1; }
    .orb { animation: none; }
    .mobil-menue nav a, .mobil-menue .btn { transform: none; }
    .btn-senden.ist-sendend .spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
    .wuerfel-svg .face-scroll, .hero-wuerfel, .wuerfel-kippen { will-change: auto; }
}

@media (prefers-reduced-transparency: reduce) {
    .nav.ist-gescrollt, .nav.ist-offen, .seite-recht .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Windows-Kontrastmodus: Zustände ohne Hintergrundfarben sichtbar halten */
@media (forced-colors: active) {
    .thema span { border: 1px solid ButtonText; }
    .thema input:checked + span { outline: 3px solid Highlight; outline-offset: -3px; }
    .checkbox input:checked { background: Highlight; }
    .btn { border: 1px solid ButtonText; }
}

/* ---------- 404-Seite ---------- */
.fehlerseite {
    display: grid; place-items: center;
    min-height: calc(100vh - 140px); min-height: calc(100svh - 140px);
    padding: calc(var(--nav-h) + 48px) 0 72px;
    text-align: center;
}
.fehler-wuerfel { width: 120px; height: auto; margin: 0 auto 32px; overflow: visible; }
.fehler-wuerfel .face-left  .face-intro { animation: flaeche-links 1.2s var(--ease-out) .05s both; }
.fehler-wuerfel .face-right .face-intro { animation: flaeche-rechts 1.2s var(--ease-out) .15s both; }
.fehler-wuerfel .face-top   .face-intro { animation: flaeche-oben 1.2s var(--ease-out) .3s both; }
.fehlerseite h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.fehler-text { max-width: 30em; margin: 20px auto 0; color: var(--text-2); font-size: 1.1875rem; }
.fehlerseite .hero-aktionen { margin-top: 36px; }

/* ---------- Referenzen ---------- */
.abschnitt-referenzen { padding-top: 0; }
.referenzen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 20px;
}
.referenz {
    display: flex; flex-direction: column;
    border-radius: var(--r-l);
    background: var(--bg-soft);
    color: var(--text);
    overflow: hidden;
    isolation: isolate;
}
.referenz:hover { color: var(--text); }
.referenz-bild {
    margin: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px) 0;
    border-radius: 12px 12px 0 0;
    background: #fff;
    box-shadow: var(--schatten-m);
    overflow: hidden;
}
.referenz-bild img {
    width: 100%; height: auto; aspect-ratio: 16 / 10;
    object-fit: cover; object-position: top;
    transition: transform .8s var(--ease-out);
}
.referenz-text { display: flex; flex-direction: column; flex: 1; padding: 28px clamp(20px, 2.4vw, 28px) 30px; }
.referenz-text h3 { margin-bottom: 8px; }
.referenz-text p:not(.kachel-label) { color: var(--text-2); }
.referenz-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: auto; padding-top: 18px;
    color: var(--blau-600); font-weight: 600;
}
.referenz-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.referenz:active { transform: scale(.99); transition: transform .1s; }

.referenz-cta {
    justify-content: center;
    min-height: 320px;
    background: radial-gradient(120% 120% at 100% 0%, #0d2f6e 0%, var(--navy-900) 50%, var(--navy-950) 100%);
    color: #fff;
}
.referenz-cta:hover { color: #fff; }
.referenz-cta-inhalt { padding: 40px clamp(24px, 3vw, 40px); }
.referenz-cta-wuerfel { width: 64px; height: auto; margin-bottom: 24px; }
.referenz-cta h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.referenz-cta .referenz-link { color: var(--cyan-400); padding-top: 22px; }

@media (hover: hover) and (pointer: fine) {
    .referenz:hover .referenz-bild img { transform: scale(1.03); }
    .referenz:hover .referenz-link svg { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .referenz:hover .referenz-bild img { transform: none; }
}
/* Würfel auf dunklem Grund: Seitenflächen hell, damit er sichtbar bleibt */
.referenz-cta-wuerfel .face-left path { fill: #fff; }
.referenz-cta-wuerfel .face-right path { fill: rgba(255, 255, 255, .72); }
