/* ==========================================================================
   otherworld.de – V4
   Schlankes, statisches Layout ohne Framework.
   Hell als Standard, dunkel automatisch per prefers-color-scheme.
   ========================================================================== */

:root {
  /* Hell */
  --bg: #faf8f5;
  --bg-2: #f3efe9;
  --surface: #ffffff;
  --surface-2: #f7f3ee;
  --inset: #ffffff;
  --line: rgba(40, 28, 16, .1);
  --line-strong: rgba(40, 28, 16, .18);
  --text: #1b1714;
  --text-soft: #3a342e;
  --muted: #5f574e;
  --brand: #f39c12;
  --brand-hover: #e58c00;
  --brand-ink: #a35300;          /* Orange für Text auf hellem Grund (Kontrast ≥ 4.5:1) */
  --brand-soft: rgba(243, 156, 18, .14);
  --brand-border: rgba(243, 156, 18, .4);
  --grad-a: #e07800;
  --grad-b: #d4400c;
  --ok: #157a4a;
  --error: #b42318;
  --glass: rgba(255, 255, 255, .72);
  --sk-1: #ece6de;
  --sk-2: #e0d8ce;
  --dot: #d6cec4;
  --shadow: 0 18px 50px -24px rgba(60, 40, 20, .35);
  --shadow-up: 0 -16px 50px -24px rgba(60, 40, 20, .3);

  --font: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0b0a;
    --bg-2: #131110;
    --surface: #191614;
    --surface-2: #211d1a;
    --inset: #0f0d0c;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f4f0ea;
    --text-soft: #d9d3cb;
    --muted: #a8a197;
    --brand-hover: #ffab2a;
    --brand-ink: #f39c12;
    --brand-border: rgba(243, 156, 18, .45);
    --grad-a: #f39c12;
    --grad-b: #ff6b3d;
    --ok: #5ad19a;
    --error: #ff8a7a;
    --glass: rgba(20, 18, 16, .68);
    --sk-1: #221e1b;
    --sk-2: #2e2824;
    --dot: #3a3430;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    --shadow-up: 0 -20px 60px -20px rgba(0, 0, 0, .8);
  }
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--brand-border); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--brand); }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--brand); color: #111; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  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: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #111; padding: .6em 1em; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.text-gradient {
  background: linear-gradient(100deg, var(--grad-a) 10%, var(--grad-b) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-ink); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 1.6em; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.lead a { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--brand); color: #15100a; font-weight: 650; text-decoration: none;
  border: 0; border-radius: 999px; padding: .85em 1.5em; cursor: pointer;
  transition: transform .3s var(--ease-spring), box-shadow .3s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(243, 156, 18, .55); background: var(--brand-hover); }
.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-spring); }
.btn:hover svg { transform: translateX(4px); }
.btn--small { padding: .5em 1.1em; font-size: .92rem; }
.btn--big { padding: 1.05em 1.9em; font-size: 1.05rem; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--surface); box-shadow: var(--shadow); }

/* Logo: passende Variante für Hell/Dunkel per <picture> */
.logo-pic { display: block; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  display: flex; justify-content: center; padding-inline: 16px;
  transform: translateY(-140%); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s;
  pointer-events: none;
}
.nav.is-visible, .nav:focus-within, .nav--static { transform: none; opacity: 1; pointer-events: auto; }
.nav__pill {
  display: flex; align-items: center; gap: clamp(12px, 3vw, 36px);
  width: min(100%, 980px);
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}
.nav__logo { flex: 0 0 auto; margin-right: auto; }
.nav__logo img { width: 140px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); font-size: .95rem; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__pill { flex-wrap: wrap; padding: 8px 8px 8px 18px; border-radius: 26px; }
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  }
  .nav__burger, .nav__burger::before, .nav__burger::after {
    display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .3s var(--ease-out), opacity .2s; position: relative;
  }
  .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
  .nav__burger::before { top: -6px; }
  .nav__burger::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__links {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 10px 6px 0; font-size: 1.05rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .55em .2em; border-bottom: 1px solid var(--line); }
  .nav__links .btn { justify-content: center; margin-top: 8px; }
}

/* ==========================================================================
   Splash – Original-Animation der bisherigen Seite:
   Logo fällt von oben ein (fadeInDownBig), Text steigt auf (fadeInUp), je 2 s
   ========================================================================== */
.splash {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: 80px var(--gutter);
  background: var(--bg);
}

.splash__inner { width: min(100%, 1100px); text-align: center; }
.splash__logo img { width: 100%; height: auto; }

