/* ============================================================
   HEUSER Werbetechnik — Designstudie Phase 1
   Design-System: reduziertes Premium-B2B, Grotesk-Typografie,
   Blau als sparsamer Akzent, diagonales Logo-Motiv.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --paper:      #ffffff;
  --paper-2:    #f4f5f6;
  --paper-3:    #e9eaec;
  --ink:        #15181b;
  --ink-2:      #55585b;   /* Marken-Dunkelgrau ~#58595B */
  --ink-3:      #6b6e71;   /* Kleintext auf Weiß: 5,1:1 (AA) */
  --line:       rgba(21, 24, 27, .11);
  --line-2:     rgba(21, 24, 27, .18);

  --accent:        #0d93d8;  /* Heuser-Blau: nur Grafik + großer Text (≥3:1) */
  --accent-strong: #0b7ab5;  /* Button-Flächen: weißer Text 4,7:1 (AA) */
  --accent-text:   #0a6fa6;  /* Akzent als Text auf hellem Grund: 5,5:1 (AA) */
  --accent-bright: #3eb0ec;  /* Akzent-Kleintext auf dunklem Grund: ≥7:1 */
  --accent-2:   #0a6fa6;
  --accent-soft: rgba(13, 147, 216, .12);

  --dark:       #0e1114;
  --dark-2:     #171b1f;
  --dark-line:  rgba(255, 255, 255, .12);
  --on-dark:    #f3f4f5;
  --on-dark-2:  #b4b8bc;   /* Sekundärtext auf Dunkel – AA-konform */
  --on-dark-soft: #cfd2d6; /* Fließtext/Lead auf Dunkel – gut lesbar */

  /* Typo */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 14px;
  --nav-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent-strong); color: #fff; }

/* ---------- Fokus (Tastatur) ---------- */
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 3px; }
.section--dark :focus-visible, .surface-dark :focus-visible, .footer :focus-visible,
.hero--home :focus-visible, .mobile-menu :focus-visible { outline-color: var(--accent-bright); }

.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 300;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; transition: top .25s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.02; letter-spacing: -.02em; color: var(--ink); }
.display {
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.035em;
}
.h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.0; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.03; letter-spacing: -.025em; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.02em; font-weight: 700; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--ink-2); font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block;
}
.eyebrow--center::before { display: none; }

.muted { color: var(--ink-2); }
.accent-text { color: var(--accent-text); }
.section--dark .accent-text, .surface-dark .accent-text, .hero--home .accent-text { color: var(--accent); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1480px; }
.section { padding-block: clamp(72px, 11vw, 148px); position: relative; }
.section--tight { padding-block: clamp(52px, 7vw, 92px); }
.section--flush-top { padding-top: 0; }

.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.stack-sm > * + * { margin-top: .7rem; }
.stack > * + * { margin-top: 1.4rem; }
.stack-lg > * + * { margin-top: 2.2rem; }

/* ---------- Dark surface + Film-Grain ---------- */
.section--dark, .surface-dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.surface-dark h1, .surface-dark h2, .surface-dark h3 { color: #fff; }
.section--dark .muted, .surface-dark .muted { color: var(--on-dark-2); }
.section--dark .lead, .surface-dark .lead { color: var(--on-dark-soft); }
.section--dark .eyebrow, .surface-dark .eyebrow { color: var(--on-dark-2); }

.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .045; mix-blend-mode: overlay;
}
.grain > * { position: relative; z-index: 2; }

