/* Leistungsseiten, Varianten mit räumlichen Szenen: gemeinsame Bausteine.
   Baut auf css/styles.css auf (Header, Buttons, Schrift, Farben).
   CI-Elemente: Sechseck aus dem Zeichen, 60°-Fase der Buttons, Schrägstrich.
   Seiten binden diese Datei ein und ergänzen nur ihre eigenen Szenen. */

.gx-page {
    --space: #030807;
    --navy: #093146;
    --teal: #33b4a2;
    --mist: #eef3f1;
    --mist-strong: #dde6e3;
    --text: #3e4945;
    --text-on-dark: #c3cec9;
    --muted-on-dark: #93a49d;
    --line-on-dark: rgba(195, 206, 201, 0.16);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --gx-space: clamp(5rem, 9vw, 9rem);
    --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    background: var(--white);
    color: var(--ink);
}

.gx-page [hidden] { display: none !important; }
.gx-page :is(section, h2, details) { scroll-margin-top: 110px; }
.gx-page :is(h1, h2, h3) { text-wrap: balance; overflow-wrap: break-word; }
:where(.gx-page p, .gx-page li) { line-height: 1.65; }
.gx-page ol { margin: 0; padding: 0; list-style: none; }
.gx-page .button { max-width: 100%; white-space: normal; text-align: center; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Header: wie auf den bestehenden Leistungsseiten */
.gx-page .site-header { grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr); }
.gx-page .desktop-nav [aria-current]::after { transform: scaleX(1); }
.gx-page:not(.service-enhanced) .menu-toggle { display: none; }
.gx-fallback-nav { position: absolute; z-index: 2; top: 95px; left: var(--page-gutter); display: flex; flex-wrap: wrap; gap: 1rem; color: var(--white); }
.gx-fallback-nav a { min-height: 44px; padding: 0.5rem; text-decoration: underline; }
.service-enhanced .gx-fallback-nav { display: none; }

/* Raster und Rhythmus */
.gx-wrap { padding-inline: max(var(--page-gutter), calc((100vw - 1480px) / 2)); }
.gx-space { padding-block: var(--gx-space); }

.gx-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
}

:is(.gx-hero, .gx-scope, .gx-process, .gx-contact) .gx-eyebrow { color: var(--accent); }

.gx-h2 {
    font-size: clamp(2.5rem, 5vw, 5.4rem);
    font-stretch: 80%;
    font-weight: 560;
    letter-spacing: -0.045em;
    line-height: 0.94;
}

.gx-body {
    max-width: 60ch;
    margin-top: 1.8rem;
    color: var(--text);
    font-size: clamp(1.05rem, 1.25vw, 1.16rem);
}

.gx-small { margin-top: 1.4rem; color: var(--muted); font-size: 0.86rem; }

