/* =========================================================
   IRIS Solutions GmbH – Design-System VERSION 7
   Basis: V6 ("Tech-Editorial"), verdichtet zu "Studio-Grade
   Editorial" – die Handschrift eines Design-Studios:
   - Durchgehendes Redaktions-Grid: jede Sektion beginnt mit
     einer Hairline + Mono-Indexnummer, Titel links, Lead rechts
   - Dritte Schrift: IBM Plex Mono fuer Labels, Nummern, Meta
     (selbst gehostet, DSGVO)
   - Asymmetrischer Hero: XXL-Display links, Meta-Spalte rechts,
     Kennzahlen als Hairline-Strip statt Glas-Kacheln
   - Leistungen als nummerierte Editorial-Liste statt Kartengrid
   - Referenzen mit Featured Case + Editorial-Grid
   - Restraint: schaerfere Radien, dezentere Aurora, weniger
     gleichzeitige Effekte, mehr Weissraum
   Alle V5/V6-Klassennamen bleiben gueltig (JS + Unterseiten
   kompatibel: Federn, Sheet, Momentum-Scroll, Theme, Header).
   ========================================================= */

/* ---- Selbst gehostete Schriften (latin) ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('fonts/bricolage.woff2?v=2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans.woff2?v=2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plex-mono-400.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plex-mono-500.woff2?v=1') format('woff2');
}

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

/* ---- HELL (Standard) ---- */
:root {
  color-scheme: light;
  --bg:            #f6f6f4;
  --surface:       #ffffff;
  --surface-2:     #eeeeea;
  --text:          #1a262e;
  --muted:         #5b6a72;
  --border:        rgba(26,38,46,.16);
  --hairline:      rgba(26,38,46,.12);
  --accent:        #f56e00;
  --accent-strong: #d95f00;
  --accent-soft:   #ffeede;
  --teal:          #60a5b2;
  --teal-strong:   #3f7d89;
  --teal-soft:     #e7f2f4;
  --dark:          #1c2b34;
  /* "Tinte": das tiefe Schiefer der dunklen Baender – themenunabhaengig */
  --ink:           #0c1216;
  --ink-2:         #141f26;
  --ink-text:      #f2f5f6;
  --ink-muted:     #97a8b0;
  --ink-line:      rgba(255,255,255,.10);
  --chrome:        rgba(246,246,244,.72);
  --pop-bg:        rgba(255,255,255,.88);
  --scrim:         rgba(13,18,22,.42);
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 1px 2px rgba(26,38,46,.05), 0 12px 32px rgba(26,38,46,.08);
  --shadow-pop:    0 12px 40px rgba(26,38,46,.18);
  --shadow-modal:  0 24px 80px rgba(13,18,22,.35);
  --ease-fluid:    cubic-bezier(.32,.72,0,1);
  --font-display:  'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body:     'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

/* ---- DUNKEL: manuell per Umschalter erzwungen ---- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #0f1519;
  --surface:       #171f25;
  --surface-2:     #222c33;
  --text:          #f2f5f6;
  --muted:         #9daab1;
  --border:        rgba(255,255,255,.16);
  --hairline:      rgba(255,255,255,.10);
  --accent:        #ff8226;
  --accent-strong: #ff9a4d;
  --accent-soft:   #33210f;
  --teal:          #6fb3c0;
  --teal-strong:   #8ccad6;
  --teal-soft:     #142329;
  --dark:          #131d23;
  --ink:           #0a0f13;
  --ink-2:         #121c23;
  --chrome:        rgba(15,21,25,.72);
  --pop-bg:        rgba(23,31,37,.90);
  --scrim:         rgba(0,0,0,.60);
  --shadow:        0 1px 2px rgba(0,0,0,.35), 0 12px 34px rgba(0,0,0,.45);
  --shadow-pop:    0 12px 40px rgba(0,0,0,.55);
  --shadow-modal:  0 24px 80px rgba(0,0,0,.65);
}

/* ---- DUNKEL: automatisch bei System-Vorliebe ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:            #0f1519;
    --surface:       #171f25;
    --surface-2:     #222c33;
    --text:          #f2f5f6;
    --muted:         #9daab1;
    --border:        rgba(255,255,255,.16);
    --hairline:      rgba(255,255,255,.10);
    --accent:        #ff8226;
    --accent-strong: #ff9a4d;
    --accent-soft:   #33210f;
    --teal:          #6fb3c0;
    --teal-strong:   #8ccad6;
    --teal-soft:     #142329;
    --dark:          #131d23;
    --ink:           #0a0f13;
    --ink-2:         #121c23;
    --chrome:        rgba(15,21,25,.72);
    --pop-bg:        rgba(23,31,37,.90);
    --scrim:         rgba(0,0,0,.60);
    --shadow:        0 1px 2px rgba(0,0,0,.35), 0 12px 34px rgba(0,0,0,.45);
    --shadow-pop:    0 12px 40px rgba(0,0,0,.55);
    --shadow-modal:  0 24px 80px rgba(0,0,0,.65);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;   /* Aurora-Blobs ragen bewusst ueber den Rand */
}