/* ---------- Diagonal-Motiv (aus Logo abgeleitet) ---------- */
.diag-motif {
  position: absolute; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, var(--accent) 0 3px, transparent 3px),
              var(--paper-2);
  opacity: .55;
}
.motif-slab {
  position: absolute; z-index: 0; pointer-events: none;
  width: 46%; aspect-ratio: 1/1.1;
  background: linear-gradient(180deg, rgba(13,147,216,.06), rgba(13,147,216,0));
  transform: skewX(-11deg);
  border-left: 2px solid var(--accent-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  padding: .95em 1.6em; font-weight: 600; font-size: .98rem;
  border-radius: 999px; letter-spacing: .01em;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 24px -12px rgba(11,122,181,.9); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--on-dark { border: 1.5px solid var(--dark-line); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600;
  color: var(--ink); border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); gap: .8em; }
.section--dark .link-arrow, .surface-dark .link-arrow { color: #fff; }

/* ============================================================
   NAVIGATION — schwebende Pille
   ============================================================ */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 1180px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 9px 9px 22px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(21,24,27,.08);
  border-radius: 999px;
  box-shadow: 0 10px 40px -22px rgba(0,0,0,.4);
  transition: box-shadow .4s, background .4s, top .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled { top: 10px; box-shadow: 0 14px 44px -20px rgba(0,0,0,.5); background: rgba(255,255,255,.96); }
.nav__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: .55em .95em; font-size: .93rem; font-weight: 500; color: var(--ink-2);
  border-radius: 999px; transition: color .25s, background .25s; white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__links a.is-active { color: var(--ink); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__cta .btn { padding: .7em 1.25em; font-size: .9rem; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 999px;
  align-items: center; justify-content: center; background: var(--ink); }
.nav__burger span { position: relative; width: 17px; height: 1.8px; background: #fff; display: block; transition: .3s; }
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.8px; background: #fff; transition: .3s; }
.nav__burger span::before { top: -5.5px; } .nav__burger span::after { top: 5.5px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

/* Mobile Overlay-Menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 800; letter-spacing: -.03em;
  color: #fff; padding: .12em 0; opacity: .4; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease); }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu a:nth-child(1){transition-delay:.05s}.mobile-menu a:nth-child(2){transition-delay:.1s}
.mobile-menu a:nth-child(3){transition-delay:.15s}.mobile-menu a:nth-child(4){transition-delay:.2s}
.mobile-menu a:nth-child(5){transition-delay:.25s}.mobile-menu a:nth-child(6){transition-delay:.3s}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu__meta { position: absolute; bottom: var(--gutter); left: var(--gutter); color: var(--on-dark-2); font-size: .9rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: calc(var(--nav-h) + 40px); overflow: hidden; }
.hero--home { min-height: 100svh; display: flex; align-items: center; background: var(--dark); color: #fff; }
.hero--home h1, .hero--home .display { color: #fff; }
.hero--home canvas#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .9; }
.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__title { max-width: 15ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.08em; }
.hero__title .line > span { display: block; animation: heroLineUp 1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .09s; }
.hero__title .line:nth-child(3) > span { animation-delay: .18s; }
@keyframes heroLineUp { from { transform: translateY(115%); } to { transform: translateY(0); } }
.hero__sub { max-width: 52ch; margin-top: 1.8rem; color: var(--on-dark-soft); animation: heroFadeUp 1s ease .5s both; }
.hero__actions { margin-top: 2.4rem; display: flex; gap: 14px; flex-wrap: wrap; animation: heroFadeUp 1s ease .65s both; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2);
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll .dot { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrolldot 2s infinite; }
@keyframes scrolldot { 0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}
  50.1%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom} }

/* Innere Seiten-Hero (hell) */
.pagehero { position: relative; padding-top: calc(var(--nav-h) + 68px); padding-bottom: clamp(30px, 5vw, 60px); overflow: hidden; }
.pagehero .eyebrow { margin-bottom: 1.1rem; }
.pagehero__title { max-width: 18ch; }
.pagehero__lead { max-width: 56ch; margin-top: 1.5rem; }
.pagehero__crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 1.4rem; letter-spacing: .02em; }
.pagehero__crumbs a:hover { color: var(--accent-text); }

/* ============================================================
   KUNDEN-LEISTE (Text-Marquee)
   ============================================================ */
.clients { border-block: 1px solid var(--line); padding-block: 30px; overflow: hidden; }
.clients__label { text-align: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.marquee { display: flex; gap: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 6vw, 88px); padding-right: clamp(40px, 6vw, 88px); animation: marquee 32s linear infinite; flex-shrink: 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(1.3rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink-3); white-space: nowrap; transition: color .3s; }
.marquee__track span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ============================================================
   STATEMENT-BAND (Startseite, full-width Editorial)
   ============================================================ */
.statement { background: var(--paper-2); overflow: hidden; }
.statement__bg {
  position: absolute; top: -14%; right: -8%; width: 54%; height: 132%;
  background: #fff; transform: skewX(-11deg);
  border-left: 2px solid rgba(13, 147, 216, .5); opacity: .6; pointer-events: none;
}
.statement .wrap--wide { position: relative; }
.statement__title {
  font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 4.8rem);
  line-height: 1.08; letter-spacing: -.03em; margin-top: 1.4rem;
}
.statement__title .chip {
  display: inline-block; width: clamp(64px, 8vw, 122px); height: .72em;
  border-radius: 999px; overflow: hidden; vertical-align: -.07em;
  margin: 0 .06em; position: relative; background: var(--paper-3);
}
.statement__title .chip img { width: 100%; height: 100%; object-fit: cover; }
.statement__foot { margin-top: clamp(30px, 4.5vw, 56px); display: flex; justify-content: flex-end; }
.statement__foot > div { max-width: 54ch; }

/* ============================================================
   LEISTUNGS-KACHELN
   ============================================================ */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 56px 1.1fr 1.4fr auto; gap: clamp(18px,3vw,48px);
  align-items: center; padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding-left .5s var(--ease);
}
.svc__num { font-size: .85rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.svc__title { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.svc__desc { color: var(--ink-2); font-size: 1rem; max-width: 44ch; }
.svc__go { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; transition: .35s var(--ease); flex-shrink: 0; }
.svc__go svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.svc:hover { padding-left: 16px; }
.svc:hover .svc__go { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc:hover .svc__go svg { transform: translate(2px,-2px); }
.svc:hover .svc__title { color: var(--accent-text); }

/* Full-Bleed-Variante (Startseite): Linien von Rand zu Rand,
   Zeilen-Invert + schwebendes Projektfoto beim Hover/Fokus */
.svc-list--full .svc,
.svc-list--full .svc:hover {
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}
.svc-list--full .svc { transition: background .45s var(--ease); }
.svc-list--full .svc:hover, .svc-list--full .svc:focus-visible { background: var(--dark); }
.svc-list--full .svc:hover .svc__title, .svc-list--full .svc:focus-visible .svc__title { color: #fff; }
.svc-list--full .svc:hover .svc__desc, .svc-list--full .svc:focus-visible .svc__desc { color: var(--on-dark-2); }
.svc-list--full .svc:hover .svc__num, .svc-list--full .svc:focus-visible .svc__num { color: var(--accent-bright); }
.svc__preview {
  position: absolute; top: 50%; right: clamp(140px, 17vw, 320px);
  width: clamp(190px, 17vw, 270px); aspect-ratio: 4/3;
  border-radius: 12px; overflow: hidden; pointer-events: none; z-index: 3;
  opacity: 0; transform: translateY(-50%) rotate(-4deg) scale(.88);
  transition: opacity .4s var(--ease), transform .55s var(--ease);
  box-shadow: 0 26px 60px -22px rgba(0,0,0,.55);
}
.svc__preview img { width: 100%; height: 100%; object-fit: cover; }
.svc:hover .svc__preview, .svc:focus-visible .svc__preview {
  opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1);
}
.svc--more .svc__title { color: var(--accent-text); }
@media (max-width: 1100px) { .svc__preview { display: none; } }

/* Dezentes Diagonal-Motiv als Sektions-Hintergrund */
.section--motif { overflow: hidden; }
.section--motif .motif-slab { right: -14%; top: -18%; height: 136%; }

/* Karten-Variante */
.card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2);
  display: flex; flex-direction: column; isolation: isolate;
}
.card__media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 1.2rem; }
.card__body p { color: var(--ink-2); font-size: .96rem; }
.card__tag { align-self: flex-start; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 600; }

/* ============================================================
   EDITORIAL PORTFOLIO GRID
   ============================================================ */
.folio { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 26px); }
.folio__item { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-3); grid-column: span 6; }
.folio__item.tall { grid-row: span 2; }
.folio__item.wide { grid-column: span 8; }
.folio__item.small { grid-column: span 4; }
.folio__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .9s var(--ease); }
.folio__item.tall img { aspect-ratio: 3/4.2; }
.folio__cap {
  position: absolute; inset: auto 0 0 0; padding: 22px; z-index: 2;
  background: linear-gradient(0deg, rgba(10,13,16,.86) 0%, rgba(10,13,16,.2) 65%, transparent);
  color: #fff; transform: translateY(8px); opacity: 0; transition: .5s var(--ease);
}
.folio__cap .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); font-weight: 600; }
.folio__cap .t { font-size: 1.1rem; font-weight: 700; margin-top: 2px; }
.folio__item:hover img, .folio__item:focus-visible img { transform: scale(1.05); }
.folio__item:hover .folio__cap, .folio__item:focus-visible .folio__cap,
.folio__item:focus-within .folio__cap { transform: none; opacity: 1; }