/* Sechseck aus dem Zeichen: Quellenangaben, Aufzählungen, Schritte */
.gx-hex {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2em;
    aspect-ratio: 2 / 1.732;
    background: var(--accent);
    color: var(--ink);
    clip-path: var(--hex);
    font-size: 0.72rem;
    font-stretch: 100%;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.gx-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.9rem;
    padding-block: 0.4rem;
    border-bottom: 1px solid currentColor;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.gx-link span { flex: 0 0 auto; transition: transform 180ms var(--ease-out); }
.gx-link--light { color: var(--white); }

@media (hover: hover) and (pointer: fine) {
    .gx-link:hover span { transform: translate(3px, -3px); }
    .gx-link[href="#umfang"]:hover span { transform: translateY(3px); }
}

.gx-checks { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.gx-checks li { position: relative; padding-left: 2rem; }
.gx-checks li::before {
    position: absolute;
    top: 0.45em;
    left: 0;
    width: 1rem;
    aspect-ratio: 2 / 1.732;
    background: var(--teal);
    clip-path: var(--hex);
    content: "";
}

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */
.gx-hero {
    position: relative;
    display: flex;
    min-height: max(100svh, 760px);
    overflow: clip;
    background: var(--space);
    color: var(--white);
    isolation: isolate;
}

.gx-hero__inner { display: flex; width: 100%; flex-direction: column; padding-top: 108px; }
.gx-page:not(.service-enhanced) .gx-crumbs { padding-top: 3.5rem; }

.gx-crumbs { position: relative; z-index: 1; color: #9fb0a9; font-size: 0.8rem; }
.gx-crumbs ol { display: flex; flex-wrap: wrap; }
.gx-crumbs li { display: flex; align-items: center; }
.gx-crumbs li + li::before { margin-inline: 0.8rem; color: #5d6f68; content: "/"; }
.gx-crumbs a { display: inline-block; padding-block: 0.35rem; }
.gx-crumbs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.25em; }

.gx-hero__copy {
    display: flex;
    max-width: min(44rem, 46%);
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2.5rem, 7vh, 5rem);
}

.gx-hero__copy > :not(.gx-hero__stage) { position: relative; z-index: 1; }

.gx-hero h1 {
    font-size: clamp(3rem, 5.2vw, 5.9rem);
    font-stretch: 78%;
    font-weight: 560;
    letter-spacing: -0.045em;
    line-height: 0.92;
}

/* Quellenangabe im Titel: führt zur Erklärung, wie ein Zitat in einer KI-Antwort. */
.gx-cite { position: relative; display: inline-block; width: 0.42em; height: 0.74em; margin-left: 0.05em; vertical-align: baseline; }
.gx-cite .gx-hex { position: absolute; top: 0; left: 0; width: 2.3em; font-size: max(0.62rem, 0.15em); transition: background-color 180ms ease; }
.gx-cite:hover .gx-hex { background: var(--white); }

.gx-lead {
    max-width: 52ch;
    margin-top: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--text-on-dark);
    font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.gx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(1.8rem, 3vw, 2.4rem); }

.gx-hero__stage {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 41%;
    margin: 0;
    pointer-events: none;
}

.gx-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.gx-fallback-mark {
    position: absolute;
    inset: 0;
    width: min(46%, 360px);
    height: auto;
    margin: auto;
    overflow: visible;
}

.gx-fallback-mark__side { fill: var(--teal); }
.gx-fallback-mark__slash { fill: var(--navy); stroke: var(--accent); stroke-width: 1.2; }
.is-live > .gx-fallback-mark { display: none; }

.gx-chapters {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 clamp(1rem, 2.4vw, 2.4rem);
    padding-block: 0.6rem 1rem;
    border-top: 1px solid var(--line-on-dark);
    font-size: 0.86rem;
    font-weight: 600;
}

.gx-chapters span { margin-right: 0.4rem; color: var(--muted-on-dark); font-weight: 500; }
.gx-chapters a { display: inline-flex; min-height: 44px; align-items: center; color: #dfe8e4; transition: color 180ms ease; }
.gx-chapters a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* Einordnung                                                           */
/* ------------------------------------------------------------------ */
.gx-intro {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 7rem);
}

.gx-nowrap { white-space: nowrap; }


.gx-fit {
    --c: 36px;
    position: sticky;
    top: 120px;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    background: var(--ink);
    color: var(--white);
    clip-path: polygon(0 0, calc(100% - var(--c) * 0.577) 0, 100% var(--c), 100% 100%, 0 100%);
}

.gx-fit h3, .gx-prep h3 { font-size: clamp(1.35rem, 1.8vw, 1.75rem); font-weight: 620; letter-spacing: -0.02em; line-height: 1.2; }
.gx-fit .gx-checks li { color: var(--text-on-dark); }
.gx-fit .gx-checks li::before { background: var(--accent); }
.gx-fit .gx-link { margin-top: 2rem; }

/* ------------------------------------------------------------------ */
/* Leistungsumfang: Explosionszeichnung                                 */
/* ------------------------------------------------------------------ */
.gx-scope {
    position: relative;
    padding-top: var(--gx-space);
    padding-bottom: clamp(3rem, 6vw, 6rem);
    background: var(--space);
    color: var(--white);
}

.gx-scope__head { padding-bottom: clamp(1rem, 3vw, 2rem); }

.gx-scope__scrolly {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 4vw, 5rem);
}

.gx-scope__stage {
    position: sticky;
    top: 84px;
    height: calc(100svh - 100px);
    min-height: 460px;
    align-self: start;
    margin: 0;
}

.gx-scope__parts { padding-block: 14svh 8svh; }

.gx-part {
    display: flex;
    max-width: 32rem;
    min-height: 78svh;
    flex-direction: column;
    justify-content: center;
}

.is-linked .gx-part { opacity: 0.55; transition: opacity 400ms ease; }
.is-linked .gx-part.is-active { opacity: 1; }

