/* ==========================================================================
   Scheffner Stickerei – Redesign 2026
   Schwarz · Leinen · Signalrot. Fonts lokal (DSGVO), keine externen Requests.
   ========================================================================== */

@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}
@font-face {
    font-family: "Plex Mono";
    src: url("../fonts/plex-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Plex Mono";
    src: url("../fonts/plex-mono-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

:root {
    --ink: #0d0d10;
    --ink-2: #141419;
    --ink-3: #1c1c23;
    --cloth: #f4efe6;
    --cloth-2: #e9e1d3;
    --paper: #fbf8f2;
    --red: #e5241b;
    --red-hot: #ff4637;
    --red-deep: #9e130d;
    --gold: #e3ad48;
    --text: #f4efe6;
    --muted: #a7a197;
    --muted-dark: #6b655c;
    --line: rgba(244, 239, 230, .12);
    --line-dark: rgba(13, 13, 16, .14);

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --maxw: 1280px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --radius: 18px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --twill: repeating-linear-gradient(45deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 5px);
    --twill-light: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 5px);
    --stitch-red: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 20px);
}

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

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

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font);
    font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
    line-height: 1.6;
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

/* Filmkorn über allem – gibt den Flächen Stoffcharakter */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

:focus-visible {
    outline: 2px dashed var(--red-hot);
    outline-offset: 4px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: calc(var(--maxw) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: .7rem 1rem;
    background: var(--cloth);
    color: var(--ink);
    border-radius: 10px;
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typo-Bausteine ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.kicker span {
    display: inline-grid;
    place-items: center;
    min-width: 2.2rem;
    height: 1.6rem;
    padding: 0 .4rem;
    border: 1.5px dashed var(--red);
    border-radius: 6px;
    color: var(--red-hot);
    font-weight: 500;
}

h2 {
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.4rem);
    font-weight: 780;
    font-stretch: 112%;
    line-height: .98;
    letter-spacing: -.025em;
    text-wrap: balance;
}
h2 em, .hero__title em {
    font-style: normal;
    color: var(--red-hot);
    background: var(--stitch-red) left bottom / 100% 3px no-repeat;
    padding-bottom: .06em;
}
.section--light h2 em, .section--cloth h2 em { color: var(--red); }

.section__intro {
    max-width: 38rem;
    color: var(--muted);
    font-size: clamp(1.02rem, .98rem + .25vw, 1.18rem);
    margin-top: 1.4rem;
}

.only-touch { display: none; }
@media (hover: none), (pointer: coarse) {
    .only-fine { display: none; }
    .only-touch { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
    --bg: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3.3rem;
    padding: .85rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--bg);
    font-weight: 650;
    font-stretch: 108%;
    font-size: .98rem;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
    transition: transform .35s var(--spring), background-color .25s, color .25s, box-shadow .3s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.96); }