/* Startseiten-Highlights: gleichmäßige Reihen, einheitliche Zellenhöhe */
.folio--home { grid-auto-rows: clamp(170px, 20vw, 264px); }
.folio--home .folio__item { grid-column: span 4; grid-row: span 1; }
.folio--home .folio__item.c8 { grid-column: span 8; }
.folio--home .folio__item.c6 { grid-column: span 6; }
.folio--home .folio__item.c4 { grid-column: span 4; }
.folio--home .folio__item img { aspect-ratio: auto; height: 100%; }

/* Auftraggeber-Namensraster */
.client-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; }
.client-grid li { padding: 18px 8px; border-top: 1px solid var(--line); font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); transition: color .25s; }
.client-grid li:hover { color: var(--accent); }

/* Filterbar */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filterbar button {
  padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--line-2);
  font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: .28s;
}
.filterbar button:hover { border-color: var(--ink); color: var(--ink); }
.filterbar button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.folio__item.is-hidden { display: none; }

/* ============================================================
   NUMMERIERTER PROZESS / CASE-STRUKTUR
   ============================================================ */
.steps { display: grid; gap: 0; border-top: 1px solid var(--dark-line); }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px,4vw,60px);
  padding: clamp(28px,3.6vw,52px) 0; border-bottom: 1px solid var(--dark-line); align-items: start; }
