/* ==========================================================================
   Easer - Services · Designsystem
   Palette strikt: Schwarz · Anthrazit · Grau · Silber · Weiß
   Leitmotiv: das scharfkantige Metall-"E" – abgeschrägte Ecken, gebürstetes
   Metall, weißer Glow auf Schwarz.
   ========================================================================== */

/* ---------- Schriften: lokal gehostet (DSGVO, keine Google-Fonts-Verbindung) */
@font-face {
    font-family: "Chakra Petch";
    src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Chakra Petch";
    src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens */
:root {
    --black: #000000;
    --anthracite: #0a0a0c;
    --graphite: #16171a;
    --steel: #8d8f97;
    --silver: #c9cbd1;
    --white: #ffffff;

    --text: #ececef;
    --text-muted: #a3a5ad;
    --text-dim: #6d6f77;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.2);

    --metal-text: linear-gradient(180deg, #ffffff 0%, #e7e8eb 45%, #a4a6ae 100%);
    --metal-surface: linear-gradient(180deg, #fbfbfc 0%, #dcdde1 48%, #b6b8bf 52%, #eceded 100%);

    --glow-soft: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 18px rgba(255, 255, 255, 0.18);
    --glow-strong: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 24px rgba(255, 255, 255, 0.32), 0 0 64px rgba(255, 255, 255, 0.1);

    --font-display: "Chakra Petch", "Eurostile", "Arial Narrow", sans-serif;
    --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

    --radius: 4px;
    --cut: 22px;
    --container: 1180px;
    --nav-h: 76px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--white); }
p { max-width: 68ch; }
code { font-family: var(--font-mono); font-size: 0.9em; color: var(--white); }

::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    padding: 0.6rem 1rem; background: var(--white); color: var(--black); border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* ---------- Links mit Glow */
.link-glow {
    position: relative;
    color: var(--text-muted);
    background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}
.link-glow::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    transform: scaleX(0);
    transition: transform 0.45s var(--ease-out);
}
.link-glow:hover, .link-glow:focus-visible {
    color: var(--white);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}
.link-glow:hover::after, .link-glow:focus-visible::after { transform: scaleX(1); }
.link-glow.is-active { color: var(--white); }
.link-glow.is-active::after { transform: scaleX(1); }

/* ---------- Buttons */
.btn {
    --mx: 50%; --my: 50%;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 500 0.975rem/1 var(--font-body);
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: box-shadow 0.4s var(--ease-out), border-color 0.4s, background-color 0.4s, color 0.3s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.7rem 1.1rem; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Primär: poliertes Silber mit harter Metallkante in der Mitte */
.btn--primary {
    background: var(--metal-surface);
    color: var(--black);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.25);
}
/* Lichtreflex, der beim Hover über das Metall zieht */
.btn--primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.95) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform 0.9s var(--ease-out);
}
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: inset 0 1px 0 #fff, var(--glow-strong); }
.btn--primary:hover::before { transform: translateX(110%); }

/* Sekundär: dunkles Glas, Licht folgt dem Cursor */
.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--line-strong);
}
.btn--ghost::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(160px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--white);
    box-shadow: var(--glow-soft);
}
.btn--ghost:hover::after { opacity: 1; }

/* ---------- Navigation (Glassmorphism) */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding-top: 14px;
    transition: padding 0.4s var(--ease-out);
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    height: 62px;
    padding: 0 0.6rem 0 1.1rem;
    background: rgba(12, 12, 14, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled { padding-top: 8px; }
.nav.is-scrolled .nav__inner {
    background: rgba(8, 8, 10, 0.72);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.55);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
    width: 40px; height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45));
    transition: filter 0.4s;
}
.brand:hover .brand__mark { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.85)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
    font: 700 1.05rem/1 var(--font-display);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__sub { margin-top: 0.3rem; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-dim); }

.nav__links { display: flex; align-items: center; gap: 2rem; font-size: 0.95rem; }
.nav__toggle { display: none; }