/* Grain: hauchduennes Korn ueber allem – nimmt Flaechen das Sterile.
   pointer-events:none, unter Header/Modal (z-index 90). */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

a { color: inherit; }

::selection { background: rgba(245,110,0,.28); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

section[id] { scroll-margin-top: 84px; }

html.theme-easing body,
html.theme-easing body * {
  transition: background-color .35s ease, color .35s ease,
              border-color .35s ease, fill .35s ease, stroke .35s ease !important;
}

/* Mono-Meta: das wiederkehrende Label-System der Seite */
.mono-label {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}

/* ===== HEADER – transluzentes Material; ueber dem dunklen Hero
   (body.dark-hero, nur Startseite) startet er transparent mit hellen
   Links und "materialisiert" erst beim Scrollen. ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--chrome);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: background .35s ease;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--hairline);
  opacity: 0; transition: opacity .3s ease;
}
.site-header.is-scrolled::after { opacity: 1; }

/* Liegt gerade ein DUNKLES Band unter dem Header (motion.js setzt .over-dark),
   bleibt er transparent mit hellen Links – der Wechsel zum hellen Material
   passiert erst, wenn ein heller Block das Menue erreicht. */
.site-header.over-dark {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.over-dark.is-scrolled {
  background: rgba(10,15,19,.69);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.site-header.over-dark::after { background: rgba(255,255,255,.08); }
.site-header.over-dark nav.main a { color: var(--ink-text); }
.site-header.over-dark nav.main a:hover { background: rgba(255,255,255,.1); }
.site-header.over-dark nav.main a.active { color: var(--accent); }
.site-header.over-dark .nav-cta { color: #fff !important; }
.site-header.over-dark .theme-toggle { color: var(--ink-text); }
.site-header.over-dark .theme-toggle:hover { background: rgba(255,255,255,.1); }
.site-header.over-dark .burger span { background: var(--ink-text); }

.header-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 64px; padding: 0 2rem;
}
.logo-block { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.logo-img { height: 40px; width: auto; display: block; border-radius: 9px; }

.theme-toggle {
  flex-shrink: 0;
  background: none; border: 0; cursor: pointer;
  width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background .25s ease, color .35s ease, transform .35s var(--ease-fluid);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:active { transform: scale(.92); transition-duration: .1s; }
.theme-toggle svg { width: 19px; height: 19px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

nav.main { display: flex; gap: .15rem; align-items: center; }
nav.main a {
  text-decoration: none; color: var(--text);
  font-size: .86rem; font-weight: 500; letter-spacing: .01em;
  padding: .42rem .85rem; border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
nav.main a:hover { background: var(--surface-2); }
nav.main a.active { color: var(--accent-strong); font-weight: 600; }

.nav-cta {
  background: var(--accent); color: #fff !important;
  font-weight: 600 !important; margin-left: .45rem;
}
.nav-cta:hover { background: var(--accent-strong) !important; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; border-radius: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s var(--ease-fluid); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  font-family: var(--font-body);
  padding: .82rem 1.6rem; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform .45s var(--ease-fluid), box-shadow .3s ease, background .25s ease, border-color .25s ease, color .25s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(245,110,0,.30); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 10px 30px rgba(245,110,0,.40); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
/* Pfeil im Button nickt beim Hover nach rechts */
.btn .btn-arrow { display: inline-block; transition: transform .4s var(--ease-fluid); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HERO – dunkles Signature-Panel, asymmetrisch:
   Display-Claim links, Meta-Spalte rechts, Kennzahlen-Strip unten
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--ink-2) 0%, var(--ink) 60%);
  color: var(--ink-text);
  margin: 0; padding: 0;
  overflow: hidden;
  display: block;
}
body.dark-hero .hero { margin-top: -64px; padding-top: 64px; } /* Header schwebt darueber */

.hero-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 5rem 2rem 0;
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: 3rem 4.5rem;
  align-items: start;
  text-align: left;
}

/* --- Hintergrund-Schichten --- */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Feines Grid, nach rechts oben betont */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(80% 80% at 72% 20%, #000 15%, transparent 78%);
  mask-image: radial-gradient(80% 80% at 72% 20%, #000 15%, transparent 78%);
}

/* Aurora: weiche Farbnebel in Orange/Teal – V7 bewusst zurueckgenommen */
.hero-aurora {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  opacity: .38;
  will-change: transform;
}
.hero-aurora.a1 {
  width: 55vw; height: 55vw; max-width: 760px; max-height: 760px;
  left: -14vw; top: -20vw;
  background: radial-gradient(circle at 40% 40%, rgba(245,110,0,.5), transparent 65%);
  animation: aurora1 30s ease-in-out infinite alternate;
}
.hero-aurora.a2 {
  width: 48vw; height: 48vw; max-width: 640px; max-height: 640px;
  right: -14vw; top: -8vw;
  background: radial-gradient(circle at 60% 40%, rgba(96,165,178,.42), transparent 65%);
  animation: aurora2 36s ease-in-out infinite alternate;
}
.hero-aurora.a3 {
  width: 40vw; height: 40vw; max-width: 520px; max-height: 520px;
  left: 32%; bottom: -24vw;
  background: radial-gradient(circle at 50% 50%, rgba(245,110,0,.20), transparent 70%);
  animation: aurora1 42s ease-in-out infinite alternate-reverse;
}
@keyframes aurora1 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6vw, 4vw, 0) scale(1.15); }
}
@keyframes aurora2 {
  from { transform: translate3d(0,0,0) scale(1.1); }
  to   { transform: translate3d(-5vw, 6vw, 0) scale(.95); }
}

/* Cursor-Lichtschein: Position kommt aus effects.js (--hx/--hy) */
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(560px circle at var(--hx, 60%) var(--hy, 30%),
              rgba(255,255,255,.06), transparent 60%);
}

/* --- Hero-Inhalt links --- */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2.2rem;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245,110,0,.9);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.8vw, 6.8rem);
  font-weight: 760;
  font-stretch: 88%;
  line-height: .98;
  letter-spacing: -.028em;
  color: #fff;
  margin-bottom: 1.8rem;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative; display: inline-block;
}
/* Unterstrich wischt nach dem Laden unter "Lösung" durch */
.hero-text h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .04em;
  height: .07em; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #ffb26e);
  transform-origin: left center;
  transform: scaleX(0);
  animation: sweep .8s var(--ease-fluid) 1s forwards;
}
@keyframes sweep { to { transform: scaleX(1); } }