.step__n { font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.step__t { font-size: clamp(1.2rem,2vw,1.6rem); font-weight: 700; margin-bottom: .5rem; }
.step__d { color: var(--on-dark-2); max-width: 60ch; }

/* ============================================================
   FEATURE / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--media-right { direction: ltr; }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4/5; }
.media-frame--wide { aspect-ratio: 4/3; }
.media-badge { position: absolute; left: 18px; bottom: 18px; z-index: 2; background: rgba(14,17,20,.72);
  backdrop-filter: blur(8px); color: #fff; padding: .5em 1em; border-radius: 999px; font-size: .8rem; letter-spacing: .05em; }

/* Detail-Liste */
.deflist { border-top: 1px solid var(--line); }
.deflist li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.deflist li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex-shrink: 0; transform: translateY(6px) skewX(-12deg); }
.deflist li span { font-size: 1.05rem; }

/* ============================================================
   STATS / TRUST
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px,3vw,48px); }
.stat__n { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.section--dark .stat__n { color: #fff; }
.stat__n .u { color: var(--accent); }
.stat__l { color: var(--ink-2); margin-top: .6rem; font-size: .98rem; }
.section--dark .stat__l { color: var(--on-dark-2); }

/* ============================================================
   CTA-BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .display { max-width: 16ch; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 14px 16px; border: 1.5px solid var(--line-2);
  border-radius: 8px; background: var(--paper); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form__note { font-size: .84rem; color: var(--ink-3); }
.form__ok { display: none; padding: 16px 18px; background: var(--accent-soft); border-radius: 8px; color: var(--accent-2); font-weight: 600; }
.form__ok.show { display: block; }

.contact-meta li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-meta li:last-child { border-bottom: 1px solid var(--line); }
.contact-meta .k { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact-meta .v { font-size: 1.15rem; font-weight: 600; margin-top: 4px; }
.contact-meta .v a:hover { color: var(--accent-text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: var(--on-dark); padding-top: clamp(60px, 8vw, 110px); position: relative; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer__brand-name { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.footer__brand-name b { color: var(--accent); font-weight: 800; }
.footer__brand-sub { color: var(--on-dark-2); font-weight: 400; font-size: 1rem; letter-spacing: .02em; }
.footer .muted { color: var(--on-dark-2); }
.footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 18px; font-weight: 600; }
.footer__col a, .footer__col p { color: var(--on-dark); display: block; padding: 5px 0; font-size: .98rem; }
.footer__col a { color: var(--on-dark-2); transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__bar { border-top: 1px solid var(--dark-line); padding-block: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-dark-2); font-size: .85rem; }
.footer__disclaimer { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 22px; }
.footer__disclaimer p { color: rgba(255,255,255,.62); font-size: .78rem; line-height: 1.6; }

/* ============================================================
   REVEAL-Zustände
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"]{transition-delay:.08s}[data-reveal-delay="2"]{transition-delay:.16s}
[data-reveal-delay="3"]{transition-delay:.24s}[data-reveal-delay="4"]{transition-delay:.32s}

/* ============================================================
   BRANCHEN-ANIMATIONEN
   Bewegungssprache aus dem Handwerk: Folie, Plotter, Licht.
   ============================================================ */