@media (max-width: 820px) {
    .nav__toggle {
        display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
        width: 44px; height: 44px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        cursor: pointer;
    }
    .nav__toggle span {
        display: block; width: 18px; height: 1.5px; background: var(--white);
        transition: transform 0.35s var(--ease-out);
    }
    .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
    .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

    .nav__links {
        position: fixed; top: 86px; left: 1.25rem; right: 1.25rem;
        flex-direction: column; align-items: stretch; gap: 0.25rem;
        padding: 0.75rem;
        background: rgba(8, 8, 10, 0.92);
        -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
        border: 1px solid var(--line-strong);
        border-radius: 6px;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
    }
    .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
    .nav__links .link-glow { padding: 0.9rem 0.75rem; font-size: 1.1rem; }
    .nav__links .link-glow::after { left: 0.75rem; right: auto; width: 40px; bottom: 0.6rem; }
    .nav__links .btn { margin-top: 0.5rem; padding-block: 1rem; }
}

/* ---------- Hero */
.hero {
    --mx: 70%; --my: 40%;
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 3rem) 0 5rem;
    overflow: hidden;
    isolation: isolate;
}

/* Gebürstetes Metall: gestreckte Turbulenz = feine Schleifspuren */
.hero__metal {
    position: absolute; inset: 0; z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0022 0.85' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
    background-size: 640px 640px;
    opacity: 0.12;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
}
/* Lichtband, das langsam über das Metall wandert */
.hero__metal::after {
    content: ""; position: absolute; inset: 0;
    background: inherit;
    background-size: inherit;
    opacity: 1;
    filter: brightness(2.4) contrast(1.2);
    -webkit-mask-image: linear-gradient(100deg, transparent 42%, #000 50%, transparent 58%);
    mask-image: linear-gradient(100deg, transparent 42%, #000 50%, transparent 58%);
    -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: light-sweep 14s var(--ease-in-out) infinite;
}
@keyframes light-sweep {
    0%   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    60%, 100% { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}
/* Weicher Lichtkegel, der dem Cursor folgt */
.hero__spot {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(700px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.07), transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1;
    background: linear-gradient(transparent, var(--black));
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 3rem;
}
.hero__title {
    margin: 0 0 1.5rem;
    font-size: clamp(2.6rem, 6.2vw, 5.1rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.015em;
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.14));
}
.hero__lead { margin: 0 0 2.5rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__mark {
    position: relative;
    justify-self: center;
    width: min(100%, 460px);
    animation: float 9s var(--ease-in-out) infinite;
}
.hero__mark img { width: 100%; height: auto; }
/* Lichtreflex, der über das Metall zieht – maskiert exakt auf die Logo-Form */
.hero__sheen {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    -webkit-mask: url("../img/logo-mask.png") center / 100% 100% no-repeat;
    mask: url("../img/logo-mask.png") center / 100% 100% no-repeat;
    mix-blend-mode: screen;
    animation: sheen 7s var(--ease-in-out) infinite;
}
@keyframes sheen {
    0%        { background-position: 120% 0; }
    45%, 100% { background-position: -20% 0; }
}
@keyframes float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero__mark { order: -1; justify-self: start; width: 150px; animation: none; }
}

/* ---------- Sektionen */
.section { position: relative; padding-block: clamp(5rem, 10vw, 8rem); }
.section__head { max-width: 680px; margin: 0 0 clamp(2.75rem, 5vw, 4rem); }
.section__head--left { margin-bottom: 2rem; }
.section__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}
.section__lead { margin: 0; font-size: 1.1rem; color: var(--text-muted); }

/* ---------- Chamfer-Komponente: abgeschrägte Ecke wie im Logo
   Außen = 1px-Rahmen (Verlauf), innen = Anthrazit-Fläche. */
.chamfer {
    --mx: 50%; --my: 50%;
    position: relative;
    height: 100%;
    padding: 1px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.1));
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
/* Rahmen-Licht, das dem Cursor folgt */
.chamfer::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(280px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.9), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}
.chamfer__body {
    position: relative;
    height: 100%;
    background: linear-gradient(180deg, #0d0d10, var(--anthracite));
    clip-path: polygon(0 0, calc(100% - var(--cut) - 0.6px) 0, 100% calc(var(--cut) + 0.6px), 100% 100%, 0 100%);
}
/* Flächen-Licht im Inneren */
.chamfer__body::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(460px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.065), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}
.chamfer:hover::before, .chamfer:focus-within::before,
.chamfer:hover > .chamfer__body::before, .chamfer:focus-within > .chamfer__body::before { opacity: 1; }