.animated { animation-duration: 2s; animation-fill-mode: both; }
@keyframes fadeInDownBig {
  from { opacity: 0; transform: translate3d(0, -2000px, 0); }
  to { opacity: 1; transform: none; }
}
.fadeInDownBig { animation-name: fadeInDownBig; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: none; }
}
.fadeInUp { animation-name: fadeInUp; }

.splash__claim {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .2em 0; margin-top: clamp(28px, 6vw, 64px);
  font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(1.6rem, 1rem + 3.2vw, 3.6rem);
}
.splash__word { display: inline-flex; align-items: center; }
.splash__word + .splash__word::before {
  content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--brand);
  margin-inline: .55em; flex: 0 0 auto;
}
.splash__sub {
  margin-top: 1.4rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.splash__scroll {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 28px; height: 46px; border: 1.5px solid var(--line-strong); border-radius: 20px;
  animation: fadeInUp 1s ease 2s both;
}
.splash__scroll span {
  position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--brand); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 640px) {
  .splash__claim { flex-direction: column; }
  .splash__word + .splash__word::before { display: none; }
}

/* ==========================================================================
   Sektionen allgemein
   ========================================================================== */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.section__head h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); margin-bottom: 1.2rem; }
.section__foot { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 12px; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(80px, 11vw, 150px) clamp(40px, 6vw, 80px); }
.statement__title {
  font-size: clamp(2.8rem, 1.2rem + 7vw, 7.6rem); letter-spacing: -.045em; line-height: .98;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.statement__title > span { display: block; }
.statement__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.checks li { position: relative; padding: 0 0 1.1em 2.1em; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 650; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e08a00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
}
@media (max-width: 820px) { .statement__cols { grid-template-columns: 1fr; } }

@supports (animation-timeline: view()) {
  .reveal-words {
    animation: wordsIn linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
  }
  @keyframes wordsIn { from { opacity: .12; transform: translateY(.25em); } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   Leistungen – Bento-Grid
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: span 2;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color .3s, box-shadow .4s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(243, 156, 18, .13), transparent 45%);
}
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); margin: 1.1rem 0 .6rem; }
.tile p { color: var(--muted); }
.tile__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-border);
}
.tile__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile--wide { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tile--tall { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--tall { grid-column: span 1; grid-row: auto; }
  .tile--wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--tall, .tile--wide { grid-column: auto; }
  .tile--wide { grid-template-columns: 1fr; }
}

/* Mock: Browser */
.mock-browser {
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--inset); overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg); transition: transform .8s var(--ease-out);
}
.tile:hover .mock-browser { transform: perspective(900px) rotateY(0) rotateX(0); }
.mock-browser__bar, .frame__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.mock-browser__bar i, .frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.mock-browser__bar i:first-child, .frame__bar i:first-child { background: #ff5f57; }
.mock-browser__bar i:nth-child(2), .frame__bar i:nth-child(2) { background: #febc2e; }
.mock-browser__bar i:nth-child(3), .frame__bar i:nth-child(3) { background: #28c840; }
.mock-browser__bar span, .frame__bar span {
  margin-left: 10px; flex: 1; font-family: var(--font-mono); font-size: .7rem; color: var(--muted);
  background: var(--line); border-radius: 6px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-browser__body { padding: 16px; display: grid; gap: 10px; }
.sk {
  height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, var(--sk-1) 0%, var(--sk-2) 40%, var(--sk-1) 80%) 0 0 / 200% 100%;
  animation: shimmer 2.4s linear infinite;
}
.sk--hero { height: 74px; border-radius: 10px; background-image: linear-gradient(120deg, rgba(243, 156, 18, .6), rgba(255, 107, 61, .4)); animation: none; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-row .sk { height: 44px; border-radius: 8px; }
.sk--line.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Mock: Chat */
.mock-chat { display: grid; gap: 10px; font-size: .9rem; }
.bubble { max-width: 88%; padding: .7em 1em; border-radius: 18px; line-height: 1.4; }
.bubble--in { background: var(--inset); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble--out {
  justify-self: end; background: var(--brand); color: #15100a; font-weight: 600; border-bottom-right-radius: 6px;
  display: flex; align-items: baseline; gap: .6em;
}
.bubble--out small { font-weight: 500; opacity: .7; font-size: .75em; }
.js .tile.is-in .bubble { animation: pop .6s var(--ease-spring) both; }
.js .tile.is-in .bubble:nth-child(2) { animation-delay: .7s; }
.js .tile.is-in .bubble:nth-child(3) { animation-delay: 1.4s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }

/* Mock: Suche */
.mock-search { display: grid; gap: 10px; }
.mock-search__bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px;
  background: var(--inset); border: 1px solid var(--line-strong); font-size: .95rem;
}
.mock-search__bar svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.typing { border-right: 2px solid var(--brand); padding-right: 2px; white-space: nowrap; overflow: hidden; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.mock-search__result {
  padding: 12px 16px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line);
  display: grid; gap: 6px;
}
.mock-search__result b { display: block; height: 10px; width: 55%; border-radius: 5px; background: var(--sk-2); }
.mock-search__result span { display: block; height: 8px; width: 80%; border-radius: 4px; background: var(--sk-1); }
.mock-search__result.is-hit { background: var(--brand-soft); border-color: var(--brand-border); }
.mock-search__result.is-hit b, .mock-search__result.is-hit span { height: auto; width: auto; background: none; }
.mock-search__result.is-hit b { color: var(--text); font-size: .98rem; }
.mock-search__result.is-hit span { color: var(--brand-ink); font-size: .8rem; }

/* ==========================================================================
   Laufband
   ========================================================================== */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding-block: 24px; background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  color: var(--muted); white-space: nowrap; display: flex; align-items: center;
}
.marquee li::after { content: "✦"; color: var(--brand); font-size: .6em; margin-inline: 1.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Referenzen
   ========================================================================== */
/* Startseite: 4 ausgewählte Arbeiten in einer Reihe */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.showcase__item a {
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; height: 100%;
  padding: 10px 10px 20px; border-radius: calc(var(--radius) + 2px);
  background: var(--surface); border: 1px solid var(--line);
}
.showcase__item h3 { font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); margin-inline: 6px; }
.showcase__item p { color: var(--muted); font-size: .94rem; margin-inline: 6px; flex: 1; }
@media (max-width: 1100px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .showcase { grid-template-columns: 1fr; } }

.frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--inset); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.6s cubic-bezier(.25, .1, .25, 1); }
a:hover .frame img { transform: scale(1.02); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-inline: 6px; }
.tags li {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .3em .85em; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
}

/* Referenzseite */
.page-hero { padding: clamp(130px, 16vw, 190px) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 6rem); letter-spacing: -.045em; line-height: 1; margin-bottom: 1.2rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5em; font-size: .88rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; opacity: .5; }