/* --- Folien-Wipe: Bilder werden diagonal „verklebt“ (Rakel-Reveal).
       Klasse .wipe wird per JS gesetzt (ohne JS: Bild normal sichtbar). --- */
.wipe { position: relative; overflow: hidden; }
.wipe img {
  clip-path: polygon(0 0, 0 0, -24% 100%, -24% 100%);
}
.wipe.in img {
  clip-path: polygon(0 0, 124% 0, 100% 100%, -24% 100%);
  transition: clip-path 1.05s cubic-bezier(.7, .05, .3, 1);
}
.wipe::after { /* Glanzkante der Rakel */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(101deg, transparent 42%, rgba(255,255,255,.34) 50%, rgba(255,255,255,.07) 55%, transparent 62%);
  transform: translateX(-101%);
}
.wipe.in::after { animation: rakel 1.05s cubic-bezier(.7, .05, .3, 1) forwards; }
@keyframes rakel { to { transform: translateX(101%); } }

/* --- Plotter-Schneidelinie: zeichnet sich unter Headlines,
       kleiner Messerkopf fährt die Linie ab. Per JS injiziert. --- */
.plotline { display: block; position: relative; height: 9px; width: min(220px, 30vw); margin-top: 22px; }
.plotline::before {
  content: ""; position: absolute; left: 0; top: 3.5px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.plotline.in::before { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.65,.05,.36,1) .15s; }
