/* ==========================================================================
   Dorn Aluminium – Styles
   ========================================================================== */

/* Schriften: siehe fonts.css */

/* ---------- Tokens ---------- */
:root {
  --brand: #4c4396;          /* exakt aus dem Logo */
  --brand-600: #3e3680;
  --brand-300: #8c84cf;
  --brand-50: #efedf8;
  --ink: #15161a;
  --ink-2: #2b2d33;
  --muted: #6a6d75;
  --paper: #f4f3f1;
  --paper-2: #ecebe8;
  --line: #d9d8d4;
  --alu: #c7cad0;

  --f-slab: 'Roboto Slab', Rockwell, Georgia, serif;
  --f-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.6rem, 4.6vw, 4.9rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 4.2rem);
  --fs-lead: clamp(1.08rem, 1.25vw, 1.3rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5.5rem, 12vw, 10rem);
  --radius: 4px;
  --header-h: 76px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-slab); line-height: 1.05; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--brand); color: #fff; padding: .6em 1em; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.accent { color: var(--brand); }

/* ---------- Logo (nachgebaut, skalierbar) ---------- */
.logo { display: inline-flex; align-items: stretch; gap: .3em; font-family: var(--f-slab); font-size: 1.15rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.logo__dorn { font-weight: 400; letter-spacing: .02em; padding: .14em 0 .1em; border-top: .11em solid currentColor; border-bottom: .11em solid currentColor; display: flex; align-items: center; }
.logo__alu { font-weight: 800; letter-spacing: .01em; padding: .25em .32em .2em; display: flex; align-items: center; }
.logo--brand { color: var(--brand); }
.logo--brand .logo__alu { background: var(--brand); color: #fff; }
.logo--light { color: #fff; }
.logo--light .logo__alu { background: #fff; color: var(--brand); }
.logo--lg { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.logo__sub { font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; margin-top: .7em; opacity: .85; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; gap: .6em; padding: 1em 1.5em; border-radius: 999px; background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--f-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease; will-change: transform; }
.btn--brand { --bg: var(--brand); box-shadow: 0 10px 30px -12px rgba(76, 67, 150, .7); }
.btn--brand:hover { --bg: var(--brand-600); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(21, 22, 26, .2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--brand); }
.btn--light:hover { --bg: var(--brand-50); }
.btn--sm { padding: .75em 1.2em; font-size: .95rem; }
.btn__arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.kicker { display: inline-flex; align-items: center; gap: .6em; font: 600 .82rem/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.kicker__dot { width: 8px; height: 8px; background: var(--brand); display: inline-block; }
.kicker--light { color: rgba(255, 255, 255, .7); }
.kicker--light .kicker__dot { background: #fff; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .35s ease, box-shadow .35s ease, transform .5s var(--ease-out); }
.header.is-scrolled { background: rgba(244, 243, 241, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 2rem; }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; padding: .3em 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone-mobile { display: none; }
.burger { display: none; }

/* ---------- Build (Hero + 3D) ---------- */
.build { position: relative; height: 400vh; background: var(--paper-2); }
.build__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.build__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.build__fallback { position: absolute; inset: 0; display: none; background:
  radial-gradient(ellipse at 70% 60%, rgba(76, 67, 150, .16), transparent 60%),
  linear-gradient(180deg, var(--paper-2), #dcdad5); }
.no-webgl .build__fallback { display: block; }
.no-webgl .build { height: auto; }
.no-webgl .build__sticky { position: relative; height: auto; min-height: 100vh; }

.build__hero { position: absolute; left: var(--pad); top: 50%; transform: translateY(-46%); max-width: min(600px, 44vw); z-index: 2; }
.hero__title { font-size: var(--fs-hero); font-weight: 700; margin-bottom: 1.6rem; }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34em; margin-bottom: 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__scroll { display: flex; align-items: center; gap: .9rem; margin-top: 3.2rem; font-size: .9rem; color: var(--muted); }
.hero__scroll-line { width: 1px; height: 46px; background: rgba(21, 22, 26, .18); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--brand); animation: scrollLine 2.2s var(--ease-out) infinite; }
@keyframes scrollLine { to { top: 100%; } }

.steps { position: absolute; left: var(--pad); bottom: 150px; width: min(440px, 40vw); z-index: 2; }
.step { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(24px); filter: blur(8px); transition: opacity .6s var(--ease-quint), transform .7s var(--ease-quint), filter .6s var(--ease-quint), visibility 0s .7s; }
.step.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.step__num { display: block; font: 700 clamp(4rem, 8vw, 7rem)/0.9 var(--f-slab); color: transparent; -webkit-text-stroke: 1.5px var(--brand); margin-bottom: .6rem; }
.step__title { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: .8rem; }
.step p { color: var(--ink-2); font-size: var(--fs-lead); }
.step .btn { margin-top: .6rem; }

.progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 44px; z-index: 2; opacity: 0; transition: opacity .5s ease; }
.progress.is-visible { opacity: 1; }
.progress__bar { height: 2px; background: rgba(21, 22, 26, .12); position: relative; }
.progress__bar span { position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.progress__labels { display: flex; justify-content: space-between; margin-top: .8rem; font: 600 .76rem/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.progress__labels span.is-done { color: var(--brand); }

/* ---------- Marquee ---------- */
.marquee { background: var(--brand); color: #fff; overflow: hidden; padding: 1.4rem 0; }
.marquee__inner { display: flex; align-items: center; width: max-content; gap: 2.2rem; font: 700 clamp(1.6rem, 3.2vw, 2.8rem)/1 var(--f-slab); white-space: nowrap; }
.marquee i { width: .45em; height: .45em; background: #fff; display: inline-block; flex: none; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section__head { max-width: 860px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 1.5rem; }
.section__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 40em; }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { position: relative; background: var(--paper); padding: 2rem 1.8rem 1.8rem; min-height: 290px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; transition: color .45s var(--ease-out); }
.card::before { content: ''; position: absolute; inset: 0; background: var(--brand); transform: translateY(101%); transition: transform .6s var(--ease-out); z-index: -1; }
.card:hover::before, .card:focus-within::before { transform: none; }
.card:hover, .card:focus-within { color: #fff; }
.card__num { font: 600 .85rem/1 var(--f-sans); color: var(--brand); letter-spacing: .1em; margin-bottom: auto; transition: color .45s; }
.card:hover .card__num, .card:focus-within .card__num { color: rgba(255, 255, 255, .7); }
.card h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); margin: 2.5rem 0 .8rem; hyphens: manual; }
.card p { font-size: .98rem; color: inherit; opacity: .8; margin-bottom: 1.4rem; }
.card__link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; margin-top: auto; }
.card__link::after { content: ''; position: absolute; inset: 0; }
.card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transform: scale(1.08); transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); }
.card--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(76, 67, 150, .35), rgba(30, 26, 66, .92)); opacity: 0; transition: opacity .6s var(--ease-out); }
.card--photo:hover .card__photo, .card--photo:focus-within .card__photo { opacity: 1; transform: none; }
.card--photo:hover::after, .card--photo:focus-within::after { opacity: 1; }
.card--photo:hover::before, .card--photo:focus-within::before { transform: translateY(101%); }
.card--feature .card__photo { opacity: 1; transform: none; transition: transform 1.4s var(--ease-out); }
.card--feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 22, 26, .1) 0%, rgba(21, 22, 26, .35) 35%, rgba(21, 22, 26, .9) 75%); transition: background .6s; }
.card--feature:hover .card__photo { transform: scale(1.04); }
.card--feature::before { display: none; }
.card--feature { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #fff; min-height: 580px; }
.card--feature::before { background: var(--brand); }
.card--feature h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); margin-top: auto; }
.card--feature .card__num { margin-bottom: 0; color: var(--brand-300); }
.card--feature p { font-size: var(--fs-lead); max-width: 26em; }

/* Vorteile */
.why { background: var(--ink); color: #fff; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.why__sticky { position: sticky; top: calc(var(--header-h) + 8vh); align-self: start; }
.why__title { font-size: clamp(3rem, 7vw, 7rem); font-weight: 800; margin-bottom: 2rem; }
.shine { background: linear-gradient(110deg, #9ea1a8 20%, #fff 40%, #9ea1a8 55%, #6f7279 75%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.why__since { display: inline-block; border: 1px solid rgba(255, 255, 255, .25); padding: .5em 1em; border-radius: 999px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.why__list li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 2.4rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.why__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.why__num { font: 700 1rem/1.4 var(--f-slab); color: var(--brand-300); }
.why__list h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: .7rem; }
.why__list p { color: rgba(255, 255, 255, .68); margin: 0; max-width: 32em; }

/* Referenzen */
.refs { overflow: hidden; }
.refs__hint { color: var(--muted); font-size: .95rem; margin: -.6rem 0 0; }
.refs__viewport { padding-left: var(--pad); cursor: grab; touch-action: pan-y; }
.refs__viewport:active { cursor: grabbing; }
.refs__track { --h: clamp(320px, 56vh, 560px); display: flex; gap: 1.2rem; width: max-content; padding-right: var(--pad); will-change: transform; backface-visibility: hidden; }
.ref { flex: none; width: calc(var(--h) * var(--ar)); user-select: none; -webkit-user-select: none; contain: layout paint; }
.ref__img { display: block; width: 100%; height: var(--h); padding: 0; border: 0; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; cursor: inherit; }
.ref__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); pointer-events: none; }
.refs__track:not(.is-dragging) .ref:hover .ref__img img { transform: scale(1.04); }
.refs__track.is-dragging .ref__img img { transition: none; }
.ref__cap { margin-top: .9rem; font-weight: 600; display: flex; flex-direction: column; gap: .2rem; max-width: 28ch; }
.ref__tag { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(21, 22, 26, .88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox__cap { color: #fff; margin: .8rem 0 0; font-weight: 600; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox[open] { animation: lbIn .5s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }

/* Über uns */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.about__media { position: relative; }
.about__img { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__badge { position: absolute; right: -1.2rem; bottom: 2rem; background: var(--brand); color: #fff; padding: 1.3rem 1.5rem; display: flex; flex-direction: column; }
.about__badge strong { font: 800 2.4rem/1 var(--f-slab); }
.about__badge span { font-size: .9rem; opacity: .85; }
.about__text p { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34em; }
.about__sign { margin-top: 2rem; display: flex; flex-direction: column; }
.about__name { font: 700 1.5rem/1.2 var(--f-slab); }
.about__role { color: var(--muted); }

/* Kontakt */
.contact { background: var(--brand); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); }
.contact__title { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 1.5rem; }
.contact__lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .82); max-width: 30em; margin-bottom: 2.5rem; }
.contact__list li { display: grid; grid-template-columns: 7.5rem 1fr; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 1.1rem; }
.contact__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.contact__list span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; padding-top: .3em; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { text-decoration: underline; }

.form { background: #fff; color: var(--ink); padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: 6px; display: grid; gap: 1.1rem; align-self: start; }
.form .btn--light { --bg: var(--brand); --fg: #fff; justify-self: start; }
.form .btn--light:hover { --bg: var(--brand-600); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--f-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .85em 1em; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(76, 67, 150, .15); }
.field .is-invalid, .field input.is-invalid, .field textarea.is-invalid { border-color: #c0392b; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; font-size: .88rem; color: var(--muted); align-items: start; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: .15em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #1e7d4f; }
.form__status.is-error { color: #c0392b; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.footer .logo__sub { color: #fff; }
.footer__top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__cols { display: flex; gap: clamp(2rem, 5vw, 5rem); flex-wrap: wrap; }
.footer h3 { font: 600 .78rem/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 1.1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .9rem; flex-wrap: wrap; }

/* Cursor-Label */
.cursor-label { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; padding: .45em .8em; font: 600 .78rem/1 var(--f-sans); letter-spacing: .04em; background: var(--ink); color: #fff; border-radius: 999px; opacity: 0; transform: translate(-100px, -100px); transition: opacity .18s ease; white-space: nowrap; }
.cursor-label.is-on { opacity: 1; }
@media (hover: none) { .cursor-label { display: none; } }

/* Reveal-Startzustand (nur mit JS) */
.js [data-reveal] { opacity: 0; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page { padding: calc(var(--header-h) + 4rem) 0 6rem; }
.page .container { max-width: 860px; }
.page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 2.5rem; }
.page h2 { font-size: 1.45rem; margin: 2.6rem 0 .9rem; }
.page h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.page a { color: var(--brand); }
.draft { background: #fff6d6; border: 1px solid #e8c547; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .95rem; margin-bottom: 2.5rem; }
.todo { background: #fff0b3; padding: 0 .3em; border-radius: 2px; }
.header--page { background: rgba(244, 243, 241, .92); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.header--page .nav { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-row: span 1; min-height: 380px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__cta { display: none; }
  .burger { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100svh - var(--header-h)); flex-direction: column; gap: 0; padding: 2rem var(--pad); background: var(--paper); transform: translateY(-110%); visibility: hidden; transition: transform .6s var(--ease-out), visibility 0s .6s; margin: 0; }
  .nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { font: 700 2rem/1.2 var(--f-slab); padding: .45em 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__phone-mobile { display: block; color: var(--brand); font-size: 1.3rem !important; border: 0 !important; margin-top: 1rem; }
  .header__inner { gap: 1rem; }
  .logo { font-size: 1rem; }

  .build { height: 360vh; }
  .build__hero { top: calc(var(--header-h) + 1.2rem); transform: none; max-width: none; right: var(--pad); }
  .hero__title { font-size: clamp(2.1rem, 8.6vw, 3.4rem); margin-bottom: .9rem; }
  .hero__lead { font-size: 1rem; margin-bottom: 1.2rem; }
  .hero__ctas .btn { padding: .85em 1.25em; font-size: .95rem; }
  .hero__scroll { display: none; }
  .kicker { font-size: .72rem; letter-spacing: .12em; margin-bottom: 1rem; }

  /* Kompakte Schritt-Karte unten */
  .steps { width: auto; right: var(--pad); bottom: 64px; }
  .step { background: rgba(244, 243, 241, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 1rem 1.1rem .9rem; border-radius: 10px; box-shadow: 0 12px 30px -18px rgba(21, 22, 26, .35); transform: translateY(14px); }
  .step__num { display: inline-block; font-size: 1.5rem; -webkit-text-stroke: 1.2px var(--brand); margin: 0 .45rem 0 0; vertical-align: baseline; }
  .step__title { display: inline; font-size: 1.3rem; }
  .step p { font-size: .94rem; line-height: 1.45; margin: .45rem 0 0; }
  .step .btn { margin-top: .8rem; padding: .75em 1.2em; font-size: .92rem; }
  .progress { bottom: 34px; }
  .progress__labels { display: none; }
  .progress__bar { height: 3px; border-radius: 3px; overflow: hidden; }

  .why__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .why__sticky { position: static; }
  .about__badge { right: 1rem; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card--feature { grid-column: span 1; }
  .card { min-height: 0; }
  .card h3 { margin-top: 1.5rem; }
  .contact__list li { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; }
}

/* ---------- Fallback ohne WebGL ---------- */
.no-webgl .build__hero { position: relative; top: auto; left: auto; transform: none; max-width: 760px; padding: calc(var(--header-h) + 4rem) var(--pad) 3rem; }
.no-webgl .steps { position: relative; left: auto; bottom: auto; width: auto; padding: 0 var(--pad) 5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.no-webgl .step { position: relative; opacity: 1; visibility: visible; transform: none; filter: none; }
.no-webgl .step__num { font-size: 3rem; }
.no-webgl .progress { display: none; }
.no-webgl .hero__scroll { display: none; }

/* Touch-Geräte: Leistungsfotos immer zeigen (kein Hover) */
@media (hover: none) {
  .card--photo { color: #fff; }
  .card--photo .card__photo { opacity: 1; transform: none; }
  .card--photo::after { opacity: 1; }
  .card--photo .card__num { color: rgba(255, 255, 255, .75); }
}

/* Handy im Querformat: Text links, Modell rechts */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .build__hero { top: calc(var(--header-h) + .6rem); right: auto; max-width: 52vw; }
  .hero__title { font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
  .hero__lead { display: none; }
  .steps { right: auto; width: 46vw; bottom: 40px; }
  .step p { font-size: .88rem; }
  .progress { bottom: 18px; }
}
/* Sehr kleine Handys */
@media (max-width: 360px) {
  .hero__lead { display: none; }
}
