/* =====================================================================
   SP4CE HANDELS GmbH – Website
   Farben aus dem Logo-Paket (LIES-MICH_Farben-und-Verwendung.txt):
   Navy #081026 · Rot #930431 · Grau #8A8C8F · Silber #DADADD · Weiß #FFFFFF
   ===================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #081026;
  --ink: #04070f;
  --ink-2: #0a0f1f;
  --red: #930431;
  --red-hi: #c8174f;      /* aufgehellter Markenrot-Ton nur für Licht/Glow */
  --red-text: #ff7a9c;    /* lesbarer Rotton für kleine Texte auf Dunkel */
  --grey: #8a8c8f;
  --silver: #dadadd;
  --white: #ffffff;
  --text: #dadadd;
  --text-dim: #a3a5aa;
  --glass: rgba(14, 20, 42, 0.52);
  --glass-strong: rgba(10, 15, 33, 0.78);
  --glass-line: rgba(218, 218, 221, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: radial-gradient(120% 90% at 50% 0%, #0b1530 0%, var(--navy) 38%, var(--ink) 100%) fixed, var(--ink);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; border-radius: 6px; }

/* ---------- Hintergrund: Sternenfeld, Licht, Planet ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop .glow {
  position: absolute; left: 50%; top: 46%; width: 120vmax; height: 120vmax; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(200, 23, 79, 0.20), rgba(147, 4, 49, 0.08) 40%, transparent 70%);
  opacity: 0.55;
}
.backdrop .ghost {
  position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); aspect-ratio: 1402.5 / 1262; translate: -50% -50%;
  background: url("../brand/markenbild-komplett.svg") center / contain no-repeat;
  opacity: var(--ghost, 0);
  filter: blur(1px);
  transition: opacity 0.4s linear;
}
.backdrop .planet {
  position: absolute; right: -14vmax; bottom: -16vmax; width: 60vmax; aspect-ratio: 1;
  background: url("../brand/symbol-planet.svg") center / contain no-repeat;
  opacity: 0.045;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 10, 24, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--glass-line);
}
.nav-inner { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: flex; align-items: center; text-decoration: none; }
.brand-link img { height: 42px; width: auto; }
.nav-list { display: flex; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  text-decoration: none; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--silver);
  padding: 8px 2px; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--glass-line);
  background: rgba(14, 20, 42, 0.5); cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--silver); border-radius: 2px; position: relative; transition: transform 0.3s ease, background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 28px;
    background: rgba(5, 8, 20, 0.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-line);
    opacity: 0; visibility: hidden; translate: 0 -10px; transition: opacity 0.25s ease, translate 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.25s ease, translate 0.25s ease; }
  .nav-list li { border-bottom: 1px solid var(--glass-line); }
  .nav-list a { display: block; padding: 18px 2px; font-size: 0.9rem; }
  .nav-list a::after { display: none; }
  .brand-link img { height: 36px; }
}

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; color: var(--grey);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); border-radius: 2px; }
.hero h1 {
  margin: 0 0 22px; font-weight: 750; color: var(--white);
  font-size: clamp(2rem, 3.6vw, 3.35rem); line-height: 1.08; letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--red-hi); display: block; }
.hero h1 .line { display: block; }
.hero .lead-title {
  margin: 0 0 10px; font-size: clamp(0.82rem, 1vw, 0.92rem); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 650; color: var(--silver);
}
.hero .lead { margin: 0 0 32px; color: var(--text-dim); max-width: 34em; font-size: clamp(0.98rem, 1.1vw, 1.06rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  --b: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--b);
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  isolation: isolate; overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  translate: -120% 0; transition: translate 0.7s var(--ease-out);
}
.btn:hover::before { translate: 120% 0; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(200, 23, 79, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 122, 156, 0.4), 0 16px 40px -10px rgba(200, 23, 79, 0.85), 0 0 36px rgba(200, 23, 79, 0.35); }
.btn-ghost { background: rgba(14, 20, 42, 0.45); color: var(--silver); border-color: rgba(218, 218, 221, 0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--red-hi); color: #fff; box-shadow: 0 0 28px rgba(200, 23, 79, 0.35); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Bühne mit dem Markenbild */
.hero-stage { --stage-h: min(78vh, 860px); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: var(--stage-h); }
@supports (height: 1svh) { .hero-stage { --stage-h: min(78svh, 860px); } }
.brand-flip { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; perspective: 1400px; transform-style: preserve-3d; }
.brand-tilt { position: relative; transform-style: preserve-3d; will-change: transform; width: min(100%, calc(var(--stage-h) * 1.1113)); aspect-ratio: 1402.5 / 1262; }
.brand {
  position: absolute; inset: 0; transform-style: preserve-3d;
  --px: 0; --py: 0;
}
.layer {
  position: absolute; display: block; transform-origin: 50% 50%;
  translate: calc(var(--px) * var(--d) * 10px) calc(var(--py) * var(--d) * 8px);
  backface-visibility: hidden;
}
.layer img { width: 100%; height: 100%; object-fit: contain; transition: scale 0.35s var(--ease-out), filter 0.35s ease; }
a.layer { cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
a.layer::after {
  content: ""; position: absolute; inset: -12% -8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 23, 79, 0.28), transparent 70%);
  opacity: 0; transition: opacity 0.35s ease; z-index: -1;
}
a.layer:hover img, a.layer:focus-visible img, a.layer.is-touch img {
  scale: 1.07; filter: drop-shadow(0 0 10px rgba(200, 23, 79, 0.85)) drop-shadow(0 0 22px rgba(200, 23, 79, 0.45)) brightness(1.12);
}
a.layer:hover::after, a.layer:focus-visible::after, a.layer.is-touch::after { opacity: 1; }
.layer.flash img { animation: flash 0.75s ease-out; }
@keyframes flash {
  0% { filter: drop-shadow(0 0 0 rgba(200, 23, 79, 0)) brightness(1); }
  30% { filter: drop-shadow(0 0 16px rgba(220, 40, 95, 0.95)) drop-shadow(0 0 34px rgba(200, 23, 79, 0.6)) brightness(1.35); }
  100% { filter: drop-shadow(0 0 0 rgba(200, 23, 79, 0)) brightness(1); }
}

/* Lichtimpuls, maskiert auf die Form des Markenbilds */
.sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: url("../brand/markenbild-komplett.svg") center / 100% 100% no-repeat;
  mask: url("../brand/markenbild-komplett.svg") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 0%, transparent 38%, rgba(255, 90, 140, 0.95) 47%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 90, 140, 0.95) 53%, transparent 62%, transparent 100%);
  background-size: 320% 100%; background-position: 100% 0;
  mix-blend-mode: screen;
}
.sheen.logo-only {
  -webkit-mask-image: url("../brand/layer-logo.svg"); mask-image: url("../brand/layer-logo.svg");
}
.sheen.run { animation: sheen 1s cubic-bezier(0.45, 0, 0.25, 1) forwards; }
@keyframes sheen {
  0% { opacity: 0; background-position: 100% 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; background-position: 0% 0; }
}
.stage-halo {
  position: absolute; left: 50%; top: 50%; width: 90%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 23, 79, 0.18), rgba(147, 4, 49, 0.06) 55%, transparent 75%);
  opacity: 0.8;
}