.plotline::after { /* Messerkopf */
  content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px;
  background: var(--ink); transform: translateX(-5px) rotate(45deg); opacity: 0;
}
.plotline.in::after { animation: plothead 1.1s cubic-bezier(.65,.05,.36,1) .15s forwards; }
@keyframes plothead {
  0% { left: 0; opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.section--dark .plotline::after, .hero--home .plotline::after { background: #fff; }

/* --- Lichtwerbung: Akzente „schalten sich ein“, wenn eine dunkle
       Section in den Viewport kommt (kurzes Aufflackern, dann Glow). --- */
@keyframes neonOn {
  0% { opacity: .25; } 7% { opacity: 1; } 11% { opacity: .3; } 17% { opacity: 1; }
  23% { opacity: .4; } 29% { opacity: 1; } 34% { opacity: .7; } 42%, 100% { opacity: 1; }
}
.section--dark.lit-in .eyebrow::before,
.section--dark.lit-in .step__n,
.section--dark.lit-in .stat__n .u,
.hero--home.lit-in .accent-text {
  animation: neonOn 1.4s ease-out both;
}
.section--dark.lit-in .step__n,
.section--dark.lit-in .stat__n .u,
.hero--home.lit-in .accent-text {
  text-shadow: 0 0 18px rgba(13,147,216,.6), 0 0 46px rgba(13,147,216,.32);
}
.section--dark.lit-in .eyebrow::before {
  box-shadow: 0 0 10px rgba(13,147,216,.85), 0 0 26px rgba(13,147,216,.4);
}

/* --- Folienglanz beim Hover: Lichtreflex zieht über die Fläche. --- */
.folio__item::before, .card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(101deg, transparent 40%, rgba(255,255,255,.2) 50%, transparent 60%);
  transform: translateX(-130%) skewX(-8deg);
}
.folio__item:hover::before, .folio__item:focus-visible::before,
.card:hover .card__media::before {
  transform: translateX(130%); transition: transform .9s var(--ease);
}

/* ============================================================
   HERO VARIANTE B — Foto-Hero mit Folien-Wipe
   ============================================================ */
.hero--photo { background: var(--dark); align-items: flex-end; }
.hero--photo .hero__inner { padding-bottom: clamp(48px, 7vh, 92px); text-shadow: 0 2px 28px rgba(8,11,14,.45); }
/* Kompakter Hero-Text unten links – mehr Bild sichtbar */
.hero--photo .hero__inner { max-width: 760px; margin-inline: 0; }
.hero--photo .hero__title { max-width: 16ch; font-size: clamp(2.15rem, 4.7vw, 4.15rem); line-height: 1.03; }
.hero--photo .hero__sub { font-size: clamp(1.05rem, 1.25vw, 1.24rem); line-height: 1.55; max-width: 48ch; margin-top: 1.2rem; color: #e4e7ea; }
.hero--photo .hero__actions { margin-top: 1.6rem; }
.hero--photo .eyebrow { margin-bottom: .35rem; color: #eceef0; }
.hero--photo .hero__scroll { display: none; }
.hero--photo .hero__media { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero--photo .hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%;
}
.hero--photo .hero__media::after { /* Rakel-Glanzkante über das Foto (einmaliger Lichtschwung) */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(101deg, transparent 42%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.05) 55%, transparent 62%);
  transform: translateX(-101%);
}
.is-ready .hero--photo .hero__media::after { animation: rakel 1.6s cubic-bezier(.7, .05, .3, 1) .25s forwards; }
.hero--photo .hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(8,11,14,.94) 0%, rgba(8,11,14,.7) 27%, rgba(8,11,14,.3) 52%, transparent 80%),
              linear-gradient(90deg, rgba(8,11,14,.85) 0%, rgba(8,11,14,.5) 40%, transparent 68%);
}
/* Dezente Kino-Bewegung (Ken Burns) – sehr langsamer Zoom, Endlos-Alternate */
.hero--photo.kenburns .hero__media img { will-change: transform; }
.is-ready .hero--photo.kenburns .hero__media img {
  animation: kenburns 32s ease-in-out 1.8s infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.15); }
}

/* ============================================================
   VARIANTEN-UMSCHALTER (nur Designstudie, Start A/B)
   ============================================================ */
