/* ============================================================
   Schönfelder Group — Editorial Premium · Light System
   Pure HTML5 / Vanilla. Locally hosted fonts (DSGVO).
   ============================================================ */

/* ── Local fonts (DSGVO-compliant, no external CDN) ─────────────
   Inter as the primary sans (geometric, modern, SIL OFL licensed).
   JetBrains Mono for code/meta. Both shipped from /assets/fonts/. */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette derived from the Schönfelder Group logo */
  --navy: #0a1a35;
  --navy-2: #14264a;
  --navy-3: #243759;
  --blue: #1f7ae6;
  --blue-2: #4191ec;
  --blue-soft: #e6f0ff;
  --blue-tint: #f3f7ff;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-card: #ffffff;
  --bg-section: #fafbfd;

  /* Text */
  --ink: #0a1a35;
  --ink-2: #354259;
  --ink-3: #6b7689;
  --ink-4: #9aa3b2;

  /* Borders */
  --line: #e9ecf2;
  --line-2: #d7dce6;
  --line-strong: #0a1a35;

  /* Type stacks — Inter (loaded above) with rock-solid system fallback */
  --font-sans: 'Inter', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1340px;
  --gutter: clamp(16px, 5vw, 64px);

  /* Motion */
  --motion-mult: 1;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Nav height — used to offset anchor scroll-margin */
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv01';
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--navy); color: #fff; }

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

/* Visually hidden but readable for screen readers and SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section[id], .hero[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 180px);
}

/* ============================================================
   Type
   ============================================================ */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-feature-settings: 'tnum';
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue);
}
.eyebrow--plain::before { display: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-feature-settings: 'tnum';
}

.h1 {
  font-size: clamp(38px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.h1 em { font-style: normal; color: var(--blue); font-weight: 500; }

.h2 {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--blue); font-weight: 500; }

.h3 {
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.lede {
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 60ch;
  text-wrap: pretty;
}
p { margin: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.3s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }

/* ============================================================
   Top Nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 12px;
  transition: background 0.35s var(--ease), border-color 0.35s, padding 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-menu-open {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line);
}
.nav.is-scrolled { padding-block: 8px; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  transition: opacity 0.25s;
}
.nav__mark:hover { opacity: 0.85; }
.nav__logo {
  height: 42px;
  width: auto;
  display: block;
  transition: height 0.35s var(--ease);
}
.nav.is-scrolled .nav__logo { height: 34px; }
@media (max-width: 520px) {
  .nav__logo { height: 32px; }
  .nav.is-scrolled .nav__logo { height: 28px; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }

.nav__cta {
  padding: 10px 16px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  transition: background 0.25s, transform 0.25s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__cta:hover { background: var(--blue); transform: translateY(-1px); }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s;
}
.nav__burger:hover { background: var(--bg-soft); }
.nav__burger span {
  display: block;
  width: 20px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), opacity 0.3s, visibility 0.3s;
  box-shadow: 0 24px 40px -20px rgba(10, 26, 53, 0.18);
}
.nav__drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav__drawer a {
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.nav__drawer a:hover { color: var(--blue); }
.nav__drawer-cta {
  margin-top: 16px;
  padding: 16px 20px !important;
  background: var(--navy);
  color: #fff !important;
  border-radius: 12px !important;
  border-bottom: 0 !important;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px !important;
  letter-spacing: 0;
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero__bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Single quiet blurred orb — provides depth, doesn't draw attention */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.hero__orb--a {
  width: 540px;
  height: 540px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(31, 122, 230, 0.35), transparent 65%);
  animation: orbDriftA 32s ease-in-out infinite;
}
@keyframes orbDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 40px) scale(1.06); }
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  text-align: center;
  justify-items: center;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 122, 230, 0.18);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31, 122, 230, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(31, 122, 230, 0); }
}