.skip-intro {
  position: fixed; right: 20px; bottom: 20px; z-index: 120; display: none;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(218, 218, 221, 0.25);
  background: rgba(6, 10, 24, 0.55); color: var(--silver); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.skip-intro { white-space: nowrap; }
.skip-intro:hover { border-color: var(--red-hi); color: #fff; }

/* ----- Zustand während des Intros ----- */
html.is-intro body { overflow: hidden; }
html.is-intro .site-header { opacity: 0; translate: 0 -20px; pointer-events: none; }
html.is-intro .hero-copy, html.is-intro .contact-fab, html.is-intro main > section:not(.hero), html.is-intro .site-footer { opacity: 0; visibility: hidden; }
html.is-intro .hero { display: block; }
html.is-intro .hero-stage { --stage-h: 86vh; position: fixed; inset: 0; height: auto; padding: 7vh 5vw; z-index: 100; }
@supports (height: 1svh) { html.is-intro .hero-stage { --stage-h: 86svh; padding: 7svh 5vw; } }
html.is-intro .layer { opacity: 0; }
html.is-intro .skip-intro { display: inline-flex; }
html.is-intro .backdrop .glow { opacity: 0; }
.hero-copy > * { transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out); }
html.is-entering .hero-copy > * { opacity: 0; translate: 0 18px; }
html.is-entering .site-header { opacity: 0; translate: 0 -20px; }
html.is-entering .contact-fab { opacity: 0; }

/* ---------- Abschnitte ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 112px) var(--gutter); }
.container { max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 0 clamp(36px, 5vw, 60px); }
.section-head h2 { margin: 0 0 16px; color: #fff; font-weight: 750; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; }
.section-head p { margin: 0; color: var(--text-dim); font-size: 1.04rem; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service {
  position: relative; padding: 28px 26px 26px; overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0; transition: opacity 0.3s ease;
}
.service:hover, .service:target { transform: translateY(-4px); border-color: rgba(200, 23, 79, 0.45); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(200, 23, 79, 0.35); }
.service:hover::before, .service:target::before { opacity: 1; }
.service .icon { height: 64px; width: auto; margin: 0 0 22px; filter: drop-shadow(0 0 0 transparent); transition: filter 0.3s ease; }
.service:hover .icon { filter: drop-shadow(0 0 12px rgba(200, 23, 79, 0.6)); }
.service h3 { margin: 0 0 10px; font-size: 0.92rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; font-weight: 700; }
.service p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }
.service.featured { border-color: rgba(200, 23, 79, 0.4); background: linear-gradient(160deg, rgba(147, 4, 49, 0.22), rgba(14, 20, 42, 0.55) 55%); }
.service .more { display: inline-flex; margin-top: 16px; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--red-text); text-decoration: none; }
.service .more:hover { color: #fff; }
.tag { position: absolute; top: 18px; right: 18px; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--red); padding: 5px 10px; border-radius: 999px; }

/* Sourcing */
.sourcing-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sourcing-title { margin: 0 0 6px; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.sourcing-title .r { color: var(--red-hi); display: block; }
.sourcing-sub { margin: 0 0 26px; font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.sourcing-copy p { color: var(--text-dim); margin: 0 0 16px; }
.sourcing-copy p.q { color: #fff; font-size: 1.14rem; font-weight: 600; }
.sourcing-panel { padding: clamp(24px, 3vw, 36px); }
.sourcing-panel h3 { margin: 0 0 16px; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; }
.checklist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: var(--silver); font-size: 0.97rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 2px; background: var(--red-hi); box-shadow: 0 0 10px rgba(200, 23, 79, 0.8); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(s, decimal-leading-zero); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(200, 23, 79, 0.6); color: #fff; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em;
  background: radial-gradient(circle, rgba(147, 4, 49, 0.45), rgba(147, 4, 49, 0.08));
}
.steps strong { display: block; color: #fff; font-size: 0.95rem; }
.steps span { color: var(--text-dim); font-size: 0.92rem; }
.note { margin: 22px 0 0; font-size: 0.86rem; color: var(--grey); border-left: 2px solid var(--red); padding-left: 14px; }
.sourcing-badge { width: min(220px, 50%); margin: 0 0 26px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.contact-info { padding: clamp(24px, 3vw, 34px); display: grid; gap: 26px; }
.contact-info h3 { margin: 0 0 4px; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.contact-info address { font-style: normal; color: var(--silver); }
.contact-info a.mail { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(200, 23, 79, 0.6); }
.phone-card { display: grid; gap: 10px; }
.phone-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 14px 16px; border-radius: 14px; background: rgba(4, 7, 15, 0.45); border: 1px solid var(--glass-line); }
.phone-row .num { font-weight: 650; color: #fff; letter-spacing: 0.02em; text-decoration: none; font-size: 1.02rem; }
.phone-row .label { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.phone-actions { display: flex; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(218, 218, 221, 0.2); background: rgba(14, 20, 42, 0.6); color: var(--silver);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.25s;
}
.chip:hover { border-color: var(--red-hi); color: #fff; box-shadow: 0 0 18px rgba(200, 23, 79, 0.35); }
.chip svg { width: 15px; height: 15px; }
.wa-only { display: none !important; }
[data-whatsapp="on"] .wa-only { display: inline-flex !important; }

/* Formular */
.form { padding: clamp(22px, 3vw, 38px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.form legend { padding: 0; margin: 0 0 16px; font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 12px; width: 100%; }
.form legend::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(200, 23, 79, 0.6), transparent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.82rem; color: var(--silver); font-weight: 550; }
.field .opt { color: var(--grey); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  background: rgba(4, 7, 15, 0.55); border: 1px solid rgba(218, 218, 221, 0.16); color: #fff; font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: #0a0f1f; color: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(218, 218, 221, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(200, 23, 79, 0.25); background: rgba(4, 7, 15, 0.75); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .drop { border-color: #ff5c7f; }
.err { color: var(--red-text); font-size: 0.82rem; min-height: 0; }
.err:empty { display: none; }
.hint { font-size: 0.78rem; color: var(--grey); }

.drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 4px; padding: 22px; border-radius: 14px;
  border: 1px dashed rgba(218, 218, 221, 0.28); background: rgba(4, 7, 15, 0.4); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.drop:hover, .drop.is-over { border-color: var(--red-hi); background: rgba(147, 4, 49, 0.12); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop strong { color: #fff; font-size: 0.92rem; }
.files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--silver); padding: 8px 12px; border-radius: 10px; background: rgba(4, 7, 15, 0.45); border: 1px solid var(--glass-line); }
.files li .sz { color: var(--grey); white-space: nowrap; }
.files li.bad { border-color: #ff5c7f; color: var(--red-text); }
.files-reset { margin-top: 8px; background: none; border: 0; color: var(--red-text); font-size: 0.8rem; cursor: pointer; padding: 4px 0; text-decoration: underline; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9rem; color: var(--silver); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.check a { color: #fff; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-status { font-size: 0.92rem; }
.form-status.ok { color: #fff; background: rgba(28, 120, 80, 0.22); border: 1px solid rgba(80, 200, 140, 0.45); padding: 16px 18px; border-radius: 14px; width: 100%; }
.form-status.bad { color: var(--red-text); }
.product-fields { transition: opacity 0.3s ease; }
.product-fields[hidden] { display: none; }

/* Kontakt-Schnellzugriff */
.contact-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; transition: opacity 0.6s ease; }
.fab-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 122, 156, 0.4); background: var(--red); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(200, 23, 79, 0.8), 0 0 0 0 rgba(200, 23, 79, 0.6);
  animation: fabPulse 3.2s ease-out 1s 3;
}
.fab-btn svg { width: 24px; height: 24px; }
@keyframes fabPulse { 0% { box-shadow: 0 12px 30px -8px rgba(200, 23, 79, 0.8), 0 0 0 0 rgba(200, 23, 79, 0.55); } 70% { box-shadow: 0 12px 30px -8px rgba(200, 23, 79, 0.8), 0 0 0 16px rgba(200, 23, 79, 0); } 100% { box-shadow: 0 12px 30px -8px rgba(200, 23, 79, 0.8), 0 0 0 0 rgba(200, 23, 79, 0); } }
.fab-panel {
  position: absolute; right: 0; bottom: 72px; width: min(340px, calc(100vw - 36px)); padding: 16px; display: grid; gap: 10px;
  background: var(--glass-strong); opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity 0.25s ease, translate 0.25s ease, visibility 0s linear 0.25s;
}
.fab-panel.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.25s ease, translate 0.25s ease; }
.fab-panel .fab-title { margin: 2px 4px 2px; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); font-weight: 650; }
.fab-panel .phone-row { padding: 12px; }
.fab-panel .btn { min-height: 46px; width: 100%; }

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 300; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: rgba(6, 10, 24, 0.92); border: 1px solid rgba(200, 23, 79, 0.6); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 0.85rem;
  transition: opacity 0.25s ease, translate 0.25s ease;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--glass-line); padding: 40px var(--gutter) 32px; background: rgba(4, 7, 15, 0.65); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand small { color: var(--grey); font-size: 0.8rem; line-height: 1.4; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; color: var(--silver); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; color: var(--grey); font-size: 0.78rem; margin: 6px 0 0; }

/* Rechtstexte */
.legal { position: relative; z-index: 1; padding: calc(var(--header-h) + 48px) var(--gutter) 80px; }
.legal .container { max-width: 880px; }
.legal-card { padding: clamp(24px, 4vw, 52px); }
.legal h1 { margin: 0 0 8px; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.legal h2 { margin: 36px 0 10px; color: #fff; font-size: 1.12rem; letter-spacing: 0.02em; }
.legal h3 { margin: 22px 0 6px; color: var(--silver); font-size: 0.98rem; }
.legal p, .legal li { color: var(--text-dim); }
.legal a { color: #fff; }
.legal .meta { color: var(--grey); font-size: 0.86rem; margin: 0 0 28px; }
.ph { background: rgba(255, 196, 0, 0.14); border: 1px dashed rgba(255, 196, 0, 0.7); color: #ffd666; padding: 1px 6px; border-radius: 6px; font-weight: 600; font-size: 0.92em; }
.ph-box { background: rgba(255, 196, 0, 0.08); border: 1px dashed rgba(255, 196, 0, 0.55); border-radius: 12px; padding: 14px 16px; color: #ffe08a; font-size: 0.9rem; margin: 0 0 24px; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; translate: 0 0; }
.services .reveal:nth-child(2) { transition-delay: 0.07s; }
.services .reveal:nth-child(3) { transition-delay: 0.14s; }
.services .reveal:nth-child(5) { transition-delay: 0.07s; }
.services .reveal:nth-child(6) { transition-delay: 0.14s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px), (max-aspect-ratio: 1/1) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: calc(var(--header-h) + 8px); align-content: start; }
  .hero-stage { order: -1; height: auto; --stage-h: 54vh; padding: 8px 0 4px; }
  .brand-tilt { width: min(100%, 640px, calc(var(--stage-h) * 1.1113)); }
  .hero-copy { text-align: left; }
  .sourcing-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .cta-row .btn { width: 100%; }
  .phone-row { padding: 12px; }
  .contact-fab { right: 14px; bottom: 14px; }
  .skip-intro { right: 50%; translate: 50% 0; bottom: 18px; }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; translate: none; }
  .layer { translate: none; }
}
/* ---- Ebenen des Markenbilds (automatisch aus dem Original-SVG berechnet) ---- */
.L-logo{left:2.9440%;top:2.0127%;width:92.7009%;height:39.9889%;--d:0.55}
.L-claim{left:10.7594%;top:44.3994%;width:78.4378%;height:6.6244%;--d:0.3}
.L-i1{left:1.7797%;top:54.7908%;width:12.6481%;height:16.1989%;--d:1}
.L-i2{left:22.5198%;top:54.5713%;width:12.0734%;height:16.4588%;--d:1}
.L-i3{left:43.9793%;top:55.7441%;width:11.5016%;height:15.2448%;--d:1}
.L-i4{left:63.0809%;top:54.8582%;width:11.5087%;height:16.1490%;--d:1}
.L-i5{left:80.6210%;top:55.6648%;width:17.6071%;height:15.3946%;--d:1}
.L-divider{left:17.3954%;top:55.0713%;width:61.3447%;height:13.9398%;--d:0.7}
.L-tagline{left:5.7497%;top:74.3637%;width:88.0520%;height:3.1141%;--d:0.4}
.L-sourcing{left:5.8182%;top:79.7464%;width:87.9144%;height:17.7496%;--d:0.85}

/* ---- WordPress ---- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin: 0.25em 0; }
.entry img { height: auto; border-radius: 12px; }
.entry a:hover { color: var(--red-text); }