.gx-part h3 {
    margin-top: 1.4rem;
    font-size: clamp(1.8rem, 2.7vw, 2.7rem);
    font-stretch: 82%;
    font-weight: 580;
    letter-spacing: -0.035em;
    line-height: 1;
}

.gx-part p { margin-top: 1.1rem; color: var(--text-on-dark); font-size: 1.05rem; }

.gx-legend { width: 64px; height: auto; overflow: visible; }
.gx-legend polygon { fill: none; stroke: rgba(195, 206, 201, 0.4); stroke-linejoin: round; stroke-width: 3; }
.gx-legend .is-on { fill: var(--accent); stroke: var(--accent); }

.gx-scope__cta { padding-block: 4svh 10svh; }

.gx-tags { position: absolute; inset: 0; pointer-events: none; }

.gx-tag {
    --c: 10px;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5rem 0.8rem 0.55rem;
    background: rgba(14, 26, 23, 0.86);
    color: #dfe8e4;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c) * 0.577) 100%, 0 100%);
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 300ms ease, background-color 250ms ease, color 250ms ease;
    will-change: transform;
}

.gx-tag.is-shown { opacity: 1; }
.gx-tag.is-active { background: var(--accent); color: var(--ink); }
.is-fallback .gx-tags { display: none; }

/* ------------------------------------------------------------------ */
/* Beispiel: räumliche Vorher-Nachher-Bühne                             */
/* ------------------------------------------------------------------ */
.gx-example__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.gx-example__head .gx-h2 { max-width: 14ch; }

.gx-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--mist); }
.gx-switch button {
    min-height: 46px;
    padding: 0.65rem 1.15rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 620;
    transition: background-color 200ms ease, color 200ms ease;
}

.gx-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

@media (hover: hover) and (pointer: fine) {
    .gx-switch button[aria-pressed="false"]:hover { background: var(--mist-strong); }
}

.gx-stage3d {
    --c: 56px;
    position: relative;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
    background: var(--ink);
    color: var(--white);
    clip-path: polygon(0 0, calc(100% - var(--c) * 0.577) 0, 100% var(--c), 100% 100%, calc(var(--c) * 0.577) 100%, 0 calc(100% - var(--c)));
}

.gx-question {
    position: relative;
    z-index: 2;
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 0.75rem;
    margin-inline: auto;
    padding: 0.75rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    font-size: clamp(0.98rem, 1.3vw, 1.15rem);
    font-weight: 560;
}

.gx-question .gx-hex { width: 1.1rem; }

.gx-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 5rem);
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.gx-compare > div { padding-top: 1.2rem; border-top: 2px solid var(--line); transition: border-color 300ms ease; }
.gx-example[data-state="before"] [data-copy="before"],
.gx-example[data-state="after"] [data-copy="after"] { border-color: var(--ink); }
.gx-compare h3 { font-size: 1.1rem; font-weight: 640; letter-spacing: -0.01em; }
.gx-compare p { margin-top: 0.6rem; color: var(--text); }

/* ------------------------------------------------------------------ */
/* Arbeiten: drei Bildschirme als gebogene Wand                          */
/* ------------------------------------------------------------------ */
.gx-work__head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 2rem clamp(2rem, 6vw, 6rem);
}

.gx-work__aside p { max-width: 42ch; color: var(--text); }
.gx-work__aside .gx-link { margin-top: 1.2rem; }

.gx-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.6vw, 1.5rem);
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    perspective: 1700px;
    perspective-origin: 50% 30%;
}

.gx-shot {
    margin: 0;
    transform: rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
    transform-origin: var(--origin, 50% 50%);
    transition: transform 650ms var(--ease-out);
}

.gx-shot--0 { --ry: 26deg; --origin: 100% 50%; }
.gx-shot--2 { --ry: -26deg; --origin: 0% 50%; }
.gx-shot:focus-within { --ry: 0deg; --tz: 30px; }

@media (hover: hover) and (pointer: fine) {
    .gx-shot:hover { --ry: 0deg; --tz: 30px; }
}

.gx-shot__frame {
    display: block;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(7, 17, 15, 0.08), 0 34px 60px -34px rgba(3, 8, 7, 0.5);
}