/* Zeilenweiser Load-Reveal */
.hero-line { display: block; overflow: hidden; }
.hero-line > span {
  display: block;
  transform: translateY(110%);
  animation: lineUp .9s var(--ease-fluid) forwards;
}
.hero-line:nth-child(2) > span { animation-delay: .12s; }
.hero-eyebrow, .hero-sub, .hero .hero-actions, .hero .hero-meta, .hero .hero-visual {
  opacity: 0;
  animation: fadeUp .8s var(--ease-fluid) forwards;
}
.hero-eyebrow { animation-delay: .05s; }
.hero-sub { animation-delay: .35s; }
.hero .hero-actions { animation-delay: .5s; }
.hero .hero-meta { animation-delay: .6s; }
.hero .hero-visual { animation-delay: .75s; }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-sub {
  color: var(--ink-muted);
  font-size: 1.14rem; line-height: 1.65;
  max-width: 34rem;
  margin: 0 0 2.4rem;
}
.hero-sub strong { color: var(--ink-text); font-weight: 600; }

.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero .btn-ghost {
  background: rgba(255,255,255,.05); color: var(--ink-text);
  border: 1px solid var(--ink-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero .btn-ghost:hover { border-color: rgba(255,255,255,.35); color: #fff; }

/* --- Meta-Spalte rechts: Fakten + Aktuelles, redaktionell --- */
.hero-meta {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--ink-line);
  padding-left: 1.75rem;
  margin-top: .4rem;
}
.meta-row {
  padding: .95rem 0;
  border-bottom: 1px solid var(--ink-line);
}
.meta-row:first-child { padding-top: .2rem; }
.meta-row dt {
  font-family: var(--font-mono);
  font-size: .66rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .3rem;
}
.meta-row dd { margin: 0; font-size: .95rem; color: var(--ink-text); line-height: 1.45; }

/* "Aktuelles" in der Meta-Spalte */
.hero .news-inline {
  margin-top: 1.5rem; width: auto; max-width: none;
  background: none; border: 0; border-radius: 0;
  padding: 0; text-align: left;
  box-shadow: none;
}
.hero .news-inline-title {
  font-family: var(--font-mono);
  font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: .3rem;
}
.hero .news-inline-list li { color: var(--ink-text); padding: .55rem 0; font-size: .86rem; }
.hero .news-inline-list li + li { border-top: 1px solid var(--ink-line); }
.hero .news-inline-list a { color: var(--ink-text); }
.hero .news-inline-list a:hover { color: var(--accent); }
.hero .news-pop-badge { background: rgba(255,255,255,.08); color: var(--ink-muted); border: 0; }
.hero .news-pop-badge.bueffeln { background: rgba(245,110,0,.14); color: var(--accent); border: 0; }

/* Generischer News-Kasten (Fallback ausserhalb des Heros, Unterseiten) */
.news-inline {
  margin-top: 2.6rem; width: 100%; max-width: 36rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem; text-align: left;
}
.news-inline-title {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .45rem;
}
.news-inline-list { list-style: none; margin: 0; padding: 0; }
.news-inline-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .5rem 0; font-size: .9rem; line-height: 1.45;
}
.news-inline-list li + li { border-top: 1px solid var(--hairline); }
.news-inline-list a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.news-inline-list a:hover { text-decoration: underline; }

.news-pop-badge {
  flex-shrink: 0; margin-top: .12rem;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: .08rem .55rem;
  font-size: .64rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  font-family: var(--font-mono);
}
.news-pop-badge.bueffeln { background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent); }

