/* ============================================================
   KN-Office-Visualizer — Architectural Editorial
   Helles, ruhiges Manufaktur-Design. Gidole + K+N-Orange.
   Signatur-Motiv: die Winkel-Geometrie des K+N-Zeichens
   (45°-Eckschnitt). Handgeschriebenes CSS, kein Build.
   ============================================================ */

/* Schriften der Kunden-Website (elemente-edelstahl.de), selbst gehostet (DSGVO):
   Open Sans (variable, 400-700) für Fließtext, Open Sans Condensed Bold für Headlines. */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/OpenSans-Variable.woff2') format('woff2');
}
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/OpenSansCondensed-Bold.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
    --ink:        #18262E;   /* warm near-black */
    --ink-soft:   #24333C;
    --paper:      #F7F9FA;   /* warm gallery off-white */
    --paper-2:    #EDF1F3;   /* warm sand, section banding */
    --paper-pure: #FFFFFF;
    --line:       #DDE3E7;   /* warm hairline */
    --line-strong:#C0CAD1;
    --muted:      #62707A;   /* warm grey */

    --accent:        #EF7902;  /* Elemente-aus-Edelstahl-Orange (CI von elemente-edelstahl.de) */
    --accent-hover:  #C96502;
    --accent-soft:   rgba(239,121,2,0.09);

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 12px;

    --shadow-1: 0 1px 2px rgba(24,38,46,0.05);
    --shadow-2: 0 18px 50px -24px rgba(24,38,46,0.30);
    --shadow-3: 0 40px 90px -36px rgba(24,38,46,0.45);

    --max:        1400px;
    --max-narrow: 760px;
    --form-max:   880px;
    --bezier: cubic-bezier(0.22, 1, 0.36, 1);

    --sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --display: 'Open Sans Condensed', 'Open Sans', sans-serif;

    /* 45°-Eckschnitt als Marken-Motiv */
    --notch: 26px;
    --clip-notch: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Container ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 3vw, 52px); }
.container--narrow { max-width: var(--max-narrow); }
.no-wrap { white-space: nowrap; }
/* Verhindert Ein-Wort-Umbrüche (Hurenkinder) in Fließtexten — progressive enhancement */
p { text-wrap: pretty; }
h1, h2, h3, .section-title { text-wrap: balance; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
@media (min-width: 640px) { .site-header__inner { padding: 18px 40px; } }
.site-header__brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.25s ease;
}
.site-header__brand:hover { color: var(--accent); }
.site-header__brand svg, .site-header__brand img { height: 21px; width: auto; display: block; }
.site-header__meta {
    display: none;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
@media (min-width: 860px) { .site-header__meta { display: inline-flex; align-items: center; gap: 10px; } }
.site-header__meta::before { content: ''; width: 26px; height: 1px; background: var(--line-strong); }
.site-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--bezier);
    white-space: nowrap;
}
.site-header__cta:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