.btn--red { --bg: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(229, 36, 27, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--red::after {
    /* Naht innen am Button */
    content: "";
    position: absolute;
    inset: 5px;
    border: 1.5px dashed rgba(255, 255, 255, .45);
    border-radius: inherit;
    pointer-events: none;
}
.btn--red:hover { --bg: var(--red-hot); box-shadow: 0 16px 40px -12px rgba(255, 70, 55, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(244, 239, 230, .35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); background: rgba(244, 239, 230, .06); }
.btn--dark { --bg: var(--ink); color: var(--cloth); }
.btn--dark:hover { --bg: var(--red); }
.btn--dark:disabled { opacity: .35; cursor: default; --bg: var(--ink); }
.btn--ghost-dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(13, 13, 16, .35); }
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { min-height: 2.6rem; padding: .5rem 1.15rem; font-size: .88rem; }
.btn--sm::after { inset: 4px; }
.btn--block { width: 100%; }

/* ---------- Fortschritts-Naht oben ---------- */
.progress-seam {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 120;
    pointer-events: none;
}
.progress-seam span {
    display: block;
    height: 100%;
    background: var(--stitch-red);
    background-size: 20px 3px;
    transform-origin: left;
    transform: scaleX(var(--scroll, 0));
}

.thread-cursor {
    position: fixed;
    inset: 0;
    z-index: 110;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding-block: 1.1rem;
    transition: padding .35s var(--ease), background-color .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
    padding-block: .6rem;
    background: rgba(13, 13, 16, .72);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__brand { position: relative; z-index: 2; }
.nav__brand img { width: clamp(130px, 14vw, 170px); height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__links a:not(.btn) {
    position: relative;
    font-size: .9rem;
    font-weight: 560;
    letter-spacing: .04em;
    text-decoration: none;
    color: rgba(244, 239, 230, .78);
    padding-block: .4rem;
    transition: color .2s;
}
.nav__links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--stitch-red);
    background-size: 10px 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
    display: none;
    position: relative;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(244, 239, 230, .08);
    cursor: pointer;
    z-index: 2;
}
.nav__toggle span {
    position: absolute;
    left: 13px; right: 13px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
    .nav__toggle { display: block; }
    .nav__links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: .4rem;
        padding: 6rem var(--gutter) 3rem;
        background: var(--ink);
        background-image: var(--twill-light);
        clip-path: circle(0 at calc(100% - 3rem) 2.4rem);
        transition: clip-path .6s var(--ease);
        visibility: hidden;
    }
    .nav__links.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.4rem); visibility: visible; }
    .nav__links li { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease); }
    .nav__links.is-open li { opacity: 1; transform: none; }
    .nav__links.is-open li:nth-child(2) { transition-delay: .05s; }
    .nav__links.is-open li:nth-child(3) { transition-delay: .1s; }
    .nav__links.is-open li:nth-child(4) { transition-delay: .15s; }
    .nav__links.is-open li:nth-child(5) { transition-delay: .2s; }
    .nav__links.is-open li:nth-child(6) { transition-delay: .25s; }
    .nav__links a:not(.btn) { font-size: clamp(2rem, 9vw, 3rem); font-weight: 780; font-stretch: 115%; color: var(--text); letter-spacing: -.01em; }
    .nav__cta-item { margin-top: 1.5rem; }
    .nav__cta-item .btn { min-height: 3.3rem; padding-inline: 1.8rem; font-size: 1rem; }
    body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: 7.5rem 0 5rem;
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(229, 36, 27, .22), transparent 70%),
        radial-gradient(40% 50% at 10% 90%, rgba(227, 173, 72, .08), transparent 70%),
        var(--ink);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--twill-light);
    mask-image: linear-gradient(to bottom, #000 40%, transparent);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--mono);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.pulse-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--red-hot);
    box-shadow: 0 0 0 0 rgba(255, 70, 55, .6);
    animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 70, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 70, 55, 0); } }