.refs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.refs__count { color: var(--muted); font-size: .95rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  padding: .5em 1.1em; border-radius: 999px; cursor: pointer; font-size: .92rem;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Referenzseite: 2 nebeneinander auf großen Bildschirmen */
.ref-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: clamp(72px, 9vw, 120px); }
@media (min-width: 860px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
.ref[hidden] { display: none; }

/* Weiche Hover-Effekte (Referenzen + Startseiten-Auswahl) */
.ref a, .showcase__item a {
  --hover-ease: cubic-bezier(.25, .1, .25, 1);
  transition: border-color .7s var(--hover-ease), box-shadow .9s var(--hover-ease), transform .9s var(--hover-ease);
}
.ref a:hover, .showcase__item a:hover { border-color: var(--brand-border); transform: translateY(-2px); box-shadow: var(--shadow); }
.ref a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  padding: 12px 12px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.ref__img { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 18px; background: var(--inset); border: 1px solid var(--line); }
.ref__img img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: top; transition: transform 1.6s cubic-bezier(.25, .1, .25, 1); }
.ref a:hover .ref__img img { transform: scale(1.02); }
.ref__img::after {
  content: "↗"; position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #15100a; font-weight: 700;
  opacity: 0; transform: translateY(4px); transition: opacity .8s ease, transform .8s ease;
}
.ref a:hover .ref__img::after { opacity: 1; transform: none; }
.ref h2, .ref h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); margin: 0 6px 6px; letter-spacing: -.01em; }
.ref p { color: var(--muted); font-size: .97rem; margin: 0 6px 14px; flex: 1; }
.ref__meta { margin: 0 6px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.ref.is-entering { animation: pop .5s var(--ease-out) both; }

.cta-band {
  margin-bottom: clamp(72px, 9vw, 120px); padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(120deg, var(--brand-soft), transparent 70%), var(--surface);
  border: 1px solid var(--brand-border);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }
.cta-band p { color: var(--muted); margin-top: .4rem; }

/* ==========================================================================
   Zahlen
   ========================================================================== */
.facts { padding-block: clamp(56px, 7vw, 88px); border-block: 1px solid var(--line); background: var(--bg-2); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact { display: grid; gap: 8px; justify-items: center; text-align: center; padding-inline: 12px; }
.fact + .fact { border-left: 1px solid var(--line-strong); }
@media (max-width: 860px) { .fact:nth-child(odd) { border-left: 0; } }
.fact__num {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); font-variant-numeric: tabular-nums;
}
.fact__label { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .facts__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* ==========================================================================
   Ablauf
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 28px 24px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step__num {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 4.2rem; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand); margin-bottom: 1.4rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .97rem; }
.js .step[data-reveal]:nth-child(2) { transition-delay: .1s; }
.js .step[data-reveal]:nth-child(3) { transition-delay: .2s; }
.js .step[data-reveal]:nth-child(4) { transition-delay: .3s; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 110px; margin-bottom: 0; }
.faq__list { display: grid; gap: 10px; }
.faq__list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .3s, background .3s; }
.faq__list details[open] { border-color: var(--brand-border); }
.faq__list summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; font-size: 1.06rem; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .35s var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq__list details p { padding: 0 22px 22px; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__list details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .faq__list details[open]::details-content { height: auto; }
}
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(80px, 11vw, 150px); }
.contact__glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: -20vmax; bottom: -40vmax;
  background: radial-gradient(circle, rgba(243, 156, 18, .2), transparent 60%); filter: blur(40px);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__title { font-size: clamp(2.8rem, 1.4rem + 6vw, 6.4rem); letter-spacing: -.045em; line-height: .98; margin-bottom: 1.6rem; }