.gx-shot__bar { display: flex; height: 30px; align-items: center; gap: 6px; padding-inline: 12px; border-bottom: 1px solid rgba(7, 17, 15, 0.08); color: var(--muted); font-size: 0.72rem; }
.gx-shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9d3cf; }
.gx-shot__bar span { margin-left: auto; }
.gx-shot__image { display: block; position: relative; width: 100%; aspect-ratio: 1422 / 800; }
.gx-shot__image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.gx-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; margin-top: 1rem; font-size: 0.9rem; }
.gx-shot figcaption strong { font-weight: 620; }
.gx-shot figcaption span { color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Ablauf                                                               */
/* ------------------------------------------------------------------ */
.gx-process { padding-block: var(--gx-space); background: var(--ink); color: var(--white); }

.gx-process__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 7rem);
}

.gx-process__intro { position: sticky; top: 120px; }
.gx-steps-wrap { position: relative; }

.gx-steps__track {
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: calc(1.7rem - 1px);
    width: 2px;
    background: var(--line-on-dark);
}

.gx-steps__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.gx-steps { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.gx-step { position: relative; padding-left: 5rem; }

.gx-step__node {
    position: absolute;
    top: -0.25rem;
    left: 0;
    display: grid;
    width: 3.4rem;
    aspect-ratio: 2 / 1.732;
    place-items: center;
    background: #1d2b27;
    color: var(--text-on-dark);
    clip-path: var(--hex);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    transition: background-color 300ms ease, color 300ms ease;
}

.gx-step.is-reached .gx-step__node { background: var(--accent); color: var(--ink); }
.gx-step h3 { font-size: clamp(1.4rem, 2vw, 2rem); font-stretch: 85%; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.gx-step p { max-width: 56ch; margin-top: 0.8rem; color: var(--text-on-dark); }

/* ------------------------------------------------------------------ */
/* Kosten & Vorbereitung                                                */
/* ------------------------------------------------------------------ */
.gx-frame {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 7rem);
}

.gx-formula {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.05em 0.4em;
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
    font-size: clamp(1.5rem, 2.6vw, 2.6rem);
    font-stretch: 80%;
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gx-formula i { color: var(--teal); font-style: normal; font-weight: 400; }

.gx-boundary {
    --c: 30px;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: var(--navy);
    color: #cfdde0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c) * 0.577) 100%, 0 100%);
}

.gx-boundary h3 { color: var(--white); font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 620; letter-spacing: -0.02em; line-height: 1.2; }
.gx-boundary p { margin-top: 0.8rem; }

.gx-prep {
    --c: 30px;
    position: sticky;
    top: 120px;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    background: var(--mist);
    clip-path: polygon(0 0, calc(100% - var(--c) * 0.577) 0, 100% var(--c), 100% 100%, 0 100%);
}

.gx-prep > p:not(.gx-small) { margin-top: 0.6rem; color: var(--text); }

/* ------------------------------------------------------------------ */
/* Fragen                                                               */
/* ------------------------------------------------------------------ */
.gx-faq {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 7rem);
    padding-top: 0;
}

.gx-faq__list details { border-bottom: 1px solid var(--line); }
.gx-faq__list details:first-child { border-top: 2px solid var(--ink); }

.gx-faq summary {
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.35rem;
    cursor: pointer;
    font-size: clamp(1.08rem, 1.45vw, 1.3rem);
    font-weight: 620;
    letter-spacing: -0.015em;
    line-height: 1.35;
    list-style: none;
}

.gx-faq summary::-webkit-details-marker { display: none; }

.gx-faq summary span {
    position: relative;
    flex: 0 0 auto;
    width: 1.75rem;
    aspect-ratio: 2 / 1.732;
    background: var(--mist);
    clip-path: var(--hex);
    transition: background-color 200ms ease;
}

.gx-faq summary span::before,
.gx-faq summary span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    margin: -1px 0 0 -5px;
    background: var(--ink);
    content: "";
    transition: transform 200ms var(--ease-out);
}

.gx-faq summary span::after { transform: rotate(90deg); }
.gx-faq details[open] summary span { background: var(--accent); }
.gx-faq details[open] summary span::after { transform: rotate(0deg); }

@media (hover: hover) and (pointer: fine) {
    .gx-faq summary:hover span { background: var(--mist-strong); }
    .gx-faq details[open] summary:hover span { background: var(--accent); }
}

.gx-faq details p { max-width: 62ch; padding-bottom: 1.5rem; color: var(--text); }
.gx-sources { margin-top: 2rem; color: var(--muted); font-size: 0.88rem; }
.gx-sources a { display: inline-flex; min-height: 44px; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

/* ------------------------------------------------------------------ */
/* Verwandte Leistungen                                                 */
/* ------------------------------------------------------------------ */
.gx-related { padding-bottom: var(--gx-space); }

.gx-related__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    margin-block: clamp(2rem, 4vw, 3rem) 2rem;
}