/* Glow um die abgeschrägte Form: filter am Eltern-Element, sonst schneidet clip-path ihn ab */
.glow-host:hover, .glow-host:focus-within {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.13));
}

/* ---------- Leistungs-Cards (Bento-Raster) */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.cards__item { grid-column: span 2; }
.cards__item:nth-child(-n + 2) { grid-column: span 3; }

.card__body { display: flex; flex-direction: column; padding: 2rem 2rem 1.75rem; }
.card__icon {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 1.75rem;
    color: var(--silver);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: color 0.4s, background 0.4s;
}
.card__icon svg { width: 24px; height: 24px; }
.card:hover .card__icon, .card:focus-within .card__icon {
    color: var(--white);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06));
}
.card__title { margin: 0 0 0.75rem; font-size: 1.35rem; line-height: 1.2; }
.card__text { margin: 0 0 1.5rem; color: var(--text-muted); font-size: 1rem; }
.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.75rem; padding: 0; }
.card__tags li {
    padding: 0.28rem 0.6rem;
    font-size: 0.8rem;
    color: var(--steel);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: color 0.4s, border-color 0.4s;
}
.card:hover .card__tags li { color: var(--silver); border-color: rgba(255, 255, 255, 0.18); }
.card__title a { color: inherit; }
/* Ganze Card klickbar, aber nur EIN Link für Screenreader und Tastatur */
.card__cover::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__cover:focus-visible { outline: none; }
.card:has(.card__cover:focus-visible) { outline: 2px solid var(--white); outline-offset: 3px; }
.card__link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    margin-top: auto;
    width: fit-content;
    font-weight: 500; font-size: 0.95rem;
    color: var(--silver);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: color 0.3s, text-shadow 0.3s, border-color 0.3s;
}
.card__link svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.card:hover .card__link, .card:focus-within .card__link {
    color: var(--white);
    border-color: var(--white);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}
.card:hover .card__link svg { transform: translateX(4px); }

@media (max-width: 1000px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards__item, .cards__item:nth-child(-n + 2) { grid-column: span 1; }
    .cards__item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .cards { grid-template-columns: 1fr; }
    .cards__item:last-child { grid-column: auto; }
    .card__body { padding: 1.6rem 1.5rem; }
}

/* ---------- Ablauf (echte Abfolge -> Nummerierung ist hier Information) */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
    border-top: 1px solid var(--line);
}
.step { position: relative; padding-top: 2rem; }
.step::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: width 0.6s var(--ease-out);
}
.step:hover::before { width: 100%; }
.step__num {
    display: block; margin-bottom: 1rem;
    font: 700 2.4rem/1 var(--font-display);
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Sicherheit */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: 0.9rem; color: var(--text-muted); }
.checklist strong { color: var(--white); font-weight: 600; }
.checklist svg {
    flex: none; width: 20px; height: 20px; margin-top: 0.2rem;
    color: var(--white);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}