.hero__symbol {
  width: clamp(280px, 42vw, 520px);
  margin: 0 auto;
  text-align: center;
}
.hero__symbol-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(10, 26, 53, 0.12));
  animation: heroLogoIn 1.1s var(--ease-out) both;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero__sub {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  justify-items: center;
  padding-top: 4px;
}
.hero__title {
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
  text-align: center;
  text-wrap: balance;
}
.hero__lede {
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  font-weight: 400;
  text-wrap: pretty;
}
.hero__lede strong { font-weight: 500; color: var(--ink); }
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll {
  margin-top: clamp(40px, 8vw, 100px);
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* "Scroll" label with bouncing arrow */
.hero__scroll-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__scroll-word {
  display: inline-block;
  animation: scrollWordPulse 2.4s ease-in-out infinite;
}
.hero__scroll-arrow {
  display: inline-block;
  color: var(--blue);
  animation: scrollArrowBounce 1.6s var(--ease-out) infinite;
}
@keyframes scrollWordPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; color: var(--ink); }
}
@keyframes scrollArrowBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 1; }
  30%           { transform: translateY(4px); opacity: 0.5; }
}

/* Animated sweep line */
.hero__scroll-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  max-width: 320px;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(to right, transparent, var(--blue), transparent);
  animation: scrollSweep 3s ease-in-out infinite;
}
@keyframes scrollSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}

/* "01 / 04" counter — active digit glows, slash blinks */
.hero__scroll-count {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.hero__scroll-num {
  color: var(--ink);
  font-weight: 500;
  position: relative;
  animation: scrollNumGlow 2.4s ease-in-out infinite;
}
.hero__scroll-num::before {
  content: '';
  position: absolute;
  left: -3px; right: -3px; top: -2px; bottom: -2px;
  background: var(--blue);
  border-radius: 4px;
  opacity: 0;
  z-index: -1;
  animation: scrollNumHighlight 4.8s ease-in-out infinite;
}
.hero__scroll-slash {
  opacity: 0.5;
  animation: scrollSlashBlink 2.4s ease-in-out infinite;
}
.hero__scroll-total {
  opacity: 0.55;
}
@keyframes scrollNumGlow {
  0%, 100% { color: var(--ink); }
  50%      { color: var(--blue); }
}
@keyframes scrollNumHighlight {
  0%, 90%, 100% { opacity: 0; }
  45%, 55%      { opacity: 0.08; }
}
@keyframes scrollSlashBlink {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.75; }
}

@media (max-width: 440px) {
  .hero__meta { font-size: 10px; gap: 10px; }
  .hero__symbol { width: clamp(220px, 70vw, 320px); }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; min-width: 0; }
}

/* Kurze Viewports (13"-Laptops, inkl. Retina-MacBooks mit ~900px Höhe):
   Hero-Abstände, Logo UND die Section-Innenabstände an die Höhe koppeln,
   damit weniger Weißraum zwischen Strip/Manifest/Portfolio entsteht.
   Genuin große/hohe Monitore (Viewport-Höhe > 1024px) bleiben unberührt. */
@media (min-width: 600px) and (max-height: 1024px) {
  .hero { padding-top: calc(var(--nav-h) + clamp(20px, 3.5vh, 52px)); padding-bottom: clamp(28px, 4.5vh, 64px); }
  .hero__inner { gap: clamp(10px, 1.8vh, 24px); }
  .hero__symbol { width: clamp(240px, 48vh, 520px); }
  .hero__sub { gap: clamp(10px, 1.5vh, 20px); }
  .hero__scroll { margin-top: clamp(12px, 2vh, 32px); }
  .section { padding-block: clamp(40px, 7vh, 96px); }
}

/* ============================================================
   Strip — KPI sockel between hero and manifest
   ============================================================ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: clamp(22px, 3vw, 36px);
}
.strip__kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding-inline: clamp(14px, 2vw, 32px);
  border-left: 1px solid var(--line);
  min-width: 0;
}
.strip__kpi:first-child { border-left: none; }
.strip__kpi-num {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.strip__kpi-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 880px) {
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__kpi { align-items: center; text-align: center; }
  .strip__kpi:nth-child(2n+1) { border-left: none; }
  .strip__kpi:nth-child(n+3) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .hero__meta { justify-content: center; }
}
@media (max-width: 440px) {
  .strip__inner { grid-template-columns: 1fr; padding-block: 18px; }
  .strip__kpi { border-left: none; padding-block: 12px; }
  .strip__kpi:nth-child(n+2) { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line); }
}

/* ============================================================
   Manifest — symbol left, body right
   ============================================================ */