.hero__title {
    font-size: clamp(2.9rem, 1.2rem + 6.6vw, 7.4rem);
    font-weight: 820;
    font-stretch: 116%;
    line-height: .92;
    letter-spacing: -.035em;
}
.hero__title em { background: none; padding: 0; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__line > span { display: inline-block; }
.js .hero__line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero__line:nth-child(2) > span { transition-delay: .12s; }
.is-ready .hero__line > span { transform: none; }

.hero__seam {
    width: min(100%, 560px);
    height: 34px;
    margin: .6rem 0 1.6rem;
    overflow: visible;
}
.hero__seam path {
    fill: none;
    stroke: var(--red-hot);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-dasharray: 12 9;
    animation: thread-run 1.6s linear infinite;
}
.js .hero__seam { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s .55s var(--ease); }
.is-ready .hero__seam { clip-path: inset(0 0 0 0); }
@keyframes thread-run { to { stroke-dashoffset: -42; } }

.hero__lead { max-width: 34rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: rgba(244, 239, 230, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: clamp(1.2rem, 3vw, 2.8rem);
    margin-top: 3rem;
    padding-top: 1.6rem;
    border-top: 1.5px dashed var(--line);
}
.hero__facts dt { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 820; font-stretch: 120%; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__facts dd { margin-top: .35rem; font-size: .84rem; color: var(--muted); max-width: 11rem; line-height: 1.35; }

.js .hero__copy > :not(.hero__title):not(.hero__seam) { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .hero__copy > .hero__lead { transition-delay: .35s; }
.js .hero__copy > .hero__actions { transition-delay: .45s; }
.js .hero__copy > .hero__facts { transition-delay: .55s; }
.is-ready .hero__copy > * { opacity: 1 !important; transform: none !important; }

/* ---------- Stickrahmen ---------- */
.hero__visual { display: grid; place-items: center; }
.hoop {
    --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
    position: relative;
    width: min(520px, 78vw);
    aspect-ratio: 1;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .6s var(--ease);
}
.js .hoop { opacity: 0; scale: .9; rotate: -6deg; transition: transform .6s var(--ease), opacity 1s .2s var(--ease), scale 1.2s .2s var(--spring), rotate 1.2s .2s var(--ease); }
.is-ready .hoop { opacity: 1; scale: 1; rotate: 0deg; }
.hoop.is-tilting, .js .hoop.is-tilting { transition: transform .08s linear, opacity 1s, scale 1.2s var(--spring), rotate 1.2s var(--ease); }

.hoop__text {
    position: absolute;
    inset: -11%;
    width: 122%;
    height: 122%;
    max-width: none;
    animation: spin 48s linear infinite;
    pointer-events: none;
}
.hoop__text text { font-family: var(--mono); font-size: 6.2px; letter-spacing: .3em; fill: rgba(244, 239, 230, .42); }
@keyframes spin { to { transform: rotate(360deg); } }

.hoop__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 40%),
        conic-gradient(from 20deg, #d9b07a, #b98448, #e6c693, #c08d55, #dcb57f, #a9763e, #d9b07a);
    box-shadow:
        0 40px 90px -20px rgba(0, 0, 0, .8),
        0 0 0 1px rgba(0, 0, 0, .4),
        inset 0 2px 1px rgba(255, 255, 255, .45),
        inset 0 -4px 8px rgba(70, 40, 10, .45);
    transform: translateZ(20px);
}
.hoop__ring::before {
    /* Fuge zwischen Innen- und Außenring */
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 2px solid rgba(70, 40, 12, .45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
    pointer-events: none;
}
.hoop__fabric {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35), inset 0 10px 30px rgba(0, 0, 0, .5);
    background: var(--ink-3);
}
.hoop__fabric img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 45%;
    scale: 1.08;
    transform: translate(calc(var(--ry) * -1.2), calc(var(--rx) * 1.2));
    transition: transform .6s var(--ease);
}
.hoop.is-tilting .hoop__fabric img { transition: transform .08s linear; }
.hoop__fabric::after {
    /* gespannter Stoff: feines Gewebe + Wölbung */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px),
        radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, .45));
    pointer-events: none;
}
.hoop__glare {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .28), transparent 45%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}
.hoop__screw {
    position: absolute;
    top: -16px;
    left: 50%;
    width: 64px;
    height: 34px;
    translate: -50% 0;
    transform: translateZ(30px);
    border-radius: 9px;
    background: linear-gradient(180deg, #f2d48b, #b8892f 55%, #8d6620);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.hoop__screw::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    width: 26px;
    height: 26px;
    translate: -50% 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff3c9, #c89a3b 50%, #7b5717);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
}
.hoop__screw::after {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 12px;
    height: 2px;
    translate: -50% 0;
    background: rgba(60, 40, 10, .7);
}
.hoop__tag {
    position: absolute;
    left: -4%;
    bottom: 6%;
    transform: translateZ(50px) rotate(-6deg);
    padding: .55rem .9rem;
    background: var(--cloth);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, .6);
    outline: 1.5px dashed rgba(229, 36, 27, .7);
    outline-offset: -5px;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    width: 26px;
    height: 42px;
    translate: -50% 0;
    border: 2px solid rgba(244, 239, 230, .35);
    border-radius: 14px;
}
.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    translate: -50% 0;
    border-radius: 2px;
    background: var(--red-hot);
    animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 960px) {
    .hero { padding-top: 6.5rem; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { order: -1; margin-bottom: .5rem; }
    .hoop { width: min(380px, 74vw); }
    .scroll-cue { display: none; }
}
@media (max-width: 560px) {
    .hero__facts { grid-template-columns: repeat(3, 1fr); gap: .9rem; }
    .hero__facts dd { font-size: .76rem; }
    .hero__actions .btn { flex: 1 1 auto; }
    .hoop__tag { font-size: .62rem; left: -2%; }
}

/* ==========================================================================
   Laufband
   ========================================================================== */
.ribbon { position: relative; z-index: 2; margin-block: -2.2rem; overflow: hidden; padding-block: 2rem; pointer-events: none; }
.ribbon__band {
    position: relative;
    width: 110%;
    margin-left: -5%;
    padding: 1.15rem 0;
    background: var(--cloth);
    background-image: var(--twill);
    color: var(--ink);
    transform: rotate(-2.2deg);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7);
}
.ribbon__band::before, .ribbon__band::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--stitch-red);
    background-size: 18px 2px;
}
.ribbon__band::before { top: 7px; }
.ribbon__band::after { bottom: 7px; }
.ribbon__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon__track span {
    display: inline-flex;
    align-items: center;
    font-size: clamp(1.2rem, .9rem + 1.2vw, 1.9rem);
    font-weight: 820;
    font-stretch: 125%;
    text-transform: uppercase;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.ribbon__track span::after {
    content: "";
    width: .7em;
    height: .7em;
    margin-inline: 1.1em;
    background:
        linear-gradient(45deg, transparent 44%, var(--red) 44% 56%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, var(--red) 44% 56%, transparent 56%);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sektionen
   ========================================================================== */
.section { position: relative; padding-block: clamp(5.5rem, 4rem + 6vw, 9.5rem); }
.section__head { margin-bottom: clamp(2.8rem, 2rem + 3vw, 4.5rem); }
.section__head--split { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 2rem 4rem; }
.section__head--split .section__intro { margin-top: 0; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; } }

.section--light, .section--cloth {
    background: var(--cloth);
    background-image: var(--twill);
    color: var(--ink);
    color-scheme: light;
}
.section--cloth { background-color: var(--paper); }
.section--light .kicker, .section--cloth .kicker { color: var(--muted-dark); }
.section--light .kicker span, .section--cloth .kicker span { color: var(--red); }
.section--light .section__intro, .section--cloth .section__intro { color: var(--muted-dark); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Leistungen – Patches
   ========================================================================== */
.patches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.patch {
    --edge: var(--red);
    --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
    position: relative;
    padding: 2.2rem 2rem 2rem;
    border-radius: 28px;
    background: var(--ink-2);
    background-image: var(--twill-light), radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .05), transparent 60%);
    border: 6px solid var(--edge);
    box-shadow:
        0 1px 0 1px rgba(0, 0, 0, .6),
        0 24px 50px -24px rgba(0, 0, 0, .9),
        inset 0 0 0 1px rgba(0, 0, 0, .5),
        inset 0 2px 14px rgba(0, 0, 0, .6);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s var(--ease), box-shadow .4s, border-color .3s, opacity .9s var(--ease);
}
.patch.is-tilting { transition: transform .08s linear, box-shadow .4s, border-color .3s; }
.patch:nth-child(3n+2) { --edge: var(--cloth-2); }
.patch:nth-child(3n) { --edge: var(--gold); }
.patch::before {
    /* Ziernaht */
    content: "";
    position: absolute;
    inset: 9px;
    border: 2px dashed color-mix(in srgb, var(--edge) 70%, transparent);
    border-radius: 18px;
    pointer-events: none;
}
.patch::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .12), transparent 50%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.patch:hover { box-shadow: 0 1px 0 1px rgba(0, 0, 0, .6), 0 40px 70px -28px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 14px rgba(0, 0, 0, .6); }
.patch:hover::after { opacity: 1; }
.patch__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: inset 0 0 0 2px var(--edge), 0 6px 16px rgba(0, 0, 0, .5);
}
.patch__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--edge); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.patch h3 { font-size: 1.45rem; font-weight: 760; font-stretch: 112%; letter-spacing: -.01em; margin-bottom: .6rem; text-shadow: 0 1px 0 rgba(0, 0, 0, .8); }
.patch p { color: var(--muted); font-size: .98rem; }
.patch__no {
    position: absolute;
    top: 1.1rem;
    right: 1.5rem;
    font-size: 3.4rem;
    font-weight: 900;
    font-stretch: 125%;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(244, 239, 230, .14);
}