.terminal {
    --mx: 50%; --my: 50%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0e0e11, #060607);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
    transition: border-color 0.5s, box-shadow 0.5s var(--ease-out);
}
.terminal::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.06), transparent 60%);
    opacity: 0; transition: opacity 0.5s;
}
.terminal:hover { border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), var(--glow-soft); }
.terminal:hover::after { opacity: 1; }
.terminal__bar {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; background: #26272c; border: 1px solid #3a3b42; }
.terminal__title { margin-left: auto; font-style: normal; font-size: 0.75rem; color: var(--text-dim); }
.terminal__body { padding: 1.4rem 1.4rem 1.6rem; line-height: 1.95; color: var(--steel); overflow-x: auto; }
.terminal__body .line { white-space: pre; }
.terminal__body .ok { font-weight: 600; color: var(--white); text-shadow: 0 0 8px rgba(255, 255, 255, 0.55); }
.terminal__body .dim { color: var(--text-dim); }
.cursor {
    display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.3em;
    vertical-align: -0.15em;
    background: var(--white);
    box-shadow: 0 0 8px var(--white);
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Zeilen erscheinen nacheinander, sobald das Terminal sichtbar wird */
.js .terminal .line { opacity: 0; translate: -6px 0; }
.is-visible .terminal .line { animation: line-in 0.5s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 150ms + 250ms); }
@keyframes line-in { to { opacity: 1; translate: 0 0; } }

/* ---------- Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.contact__list li { display: flex; flex-direction: column; gap: 0.15rem; padding-left: 1rem; border-left: 1px solid var(--line-strong); }
.contact__list span { font-size: 0.85rem; color: var(--text-dim); }
.contact__list a { width: fit-content; font-size: 1.1rem; color: var(--text); }

.form-card > .chamfer__body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full, .form__footer, .alert { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--silver); }
.opt { font-weight: 400; color: var(--text-dim); }

.input {
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit; font-size: 1rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    appearance: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.input::placeholder { color: var(--text-dim); }
.input:hover { border-color: rgba(255, 255, 255, 0.32); }
.input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 255, 255, 0.1);
}
.input[aria-invalid="true"] { border-color: var(--white); border-style: dashed; }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9cbd1' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 18px;
}
select.input option { background: var(--graphite); color: var(--text); }

.field__error { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0; font-size: 0.875rem; color: var(--white); }
.field__error::before {
    content: "!"; flex: none;
    display: grid; place-items: center;
    width: 17px; height: 17px; margin-top: 0.12rem;
    font-size: 0.72rem; font-weight: 700;
    color: var(--black); background: var(--white);
    border-radius: 50%;
}

.checkbox { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.925rem; color: var(--text-muted); cursor: pointer; }
.checkbox input {
    flex: none; display: grid; place-items: center;
    width: 20px; height: 20px; margin: 0.15rem 0 0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    appearance: none; cursor: pointer;
    transition: background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.checkbox input::after {
    content: ""; width: 10px; height: 6px; margin-top: -2px;
    border-left: 2px solid var(--black); border-bottom: 2px solid var(--black);
    transform: rotate(-45deg) scale(0);
    transition: transform 0.25s var(--ease-out);
}
.checkbox input:checked { background: var(--white); border-color: var(--white); box-shadow: 0 0 14px rgba(255, 255, 255, 0.45); }
.checkbox input:checked::after { transform: rotate(-45deg) scale(1); }
.checkbox a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

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

.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.form__note { margin: 0; font-size: 0.85rem; color: var(--text-dim); }

.alert {
    margin: 0;
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    border-left: 2px solid var(--white);
    border-radius: var(--radius);
}
.alert--success { box-shadow: 0 0 30px rgba(255, 255, 255, 0.08); }
.alert strong { color: var(--white); }

/* ---------- Footer */
.footer { padding: 4rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
    gap: 2.5rem;
}
.footer__text { margin: 1rem 0 0; font-size: 0.925rem; color: var(--text-dim); max-width: 34ch; }
.footer__heading {
    margin: 0.4rem 0 1rem;
    font: 600 0.78rem/1 var(--font-display);
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--steel);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.93rem; }
.footer__col .link-glow { text-align: left; }
.footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    margin-top: 3rem; padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem; color: var(--text-dim);
}
@media (max-width: 960px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Rechtliche Seiten */
.legal { padding: calc(var(--nav-h) + 4.5rem) 0 5rem; }
.legal .container { max-width: 780px; }
.legal h1 { margin: 0 0 2rem; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; }
.legal h2 { margin: 2.75rem 0 0.75rem; font-size: 1.35rem; }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.2rem; max-width: 68ch; }
.legal li { margin-bottom: 0.4rem; }
.legal li::marker { color: var(--steel); }
.legal p a:not(.btn) { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.legal small { color: var(--text-dim); }
.legal .ph { padding: 0 0.3em; color: var(--white); background: rgba(255, 255, 255, 0.07); border: 1px dashed rgba(255, 255, 255, 0.35); border-radius: 2px; }
.legal__notice { padding: 1rem 1.2rem; font-size: 0.95rem; color: var(--silver) !important; border: 1px solid var(--line-strong); border-left: 2px solid var(--white); border-radius: var(--radius); }
.legal__date { margin-top: 3rem; font-size: 0.9rem; }
.error-page { min-height: 70vh; display: flex; align-items: center; }

/* ---------- Consent-Banner */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__inner {
    width: min(100%, 620px);
    padding: 1.5rem;
    pointer-events: auto;
    background: rgba(10, 10, 12, 0.86);
    -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 255, 255, 0.05);
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.consent.is-visible .consent__inner { opacity: 1; transform: none; }
.consent h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.consent p { margin: 0 0 1rem; font-size: 0.925rem; color: var(--text-muted); }
.consent a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.consent__details { margin: 0 0 1.25rem; font-size: 0.925rem; }
.consent__details summary { cursor: pointer; color: var(--silver); }
.consent__options { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent__actions .btn { flex: 1 1 auto; }

.switch {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
}
.switch small { display: block; font-size: 0.8rem; color: var(--text-dim); }
.switch input {
    position: relative; flex: none;
    width: 40px; height: 22px; margin: 0;
    background: #2a2b30;
    border-radius: 999px;
    appearance: none; cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}
.switch input::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px;
    background: var(--steel);
    border-radius: 50%;
    transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.switch input:checked { background: var(--silver); box-shadow: 0 0 14px rgba(255, 255, 255, 0.35); }
.switch input:checked::after { transform: translateX(18px); background: var(--black); }
.switch input:disabled { opacity: 0.55; cursor: not-allowed; }


/* ---------- Unterseiten: Kopfbereich */
.page-head {
    --mx: 70%; --my: 30%;
    position: relative;
    padding: calc(var(--nav-h) + 5rem) 0 clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
    isolation: isolate;
}
.page-head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1;
    background: linear-gradient(transparent, var(--black));
}
.page-head__title {
    margin: 0 0 1.25rem;
    max-width: 20ch;
    font-size: clamp(2.3rem, 5.2vw, 4.1rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.015em;
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.12));
}
.page-head__lead { margin: 0; max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-muted); }