/* --- Kennzahlen-Strip: volle Breite am Hero-Boden, Hairlines statt Kacheln --- */
.hero-visual {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
}
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: none; margin: 0;
}
.stat-card {
  background: none; border: 0; border-radius: 0;
  border-left: 1px solid var(--ink-line);
  padding: 1.6rem 1.75rem 2.1rem;
  text-align: left;
  transition: background .3s ease;
}
.stat-card:first-child { border-left: 0; padding-left: 0; }
.stat-card:hover { background: rgba(255,255,255,.025); transform: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 740; letter-spacing: -.02em;
  color: #fff; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat-num .stat-suffix { color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: .5rem;
}

/* ============================================================
   MARQUEE – laufendes Referenzen-Band unter dem Hero
   ============================================================ */
.marquee {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  overflow: hidden;
  padding: 1.2rem 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 3.2rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-track .marquee-dot { color: var(--accent); font-size: .6rem; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== SECTIONS – Redaktions-Grid mit Editorial-Kopf ===== */
section { max-width: 1240px; margin: 7.5rem auto; padding: 0 2rem; }

/* Dunkle Baender (Kompetenzen, CTA) laufen wie der Hero ueber die volle
   Breite – der Inhalt bleibt auf Seitenbreite zentriert. */
section.full-bleed { max-width: none; padding: 0; }
section.full-bleed > .tech-section,
section.full-bleed > .cta-band {
  border-radius: 0;
  border-left: 0; border-right: 0;
  /* zentriert den 1176px-Inhalt (1240 - 2*2rem) im Vollband */
  padding-left: max(2rem, calc((100% - 1176px) / 2));
  padding-right: max(2rem, calc((100% - 1176px) / 2));
}
section.full-bleed > .tech-section { padding-top: 4.5rem; padding-bottom: 5rem; }
section.full-bleed > .cta-band { padding-top: 6rem; padding-bottom: 6rem; }

/* Editorial-Kopf: Hairline oben mit Registermarke, Mono-Index,
   Titel links, Lead rechts unten ausgerichtet */
.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: 1rem 4rem;
  align-items: end;
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
  margin-bottom: 3.2rem;
}
.section-head::after {           /* Registermarke am rechten Ende der Linie */
  content: "+";
  position: absolute; top: -.72em; right: -.05rem;
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--muted); opacity: .7;
  background: var(--bg);
  padding: 0 .2rem;
}
.tech-section .section-head { border-top-color: var(--ink-line); }
.tech-section .section-head::after { background: transparent; color: var(--ink-muted); }

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1.1rem;
}
.section-eyebrow::after { content: none; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 730;
  font-stretch: 92%;
  line-height: 1.02; letter-spacing: -.024em;
  margin-bottom: 0;
}
.section-sub {
  color: var(--muted); margin-bottom: .35rem; font-size: 1rem; line-height: 1.6;
  max-width: none;
}
/* Fallback: Sektionen ohne .section-head (Unterseiten-Bestand) */
.section-title + .section-sub { max-width: 46rem; margin-bottom: 2.2rem; }

/* ===== Leistungen – nummerierte Editorial-Liste =====
   (.service-card bleibt der JS-Hook fuer Modal + Spotlight) */
.services-grid { display: block; border-top: 1px solid var(--hairline); }
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, .9fr) minmax(0, 1.1fr) 3.4rem;
  align-items: center;
  gap: 2rem;
  background: none; border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 1.85rem .25rem;
  transition: background .3s ease, padding .45s var(--ease-fluid);
  overflow: hidden;
  cursor: pointer;
}
/* Spotlight: --mx/--my setzt effects.js pro Zeile */
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(245,110,0,.06), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: var(--surface); padding-left: 1rem; padding-right: 1rem; }
.service-card:active { transform: none; }
.service-num {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500; letter-spacing: .08em;
  color: var(--muted);
}
.service-card:hover .service-num { color: var(--accent-strong); }
.service-card h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 680; font-stretch: 94%;
  letter-spacing: -.018em; line-height: 1.1;
  margin: 0;
  transition: color .25s ease;
}
.service-card p { font-size: .93rem; color: var(--muted); line-height: 1.55; margin: 0; }
.service-more { display: none; }
.service-icon { display: none; }   /* dient nur noch als Quelle fuers Modal-Icon */
/* Der von service-modal.js eingefuegte "Details ansehen"-Hinweis entfaellt in
   der Listen-Optik – der Pfeil-Kreis uebernimmt diese Rolle. */
.service-card .service-hint { display: none; }
.service-arrow {
  justify-self: end;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .45s var(--ease-fluid);
}
.service-arrow svg { width: 17px; height: 17px; }
.service-card:hover .service-arrow {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: rotate(-45deg);
}