/* ==========================================================================
   Stichzähler
   ========================================================================== */
.counter {
    position: relative;
    padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem);
    background: var(--red);
    background-image: var(--twill), radial-gradient(70% 120% at 80% 0%, rgba(255, 255, 255, .14), transparent 60%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.counter::before, .counter::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 14px, transparent 14px 24px);
}
.counter::before { top: 12px; }
.counter::after { bottom: 12px; }
.counter__label, .counter__note { font-family: var(--mono); font-size: clamp(.8rem, .75rem + .2vw, .95rem); letter-spacing: .06em; opacity: .9; max-width: 40rem; margin-inline: auto; }
.counter__value {
    margin-block: .6rem;
    font-size: clamp(3.2rem, 1.5rem + 9vw, 9.5rem);
    font-weight: 880;
    font-stretch: 125%;
    line-height: .95;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 0 var(--red-deep), 0 10px 30px rgba(0, 0, 0, .25);
}
.counter__value small { font-size: .28em; font-stretch: 110%; letter-spacing: .02em; vertical-align: .9em; margin-left: .2em; }

/* ==========================================================================
   Ablauf
   ========================================================================== */
.steps-wrap { position: relative; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.step { display: flex; flex-direction: column; gap: 1.2rem; position: relative; z-index: 1; }
.step__no {
    flex: none;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cloth);
    font-size: 1.4rem;
    font-weight: 820;
    font-stretch: 120%;
    box-shadow: 0 0 0 6px var(--cloth), 0 0 0 7.5px rgba(13, 13, 16, .15), 0 14px 26px -10px rgba(0, 0, 0, .5);
    position: relative;
    transition: background-color .4s, transform .5s var(--spring);
}
.step__no::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1.5px dashed rgba(244, 239, 230, .4);
}
.step.is-active .step__no { background: var(--red); transform: scale(1.06); }
.step h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); font-weight: 770; font-stretch: 112%; letter-spacing: -.015em; margin-bottom: .5rem; }
.step p { color: var(--muted-dark); max-width: 26rem; }
@media (max-width: 1000px) {
    .steps { grid-template-columns: 1fr; gap: 2.4rem; }
    .step { flex-direction: row; align-items: flex-start; gap: 1.4rem; }
    .step h3 { margin-top: .9rem; }
}
@media (max-width: 560px) {
    .step__no { width: 62px; height: 62px; font-size: 1.15rem; }
    .step h3 { margin-top: .6rem; }
}
.steps__thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.steps__thread path { fill: none; stroke-linecap: round; }
.steps__base { stroke: rgba(13, 13, 16, .16); stroke-width: 2.5; stroke-dasharray: 10 9; }
.steps__run { stroke: var(--red); stroke-width: 3.5; stroke-dasharray: 10 9; }