.gx-related__list a {
    --c: 30px;
    position: relative;
    display: grid;
    min-height: clamp(12rem, 17vw, 14.5rem);
    grid-template-rows: 1fr auto;
    gap: 2.5rem;
    padding: clamp(1.4rem, 2.2vw, 2rem);
    background: var(--mist);
    color: var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c) * 0.577) 100%, 0 100%);
    transition: background-color 250ms ease, color 250ms ease;
}

.gx-related__list strong { padding-right: 2.5rem; font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-stretch: 80%; font-weight: 580; letter-spacing: -0.04em; line-height: 0.95; }
.gx-related__list span { max-width: 26ch; color: var(--text); transition: color 250ms ease; }
.gx-related__list i { position: absolute; top: clamp(1.4rem, 2.2vw, 2rem); right: clamp(1.4rem, 2.2vw, 2rem); font-size: 1.4rem; font-style: normal; transition: transform 250ms var(--ease-out), color 250ms ease; }
.gx-related__list a:focus-visible { clip-path: none; }

@media (hover: hover) and (pointer: fine) {
    .gx-related__list a:hover { background: var(--ink); color: var(--white); }
    .gx-related__list a:hover span { color: var(--text-on-dark); }
    .gx-related__list a:hover i { color: var(--accent); transform: translate(3px, -3px); }
}

/* ------------------------------------------------------------------ */
/* Kontakt und Footer                                                   */
/* ------------------------------------------------------------------ */
.gx-contact { padding-block: var(--gx-space); background: var(--ink); color: var(--white); }

.gx-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}

.gx-contact__portrait {
    max-width: 410px;
    aspect-ratio: 410 / 440;
    overflow: hidden;
    background: var(--accent);
    clip-path: polygon(21% 0, 100% 0, 100% 100%, 0 100%, 0 34%);
}

.gx-contact__portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
    mask-image: linear-gradient(#000 72%, transparent 100%);
}

.gx-contact__person > div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem; margin-top: 1.25rem; }
.gx-contact__person strong { font-size: 1rem; font-weight: 600; }
.gx-contact__person span { color: #b9c6c1; font-size: 0.82rem; }
.gx-contact .gx-h2 { font-size: clamp(2.7rem, 5.5vw, 5.8rem); }
.gx-contact__copy > p:not(.gx-eyebrow) { max-width: 55ch; margin-top: 1.5rem; color: var(--text-on-dark); }
.gx-contact__copy .button { margin-top: 2rem; }
.gx-contact__copy .gx-contact__note { font-size: 0.82rem; }
.gx-contact__note a { text-decoration: underline; text-underline-offset: 0.25em; }

.gx-footer { padding: 3rem var(--page-gutter) 1rem; border-top: 1px solid #22332d; background: var(--ink); color: #b9c6c1; container-type: inline-size; }
.gx-footer__top { display: flex; justify-content: space-between; gap: 2rem; font-size: 0.85rem; }
.gx-footer nav { display: flex; flex-wrap: wrap; align-items: start; gap: 1rem 2.5rem; }
.gx-footer nav a { display: inline-flex; min-height: 44px; align-items: center; gap: 0.75rem; }
.gx-footer a:hover { color: var(--accent); }
.gx-footer__signature { display: block; width: fit-content; max-width: 100%; margin-top: 2rem; color: var(--white); font-size: min(17vw, 19cqi, 22rem); font-weight: 650; letter-spacing: -0.07em; line-height: 1.05; }
.gx-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #22332d; font-size: 0.8rem; }
.gx-footer__bottom a { padding: 0.7rem 0 0.7rem 0.7rem; }

/* Nur Vorschau: Vergleich mit der bestehenden Seite */
.gx-preview {
    position: fixed;
    z-index: 900;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 2px;
    padding: 4px;
    background: var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 7px) 100%, 0 100%);
    font-size: 0.78rem;
    font-weight: 600;
}