/* ===== DETAIL-MODAL (wie V5: federnd, mobil Bottom-Sheet) ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: var(--scrim);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
}
.modal-overlay.open { visibility: visible; }
.modal {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--hairline); border-radius: 18px;
  max-width: 480px; width: 100%;
  padding: 2rem 2rem 1.75rem; position: relative;
  box-shadow: var(--shadow-modal);
  max-height: 88vh; overflow-y: auto;
  overscroll-behavior: contain;
  will-change: transform, opacity, filter;
}
.sheet-handle {
  display: none;
  position: absolute; top: 0; left: 0; right: 0; height: 30px;
  cursor: grab; touch-action: none;
}
.sheet-handle::before {
  content: ""; position: absolute; top: 9px; left: 50%;
  width: 40px; height: 5px; border-radius: 999px;
  transform: translateX(-50%);
  background: var(--border);
}
.modal-close {
  position: absolute; top: .9rem; right: .9rem;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--surface-2); border: 0; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .3s var(--ease-fluid);
}
.modal-close:hover { color: var(--text); }
.modal-close:active { transform: scale(.9); transition-duration: .1s; }
.modal-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.modal-icon svg { width: 27px; height: 27px; }
.modal-title { font-size: 1.55rem; letter-spacing: -.015em; margin-bottom: .5rem; font-weight: 700; }
.modal-lead { color: var(--muted); font-size: .97rem; margin-bottom: 1.15rem; }
.modal-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.modal-list li {
  position: relative; padding-left: 1.7rem; margin-bottom: .6rem;
  font-size: .93rem; line-height: 1.5;
}
.modal-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.2rem; text-align: center;
  color: var(--accent); font-weight: 700;
}
.modal .btn { width: 100%; justify-content: center; }

@media (max-width: 680px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: none; border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding-top: 2.4rem;
    max-height: 86vh;
  }
  .sheet-handle { display: block; }
}

/* ===== Staerken – redaktionelle Doppel-Liste ===== */
.strengths-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4rem;
  border-top: 1px solid var(--hairline);
}
.strength-item {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1.15rem .25rem;
  background: none; border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  transition: padding .4s var(--ease-fluid);
}
.strength-item:hover { transform: none; padding-left: .8rem; }
.strength-check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px;
  background: none; border: 1px solid var(--teal);
  color: var(--teal-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; margin-top: .2rem;
  transition: background .25s ease, color .25s ease;
}
.strength-item:hover .strength-check { background: var(--teal); color: #fff; }
.strength-item p { font-size: .95rem; margin: 0; }

/* ===== Referenzen – Featured Case + Editorial-Grid ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.15rem;
  counter-reset: project;
}
.project-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 1.8rem;
  transition: transform .5s var(--ease-fluid), box-shadow .4s ease, border-color .3s ease;
  overflow: hidden;
  counter-increment: project;
  display: flex; flex-direction: column; align-items: flex-start;
}
.project-card::after {
  content: counter(project, decimal-leading-zero);
  position: absolute; top: 1.1rem; right: 1.4rem;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500; letter-spacing: .08em;
  color: var(--muted); opacity: .55;
  transition: color .3s ease, opacity .3s ease;
  pointer-events: none;
}
.project-card:hover::after { opacity: 1; color: var(--accent-strong); }
.project-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -40%),
              rgba(96,165,178,.10), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(96,165,178,.4); }
.project-card .project-label {
  font-family: var(--font-mono);
  font-size: .66rem; font-weight: 500; color: var(--teal-strong);
  text-transform: uppercase; letter-spacing: .13em; margin-bottom: .7rem;
}
.project-card h3 { font-size: 1.14rem; letter-spacing: -.01em; margin-bottom: .55rem; line-height: 1.25; font-weight: 660; }
.project-card p { font-size: .89rem; color: var(--muted); line-height: 1.6; }
.project-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: 1rem; }
.project-tag {
  font-family: var(--font-mono);
  background: none; border: 1px solid var(--hairline);
  border-radius: 6px; padding: .18rem .55rem; font-size: .66rem;
  letter-spacing: .04em; color: var(--muted);
}
.project-link { display: inline-block; margin-top: .9rem; font-size: .87rem; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.project-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Featured Case: eine Referenz in voller Breite mit grossem Auftritt */
.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 2.5rem;
  padding: 2.4rem 2.6rem;
  align-items: center;
}
.project-card.featured h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700; font-stretch: 94%; letter-spacing: -.02em; line-height: 1.08;
  margin-bottom: .8rem;
}
.project-card.featured p { font-size: .97rem; max-width: 36rem; }
.project-card.featured .project-tags { margin-top: 1.2rem; padding-top: 0; }
.featured-facts { border-left: 1px solid var(--hairline); padding-left: 2.2rem; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; }
.featured-fact { padding: .8rem 0; }
.featured-fact + .featured-fact { border-top: 1px solid var(--hairline); }
.featured-fact .ff-num {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 730; letter-spacing: -.02em;
  line-height: 1.1; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.featured-fact .ff-label {
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-top: .25rem;
}

/* ===== Kompetenzen – dunkles Vollband ===== */
.tech-section {
  position: relative;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(96,165,178,.10) 0%, transparent 50%),
    radial-gradient(80% 100% at 0% 100%, rgba(245,110,0,.08) 0%, transparent 55%),
    var(--ink);
  border: 0;
  border-top: 1px solid var(--ink-line);
  border-radius: var(--radius-lg); padding: 3.2rem; color: var(--ink-text);
  overflow: hidden;
}
.tech-section .section-title { color: #fff; }
.tech-section .section-sub { color: var(--ink-muted); }
.tech-section .section-eyebrow { color: var(--accent); }
.tech-hint { color: var(--ink-muted); font-size: .88rem; margin-top: .4rem; }
.pill-group { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.pill {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px; padding: .36rem .95rem; font-size: .84rem; color: var(--ink-text);
  font-family: var(--font-body); text-align: left;
}
button.pill {
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .35s var(--ease-fluid);
}
button.pill:hover { background: rgba(245,110,0,.28); border-color: var(--accent); }
button.pill:active { transform: scale(.95); transition-duration: .1s; }
.pill-legacy { opacity: .55; }
.pill-legacy:hover { opacity: 1; }
.pill-label {
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 500; color: #ff9a4d;
  text-transform: uppercase; letter-spacing: .14em;
  margin-top: 2rem; margin-bottom: .35rem;
  display: flex; align-items: center; gap: .8rem;
}
.pill-label::after {
  content: ""; height: 1px; flex: 1; max-width: 120px;
  background: linear-gradient(90deg, rgba(255,154,77,.4), transparent);
}

/* Info-Popover (transluzent, federt aus der Pille – V5) */
.pill-pop {
  position: absolute; z-index: 400;
  background: var(--pop-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 14px; box-shadow: var(--shadow-pop);
  padding: 1rem 1.2rem;
  will-change: transform, opacity;
}
.pill-pop h5 { font-size: 1rem; font-weight: 600; letter-spacing: -.008em; margin: 0 0 .35rem; }
.pill-pop p { font-size: .87rem; color: var(--muted); line-height: 1.55; margin: 0; }
.pill-pop a { display: inline-block; margin-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.pill-pop a:hover { text-decoration: underline; }

/* ===== Meilensteine – redaktionelle Zeilen ===== */
.timeline { position: relative; margin-top: 0; padding-left: 0; max-width: 52rem; border-top: 1px solid var(--hairline); }
.timeline::before { content: none; }
.timeline-item {
  position: relative;
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.5rem; align-items: baseline;
  padding: 1.15rem .25rem;
  border-bottom: 1px solid var(--hairline);
  transition: padding .4s var(--ease-fluid), background .3s ease;
}
.timeline-item:hover { padding-left: .8rem; background: var(--surface); }
.timeline-item::before { content: none; }
.timeline-year {
  font-family: var(--font-mono);
  font-weight: 500; letter-spacing: .06em;
  color: var(--accent-strong); font-size: .95rem; display: block;
  font-variant-numeric: tabular-nums;
}
.timeline-item p { color: var(--text); font-size: .98rem; margin: 0; }
.timeline-item p a { color: var(--accent-strong); }

/* ===== CTA band – dunkles Finale mit grosser Kontakt-Type ===== */
.cta-band {
  position: relative;
  background:
    radial-gradient(60% 100% at 85% -20%, rgba(96,165,178,.12) 0%, transparent 55%),
    var(--ink);
  border: 0; border-top: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem; text-align: left; color: var(--ink-text);
  overflow: hidden;
}
.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 740;
  font-stretch: 90%;
  letter-spacing: -.025em; line-height: 1.0;
  margin-bottom: 1.2rem; color: #fff;
  max-width: 18em;
}
.cta-band p { color: var(--ink-muted); margin-bottom: 2.6rem; font-size: 1.05rem; max-width: 40rem; }
.cta-actions {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  border-top: 1px solid var(--ink-line);
  padding-top: 2rem;
}
.cta-mail {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 650; letter-spacing: -.015em;
  color: #fff; text-decoration: none;
  position: relative;
}
.cta-mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-fluid);
}
.cta-mail:hover::after { transform: scaleX(1); }
.cta-phone {
  font-family: var(--font-mono);
  font-size: .85rem; letter-spacing: .06em;
  color: var(--ink-muted); text-decoration: none;
}
.cta-phone:hover { color: var(--ink-text); }
.cta-actions .btn { margin-left: auto; }

/* ===== CONTENT / TEXT PAGES ===== */
.page { max-width: 1240px; margin: 4rem auto; padding: 0 2rem; }

/* Unterseiten fliegen beim Laden von rechts ein (Startseite hat stattdessen
   den Hero-Reveal). Nachfolgende Sektionen (Projekte-Seite) ziehen leicht
   versetzt nach – gleiche Richtung, ein Guss. */
.page {
  animation: pageFly 1s cubic-bezier(.22,.68,.16,1) both;
}
.page ~ section {
  animation: pageFly 1s cubic-bezier(.22,.68,.16,1) .15s both;
}
@keyframes pageFly {
  from { opacity: 0; transform: translateX(min(300px, 36vw)); }
  to   { opacity: 1; transform: none; }
}
@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-head {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: 3rem;
  position: relative;
}
.page-head::after {
  content: "+";
  position: absolute; top: -.72em; right: -.05rem;
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--muted); opacity: .7;
  background: var(--bg); padding: 0 .2rem;
}
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1.1rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 730;
  font-stretch: 92%;
  letter-spacing: -.024em; line-height: 1.02; margin-bottom: 0;
}
.page-intro {
  background: none; border: 0; border-radius: 0;
  padding: 0; margin-bottom: .35rem;
  font-size: 1rem; line-height: 1.6; color: var(--muted);
}
/* Fallback fuer Seiten ohne .page-head (Bestand) */
.page > .page-title { margin-bottom: 1.4rem; }
.page > .page-intro { margin-bottom: 2.5rem; max-width: 52rem; }