/* ---------- Hero (Cybercore — aufsteigende Orange-Lichtstrahlen) ---------- */
.hero {
    position: relative;
    min-height: min(94vh, 940px);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
      radial-gradient(120% 80% at 50% 100%, rgba(239,121,2,0.18) 0%, transparent 55%),
      radial-gradient(90% 60% at 50% 0%, rgba(255,148,51,0.05) 0%, transparent 60%),
      #0B1218;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__floor {
    position: absolute; left: -50%; right: -50%; bottom: 0; height: 72vh;
    background-image:
      linear-gradient(rgba(239,121,2,0.38) 1px, transparent 1px),
      linear-gradient(90deg, rgba(239,121,2,0.38) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(420px) rotateX(72deg);
    transform-origin: bottom center;
    animation: moveGrid 7s linear infinite;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.4) 45%, transparent 78%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.4) 45%, transparent 78%);
}
.hero__floor::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center bottom, rgba(239,121,2,0.85) 0%, transparent 60%); opacity: 0.5; mix-blend-mode: screen; animation: floorGlow 5s ease-in-out infinite; }
.hero__column { position: absolute; top: -10%; bottom: 0; left: 50%; transform: translateX(-50%); width: min(620px, 70vw); background: radial-gradient(ellipse at 50% 80%, rgba(255,148,51,0.5) 0%, transparent 62%); filter: blur(26px); opacity: 0.55; animation: mainGlow 4.5s ease-in-out infinite alternate; }
/* Räume-Ebene: echte K+N-Räume bauen sich vom Boden auf + Crossfade */
.hero__rooms { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero__room { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; will-change: opacity; }
.hero__room.is-on { opacity: 1; z-index: 2; animation: heroBuild 1.7s var(--bezier) forwards; }
.hero__room img { width: 100%; height: 100%; object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 24%);
    mask-image: linear-gradient(to top, transparent 0%, #000 24%); }
.hero__room.is-on img { animation: heroKen 9s ease-out both; }
/* Dunkel-orange Kino-Grading + Links-Scrim für Text-Lesbarkeit */
.hero__rooms::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(11,18,24,0.70) 0%, rgba(11,18,24,0.30) 40%, transparent 70%),
      linear-gradient(180deg, rgba(11,18,24,0.5) 0%, transparent 30%, rgba(11,18,24,0.32) 66%, rgba(11,18,24,0.88) 100%),
      radial-gradient(120% 90% at 50% 112%, rgba(239,121,2,0.30) 0%, transparent 52%); }
/* Top + Bottom abdunkeln — Header oben IMMER gut lesbar, Übergang nach unten sauber */
.hero::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(11,18,24,0.90) 0%, rgba(11,18,24,0.35) 14%, transparent 30%, transparent 64%, rgba(11,18,24,0.45) 100%); }
/* Inhalts-Spalte: trägt Zentrierung (max-width/margin via .container) + füllt die Hero-Höhe */
.hero__inner { position: relative; z-index: 3; display: flex; flex-direction: column; min-height: min(94vh, 940px); }