.manifest {
  position: relative;
  overflow: hidden;
}
.manifest__grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.manifest__visual {
  display: grid;
  place-items: center;
  padding-right: clamp(16px, 3vw, 48px);
}
.manifest__symbol {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(10, 26, 53, 0.18));
}
.manifest__body {
  display: grid;
  gap: 24px;
}
@media (max-width: 880px) {
  .manifest__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .manifest__visual {
    padding-right: 0;
  }
  .manifest__symbol {
    width: clamp(140px, 36vw, 200px);
  }
}
.manifest__body { display: grid; gap: 28px; }
.manifest__body p {
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.manifest__body p em { color: var(--blue); font-style: normal; }
.manifest__signature {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.manifest__sig-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.manifest__sig-name { font-weight: 500; font-size: 16px; color: var(--ink); }
.manifest__sig-role { font-size: 13px; color: var(--ink-3); }
@media (max-width: 880px) {
  .manifest__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Portfolio (brand cards) — UNIFIED LOGO TREATMENT
   ============================================================ */
.portfolio { border-top: 1px solid var(--line); }
.portfolio__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}
.portfolio__head-left { display: grid; gap: 18px; max-width: 720px; }

.brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.brand-cell { display: flex; }
.brand-cell--wide { grid-column: span 8; }
.brand-cell--reg { grid-column: span 4; }
.brand-cell--half { grid-column: span 6; }

@media (max-width: 1080px) {
  .brands { grid-template-columns: repeat(6, 1fr); }
  .brand-cell--wide, .brand-cell--reg, .brand-cell--half { grid-column: span 6; }
}
@media (max-width: 720px) {
  .brands { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .brand-cell--wide, .brand-cell--reg, .brand-cell--half { grid-column: span 2; }
}
@media (max-width: 480px) {
  .brands { grid-template-columns: 1fr; }
  .brand-cell--wide, .brand-cell--reg, .brand-cell--half { grid-column: span 1; }
}

.brand {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 440px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.4s var(--ease-out);
}

/* Hover spotlight (driven by --mx/--my from app.js) */
.brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 0%), var(--brand-glow, rgba(31, 122, 230, 0.12)), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  z-index: -1;
}

/* Top accent stripe in the brand color */
.brand__stripe {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--brand-accent, var(--navy));
  border-radius: 0 0 2px 2px;
  opacity: 0.85;
  transition: left 0.45s var(--ease-out), right 0.45s var(--ease-out), opacity 0.3s;
}
.brand:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(10, 26, 53, 0.18), 0 8px 20px -10px rgba(10, 26, 53, 0.08);
}
.brand:hover::before { opacity: 1; }
.brand:hover .brand__stripe { left: 0; right: 0; opacity: 1; }

.brand__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.brand__tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  white-space: nowrap;
}

/* Unified neutral logo box for all six cards */
.brand__logobox {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 40px);
  border-radius: 18px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--line);
}
.brand__logobox::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.6), transparent 60%);
  pointer-events: none;
}
.brand__logobox img {
  /* Forced uniform height across all 6 brand cards. Width follows aspect-ratio. */
  height: clamp(80px, 9vw, 104px);
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(10, 26, 53, 0.06));
  transition: transform 0.5s var(--ease-out);
}
/* The Schönfelder EDV tile is structurally wider — keep its logo
   optically the same height as the others, not proportionally larger. */
.brand-cell--wide .brand__logobox { padding: clamp(32px, 4vw, 56px); }

@media (max-width: 720px) {
  .brand__logobox img { height: 80px; }
}
.brand:hover .brand__logobox img { transform: scale(1.04); }

.brand__body { display: grid; gap: 8px; padding: 4px 2px 0; }
.brand__name {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.brand__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
  font-weight: 400;
  text-wrap: pretty;
}
.brand__desc strong { color: var(--ink); font-weight: 500; }

.brand__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.brand__url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.brand__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out), border-color 0.3s;
}
.brand:hover .brand__arrow {
  background: var(--brand-accent, var(--navy));
  border-color: var(--brand-accent, var(--navy));
  color: #fff;
  transform: rotate(-45deg);
}