.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 1.9rem;
  box-shadow: none;
}
.card h2 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; font-weight: 650; }
.card p, .card a { font-size: .93rem; color: var(--muted); line-height: 1.8; text-decoration: none; }
.card a:hover { color: var(--accent-strong); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; margin-bottom: 2.5rem; }

/* Kontakt-Split: Formular links, Meta-Spalte rechts */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
  gap: 1.15rem; align-items: start; margin-bottom: 1.15rem;
}
.contact-rail { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-rail .card h2 {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .8rem;
}
.contact-rail .card p, .contact-rail .card a { font-size: .95rem; color: var(--text); line-height: 1.9; }
.contact-rail .card a:hover { color: var(--accent-strong); }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); box-shadow: none; margin-bottom: 1.15rem; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Zwei-Klick-Platzhalter: OpenStreetMap laedt erst nach aktiver Zustimmung */
.map-consent {
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
  padding: 2.5rem 2rem;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--teal-soft) 0%, transparent 70%),
    var(--surface);
}
.map-consent-title {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.map-consent-text { max-width: 34rem; font-size: .92rem; color: var(--muted); line-height: 1.6; margin: 0; }
.map-consent-text a { color: var(--accent-strong); }
.map-consent-alt {
  font-size: .85rem; font-weight: 600; color: var(--accent-strong);
  text-decoration: none;
}
.map-consent-alt:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row.full { grid-column: 1 / -1; }
.form-row label {
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--surface-2); border: 1px solid transparent;
  border-radius: 10px; padding: .75rem .95rem; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245,110,0,.16); background: var(--surface);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .6rem; }