@keyframes heroBuild { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroKen { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes floorGlow { 0%, 100% { transform: scale(0.95); opacity: 0.45; } 50% { transform: scale(1.05); opacity: 0.8; } }
@keyframes mainGlow { from { opacity: 0.4; filter: blur(30px); } to { opacity: 0.65; filter: blur(20px); } }
@keyframes moveGrid { from { background-position: 0 0; } to { background-position: -64px -64px; } }

.hero__nav {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-top: 28px; padding-bottom: 24px;
}
.hero__logo { display: inline-flex; color: #fff; text-decoration: none; transition: opacity 0.25s ease; }
.hero__logo svg { height: 38px; width: auto; display: block; }
@media (min-width: 720px) { .hero__logo svg { height: 52px; } }
.hero__logo:hover { opacity: 0.82; }
.hero__navcta {
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff; text-decoration: none; font-size: 13px; letter-spacing: 0.02em;
    padding: 11px 20px; border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius-sm);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--bezier);
    white-space: nowrap;
}
.hero__navcta:hover { background: rgba(255,255,255,0.14); border-color: #fff; transform: translateY(-1px); }
.hero__navcta svg { transition: transform 0.25s var(--bezier); }
.hero__navcta:hover svg { transform: translateX(3px); }

.hero__content { margin-top: auto; padding-bottom: clamp(88px, 13vh, 150px); max-width: 880px; }
.hero__content > * { opacity: 0; animation: rise 0.9s var(--bezier) forwards; }
.hero__content > .eyebrow        { animation-delay: 0.15s; }
.hero__content > .hero__headline { animation-delay: 0.26s; }
.hero__content > .hero__sub      { animation-delay: 0.40s; }
.hero__content > .hero__actions  { animation-delay: 0.52s; }
.hero__content > .trust          { animation-delay: 0.62s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px; font-weight: 400; color: var(--accent); margin: 0 0 24px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--accent); }
.eyebrow--light { color: #ffffff; text-shadow: 0 1px 10px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.8); font-size: 12.5px; letter-spacing: 0.14em; font-weight: 600; margin-bottom: 18px; }
.eyebrow--light::before { background: #FFAD66; box-shadow: 0 1px 4px rgba(0,0,0,0.6); }

.hero__headline { font-family: var(--display); font-weight: 700; font-size: clamp(50px, 8vw, 104px); line-height: 0.98; letter-spacing: -0.01em; margin: 0; color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,0.5); }
.hero__headline em { font-style: normal; color: #FF9433; text-shadow: 0 0 32px rgba(239,121,2,0.6), 0 0 72px rgba(255,148,51,0.35); }
.hero__sub { margin: 28px 0 36px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: rgba(255,255,255,0.9); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.trust { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.28); display: flex; flex-wrap: wrap; gap: 14px 34px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.96); list-style: none; padding-left: 0; }
.trust__item { display: inline-flex; align-items: center; gap: 9px; }
.trust__check { width: 19px; height: 19px; border-radius: 50%; background: var(--accent); box-shadow: 0 1px 8px rgba(239,121,2,0.5); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.trust__check svg { width: 11px; height: 11px; }

/* ---------- Mobile-Hero: Raum als volle 16:9-Totale oben, Text darunter ---------- */
@media (max-width: 640px) {
    .hero__inner { min-height: auto; }
    /* Raumbild auf eine 16:9-Bande oben begrenzen → der GANZE Raum bleibt sichtbar (keine harte Detail-Beschneidung) */
    .hero__rooms { bottom: auto; height: 58vw; min-height: 198px; }
    /* Text sitzt jetzt UNTER dem Bild → kein Links-Scrim mehr nötig, nur sauberer Verlauf nach unten */
    .hero__rooms::after { background: linear-gradient(180deg, rgba(11,18,24,0.26) 0%, transparent 22%, transparent 60%, rgba(11,18,24,0.94) 100%); }
    .hero__room img { -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%); mask-image: linear-gradient(to top, transparent 0%, #000 30%); }
    /* Inhalt unter die Bildbande schieben (Glow-Hintergrund bleibt dahinter) */
    .hero__content { margin-top: 0; padding-top: calc(58vw - 58px); padding-bottom: 52px; }
}

/* ---------- Showcase (Vorher/Nachher) ---------- */
.showcase { padding: clamp(44px, 7vh, 84px) 0 clamp(40px, 6vh, 72px); }
.showcase__head { max-width: 720px; margin: 0 0 42px; }
.showcase__head .eyebrow { color: var(--accent); }
.showcase__sub { margin: 18px 0 0; color: #3E4A52; font-size: 22px; line-height: 1.6; max-width: 56ch; }
.showcase__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-3); clip-path: var(--clip-notch); }
.showcase__frame .compare { border: none; border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
@media (min-width: 720px) { .showcase__frame .compare { aspect-ratio: 16 / 9; } }
.showcase__frame .compare__layer { transition: opacity 0.6s ease; }
.showcase [data-compare].is-swapping .compare__layer { opacity: 0.85; }
.showcase__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.showcase__caption { font-size: 15px; color: #57646D; letter-spacing: 0.02em; }
.showcase__dots { display: flex; gap: 10px; }
.showcase__dots button { width: 30px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background 0.25s ease, width 0.25s ease; cursor: pointer; }
.showcase__dots button.is-active { background: var(--accent); width: 46px; }

/* ---------- How it works ---------- */
.how { padding: clamp(64px, 10vh, 116px) 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how__head { max-width: 700px; margin: 0 0 50px; }
.how__head .eyebrow { color: var(--accent); }
.how__grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .how__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.how__step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.how__num { font-size: 12px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; margin: 0 0 18px; }
.how__icon { width: 40px; height: 40px; color: var(--ink); margin: 0 0 18px; stroke-width: 1.5; }
.how__title { font-size: 24px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 12px; }
.how__text { color: #46535C; margin: 0; line-height: 1.65; font-size: 16.5px; }

/* ---------- Gallery marquee ---------- */
.gallery { padding: clamp(64px, 10vh, 116px) 0 clamp(40px, 6vh, 64px); overflow: hidden; }
.gallery__head { margin: 0 0 38px; }
.gallery__head .eyebrow { color: var(--accent); }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 52s linear infinite; }
.gallery:hover .marquee__track { animation-play-state: paused; }
.marquee__item { position: relative; width: clamp(260px, 30vw, 380px); aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); flex: 0 0 auto; }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; }
.marquee__cap { position: absolute; left: 12px; bottom: 12px; background: rgba(23,21,15,0.72); color: var(--paper); font-size: 12px; letter-spacing: 0.04em; padding: 5px 12px; border-radius: var(--radius-sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Scroll reveals (nur aktiv wenn JS läuft) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--bezier), transform 0.75s var(--bezier); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
    .hero__floor, .hero__floor::after, .hero__column { animation: none !important; }
    .hero__room.is-on, .hero__room.is-on img { animation: none !important; clip-path: none !important; transform: none !important; }
    .hero__content > * { opacity: 1 !important; animation: none !important; transform: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Buttons (architectural, low radius) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--sans);
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    text-decoration: none;
    min-height: 52px;
    white-space: nowrap;
    position: relative;
    transition: transform 0.25s var(--bezier), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.btn svg { transition: transform 0.25s var(--bezier); }
.btn:hover:not(:disabled) svg { transform: translateX(3px); }

.btn--accent { background: linear-gradient(180deg, #FB9026 0%, var(--accent) 58%, #CC6702 100%); color: #fff; box-shadow: 0 16px 34px -12px rgba(239,121,2,0.7), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.btn--accent:hover:not(:disabled) { background: linear-gradient(180deg, #F98F2A 0%, var(--accent-hover) 100%); transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(239,121,2,0.75); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover:not(:disabled) { background: var(--accent); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover:not(:disabled) { background: var(--paper-pure); border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost-light:hover:not(:disabled) { background: var(--paper-pure); border-color: var(--ink); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; filter: saturate(0.6); }
.btn:disabled svg { transform: none; }
/* Upload-CTA deaktiviert: neutral-beige statt blassem Warn-Orange; aktiv = volles Akzent-Orange */
#to-step-2:disabled { background: var(--paper-2); color: var(--muted); border: 1px solid var(--line-strong); opacity: 1; filter: none; box-shadow: none; }
.btn--lg { padding: 19px 34px; font-size: 16px; min-height: 60px; }
.btn--block { width: 100%; }

/* ---------- Section titles ---------- */
.section-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.005em;
    margin: 0;
}
.section-title em { font-style: normal; color: var(--accent); }

/* ---------- Funnel ---------- */
.funnel { padding: 40px 0 110px; }
@media (max-width: 720px) { .funnel { padding: 24px 0 80px; } }
/* Funnel an derselben linken Grid-Kante wie Hero/Showcase, lesbare Spaltenbreite */
.funnel .step { max-width: var(--form-max); margin: 0 auto; text-align: center; }

.step { display: none; animation: stepIn 0.55s var(--bezier); }
.step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.step__progress { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 34px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); text-align: center; }
.step__progress > span:first-child { white-space: nowrap; }
.step__progress-bar { width: 100%; max-width: 280px; height: 2px; background: var(--line); overflow: hidden; position: relative; }
.step__progress-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; }
.step.is-active .step__progress-fill { animation: progressFill 0.9s var(--bezier) forwards; }
@keyframes progressFill { to { width: var(--progress, 50%); } }

/* ---------- Upload (Step 1) ---------- */
.upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 52px 32px;
    background: var(--paper-pure);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    cursor: pointer;
    clip-path: var(--clip-notch);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.upload::after {
    content: '';
    position: absolute; inset: 14px;
    border: 1.5px dashed rgba(239,121,2,0.4);
    pointer-events: none;
    transition: border-color 0.3s ease;
    clip-path: var(--clip-notch);
}
.upload:hover { background: var(--accent-soft); box-shadow: var(--shadow-2); }
.upload:hover::after { border-color: var(--accent); }
.upload.is-dragover { background: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.upload.is-dragover::after { border-color: var(--accent); }
.upload__icon { width: 52px; height: 52px; color: var(--accent); margin-bottom: 22px; transition: transform 0.3s var(--bezier); }
.upload:hover .upload__icon { transform: translateY(-4px); }
.upload__title { font-weight: 400; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); max-width: 20ch; margin: 0; }
.upload__title em { font-style: normal; color: var(--accent); }
.upload__hint { margin: 14px 0 0; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.upload__preview { max-height: 250px; width: auto; border-radius: var(--radius); margin: 0 auto; }
.upload__error { color: #B3401C; font-size: 14px; margin-top: 14px; }

.step__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 30px; }

/* ---------- Fields (Step 2) ---------- */
.fields { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 30px; text-align: left; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: block; position: relative; }
.field__label { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
.field__input {
    display: block; width: 100%;
    background: var(--paper-pure);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 15px 18px;
    font: inherit; color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field__input::placeholder { color: rgba(111,104,92,0.5); font-style: italic; }
.field__input:hover { border-color: var(--line-strong); }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
select.field__input { cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F685C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field--count { margin-top: 26px; text-align: left; }
.field__hint { display: block; margin-top: 9px; font-size: 13px; color: var(--muted); }

/* ---------- Loading (Step 3) ---------- */
.loading { background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 60px 36px; text-align: center; position: relative; overflow: hidden; clip-path: var(--clip-notch); }
.loading::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--accent-soft), transparent); transform: translateX(-100%); animation: shimmer 2.6s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }
.loading > * { position: relative; z-index: 1; }
.loading__pulse { margin: 0 auto 28px; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); position: relative; animation: pulse 2s ease-in-out infinite; }
.loading__pulse::before, .loading__pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2s ease-in-out infinite; }
.loading__pulse::after { animation-delay: 1s; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.86); opacity: 0.85; } }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.2); opacity: 0; } }
.loading__title { font-weight: 400; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.loading__step { color: var(--muted); font-size: 15px; margin: 0; min-height: 1.6em; }
.loading__hint { color: var(--muted); font-size: 12px; margin-top: 24px; opacity: 0.8; letter-spacing: 0.04em; }

/* ---------- Compare slider ---------- */
.compare {
    position: relative; width: 100%; overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--paper-2);
    aspect-ratio: 16 / 10;
    user-select: none; -webkit-user-select: none;
    cursor: ew-resize; touch-action: none;
    box-shadow: var(--shadow-2);
}
.compare > * { pointer-events: none; }
.compare__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-drag: none; }
.compare__top { position: absolute; inset: 0; overflow: hidden; }
.compare__label { position: absolute; top: 16px; padding: 7px 15px; font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; border-radius: var(--radius-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.compare__label--before { left: 16px; background: rgba(23,21,15,0.72); color: var(--paper); }
.compare__label--after  { right: 16px; background: rgba(239,121,2,0.94); color: #fff; }
.compare__divider { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }
.compare__handle { position: absolute; top: 50%; width: 50px; height: 50px; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.22), 0 0 0 4px rgba(255,255,255,0.18); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.compare:hover .compare__handle { box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 6px rgba(239,121,2,0.18); }
.compare:active .compare__handle { transform: translate(-50%, -50%) scale(0.95); }
.compare__handle svg { width: 21px; height: 21px; color: var(--ink); }

/* ---------- Result (Step 4) ---------- */
.result { display: flex; flex-direction: column; gap: 26px; align-items: center; text-align: center; }
.result__header { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.result__header .section-title { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.result__header > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 52ch; }
.result__count { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); padding: 8px 16px; border-radius: 999px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.result .compare { width: 100%; }
.result__hi-res-block { display: flex; flex-direction: column; gap: 16px; }
.result__hi-res { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper-pure); box-shadow: var(--shadow-2); cursor: zoom-in; transition: box-shadow 0.25s; display: block; clip-path: var(--clip-notch); }
.result__hi-res img { width: 100%; transition: transform 0.5s var(--bezier); }
.result__hi-res:hover { box-shadow: var(--shadow-3); }
.result__hi-res:hover img { transform: scale(1.015); }
.result__fullscreen-badge { position: absolute; top: 16px; right: 16px; background: var(--paper-pure); border-radius: var(--radius-sm); padding: 8px 15px; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-1); }
.result__fullscreen-badge svg { width: 14px; height: 14px; }
.result__disclaimer { display: flex; align-items: flex-start; gap: 14px; background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 660px; text-align: left; margin: 0; }
.result__disclaimer::before { content: ''; display: block; flex-shrink: 0; width: 3px; align-self: stretch; background: var(--accent); }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Kontakt-Karte (Ergebnisseite): Norbert Dürr ---------- */
.contact-card { width: 100%; max-width: 660px; display: flex; gap: 26px; align-items: center; background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-2); text-align: left; margin-top: 6px; }
.contact-card__photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--paper-2); box-shadow: var(--shadow-1); }
.contact-card__eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.contact-card__name { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.contact-card__role { margin: 2px 0 10px; color: var(--muted); font-size: 14px; }
.contact-card__text { margin: 0 0 14px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.contact-card__links { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; }
.contact-card__links a { color: var(--ink); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; transition: color 0.2s; }
.contact-card__links a:hover { color: var(--accent); }
.contact-card__links svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 600px) {
    .contact-card { flex-direction: column; text-align: center; align-items: center; padding: 26px 22px; }
    .contact-card__links { align-items: center; }
}

/* ---------- CTA card (optional) ---------- */
.cta { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); overflow: hidden; position: relative; display: grid; isolation: isolate; }
@media (min-width: 720px) { .cta { grid-template-columns: 1.3fr 1fr; } }
.cta__body { padding: 44px; }
.cta__eyebrow { color: var(--accent); margin: 0 0 16px; }
.cta__title { font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.cta__title em { font-style: normal; color: var(--accent); }
.cta__text { font-size: 15px; line-height: 1.7; color: rgba(247,249,250,0.85); }
.cta__text strong { color: #fff; font-weight: 400; }
.cta__small { font-size: 13px; color: rgba(247,249,250,0.6); margin-top: 18px; }
.cta__actions { background: rgba(255,255,255,0.04); padding: 44px; display: flex; flex-direction: column; gap: 12px; justify-content: center; border-left: 1px solid rgba(255,255,255,0.06); }
.cta__leadid { text-align: center; margin: 8px 0 0; font-size: 11px; color: rgba(247,249,250,0.4); letter-spacing: 0.06em; }

/* ---------- Error box ---------- */
.error-box { background: rgba(179,64,28,0.06); border: 1px solid rgba(179,64,28,0.2); color: #7A2E15; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; }
.error-box__title { font-weight: 400; margin: 0; }
.error-box__hint { margin: 4px 0 12px; color: #8A3A1C; font-size: 14px; }
.error-box__btn { background: #7A2E15; color: #fff; padding: 8px 14px; font-size: 13px; border: none; border-radius: var(--radius-sm); cursor: pointer; }
.error-box__btn:hover { background: #8A3A1C; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,15,19,0.96); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn 0.25s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Stilwelten-Auswahl (Funnel Step 1) ---------- */
.styleworlds { border: 0; margin: 28px 0 0; padding: 0; text-align: center; }
.styleworlds__legend { font-size: 13px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); padding: 0; margin: 0 auto 12px; }
.styleworlds__hint { text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 13px; }
.styleworlds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
@media (max-width: 680px) { .styleworlds__grid { grid-template-columns: repeat(2, 1fr); } }
.styleworld { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-align: left; font-family: var(--sans); transition: border-color .2s var(--bezier), transform .2s var(--bezier), box-shadow .2s var(--bezier); }
.styleworld:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.styleworld__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--paper-2); }
.styleworld__body { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px 11px; }
.styleworld__name { font-size: 15px; color: var(--ink); line-height: 1.1; }
.styleworld__desc { font-size: 12px; color: var(--muted); line-height: 1.2; }
.styleworld.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.styleworld.is-active .styleworld__name { color: var(--accent-hover); }
.styleworld:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); box-shadow: 0 30px 100px rgba(0,0,0,0.6); cursor: default; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background: var(--paper-pure); border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-2); }
.lightbox__close:hover { background: var(--accent); color: #fff; }
.lightbox__hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(247,249,250,0.6); letter-spacing: 0.04em; }