@media (max-width: 480px) {
  .brand { padding: 24px 22px 22px; min-height: 380px; border-radius: 20px; }
  .brand__tag { font-size: 9px; padding: 4px 8px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--line);
  background: var(--bg-section);
}
.faq__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq__head { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 20px); }
.faq__list { display: grid; gap: 0; }
.faq__item {
  border-top: 1px solid var(--line);
  padding-block: 20px;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  text-align: left;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.3;
  padding: 6px 0;
  min-height: 44px;
}
.faq__q-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.faq__q-icon::before,
.faq__q-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.faq__q-icon::before { width: 10px; height: 1.5px; }
.faq__q-icon::after { width: 1.5px; height: 10px; }
.faq__item.is-open .faq__q-icon {
  background: var(--navy);
  border-color: var(--navy);
}
.faq__item.is-open .faq__q-icon::before,
.faq__item.is-open .faq__q-icon::after { background: #fff; }
.faq__item.is-open .faq__q-icon::after { transform: scaleY(0); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.faq__a > div {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.faq__a > div > p { padding-top: 14px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

@media (max-width: 880px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(31, 122, 230, 0.12), transparent 70%);
  pointer-events: none;
}
.contact__inner {
  display: grid;
  gap: 32px;
  text-align: center;
  justify-items: center;
  position: relative;
}
.contact__title {
  font-size: clamp(38px, 7.5vw, 120px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.contact__title em { color: var(--blue); font-style: normal; font-weight: 500; }
.contact__lede {
  font-size: clamp(15px, 1.3vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.45;
}
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.contact__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__logo {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { transition: color 0.2s; }
.footer__links a:hover { color: var(--ink); }
@media (max-width: 680px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Legal pages (Impressum / Datenschutz / 404)
   ============================================================ */
.legal {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(60px, 8vw, 120px);
}
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal__inner > * { margin-top: 0; margin-bottom: 0; }
.legal__inner > * + * { margin-top: 14px; }

.legal__inner h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.legal__inner > h1 + * { margin-top: 24px; }

.legal__inner h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.legal__inner > h2 {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal__inner > h2:first-of-type {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

.legal__inner h3 {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.legal__inner > h3 { margin-top: 32px; }

.legal__inner h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.legal__inner > h4 { margin-top: 20px; }

.legal__inner > h2 + p,
.legal__inner > h3 + p,
.legal__inner > h4 + p,
.legal__inner > h2 + h3,
.legal__inner > h2 + h4,
.legal__inner > h3 + h4 { margin-top: 10px; }

.legal__inner p,
.legal__inner li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

.legal__inner ul,
.legal__inner ol { padding-left: 24px; }
.legal__inner > ul,
.legal__inner > ol { margin-top: 10px; }
.legal__inner li + li { margin-top: 4px; }

.legal__inner a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-word;
}
.legal__inner a:hover { color: var(--navy); }

.legal__inner address {
  font-style: normal;
  background: var(--bg-soft);
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  line-height: 1.65;
  font-size: 15px;
}

/* Hervorgehobener Hinweis-Block (z.B. Widerspruchsrecht in CAPS) */
.legal__notice {
  background: var(--bg-soft);
  border-left: 3px solid var(--ink-3);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 13px !important;
  line-height: 1.65;
  letter-spacing: 0.015em;
  color: var(--ink-2);
}

.legal__breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.legal__breadcrumb a { color: var(--ink-3); transition: color 0.2s; }
.legal__breadcrumb a:hover { color: var(--ink); }

.legal__stand {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.06s; }
.reveal[data-delay='2'] { transition-delay: 0.12s; }
.reveal[data-delay='3'] { transition-delay: 0.18s; }
.reveal[data-delay='4'] { transition-delay: 0.24s; }
.reveal[data-delay='5'] { transition-delay: 0.3s; }

/* ============================================================
   Reduced motion — kill everything that moves
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__symbol-img {
    opacity: 1;
    transform: none;
  }
  .hero__orb { opacity: 0.35; }
}