/* ==========================================================================
   Maschinenpark – Schiene
   ========================================================================== */
.rail {
    --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
    display: flex;
    gap: clamp(.9rem, 1.6vw, 1.4rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    padding: .5rem var(--pad) 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--red) transparent;
    cursor: grab;
}
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging img { pointer-events: none; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
.rail__item {
    position: relative;
    flex: 0 0 auto;
    height: clamp(340px, 30vw + 160px, 580px);
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink-3);
}
.rail__item img { height: 100%; width: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: scale 1.2s var(--ease); user-select: none; }
.rail__item--wide img { aspect-ratio: 4 / 3; }
.rail__item:hover img { scale: 1.04; }
.rail__item figcaption {
    position: absolute;
    left: 1rem; right: 1rem; bottom: 1rem;
    display: flex;
    gap: .8rem;
    align-items: baseline;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: rgba(13, 13, 16, .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: .95rem;
    line-height: 1.4;
}
.rail__item figcaption span { font-family: var(--mono); color: var(--red-hot); font-size: .8rem; }
.rail__hint { margin-top: .6rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rail__hint span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
.rail__hint span:last-child { animation-direction: reverse; }
@keyframes nudge { 50% { transform: translateX(-5px); } }

/* ==========================================================================
   Arbeiten – Galerie
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.7rem;
    padding: .45rem 1.05rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--line-dark);
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    transition: background-color .25s, color .25s, box-shadow .25s, transform .3s var(--spring);
    -webkit-tap-highlight-color: transparent;
}
.filter:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filter:active { transform: scale(.94); }
.filter small { font-family: var(--mono); font-size: .72rem; opacity: .55; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cloth); box-shadow: none; }
.filter[aria-pressed="true"] small { color: var(--red-hot); opacity: 1; }

.works {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(44%, 250px), 1fr));
    grid-auto-rows: 4px;
    column-gap: 16px;
}
.work { grid-row-end: span var(--span, 60); padding-bottom: 16px; }
.work__btn {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--cloth-2);
    cursor: zoom-in;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45);
    transition: transform .45s var(--ease), box-shadow .45s;
}
.work__btn:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .55); }
.work__btn img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease), opacity .5s; }
.work__btn img:not(.is-loaded) { opacity: 0; }
.work__cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2.4rem 1rem .9rem;
    background: linear-gradient(to top, rgba(13, 13, 16, .85), transparent);
    color: var(--cloth);
    text-align: left;
    font-size: .88rem;
    font-weight: 560;
    line-height: 1.35;
    transform: translateY(101%);
    transition: transform .45s var(--ease);
}
.work__cap small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-hot); margin-bottom: .2rem; }
.work__btn:hover .work__cap, .work__btn:focus-visible .work__cap { transform: none; }
@media (hover: none) { .work__cap { transform: none; padding: 1.6rem .7rem .6rem; font-size: .74rem; } .work__cap small { font-size: .6rem; } }
@media (max-width: 560px) { .works { column-gap: 10px; } .work { padding-bottom: 10px; } .work__cap { display: none; } }

.loupe {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    pointer-events: none;
    background-repeat: no-repeat;
    background-color: var(--cloth-2);
    border: 3px solid var(--cloth);
    box-shadow: 0 0 0 1.5px rgba(13, 13, 16, .3), 0 20px 40px -10px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .2);
    translate: -50% -50%;
    scale: .4;
    opacity: 0;
    transition: scale .3s var(--spring), opacity .2s;
    z-index: 5;
}
.loupe::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1.5px dashed rgba(229, 36, 27, .65);
}
.loupe.is-on { scale: 1; opacity: 1; }

.works__more { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: 2.4rem; }
.works__status { font-family: var(--mono); font-size: .78rem; color: var(--muted-dark); letter-spacing: .08em; }

/* ==========================================================================
   Kunden
   ========================================================================== */
.clients { border-top: 1.5px dashed var(--line); }
.client {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr .8fr 1.2fr;
    align-items: center;
    gap: .4rem 2rem;
    padding: 1.35rem .2rem;
    border-bottom: 1.5px dashed var(--line);
    isolation: isolate;
    overflow: hidden;
}
.client::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .55s var(--ease);
}
.client h3 { font-size: clamp(1.25rem, 1rem + 1.2vw, 2.05rem); font-weight: 760; font-stretch: 114%; letter-spacing: -.02em; line-height: 1.1; transition: transform .5s var(--ease); }
.client__type { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.client__tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.client__tags span { padding: .22rem .65rem; border-radius: 999px; font-size: .78rem; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: color .3s, box-shadow .3s; }
@media (hover: hover) {
    .client:hover::before { transform: scaleX(1); }
    .client:hover h3 { transform: translateX(14px); }
    .client:hover .client__type, .client:hover .client__tags span { color: #fff; }
    .client:hover .client__tags span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
}
.client--more h3 { color: var(--red-hot); }
@media (max-width: 860px) {
    .client { grid-template-columns: 1fr; padding-block: 1.1rem; }
    .client__tags { justify-content: flex-start; }
}

/* ==========================================================================
   Kontakt – Auftragszettel
   ========================================================================== */
.section--contact {
    background:
        radial-gradient(50% 60% at 15% 30%, rgba(229, 36, 27, .16), transparent 70%),
        var(--ink);
}
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__info { position: sticky; top: 7rem; }
.contact__info > p { color: var(--muted); margin-top: 1.4rem; max-width: 30rem; }
.checklist { margin-top: 1.2rem; display: grid; gap: .65rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: .45em;
    width: 1.1rem;
    height: .6rem;
    border-left: 2.5px solid var(--red-hot);
    border-bottom: 2.5px solid var(--red-hot);
    transform: rotate(-45deg) translateY(-2px);
}
.contact__direct { margin-top: 2.4rem; display: grid; gap: .8rem; }
.contact__line {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    width: fit-content;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    padding: .2rem 0;
    background: linear-gradient(var(--red-hot), var(--red-hot)) left bottom / 0 2px no-repeat;
    transition: background-size .4s var(--ease);
}
.contact__line:hover { background-size: 100% 2px; }
.contact__line svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--red-hot); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ticket {
    position: relative;
    padding: clamp(1.6rem, 1rem + 2.4vw, 2.8rem);
    background: var(--paper);
    background-image: var(--twill);
    color: var(--ink);
    color-scheme: light;
    border-radius: 6px 6px 20px 20px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3);
    rotate: .6deg;
    transition: rotate .6s var(--ease);
}
.ticket:focus-within { rotate: 0deg; }
.ticket::before {
    /* Perforation */
    content: "";
    position: absolute;
    left: 0; right: 0; top: -7px;
    height: 14px;
    background: radial-gradient(circle at 11px 7px, var(--ink) 6px, transparent 6.5px) 0 0 / 22px 14px repeat-x;
}
.ticket__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 1rem;
    margin-bottom: 1.6rem;
    border-bottom: 2px dashed var(--line-dark);
    font-family: var(--mono);
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.ticket__head span:first-child { font-weight: 500; color: var(--red); }
.ticket__no { color: var(--muted-dark); }

.field-set { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.field-set legend { padding: 0; margin-bottom: .7rem; font-size: .82rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-dark); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px var(--line-dark);
    font-size: .92rem;
    font-weight: 580;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .3s var(--spring);
}
.chips--small .chip span { min-height: 2.3rem; padding: .3rem .85rem; font-size: .86rem; }
.chip:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--cloth); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip input:checked + span::before { content: ""; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--red-hot); }
.chip input:focus-visible + span { outline: 2px dashed var(--red); outline-offset: 3px; }
.chip:active span { transform: scale(.94); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.4rem; margin-top: .4rem; }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
    width: 100%;
    padding: 1.45rem 0 .55rem;
    border: 0;
    border-bottom: 2px solid var(--line-dark);
    border-radius: 0;
    background: transparent;
    font-size: 1.02rem;
    outline: none;
    transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field > span {
    position: absolute;
    left: 0;
    top: 1.35rem;
    color: var(--muted-dark);
    font-size: 1rem;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .3s var(--ease), color .25s;
}
.field input:focus ~ span, .field textarea:focus ~ span,
.field input:not(:placeholder-shown) ~ span, .field textarea:not(:placeholder-shown) ~ span {
    transform: translateY(-1.15rem) scale(.78);
    color: var(--ink);
    font-weight: 600;
}
.field::after {
    /* Naht läuft beim Fokus ein */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--stitch-red);
    background-size: 14px 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); animation: seam-slide 1s linear infinite; }