.form-consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent); flex-shrink: 0; }
.form-consent label { font-size: .85rem; color: var(--muted); font-weight: 400; line-height: 1.5; font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.form-consent a { color: var(--accent-strong); }
.form-actions { grid-column: 1 / -1; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
/* Rueckmeldung nach Formularversand (?gesendet=1 / ?fehler=1) */
.form-status {
  border-radius: 10px; padding: .85rem 1.1rem;
  font-size: .92rem; line-height: 1.5;
  margin-bottom: 1.2rem;
  border: 1px solid transparent;
}
.form-status.ok { background: var(--teal-soft); border-color: var(--teal); color: var(--text); }
.form-status.err { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

/* Legal text */
.legal { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 2rem 2.5rem; box-shadow: none; }
.legal h1 { font-size: 1.4rem; letter-spacing: -.012em; margin: 2rem 0 .75rem; }
.legal h1:first-child { margin-top: 0; }
.legal h2 { font-size: 1.12rem; margin: 1.6rem 0 .5rem; }
.legal h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
.legal p { font-size: .92rem; color: var(--muted); margin-bottom: .85rem; }
.legal ul { font-size: .92rem; color: var(--muted); padding-left: 1.5rem; margin-bottom: .85rem; }
.legal li { margin-bottom: .25rem; }
.legal a { color: var(--accent-strong); text-decoration: none; word-break: break-word; }
.legal a:hover { text-decoration: underline; }

/* ===== FOOTER – dunkles Agentur-Finale =====
   (Aufbau aus V6 uebernommen und ans Mono-Labelsystem angepasst:
   EIN Block mit dem CTA-Band, eingerueckte Haarlinie, Uppercase-
   Spaltenlabels, Copyright, IRIS-Konturschrift angeschnitten.) */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--ink-muted);
  margin-top: 7rem;
  border-top: 1px solid var(--ink-line);
  overflow: hidden;
}
/* Glow hinter der angeschnittenen Wortmarke, am unteren Blockrand */
.site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 340px;
  background: radial-gradient(620px 300px at 50% 105%, rgba(245,110,0,.22) 0%, transparent 68%);
  pointer-events: none;
}
section.full-bleed:last-of-type { margin-bottom: 0; }
section.full-bleed:last-of-type > .cta-band { border-bottom: 0; }
section.full-bleed + .site-footer { margin-top: 0; border-top: 0; }
.footer-word {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5.5rem, 19vw, 16rem);
  line-height: .78;
  letter-spacing: .02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.14);
  user-select: none; pointer-events: none;
  margin-top: 2rem;
  margin-bottom: -0.34em;   /* untere Haelfte wird von der Seitenkante angeschnitten */
}
.footer-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  padding: 3.75rem 2rem 2.75rem;
  border-top: 1px solid var(--ink-line);   /* eingerueckte Strukturlinie unter dem CTA */
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}
.footer-inner h4 {
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 1.1rem;
}
.footer-inner p, .footer-inner a { font-size: .92rem; color: #c3cdd3; text-decoration: none; line-height: 2.05; display: block; }
.footer-inner a { width: fit-content; }
.footer-inner a:hover { color: var(--accent); }
.footer-brand-tag { font-size: .9rem; margin-top: .8rem; font-style: italic; color: var(--accent); }
.footer-bottom {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  border-top: 1px solid var(--ink-line);
  text-align: center; padding: 1.1rem 2rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  color: rgba(159,176,184,.75);
}

/* ===== Scroll-Reveals (motion.js) ===== */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .65s var(--ease-fluid);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-meta { border-left: 0; border-top: 1px solid var(--ink-line); padding-left: 0; padding-top: 1.2rem; }
  .project-card.featured { grid-template-columns: 1fr; gap: 1.6rem; }
  .featured-facts { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 1.2rem;
    flex-direction: row; gap: 2rem; }
  .featured-fact { flex: 1; }
  .featured-fact + .featured-fact { border-top: 0; border-left: 1px solid var(--hairline); padding-left: 1.5rem; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 1.3rem 1.4rem 1.6rem; }
  .stat-card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .tech-section { padding: 2.2rem 1.5rem; }
  .hero-inner { padding: 4rem 1.5rem 0; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: .9rem; margin-bottom: 2.4rem; }
  .page-head { grid-template-columns: 1fr; gap: .9rem; }
  .service-card { grid-template-columns: 2.4rem minmax(0, 1fr) 2.9rem; gap: .55rem 1.1rem; align-items: center; }
  .service-num { grid-row: 1; grid-column: 1; }
  .service-card h3 { grid-row: 1; grid-column: 2; }
  .service-card .service-arrow { grid-row: 1; grid-column: 3; }
  .service-card p { grid-column: 2 / 4; }
  .strengths-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 680px) {
  .burger { display: block; }
  nav.main {
    position: absolute; top: 64px; left: 0; right: 0;
    /* Deckend: verschachtelte backdrop-filter blurren nicht zuverlaessig */
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1rem 1rem; display: none;
  }
  nav.main.open { display: flex; }
  /* Menue offen -> Links immer in Theme-Farbe, auch ueber dunklen Baendern */
  .site-header.over-dark nav.main.open a { color: var(--text); }
  nav.main a { padding: .85rem .6rem; border-radius: 10px; }
  .nav-cta { margin: .6rem 0 0; text-align: center; }
  .hero-inner { padding: 3.2rem 1.25rem 0; }
  .hero-text h1 { font-size: clamp(2.7rem, 13.5vw, 3.6rem); }
  .marquee-track { gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  section { margin: 4.5rem auto; }
  .legal { padding: 1.5rem 1.25rem; }
  .cta-actions { gap: 1.2rem; }
  .cta-actions .btn { margin-left: 0; }
  .project-card.featured { padding: 1.8rem; }
  .featured-facts { flex-direction: column; gap: 0; }
  .featured-fact + .featured-fact { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; }
}

/* ===== BEDIENHILFEN =====
   Reduzierte Bewegung: Scroll-/Load-Reveals und Marquee ruhigstellen,
   nutzergesteuerte Effekte (Cursor-Spotlight) und statische Optik bleiben. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .theme-toggle:active,
  button.pill:active, .modal-close:active { transform: none; }
  .service-card:hover, .project-card:hover, .strength-item:hover, .timeline-item:hover { transform: none; }
  .service-card:hover { padding-left: .25rem; padding-right: .25rem; }
  .strength-item:hover, .timeline-item:hover { padding-left: .25rem; }
  .service-card:hover .service-arrow { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .modal-overlay { transition: opacity .2s ease; }
  .modal-overlay.open { opacity: 1; }
  .modal { transform: none !important; filter: none !important; }
  /* Load-Reveal: sofort sichtbar */
  .hero-line > span { transform: none; animation: none; }
  .hero-eyebrow, .hero-sub, .hero .hero-actions, .hero .hero-meta, .hero .hero-visual, .hero .news-inline {
    opacity: 1; animation: none;
  }
  .hero-text h1 em::after { transform: scaleX(1); animation: none; }
  .eyebrow-dot { animation: none; }
  /* Grossflaechige Dauerbewegung stoppen (vestibulaer) */
  .hero-aurora { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: .5rem; }
  .marquee::before, .marquee::after { display: none; }
  .cta-mail::after { transition: none; }
  /* Unterseiten-Einflug: nur sanft einblenden statt seitlicher Bewegung */
  .page, .page ~ section { animation: pageFade .7s ease both; }
}

/* Reduzierte Transparenz */
@media (prefers-reduced-transparency: reduce) {
  .site-header, nav.main { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.over-dark { background: var(--ink); }
  .pill-pop { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Mehr Kontrast */
@media (prefers-contrast: more) {
  .site-header, nav.main { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--border); }
  .site-header.over-dark { background: var(--ink); }
  .service-card, .project-card, .card, .strength-item, .news-inline { border-color: var(--border); }
  .hero-sub, .tech-hint { color: #c9d4da; }
  body::after { display: none; }
}