.gx-preview a { padding: 0.6rem 0.95rem; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.gx-preview a:hover { color: var(--white); }
.gx-preview a[aria-current="page"] { background: var(--accent); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Responsiv                                                            */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .gx-page .site-header { gap: 1rem; padding-inline: 2.4rem; }
    .gx-page .desktop-nav { gap: 1.25rem; }
    .gx-page .brand img { width: 130px; }
    .gx-hero__copy { max-width: min(40rem, 50%); }
    .gx-hero__stage { left: 44%; }
}

@media (max-width: 900px) {
    .gx-page .header-cta { font-size: 0.75rem; }
    .gx-page .desktop-nav { gap: 0.8rem; }

    .gx-hero { min-height: 0; }
    .gx-hero__copy { max-width: none; padding-block: 2rem 2.5rem; }
    .gx-hero h1 { max-width: 16ch; }
    .gx-hero__stage {
        position: relative;
        inset: auto;
        height: clamp(320px, 100vw, 560px);
        margin: 0.75rem calc(var(--page-gutter) * -1) 0;
    }

    .gx-intro,
    .gx-work__head,
    .gx-process__grid,
    .gx-frame,
    .gx-faq,
    .gx-contact__grid { grid-template-columns: minmax(0, 1fr); }

    .gx-process__intro,
    .gx-prep,
    .gx-fit { position: static; }

    .gx-scope__scrolly { display: block; }
    .gx-scope__stage {
        z-index: 2;
        top: 72px;
        height: 44svh;
        min-height: 300px;
        margin-inline: calc(var(--page-gutter) * -1);
        background: var(--space);
    }

    .gx-scope__parts { padding-block: 4svh 2svh; }
    .gx-part { min-height: 64svh; justify-content: flex-start; padding-top: 6svh; }
    .gx-tag:not(.is-active) { opacity: 0; }
}

@media (max-width: 760px) {
    .gx-page .site-header { grid-template-columns: 1fr auto; padding-inline: 1.75rem; }
    .gx-page .menu-toggle { grid-column: 2; }
    .gx-hero__inner { padding-top: 96px; }
    .gx-hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
    .gx-chapters span { width: 100%; padding-top: 0.6rem; }

    .gx-example__head { display: block; }
    .gx-switch { display: flex; margin-top: 1.5rem; }
    .gx-switch button { flex: 1; }
    .gx-stage3d { --c: 34px; }
    .gx-compare { grid-template-columns: minmax(0, 1fr); }

    .gx-wall {
        display: flex;
        gap: 1rem;
        margin-inline: calc(var(--page-gutter) * -1);
        padding: 0 var(--page-gutter) 0.5rem;
        overflow-x: auto;
        perspective: none;
        scroll-padding-inline: var(--page-gutter);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .gx-shot { --ry: 0deg; flex: 0 0 82%; scroll-snap-align: start; transform: none; }

    .gx-related__list { grid-template-columns: minmax(0, 1fr); }
    .gx-related__list a { min-height: 0; }

    .gx-contact__person { display: flex; align-items: center; gap: 1.25rem; }
    .gx-contact__portrait { flex: 0 0 auto; width: 115px; }
    .gx-contact__person > div:last-child { display: grid; gap: 0.5rem; margin: 0; }
    .gx-contact .button { width: 100%; }

    .gx-footer__top { flex-direction: column; }
    .gx-footer nav { gap: 1rem; }
}

/* Bewegung anhalten: Pflicht für dauerhaft laufende Szenen (WCAG 2.2.2). */
.gx-motion {
    --c: 10px;
    position: absolute;
    z-index: 3;
    right: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    background: rgba(14, 26, 23, 0.82);
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c) * 0.577) 100%, 0 100%);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 180ms ease, color 180ms ease;
}

.gx-motion svg { width: 18px; height: 18px; fill: currentColor; }
.gx-hero__stage .gx-motion { bottom: 92px; }
@media (max-width: 900px) { .gx-hero__stage .gx-motion { top: 0.75rem; bottom: auto; } }
.gx-motion .gx-motion__play,
.gx-motion[aria-pressed="true"] .gx-motion__pause { display: none; }
.gx-motion[aria-pressed="true"] .gx-motion__play { display: block; }
.gx-motion:focus-visible { clip-path: none; }
.is-fallback .gx-motion,
.gx-hero__stage:not(.is-live) .gx-motion { display: none; }

@media (hover: hover) and (pointer: fine) {
    .gx-motion:hover { background: var(--accent); color: var(--ink); }
}

/* Weniger Bewegung: Zustände wechseln ohne Flug, Farben und Deckkraft bleiben weich. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gx-shot { transition-property: opacity; }
}