@keyframes seam-slide { to { background-position: 14px 0; } }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--red); }
.field.is-invalid > span { color: var(--red); }

.drop {
    position: relative;
    margin-top: 1.6rem;
    border: 2px dashed rgba(13, 13, 16, .25);
    border-radius: 14px;
    transition: border-color .25s, background-color .25s, transform .3s var(--spring);
}
.drop.is-over { border-color: var(--red); background: rgba(229, 36, 27, .06); transform: scale(1.015); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop input:focus-visible + .drop__label { outline: 2px dashed var(--red); outline-offset: 4px; border-radius: 12px; }
.drop__label { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; cursor: pointer; font-size: .95rem; line-height: 1.45; }
.drop__label svg { flex: none; width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: 50%; background: var(--ink); fill: none; stroke: var(--cloth); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop__label small { color: var(--muted-dark); font-size: .8rem; }
.drop__files { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1.2rem; }
.drop__files:not(:empty) { padding-bottom: 1rem; }
.drop__files li { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .4rem .3rem .8rem; border-radius: 999px; background: var(--ink); color: var(--cloth); font-size: .82rem; animation: pop .35s var(--spring); }
.drop__files button { width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: rgba(244, 239, 230, .15); cursor: pointer; line-height: 1; }
.drop__files button:hover { background: var(--red); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

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

.consent { position: relative; display: flex; gap: .9rem; align-items: flex-start; margin: 1.6rem 0 1.4rem; font-size: .86rem; line-height: 1.5; color: var(--muted-dark); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1.4rem; height: 1.4rem; margin: 0; cursor: pointer; }
.consent__box { flex: none; position: relative; width: 1.4rem; height: 1.4rem; margin-top: .05rem; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(13, 13, 16, .35); transition: background-color .2s, box-shadow .2s; }
.consent__box::after { content: ""; position: absolute; left: .42rem; top: .18rem; width: .38rem; height: .75rem; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg) scale(0); transition: transform .3s var(--spring); }
.consent input:checked + .consent__box { background: var(--red); box-shadow: none; }
.consent input:checked + .consent__box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .consent__box { outline: 2px dashed var(--red); outline-offset: 3px; }
.consent.is-invalid .consent__box { box-shadow: inset 0 0 0 2px var(--red); animation: shake .4s; }
.consent a { color: var(--ink); font-weight: 600; }

.form-error { margin: -.4rem 0 1rem; padding: .8rem 1rem; border-radius: 10px; background: rgba(229, 36, 27, .1); color: var(--red-deep); font-size: .92rem; font-weight: 560; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.send { overflow: hidden; min-height: 3.6rem; font-size: 1.02rem; }
.send__label { position: relative; z-index: 1; }
.send__progress { position: absolute; inset: 0; z-index: 0; background: var(--red-deep); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s; }
.send.is-sending { pointer-events: none; }
.send.is-sending .send__progress { background: repeating-linear-gradient(-45deg, var(--red-deep) 0 10px, #b5170f 10px 20px); background-size: 28px 28px; animation: barber .8s linear infinite; }
@keyframes barber { to { background-position: 28px 0; } }

.ticket__done { text-align: center; padding: 2rem 1rem; outline: none; }
.ticket__done h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 800; font-stretch: 115%; margin: 1.2rem 0 .6rem; }
.ticket__done p { color: var(--muted-dark); margin-bottom: 1.6rem; }
.done-mark { width: 120px; height: 120px; margin: 0 auto; }
.done-mark circle, .done-mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke: var(--red); stroke-width: 4; stroke-dasharray: 327; stroke-dashoffset: 327; animation: draw .9s var(--ease) forwards; }
.done-mark path { stroke: var(--ink); stroke-width: 6; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .6s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 960px) {
    .contact { grid-template-columns: 1fr; }
    .contact__info { position: static; }
}
@media (max-width: 560px) {
    .fields { grid-template-columns: 1fr; }
    .ticket { rotate: 0deg; margin-inline: calc(var(--gutter) * -.4); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(3rem, 6vw, 6rem) 0 2rem; background: var(--ink); border-top: 1.5px dashed var(--line); overflow: hidden; }
.footer__big {
    font-size: clamp(2rem, 11.3vw, 10.2rem);
    font-weight: 900;
    font-stretch: 125%;
    line-height: .78;
    letter-spacing: -.045em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(244, 239, 230, .18);
    background: linear-gradient(90deg, var(--red) 0 var(--fill, 0%), transparent var(--fill, 0%));
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; font-size: .9rem; color: var(--muted); }
.footer__row ul { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer__row a { text-decoration: none; transition: color .2s; }
.footer__row a:hover { color: var(--red-hot); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cloth);
    overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 8, 10, .93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__stage { display: grid; justify-items: center; gap: 1rem; padding: 4.5rem 1rem 1.5rem; touch-action: pan-y pinch-zoom; }
.lightbox__stage img {
    max-width: min(92vw, 1400px);
    max-height: calc(100dvh - 9rem);
    width: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    transition: opacity .25s, transform .35s var(--ease);
}
.lightbox__stage img.is-swapping { opacity: 0; transform: scale(.97); }
.lightbox figcaption { display: flex; gap: 1.2rem; align-items: baseline; font-size: .95rem; text-align: center; }
.lightbox__count { font-family: var(--mono); font-size: .78rem; color: var(--red-hot); letter-spacing: .1em; }
.lightbox__btn {
    position: fixed;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(244, 239, 230, .1);
    cursor: pointer;
    transition: background-color .2s, transform .3s var(--spring);
}
.lightbox__btn:hover { background: var(--red); }
.lightbox__btn:active { transform: scale(.9); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
    .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
}
body.lb-open { overflow: hidden; }

/* ==========================================================================
   Unterseiten (Impressum, Datenschutz)
   ========================================================================== */
.page { padding: 9rem 0 6rem; }
.page h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem); font-weight: 820; font-stretch: 116%; letter-spacing: -.03em; line-height: 1; margin-bottom: 2.5rem; }
.page__body { max-width: 46rem; display: grid; gap: 2.2rem; }
.page__body h2 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); font-stretch: 108%; letter-spacing: -.01em; margin-bottom: .6rem; }
.page__body p, .page__body li { color: rgba(244, 239, 230, .78); }
.page__body p + p { margin-top: .8rem; }
.page__body ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .3rem; margin-top: .6rem; }
.page__body a { color: var(--red-hot); }
.page__note { padding: 1rem 1.2rem; border: 1.5px dashed var(--red); border-radius: 12px; font-size: .92rem; }

/* ==========================================================================
   Bewegung reduzieren
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .ribbon__track { animation: none; }
    .thread-cursor { display: none; }
}