.variant-switch {
  position: fixed; bottom: 18px; right: 18px; z-index: 90;
  display: flex; align-items: center; gap: 4px;
  background: rgba(14,17,20,.88); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 6px 8px 6px 16px; font-size: .8rem;
  box-shadow: 0 12px 34px -16px rgba(0,0,0,.6);
}
.variant-switch__label { letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; color: rgba(255,255,255,.75); margin-right: 6px; }
.variant-switch a { padding: .45em .85em; border-radius: 999px; color: #fff; font-weight: 600; white-space: nowrap; transition: background .25s; }
.variant-switch a:hover { background: rgba(255,255,255,.14); }
.variant-switch a[aria-current] { background: var(--accent-strong); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__cta .btn--primary { display: none; }
  .nav__burger { display: flex; }
  .split, .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .svc { grid-template-columns: 40px 1fr auto; }
  .svc__desc { display: none; }
  .folio__item, .folio__item.wide, .folio__item.small { grid-column: span 6; }
  .folio__item.tall { grid-row: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* Hero A: 3D-Akzent zurücknehmen, Textzone abschirmen, Scroll-Hinweis freistellen */
  .hero--home canvas#hero3d { opacity: .45; }
  .hero--home { padding-bottom: 110px; }
  .hero--home .hero__inner::before {
    content: ""; position: absolute; inset: -30px -20px; z-index: -1;
    background: radial-gradient(ellipse at 30% 45%, rgba(14,17,20,.72) 30%, transparent 75%);
    pointer-events: none;
  }
  .hero--photo .hero__scrim {
    background: linear-gradient(0deg, rgba(10,13,16,.92) 0%, rgba(10,13,16,.55) 34%, rgba(10,13,16,.12) 62%, transparent 82%);
  }
  .variant-switch { bottom: 14px; right: 14px; padding-left: 12px; }
  .statement__foot { justify-content: flex-start; }
  .statement__bg { border-left: none; opacity: .5; }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .folio { grid-template-columns: repeat(2, 1fr); }
  .folio__item, .folio__item.wide, .folio__item.small, .folio__item.tall { grid-column: span 1; grid-row: auto; }
  .folio__item img, .folio__item.tall img { aspect-ratio: 1/1; }
  .folio__cap { transform: none; opacity: 1; padding: 12px; }
  .folio__cap .t { font-size: .9rem; }
  .folio--home { grid-auto-rows: auto; }
  .folio--home .folio__item, .folio--home .folio__item.c8,
  .folio--home .folio__item.c6, .folio--home .folio__item.c4 { grid-column: span 1; }
  .folio--home .folio__item img { aspect-ratio: 1/1; height: auto; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .nav { padding-left: 16px; }
  .cols-3 .card:last-child { margin-bottom: 0; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__sub, .hero__actions { opacity: 1; }
  .marquee__track { animation: none; }
  .wipe img, .hero--photo .hero__media img { clip-path: none !important; }
  .wipe::after, .hero--photo .hero__media::after { display: none; }
  .plotline::before { transform: scaleX(1); }
  .plotline::after { display: none; }
  .folio__item::before, .card__media::before { display: none; }
}

/* ============================================================
   WordPress-Theme-Ergänzungen (Phase 2)
   ============================================================ */

/* --- KI-Kennzeichnung (Art. 50 KI-VO): sichtbar im/aufm Bild --- */
.ai-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 4;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(12, 16, 20, .72); color: rgba(255, 255, 255, .92);
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  line-height: 1.4; pointer-events: none; backdrop-filter: blur(3px);
}
.hero--photo .ai-badge { right: 14px; bottom: 14px; }

/* --- Footer: Rechtslinks (Impressum / Datenschutz / AGB) --- */
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { color: inherit; text-decoration: none; opacity: .85; transition: opacity .2s; }
.footer__legal a:hover, .footer__legal a:focus-visible { opacity: 1; text-decoration: underline; }

/* --- Formular: Aktionszeile (Button + Hinweis) --- */
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__note a { color: var(--accent-text); }

/* --- Contact Form 7: Studien-Look auf CF7-Markup übertragen --- */
.wpcf7 .wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7 .wpcf7-not-valid-tip {
  display: block; margin-top: 6px; font-size: .8rem; font-weight: 600;
  color: #b3261e;
}
.wpcf7 .wpcf7-response-output {
  margin: 18px 0 0; padding: 14px 18px; border: 0; border-radius: 8px;
  background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: .92rem;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: var(--accent-soft); color: var(--accent-2, var(--accent-text));
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background: #fdecea; color: #8c1d18;
}
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7-form .btn { border: 0; cursor: pointer; }

/* --- Prosa-Layout für Impressum / Datenschutz / AGB (page.php) --- */
.prose { max-width: 76ch; }
.prose h2, .prose h3 { margin: 2.2em 0 .6em; line-height: 1.25; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; }
.prose h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 700; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--accent-text); }
.prose strong { font-weight: 700; }

/* --- WordPress-Standards --- */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); word-wrap: normal;
}
img.alignleft { float: left; margin: 0 1.2em .8em 0; }
img.alignright { float: right; margin: 0 0 .8em 1.2em; }
img.aligncenter { display: block; margin-inline: auto; }

/* --- Einwilligungs-Checkbox (CF7 acceptance, DSGVO-Opt-in) — v1.0.1 --- */
.field--consent .wpcf7-list-item { margin: 0; }
.field--consent .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.field--consent .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px;
  accent-color: var(--accent-strong, #0b7ab5);
}
.field--consent .wpcf7-list-item-label { font-size: .84rem; color: var(--ink-3); line-height: 1.55; }
.field--consent .wpcf7-list-item-label a { color: var(--accent-text); }
.field--consent .wpcf7-not-valid-tip { margin-top: 8px; }