/* ---------- Footer (dark, grounding) ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 0; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: 56px clamp(20px, 3vw, 52px); display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 720px) { .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__brand { color: var(--paper); display: inline-flex; }
.site-footer__brand svg, .site-footer__brand img { height: 40px; width: auto; }
.site-footer__legal { font-size: 12px; color: rgba(247,249,250,0.55); letter-spacing: 0.03em; }
.site-footer__nav { display: flex; gap: 24px; }
.site-footer__nav a { text-decoration: none; color: rgba(247,249,250,0.72); font-size: 13px; transition: color 0.2s; }
.site-footer__nav a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal-page { padding: 80px 0 100px; max-width: var(--max-narrow); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.legal-page h1 { font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 24px 0 12px; }
.legal-page h2 { font-weight: 400; font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.legal-page p, .legal-page li { line-height: 1.7; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page .toc-box { background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 32px 0; font-size: 14px; }
.legal-page .toc-box a { color: var(--muted); text-decoration: none; }
.legal-page .toc-box a:hover { color: var(--accent); }
.legal-page .dl-grid { display: grid; grid-template-columns: 1fr; gap: 4px 16px; margin: 16px 0 0; }
@media (min-width: 640px) { .legal-page .dl-grid { grid-template-columns: 200px 1fr; } }
.legal-page .dl-grid dt { color: var(--muted); }
.legal-page .dl-grid dd { margin: 0; }
.legal-page .back-link { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.legal-page .back-link:hover { color: var(--accent); }
.legal-page .muted { color: var(--muted); }
.legal-page .small { font-size: 13px; }

/* ---------- Utils ---------- */
.hidden { display: none !important; }
.skip-link { position: absolute; top: 0; left: 0; background: var(--ink); color: var(--paper); padding: 12px 20px; text-decoration: none; border-radius: 0 0 var(--radius) 0; font-size: 14px; z-index: 200; transform: translateY(-100%); transition: transform 0.2s ease; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .hero__inner > * { opacity: 1; }
}

/* ---------- Kunden-Logo (logo-ee.svg von elemente-edelstahl.de, Orange+Weiß für dunkle Flächen) ---------- */
.hero__logo img { height: 34px; width: auto; display: block; }
@media (min-width: 720px) { .hero__logo img { height: 44px; } }
.site-footer__brand img { height: 36px; width: auto; }

/* ---------- V2 Kurzseite: kompakter Header (Hero direkt vor dem Funnel) ---------- */
.hero--compact { min-height: min(78vh, 780px); }
.hero--compact .hero__inner { min-height: min(78vh, 780px); }
/* Desktop: mehr Luft zwischen Navigation, Headline und unterem Rand */
@media (min-width: 720px) {
    .hero--compact .hero__nav { padding-top: 40px; }
    .hero--compact .hero__content { padding-bottom: clamp(72px, 10vh, 120px); }
    .hero--compact .eyebrow--light { margin-bottom: 26px; }
    .hero--compact .hero__sub { margin: 30px 0 38px; }
}