.contact__ways { margin-top: 2.4rem; display: grid; gap: 18px; }
.contact__ways li { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__ways a { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 600; text-decoration: none; }
.contact__ways a:hover { color: var(--brand-ink); }
.contact__ways address { font-style: normal; font-size: 1.05rem; }

.form {
  padding: clamp(22px, 3.4vw, 40px); border-radius: calc(var(--radius) + 6px);
  background: var(--glass); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; color: var(--muted); font-weight: 500; }
.field label span { color: var(--brand-ink); }
.field input, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: 12px; background: var(--inset);
  border: 1px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(243, 156, 18, .18); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__hint { font-size: .85rem; color: var(--muted); }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; font-weight: 600; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--error); }
@media (max-width: 920px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; justify-content: center; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg-2); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer__brand img { width: 200px; margin-bottom: 16px; }
.footer p { color: var(--muted); }
.footer p + p { margin-top: .8em; }
.footer a { text-decoration: none; color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--brand-ink); }
.footer__h { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; font-weight: 600; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Rechtstexte
   ========================================================================== */
.page-head { padding: 150px 0 40px; }
.page-head h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.6rem); letter-spacing: -.045em; }
.prose { max-width: 75ch; padding-bottom: 120px; color: var(--text-soft); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 2.6rem 0 1rem; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .7rem; color: var(--text); }
.prose h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; color: var(--text); }
.prose p, .prose ul { margin-bottom: 1em; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--brand-ink); }

/* ==========================================================================
   Weniger Bewegung, wenn gewünscht
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.animated), *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* Ausnahme: die einmalige Splash-Animation (Logo + Text) läuft wie auf der bisherigen Seite */
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; }
  .marquee ul[aria-hidden] { display: none; }
}

/* ==========================================================================
   Leistungsseiten
   ========================================================================== */
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.svc-body { max-width: 72ch; }
.svc-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin: 2.8rem 0 1rem; }
.svc-body h2:first-child { margin-top: 0; }
.svc-body h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.svc-body p, .svc-body ul { margin-bottom: 1em; color: var(--text-soft); }
.svc-body .checks { margin: 1.4rem 0 1.6rem; }
.svc-aside {
  position: sticky; top: 110px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.svc-aside h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.svc-aside p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.svc-aside .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.svc-aside__tel { display: block; font-size: 1.4rem; font-weight: 650; text-decoration: none; margin-bottom: .6rem; }
.svc-aside ul { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .92rem; color: var(--muted); }
.svc-aside li::before { content: "✓"; color: var(--brand-ink); margin-right: .5em; font-weight: 700; }
@media (max-width: 960px) { .svc-layout { grid-template-columns: 1fr; } .svc-aside { position: static; } }

.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin: 1.6rem 0 2rem; }
.benefit { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.benefit h3 { font-size: 1.08rem; margin: 0 0 .4rem; }
.benefit p { font-size: .94rem; color: var(--muted); margin: 0; }

.compare { width: 100%; border-collapse: collapse; margin: 1.4rem 0 2rem; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: .8em 1em; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--text-soft); }
.compare-wrap { overflow-x: auto; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; padding-bottom: clamp(56px, 7vw, 96px); }
.related a { display: block; padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .3s, transform .4s var(--ease-out); }
.related a:hover { border-color: var(--brand-border); transform: translateY(-3px); }
.related strong { display: block; font-size: 1.08rem; margin-bottom: .3rem; }
.related span { color: var(--muted); font-size: .92rem; }
.tile__more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.tile__more::after { content: " →"; }