.crumbs { margin-bottom: 1.75rem; font-size: 0.85rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; color: var(--text-dim); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-dim); }
.crumbs [aria-current] { color: var(--silver); }

.section--flush-top { padding-top: 0; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.narrow { max-width: 820px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; max-width: none; }
.section__head--row > div { max-width: 680px; }
.more-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; font-weight: 500; color: var(--silver); }
.section__head--row .more-link { margin-top: 0; }
.more-link svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.more-link:hover svg { transform: translateX(4px); }
.inline-link { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA-Band */
.cta__body {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
    padding: clamp(2rem, 5vw, 3.25rem);
    background:
        radial-gradient(600px circle at 100% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
        linear-gradient(180deg, #0f0f12, var(--anthracite));
}
.cta__title { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.cta__text { margin: 0; color: var(--text-muted); max-width: 58ch; }

/* ---------- Leistungs-Detailseite */
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail__intro { margin: 0 0 3rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--text); }
.detail__heading { margin: 3rem 0 1.25rem; font-size: 1.45rem; }
.detail__main > .detail__heading:first-of-type { margin-top: 0; }
.detail__aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 2rem; }
@media (max-width: 900px) { .detail__aside { position: static; } }
.aside-card { padding: 1.75rem; }
.aside-card .card__icon { margin-bottom: 1.25rem; }
.aside-card__label { margin: 0 0 0.75rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.aside-card__btn { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }

.fits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fits li { display: flex; gap: 1.25rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.fits__num { flex: none; font: 600 0.85rem/1 var(--font-display); color: var(--steel); }

.other__title { margin: 0 0 1rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-body); font-weight: 500; }
.other ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }

/* ---------- Ablauf: Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 1.6rem; top: 0.5rem; bottom: 0.5rem; width: 1px;
    background: linear-gradient(var(--line-strong), var(--line) 80%, transparent);
}
.timeline__item {
    position: relative;
    display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1.75rem;
    padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
}
.timeline__num {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 3.2rem; height: 3.2rem;
    font: 700 1rem/1 var(--font-display);
    color: var(--black);
    background: var(--metal-surface);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}
.timeline__title { margin: 0.35rem 0 0.6rem; font-size: 1.5rem; }
.timeline__item p { margin: 0; color: var(--text-muted); }
.timeline__result { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; margin-top: 1rem !important; color: var(--text) !important; font-weight: 500; }
.timeline__result span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); align-self: center; font-weight: 500; }

/* ---------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.35rem 0;
    font: 600 1.15rem/1.3 var(--font-display);
    color: var(--white);
    cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+"; flex: none;
    font: 400 1.5rem/1 var(--font-body); color: var(--silver);
    transition: transform 0.35s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { text-shadow: 0 0 14px rgba(255, 255, 255, 0.45); }
.faq__item p { margin: 0 0 1.5rem; color: var(--text-muted); }

/* ---------- Sicherheit: Maßnahmen */
.measures {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.measure {
    position: relative;
    padding: 2rem 1.75rem 2.25rem;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    transition: background-color 0.4s;
}
.measure::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px;
    background: var(--white); box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: width 0.6s var(--ease-out);
}
.measure:hover { background: rgba(255, 255, 255, 0.025); }
.measure:hover::before { width: 100%; }
.measure__num { display: block; margin-bottom: 1.25rem; font: 600 0.85rem/1 var(--font-display); color: var(--steel); }
.measure__title { margin: 0 0 0.6rem; font-size: 1.25rem; }
.measure p { margin: 0; color: var(--text-muted); font-size: 1rem; }
@media (max-width: 900px) { .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .measures { grid-template-columns: 1fr; } }

/* ---------- Kontaktseite */
.contact__subtitle { margin: 2.75rem 0 1rem; font-size: 1.2rem; }
.mini-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.mini-steps li { counter-increment: s; display: flex; gap: 0.9rem; color: var(--text-muted); font-size: 0.975rem; }
.mini-steps li::before {
    content: counter(s, decimal-leading-zero);
    flex: none; font: 600 0.85rem/1.9 var(--font-display); color: var(--silver);
}

/* ---------- Nach-oben-Button */
.to-top {
    --progress: 0;
    position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: 90;
    opacity: 0; visibility: hidden; translate: 0 12px;
    transition: opacity 0.4s var(--ease-out), translate 0.4s var(--ease-out), visibility 0.4s, filter 0.4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
/* Glow am Wrapper, weil clip-path am Button ihn sonst abschneiden würde */
.to-top:hover, .to-top:focus-within {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.35));
}
.to-top__btn {
    display: block; padding: 1px; border: 0; cursor: pointer;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.3));
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.to-top__btn:focus-visible { outline: none; }
.to-top:has(:focus-visible) { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 0 16px rgba(255, 255, 255, 0.5)); }
.to-top__face {
    position: relative;
    display: grid; place-items: center;
    width: 50px; height: 50px;
    color: var(--white);
    background: rgba(12, 12, 14, 0.82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    clip-path: polygon(0 0, calc(100% - 11.6px) 0, 100% 11.6px, 100% 100%, 0 100%);
    overflow: hidden;
    transition: background-color 0.3s;
}
.to-top__face svg { position: relative; z-index: 1; width: 22px; height: 22px; transition: translate 0.35s var(--ease-out); }
.to-top__btn:hover .to-top__face { background: rgba(28, 28, 32, 0.9); }
.to-top__btn:hover svg { translate: 0 -3px; }
/* Füllstand zeigt den Lesefortschritt */
.to-top__progress {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: calc(var(--progress) * 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------- Scroll-Reveal (nur mit JS; ohne JS ist alles sichtbar) */
.js [data-reveal] {
    opacity: 0;
    translate: 0 24px;
    transition:
        opacity 0.8s var(--ease-out) var(--reveal-delay, 0ms),
        translate 0.8s var(--ease-out) var(--reveal-delay, 0ms),
        filter 0.5s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* ---------- Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .js [data-reveal], .js .terminal .line { opacity: 1; translate: none; }
    .hero__metal::after, .hero__sheen { display: none; }
    .hero__mark { animation: none; }
}
