/* ==========================================================================
   Bronner Consulting — teufels-DNA edition
   Display: Clash Display · Body: Switzer · Mono: Space Mono
   Light editorial base + dramatic dark bands · accent: Bronner orange
   ========================================================================== */

:root {
  /* paper / ink */
  --paper:      #f3efe7;
  --paper-2:    #ebe6db;
  --ink:        #16130e;
  --ink-2:      #57514733;   /* hairline on paper */
  --ink-soft:   #514b41;
  --ink-mute:   #645f54;     /* AA ≥4.5:1 on both paper bands */

  /* night */
  --night:      #0c0d10;
  --night-2:    #121419;
  --night-line: #ffffff1f;
  --night-text: #f3efe7;
  --night-mute: #9a9488;

  /* midnight (schramberg map) */
  --mid:        #0a1430;
  --mid-2:      #0c1838;

  /* accent — bronner orange */
  --accent:     #e2541b;     /* large display / fills */
  --accent-deep: #b23c0e;    /* small text on light bands — AA ≥4.5:1; CTA band bg */
  --accent-2:   #ff6a2c;     /* accent on dark bands */
  --accent-ink: #1c0a02;

  --shell:  1340px;
  --pad:    clamp(20px, 5vw, 84px);

  --f-disp: "Clash Display", "Space Grotesk", system-ui, sans-serif;
  --f-body: "Switzer", system-ui, -apple-system, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;

  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
/* the DECK page never scrolls (desktop AND mobile) — navigation is only the transform +
   transition. Legal pages (no .deck class) still scroll normally. */
html.deck, html.deck body { height: 100%; overflow: hidden; overscroll-behavior: none; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.deck body { background: var(--night); }

/* the deck holds every section + footer and is moved by transform (no transition;
   the jump is hidden behind the page-transition fx) */
#deck { position: relative; will-change: transform; }
/* native cursor only hidden once JS confirms the custom cursor is live */
html.cursor-on body { cursor: none; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); }

h1, h2, h3, h4 {
  font-family: var(--f-disp);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent-deep); opacity: .75; }
.eyebrow.light { color: var(--accent-2); }
.eyebrow.light::before { background: var(--accent-2); }
.eyebrow.ink { color: var(--accent-ink); }
.eyebrow.ink::before { background: var(--accent-ink); }

/* accessibility helpers */
.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; top: 10px; left: 10px; z-index: 500;
  transform: translateY(-160%);
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em;
  padding: 12px 20px; border-radius: 4px;
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--accent-2); outline-offset: 2px; }

.h-sec {
  font-size: clamp(33px, 6vw, 96px);
  letter-spacing: -0.035em;
  margin-top: 22px;
}
.h-sec.light { color: var(--night-text); }

.lead {
  font-family: var(--f-disp);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead b { color: var(--accent); font-weight: 500; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 400; will-change: width;
  transition: width .1s linear;
}

/* ---------- page-transition fx (rotating variety) ---------- */
.pager-fx { position: fixed; inset: 0; z-index: 350; pointer-events: none; overflow: hidden; visibility: hidden; }
.pager-fx.is-active { visibility: visible; }
.pf-panel { position: absolute; inset: -2px 0; will-change: transform, clip-path; transition: transform .52s cubic-bezier(.76, 0, .24, 1), clip-path .58s cubic-bezier(.76, 0, .24, 1); }
.pf-label { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; opacity: 0; transform: translateY(28px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.pf-idx { font-family: var(--f-mono); font-size: 13px; letter-spacing: .24em; }
.pf-name { font-family: var(--f-disp); font-weight: 600; font-size: clamp(40px, 9vw, 124px); letter-spacing: -.03em; line-height: 1; }
.pager-fx.cover .pf-label { opacity: 1; transform: none; transition-delay: .2s; }
.pager-fx.away .pf-label { opacity: 0; transform: translateY(-28px); transition-duration: .3s; }
.pager-fx.resetting .pf-panel, .pager-fx.resetting .pf-label { transition: none !important; }

/* tones */
.pager-fx.tone-ink    .pf-1 { background: var(--ink); }         .pager-fx.tone-ink    .pf-2 { background: var(--accent-deep); }
.pager-fx.tone-accent .pf-1 { background: var(--accent-deep); } .pager-fx.tone-accent .pf-2 { background: var(--ink); }
.pager-fx.tone-paper  .pf-1 { background: var(--paper); }       .pager-fx.tone-paper  .pf-2 { background: var(--accent); }
.pager-fx.tone-ink .pf-name, .pager-fx.tone-accent .pf-name { color: #fff; }
.pager-fx.tone-ink .pf-idx { color: var(--accent-2); }
.pager-fx.tone-accent .pf-idx { color: #fff; opacity: .7; }
.pager-fx.tone-paper .pf-name { color: var(--ink); }
.pager-fx.tone-paper .pf-idx { color: var(--accent-deep); }

/* fx: vertical sweep up */
.fx-up .pf-panel { transform: translateY(102%); }
.fx-up.cover .pf-1 { transform: translateY(0); } .fx-up.cover .pf-2 { transform: translateY(0); transition-delay: .09s; }
.fx-up.away .pf-1 { transform: translateY(-102%); transition-delay: .08s; } .fx-up.away .pf-2 { transform: translateY(-102%); }
/* fx: vertical sweep down */
.fx-down .pf-panel { transform: translateY(-102%); }
.fx-down.cover .pf-1 { transform: translateY(0); } .fx-down.cover .pf-2 { transform: translateY(0); transition-delay: .09s; }
.fx-down.away .pf-1 { transform: translateY(102%); transition-delay: .08s; } .fx-down.away .pf-2 { transform: translateY(102%); }
/* fx: doors (two-tone halves meet in the middle) */
.fx-doors .pf-1 { right: 50%; transform: translateX(-102%); } .fx-doors .pf-2 { left: 50%; transform: translateX(102%); }
.fx-doors.cover .pf-1, .fx-doors.cover .pf-2 { transform: translateX(0); }
.fx-doors.away .pf-1 { transform: translateX(-102%); } .fx-doors.away .pf-2 { transform: translateX(102%); }
/* fx: horizontal slide (in from left, out to right) */
.fx-slide .pf-panel { transform: translateX(-102%); }
.fx-slide.cover .pf-1 { transform: translateX(0); } .fx-slide.cover .pf-2 { transform: translateX(0); transition-delay: .08s; }
.fx-slide.away .pf-1 { transform: translateX(102%); transition-delay: .08s; } .fx-slide.away .pf-2 { transform: translateX(102%); }
/* fx: iris (circle expand / contract, single panel) */
.fx-iris .pf-2 { display: none; }
.fx-iris .pf-1 { clip-path: circle(0% at 50% 50%); }
.fx-iris.cover .pf-1 { clip-path: circle(150% at 50% 50%); }
.fx-iris.away .pf-1 { clip-path: circle(0% at 50% 50%); }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
  display: grid; place-items: center;
  mix-blend-mode: normal;
}
/* hot state = hollow ring (never obscures what's underneath, so you always see
   where you're clicking — the old solid 64px blob covered the menu links) */
.cursor { transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), opacity .2s var(--ease); }
.cursor.is-hot { width: 46px; height: 46px; background: transparent; border: 1.5px solid var(--accent); }
.cursor.is-dark { background: var(--night-text); }
/* over the open fullscreen menu the custom cursor is hidden and the native
   pointer returns — the menu stays perfectly readable */
body.menu-open .cursor { opacity: 0; }
html.cursor-on body.menu-open { cursor: auto; }
.cursor-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em;
  color: #fff; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s;
  text-transform: uppercase; white-space: nowrap;
}
.cursor.is-hot .cursor-label { opacity: 1; transform: scale(1); }
@media (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  transition: padding .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
/* after the first scroll the whole bar collapses to a single hamburger button */
.hdr.is-scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; padding-block: clamp(14px, 1.8vw, 20px); }
.hdr.is-scrolled .hdr-brand { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.hdr.is-scrolled .hdr-status { opacity: 0; pointer-events: none; }

.hdr-brand { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hdr-logo { height: clamp(46px, 4.4vw, 64px); width: auto; }

.hdr-right { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.hdr-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--night-text); transition: color .45s var(--ease), opacity .4s var(--ease);
}
.hdr-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: pulse 2.4s infinite; }
@media (max-width: 720px) { .hdr-status { display: none; } }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* menu trigger — 2-line hamburger that morphs into an X */
.menu-btn {
  display: inline-flex; align-items: center; gap: 13px;
  background: none; border: 0; cursor: pointer; color: var(--night-text);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: color .45s var(--ease), background .4s var(--ease), width .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
  padding: 11px 2px; min-height: 44px;
}
.menu-btn-text { white-space: nowrap; overflow: hidden; max-width: 8em; transition: opacity .35s var(--ease), max-width .4s var(--ease); }
.menu-btn-icon { position: relative; width: 26px; height: 14px; display: inline-block; flex: none; }
.menu-btn-icon i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), top .3s var(--ease), bottom .3s var(--ease);
}
.menu-btn-icon i:nth-child(1) { top: 2px; }
.menu-btn-icon i:nth-child(2) { bottom: 2px; }

/* collapsed: orange circular hamburger (visible on every band; white bars read on orange too) */
.hdr.is-scrolled .menu-btn-text { opacity: 0; max-width: 0; }
.hdr.is-scrolled .menu-btn {
  width: 54px; height: 54px; min-height: 0; padding: 0; gap: 0;
  border-radius: 50%; background: var(--accent); color: #fff;
  justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.hdr.is-scrolled .menu-btn:hover { background: var(--accent-2); }
@media (max-width: 600px) { .hdr.is-scrolled .menu-btn { width: 50px; height: 50px; } }

/* open: bars cross into an X */
body.menu-open .menu-btn-icon i:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .menu-btn-icon i:nth-child(2) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
body.menu-open .menu-btn { color: #fff; }

/* header sits over the dark overlay when menu is open */
body.menu-open .hdr { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom-color: transparent !important; }
body.menu-open .hdr-status { opacity: 0; }

/* ==========================================================================
   OVERLAY MENU
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 190;
  display: flex; align-items: stretch;
  pointer-events: none;
  visibility: hidden;
}
.overlay-bg {
  position: absolute; inset: 0; background: var(--night);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
}
body.menu-open .overlay { pointer-events: auto; visibility: visible; }
body.menu-open .overlay-bg { clip-path: inset(0 0 0% 0); }

.overlay-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--shell); margin: 0 auto;
  max-height: 100svh; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(88px, 12vh, 124px) var(--pad) clamp(24px, 4vh, 44px);
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity .3s var(--ease);
}
body.menu-open .overlay-inner { opacity: 1; transition: opacity .4s var(--ease) .25s; }

.overlay-meta {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: clamp(20px, 4vh, 44px);
  border-bottom: 1px solid var(--night-line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--night-mute);
}
.ov-eyebrow { color: var(--accent-2); }
@media (max-width: 600px) { .ov-index { display: none; } }

.overlay-nav { list-style: none; margin: clamp(16px, 3vh, 36px) 0 auto; }
.overlay-nav li { overflow: hidden; }
.overlay-nav a {
  display: inline-flex; align-items: baseline; gap: clamp(12px, 1.6vw, 26px);
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(34px, 6.4vw, 88px); line-height: 1.04;
  letter-spacing: -0.03em; color: var(--night-text);
  position: relative; padding: clamp(1px, 0.3vh, 6px) 0;
}
.overlay-nav a::before {
  content: attr(data-i);
  font-family: var(--f-mono); font-size: clamp(11px, 1vw, 14px); font-weight: 400;
  letter-spacing: .1em; color: var(--accent-2); opacity: .8;
  transform: translateY(-0.4em);
}
.overlay-nav .ov-line { position: relative; display: inline-block; transition: transform .5s var(--ease), color .35s var(--ease); }
.overlay-nav .ov-line::after {
  content: ""; position: absolute; left: 0; bottom: .08em; height: clamp(3px, 0.45vw, 7px); width: 0;
  background: var(--accent-2); transition: width .45s var(--ease);
}
.overlay-nav a:hover .ov-line { transform: translateX(clamp(10px, 1.6vw, 28px)); }
.overlay-nav a:hover .ov-line::after { width: 100%; }
.overlay-nav .is-accent a { color: var(--accent-2); }

/* staggered entrance */
.overlay-nav li .ov-line,
.overlay-nav li a::before { transform: translateY(115%); }
.overlay-nav li a::before { transform: translateY(115%); }
body.menu-open .overlay-nav li .ov-line { transform: translateY(0); transition: transform .7s var(--ease); }
body.menu-open .overlay-nav li a::before { transform: translateY(-0.4em); transition: transform .7s var(--ease); }
.overlay-nav li:nth-child(1) .ov-line, .overlay-nav li:nth-child(1) a::before { transition-delay: .30s; }
.overlay-nav li:nth-child(2) .ov-line, .overlay-nav li:nth-child(2) a::before { transition-delay: .37s; }
.overlay-nav li:nth-child(3) .ov-line, .overlay-nav li:nth-child(3) a::before { transition-delay: .44s; }
.overlay-nav li:nth-child(4) .ov-line, .overlay-nav li:nth-child(4) a::before { transition-delay: .51s; }
.overlay-nav li:nth-child(5) .ov-line, .overlay-nav li:nth-child(5) a::before { transition-delay: .58s; }
.overlay-nav li:nth-child(6) .ov-line, .overlay-nav li:nth-child(6) a::before { transition-delay: .65s; }

.overlay-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-top: clamp(20px, 4vh, 40px); border-top: 1px solid var(--night-line);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.menu-open .overlay-foot { opacity: 1; transform: none; transition-delay: .6s; }
.ov-contact { display: flex; flex-direction: column; gap: 6px; }
.ov-contact a { font-family: var(--f-disp); font-size: clamp(18px, 2vw, 26px); font-weight: 500; color: var(--night-text); transition: color .3s var(--ease); }
.ov-contact a:hover { color: var(--accent-2); }
.ov-foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.ov-socials { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: flex-end; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ov-socials a { color: var(--night-mute); transition: color .3s var(--ease); }
.ov-socials a:hover { color: var(--night-text); }
.ov-tag { color: var(--accent-2); }
/* small legal links, bottom-right of the overlay */
.ov-legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.ov-legal a { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, var(--night-mute)); opacity: .75; transition: color .3s var(--ease), opacity .3s var(--ease); }
.ov-legal a:hover { color: var(--accent-2); opacity: 1; }
@media (max-width: 600px) { .ov-foot-right { align-items: flex-start; } .ov-socials, .ov-legal { justify-content: flex-start; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(92px, 12vh, 122px) clamp(24px, 4vh, 46px);
  background: var(--night); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img {
  width: 100%; height: 120%; object-fit: cover; object-position: 50% 55%;
  filter: grayscale(.55) sepia(.35) saturate(1.5) hue-rotate(-8deg) brightness(.82) contrast(1.05);
  will-change: transform;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,13,16,.55) 0%, rgba(12,13,16,.2) 30%, rgba(12,13,16,.5) 72%, rgba(12,13,16,.95) 100%),
    linear-gradient(95deg, rgba(12,13,16,.7) 0%, rgba(12,13,16,.25) 55%, rgba(12,13,16,.1) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-shell { position: relative; z-index: 2; width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); color: var(--night-text); }

.hero-topline {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 12px; margin-bottom: clamp(14px, 2.4vh, 28px);
  border-bottom: 1px solid var(--night-line);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-mute);
}
.hero-topline .htl-mid { color: var(--night-text); }
@media (max-width: 680px) { .hero-topline .htl-mid { display: none; } }

.hero-kicker { font-family: var(--f-mono); font-size: 14px; letter-spacing: .03em; color: var(--night-mute); margin-bottom: clamp(10px, 1.6vh, 18px); }
.hero-kicker .k-mark { color: var(--accent-2); margin-right: 6px; }

.hero-title {
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(33px, 5.5vw, 84px); line-height: 0.97; letter-spacing: -0.035em;
  max-width: 17ch; text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent-2); }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.1em; }
.js .hero-title .ln > span { display: block; transform: translateY(110%); }
.hero-title.is-in .ln > span { transform: translateY(0); transition: transform .9s var(--ease); }
.hero-title.is-in .ln:nth-child(1) > span { transition-delay: .05s; }
.hero-title.is-in .ln:nth-child(2) > span { transition-delay: .13s; }
.hero-title.is-in .ln:nth-child(3) > span { transition-delay: .21s; }
.hero-title.is-in .ln:nth-child(4) > span { transition-delay: .29s; }
.hero-title.is-in .ln:nth-child(5) > span { transition-delay: .37s; }

.hero-block {
  margin-top: clamp(18px, 2.6vh, 32px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--night-line); background: rgba(12,13,16,.35); backdrop-filter: blur(3px);
}
.hb-cell { padding: 12px 18px; border-right: 1px solid var(--night-line); display: flex; flex-direction: column; gap: 6px; }
.hb-cell:last-child { border-right: 0; }
.hb-cell .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-mute); }
.hb-cell .v { font-family: var(--f-disp); font-size: clamp(15px, 1.3vw, 20px); font-weight: 500; color: var(--night-text); }
@media (max-width: 700px) {
  .hero-block { grid-template-columns: 1fr 1fr; }
  .hb-cell:nth-child(2) { border-right: 0; }
  .hb-cell:nth-child(1), .hb-cell:nth-child(2) { border-bottom: 1px solid var(--night-line); }
}

.hero-cue { display: inline-flex; align-items: center; gap: 13px; margin-top: clamp(14px, 2vh, 26px); font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-mute); }
.cue-ring { width: 38px; height: 38px; border: 1px solid var(--night-line); border-radius: 50%; display: grid; place-items: center; }
.cue-ring i { width: 8px; height: 8px; border-right: 1.5px solid var(--accent-2); border-bottom: 1.5px solid var(--accent-2); transform: rotate(45deg) translateY(-1px); animation: cuebob 1.7s var(--ease) infinite; }
@keyframes cuebob { 0%,100% { transform: rotate(45deg) translate(-2px,-2px); opacity:.5; } 50% { transform: rotate(45deg) translate(2px,2px); opacity:1; } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding-block: clamp(16px, 2.4vw, 30px); border-block: 1px solid #ffffff14; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: scrollx 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(26px, 4vw, 64px); letter-spacing: -0.02em;
  white-space: nowrap; padding-inline: clamp(22px, 3vw, 52px); display: inline-flex; align-items: center;
}
.marquee-track span::after { content: "✳"; color: var(--accent-2); font-size: .42em; margin-left: clamp(22px, 3vw, 52px); }
.marquee-track .m-out { color: transparent; -webkit-text-stroke: 1.6px var(--paper); }
@keyframes scrollx { to { transform: translateX(-50%); } }
@keyframes scrollx-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ==========================================================================
   SECTIONS / BANDS
   ========================================================================== */
.sec { position: relative; padding-block: clamp(72px, 12vh, 160px); overflow: hidden; }

/* full-height snap panels: content fits one screen, vertically centred.
   If content is taller than the viewport the section simply grows and the
   pager falls back to internal scrolling for that one panel. */
.panel { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(76px, 9.5vh, 104px); }
.panel > .shell { width: 100%; }
.panel .about-left { position: static; top: auto; }
/* content panels: tighten the lists so they fit one screen */
.panel .svc { padding-block: clamp(11px, 1.7vh, 20px); }
.panel .bigrow { padding-block: clamp(13px, 1.9vh, 26px); }
.panel .sec-head { margin-bottom: clamp(28px, 4vh, 56px); }
/* mobile: each section stays a full screen (no scroll); hero vertically centred; tighter padding */
@media (max-width: 820px) {
  .panel { padding-block: clamp(58px, 8vh, 80px); }
  .hero { justify-content: center; }
}

.band-paper { background: var(--paper); color: var(--ink); }
.band-paper2 { background: var(--paper-2); color: var(--ink); }
.band-night { background: var(--night); color: var(--night-text); }
.band-mid { background: var(--mid); color: var(--night-text); }
.band-accent { background: var(--accent-deep); color: #fff; }

/* vertical rotated label (teufels signature) */
.vlabel {
  position: absolute; left: clamp(8px, 1.4vw, 22px); top: clamp(72px, 12vh, 150px);
  writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: left;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute); display: flex; align-items: center; gap: 16px;
  pointer-events: none;
}
.vlabel::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .5; }
.vlabel.light { color: var(--night-mute); }
@media (max-width: 1100px) { .vlabel { display: none; } }

.sec-head { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: flex-end; margin-bottom: clamp(40px, 7vh, 90px); }
.sec-lead { color: var(--ink-soft); font-size: clamp(15px, 1.3vw, 18px); max-width: 40ch; }
.band-night .sec-lead, .band-mid .sec-lead { color: var(--night-mute); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- manifest / big value rows ---------- */
.manifest { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(24px, 5vw, 80px); align-items: start; margin-bottom: clamp(40px, 7vh, 90px); }
@media (max-width: 860px) { .manifest { grid-template-columns: 1fr; gap: 28px; } }

.bigrows { border-top: 1px solid var(--ink-2); }
.bigrow {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 72px auto minmax(0, 1fr) minmax(0, 38ch); align-items: center;
  gap: clamp(16px, 3vw, 48px); padding-block: clamp(18px, 2.6vh, 34px);
  border-bottom: 1px solid var(--ink-2); color: var(--ink);
  transition: padding-left .5s var(--ease);
}
.bigrow > * { position: relative; z-index: 1; }
.bigrow .br-num { font-family: var(--f-mono); font-size: 14px; color: var(--ink-mute); }
.bigrow .br-mark { font-size: clamp(16px, 1.6vw, 24px); color: var(--accent); transition: transform .6s var(--ease); }
.bigrow .br-title { font-family: var(--f-disp); font-weight: 600; font-size: clamp(26px, 4.6vw, 62px); letter-spacing: -0.03em; transition: color .4s var(--ease), transform .5s var(--ease); }
.bigrow .br-desc { font-size: 15px; color: var(--ink-soft); max-width: 42ch; justify-self: end; text-align: right; line-height: 1.5; }
.bigrow::before { content: ""; position: absolute; left: -2vw; right: -2vw; top: 0; bottom: 0; background: var(--ink); opacity: 0; transition: opacity .45s var(--ease); z-index: 0; }
.bigrow:hover { padding-left: clamp(12px, 1.6vw, 28px); }
.bigrow:hover::before { opacity: 1; }
.bigrow:hover .br-title { color: var(--paper); }
.bigrow:hover .br-num { color: var(--night-mute); }
.bigrow:hover .br-desc { color: var(--night-mute); }
.bigrow:hover .br-mark { color: var(--accent-2); transform: rotate(90deg) scale(1.1); }
@media (max-width: 820px) {
  .bigrow { grid-template-columns: 44px 1fr; }
  .bigrow .br-mark { display: none; }
  .bigrow .br-desc { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: 6px; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { position: relative; overflow: hidden; }

/* clean B&W portrait — present on the right, softly dissolving into the dark (no tint) */
.about-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 0; pointer-events: none; margin: 0; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1) contrast(1.12) brightness(.96); }
.about-photo::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--night) 1%, rgba(12,13,16,.55) 30%, transparent 66%),
    linear-gradient(0deg, var(--night), transparent 15%),
    linear-gradient(180deg, var(--night), transparent 12%); }
@media (max-width: 860px) {
  .about-photo { width: 100%; }
  .about-photo img { object-position: 50% 12%; }
  .about-photo::after { background: linear-gradient(180deg, rgba(12,13,16,.5), var(--night) 64%), linear-gradient(0deg, var(--night), transparent 26%); }
}

.about-shell { position: relative; z-index: 1; }
.about-col { max-width: 640px; }
@media (max-width: 860px) { .about-col { max-width: 100%; } }
.about-col .eyebrow { margin-bottom: clamp(12px, 2vh, 22px); }
.about-qeye { font-family: var(--f-disp); font-weight: 500; font-size: clamp(17px, 1.9vw, 24px); letter-spacing: -.015em; color: var(--night-mute); margin-bottom: clamp(8px, 1.4vh, 14px); }

#daniel.panel { padding-block: clamp(58px, 7.5vh, 86px); }
.bigquote {
  font-family: var(--f-disp); font-weight: 600; text-align: left;
  font-size: clamp(30px, 4.6vw, 66px); line-height: 1.0; letter-spacing: -0.04em;
  margin: 0 0 clamp(18px, 2.6vh, 30px); text-wrap: balance; color: var(--night-text); max-width: 17ch;
}
.bigquote .hl { color: var(--accent-2); }
.about-lead { color: var(--night-mute); font-size: clamp(15px, 1.5vw, 18.5px); line-height: 1.65; max-width: 48ch; }
.about-lead strong { color: var(--night-text); font-weight: 600; }

.about-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: clamp(24px, 4vh, 44px); }
/* static labels — no hover feedback, so they don't read as buttons */
.about-tags span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--night-text); border: 1px solid var(--night-line); border-radius: 100px; padding: 8px 15px; cursor: default; }
.about-tags .t-accent { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.proj-marquee { overflow: hidden; padding-block: clamp(8px, 1.2vw, 16px); margin-block: clamp(24px, 4vh, 48px); border-block: 1px solid var(--ink-2); }
.proj-marquee-track { display: flex; width: max-content; animation: scrollx 44s linear infinite; }
.proj-marquee:hover .proj-marquee-track { animation-play-state: paused; }
.proj-marquee-track span { font-family: var(--f-disp); font-weight: 600; font-size: clamp(34px, 6vw, 96px); letter-spacing: -0.04em; padding-inline: clamp(18px, 2.4vw, 40px); white-space: nowrap; color: var(--ink); }
.proj-marquee-track .po { color: transparent; -webkit-text-stroke: clamp(2px, 0.22vw, 3px) var(--ink); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.5vw, 22px); }
@media (max-width: 920px) { .cases { grid-template-columns: 1fr 1fr; } }
/* mobile deck: keep "Referenzen" on one screen — compact 2-column cards
   (scoped to #projekte2 to win over the base .case rules regardless of order) */
@media (max-width: 600px) {
  #projekte2 .cases { grid-template-columns: 1fr 1fr; gap: 8px; }
  #projekte2 .case { min-height: 0; padding: 13px; gap: 6px; justify-content: flex-start; align-self: start; }
  #projekte2 .case-top { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 9px; }
  #projekte2 .case h3 { font-size: 16px; letter-spacing: -0.02em; line-height: 1.06; }
  #projekte2 .case p, #projekte2 .case-tags, #projekte2 .case-client, #projekte2 .case-go { display: none; }
  #projekte2 .case:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* mobile deck: keep "Im Detail" on one screen — compact service rows */
@media (max-width: 820px) {
  #leistungen2 .svc { padding-block: 8px; }
  #leistungen2 .svc-title { font-size: clamp(18px, 4.8vw, 24px); }
  #leistungen2 .svc-desc { font-size: 11.5px; line-height: 1.4; }
}
.case {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(20px, 2vw, 30px); border: 1px solid var(--ink-2); border-radius: 4px;
  background: var(--paper); overflow: hidden; min-height: 270px;
  transition: transform .5s var(--ease), border-color .4s var(--ease), background .5s var(--ease);
}
.case::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease); z-index: 0; }
.case > * { position: relative; z-index: 1; }
.case:hover { transform: translateY(-6px); border-color: var(--ink); }
.case:hover::after { transform: translateY(0); }
.case:hover h3, .case:hover .case-top, .case:hover p, .case:hover .case-client { color: var(--paper); }
.case:hover .case-cat { color: var(--accent-2); }
.case:hover .case-tags span { border-color: var(--night-line); color: var(--night-mute); }
.case:hover .case-go { color: var(--accent-2); transform: rotate(0) scale(1); opacity: 1; }
.case-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; transition: color .4s var(--ease); padding-right: clamp(26px, 3vw, 40px); }
.case-idx { color: var(--ink-mute); }
.case-cat { color: var(--accent-deep); }
.case h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.02em; transition: color .4s var(--ease); }
.case p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; transition: color .4s var(--ease); }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.case-tags span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; border: 1px solid var(--ink-2); border-radius: 100px; padding: 4px 10px; color: var(--ink-soft); transition: color .4s var(--ease), border-color .4s var(--ease); }
.case-client { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-mute); transition: color .4s var(--ease); }
.case-go { position: absolute; top: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); font-size: 22px; color: var(--ink-mute); opacity: 0; transform: rotate(-12deg) scale(.7); transition: opacity .4s var(--ease), transform .4s var(--ease), color .4s var(--ease); z-index: 2; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.svc-list { border-top: 1px solid var(--ink-2); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 36ch); align-items: center;
  gap: clamp(16px, 3vw, 48px); padding-block: clamp(16px, 2.4vh, 30px); border-bottom: 1px solid var(--ink-2);
  transition: padding-left .5s var(--ease);
}
.svc > * { position: relative; z-index: 1; }
.svc-num { font-family: var(--f-mono); font-size: 14px; color: var(--ink-mute); }
.svc-title { font-family: var(--f-disp); font-weight: 600; font-size: clamp(24px, 3.4vw, 46px); letter-spacing: -0.025em; transition: color .4s var(--ease); }
.svc-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.45; justify-self: end; text-align: right; }
.svc::before { content: ""; position: absolute; left: -2vw; right: -2vw; top: 0; bottom: 0; background: var(--accent); opacity: 0; transition: opacity .4s var(--ease); z-index: 0; }
.svc:hover { padding-left: clamp(12px, 1.6vw, 26px); }
.svc:hover::before { opacity: 1; }
.svc:hover .svc-title { color: #fff; }
.svc:hover .svc-num { color: var(--accent-ink); }
.svc:hover .svc-desc { color: #fff; }
@media (max-width: 820px) {
  .svc { grid-template-columns: 40px 1fr; }
  .svc-desc { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: 4px; }
}

/* ==========================================================================
   STACK (midnight)
   ========================================================================== */
.band-mid { isolation: isolate; }
.stack-map { position: absolute; inset: 0; z-index: -1; opacity: .26; }
.stack-map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band-mid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 30% 30%, transparent 30%, var(--mid) 86%); }
.stack .cloud { display: flex; flex-wrap: wrap; gap: 14px 18px; max-width: 1020px; margin-top: clamp(30px, 5vh, 56px); }
/* tech keywords — display only, not interactive (no hover colour, default cursor) */
.stack .cloud span { font-family: var(--f-disp); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(20px, 2.7vw, 38px); color: var(--night-text); cursor: default; }
.stack .cloud span.cl-dim { color: var(--accent-2); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title { font-size: clamp(44px, 9vw, 150px); letter-spacing: -0.045em; line-height: 0.94; margin-top: 22px; color: #fff; }
.cta-sub { margin-top: 26px; max-width: 52ch; color: #fff; font-size: clamp(16px, 1.5vw, 19px); }
.cta-row { margin-top: clamp(34px, 5vh, 52px); display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em;
  padding: 16px 30px; border-radius: 100px; border: 1px solid rgba(255,255,255,.8); color: #fff;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.pill:hover { background: #fff; color: var(--accent-deep); border-color: #fff; }
.pill-solid { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.pill-solid:hover { background: #fff; color: var(--accent-deep); border-color: #fff; }

/* ----- Kontakt: two-column intro + form on the accent band ----- */
.cta-contact { text-align: left; }
.cta-contact .cta-inner { align-items: stretch; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(34px, 5vw, 76px); align-items: center; width: 100%; }
.cta-contact .cta-title { font-size: clamp(38px, 5.2vw, 78px); margin-top: 16px; }
.cta-contact .cta-sub { margin-top: 18px; max-width: 40ch; }
.contact-direct { margin-top: clamp(22px, 3.5vh, 38px); display: flex; gap: 12px; flex-wrap: wrap; }

.contact-form { display: flex; flex-direction: column; gap: 13px; background: rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.24); border-radius: 16px; padding: clamp(22px, 2.4vw, 34px); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field > span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.cf-field input, .cf-field textarea {
  font-family: var(--f-disp); font-size: 15px; color: #fff; width: 100%;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.28); border-radius: 10px;
  padding: 12px 14px; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.cf-field textarea { resize: none; min-height: 78px; line-height: 1.45; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: rgba(255,255,255,.46); }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.15); }
.cf-field input:user-invalid, .cf-field textarea:user-invalid { border-color: var(--accent-ink); }
.cf-submit {
  margin-top: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em;
  padding: 15px 28px; border-radius: 100px; background: var(--accent-ink); color: #fff;
  border: 1px solid var(--accent-ink); cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.cf-submit svg { width: 17px; height: 17px; }
.cf-submit:hover { background: #fff; color: var(--accent-deep); border-color: #fff; }
.cf-submit:disabled { opacity: .55; cursor: default; }
.cf-status { font-family: var(--f-mono); font-size: 12px; min-height: 1.1em; color: #fff; margin: 0; }
.cf-status.is-error { color: var(--accent-ink); font-weight: 700; }
.cf-status.is-ok { color: #fff; }
.cf-note { font-family: var(--f-mono); font-size: 10.5px; color: rgba(255,255,255,.64); margin: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-contact .cta-title { font-size: clamp(32px, 8vw, 48px); }
  .cta-contact .cta-sub { display: none; }       /* keep the slide on one screen */
  .contact-direct { display: none; }             /* same contacts live in menu + footer */
}
@media (max-width: 520px) {
  .cf-row { grid-template-columns: 1fr; }
  .cf-field textarea { min-height: 64px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--night); color: var(--night-text); padding-block: clamp(56px, 8vw, 100px) clamp(28px, 4vw, 44px); }
html.deck .footer { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.foot-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding-bottom: clamp(40px, 6vh, 70px); border-bottom: 1px solid var(--night-line); }
.foot-logo { height: 58px; width: auto; }
.foot-claim { color: var(--night-mute); max-width: 46ch; font-size: 15.5px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; gap: 24px; } }

.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-block: clamp(40px, 6vh, 64px); }
@media (max-width: 620px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; } }
.foot-col h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--night-mute); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.foot-col a { color: var(--night-mute); font-size: 15px; transition: color .3s var(--ease); display: inline-block; padding: 6px 0; }
.foot-col a:hover { color: var(--accent-2); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: clamp(24px, 4vh, 36px); border-top: 1px solid var(--night-line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .03em; color: var(--night-mute); }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal a:hover { color: var(--accent-2); }

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */
.fabs { position: fixed; right: clamp(16px, 2.4vw, 30px); bottom: clamp(16px, 2.4vw, 30px); z-index: 120; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.fabs.show { opacity: 1; transform: none; pointer-events: auto; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.fab:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.fab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.fab-accent { background: var(--accent); color: #fff; }
.fab-accent:hover { filter: brightness(1.08); }
@media (max-width: 600px) { .fab { width: 48px; height: 48px; } }

/* ==========================================================================
   COOKIE / PRIVACY NOTE — there are none, and we say so
   ========================================================================== */
.cookie-note {
  position: fixed; left: clamp(14px, 2.2vw, 28px); bottom: clamp(14px, 2.2vw, 28px); z-index: 130;
  max-width: 400px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 15px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--night-2); border: 1px solid var(--night-line); color: var(--night-text);
  box-shadow: 0 20px 56px rgba(0,0,0,.45);
  transform: translateY(150%); opacity: 0; transition: transform .65s var(--ease), opacity .5s var(--ease);
}
.cookie-note.show { transform: none; opacity: 1; }
.cookie-note[hidden] { display: none; }
.ck-mark { grid-row: span 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.ck-mark svg { width: 22px; height: 22px; }
.ck-body strong { font-family: var(--f-disp); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; display: block; margin-bottom: 3px; }
.ck-body p { font-size: 12.5px; line-height: 1.5; color: var(--night-mute); }
.ck-body a { color: var(--accent-2); }
.ck-ok { flex: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 11px 18px; border-radius: 100px; border: 0; cursor: pointer; background: var(--accent); color: #fff; transition: background .3s var(--ease), transform .3s var(--ease); }
.ck-ok:hover { background: var(--accent-2); transform: translateY(-2px); }
@media (max-width: 560px) {
  .cookie-note { left: 12px; right: 12px; max-width: none; grid-template-columns: auto 1fr; gap: 10px 12px; }
  .ck-ok { grid-column: 1 / -1; justify-self: stretch; text-align: center; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .cookie-note { transition: opacity .3s; transform: none; } }

/* ==========================================================================
   SCROLL-TO-TOP (back to the first section)
   ========================================================================== */
.scrolltop {
  position: fixed; right: clamp(16px, 2.4vw, 30px); bottom: calc(clamp(16px, 2.4vw, 30px) + 72px); z-index: 124;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 1px solid var(--night-line);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.scrolltop.show { opacity: 1; transform: none; pointer-events: auto; }
.scrolltop:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.scrolltop svg { width: 19px; height: 19px; }
@media (max-width: 600px) { .scrolltop { bottom: calc(clamp(16px, 2.4vw, 30px) + 66px); width: 42px; height: 42px; } }

/* ==========================================================================
   CHAT — bridged to Telegram (same /api/chat backend as bronner-b2b.de)
   ========================================================================== */
.chat { position: fixed; right: clamp(16px, 2.4vw, 30px); bottom: clamp(16px, 2.4vw, 30px); z-index: 125; }
.chat-launch { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(226,84,27,.42); transition: background .3s var(--ease), transform .3s var(--ease); }
.chat-launch:hover { background: var(--accent-2); transform: translateY(-2px); }
.cl-open, .cl-close { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.chat-launch svg { width: 26px; height: 26px; display: block; }
.cl-close { opacity: 0; transform: rotate(-50deg) scale(.5); }
.chat.is-open .cl-open { opacity: 0; transform: rotate(50deg) scale(.5); }
.chat.is-open .cl-close { opacity: 1; transform: none; }
.chat-ping { position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; border-radius: 50%; background: #25d366; border: 2px solid var(--accent); transition: opacity .3s var(--ease); }
.chat.is-open .chat-ping, .chat-launch.seen .chat-ping { opacity: 0; }
@media (max-width: 600px) { .chat-launch { width: 54px; height: 54px; } }

.chat-panel {
  position: absolute; right: 0; bottom: 74px; width: min(376px, calc(100vw - 28px)); height: min(544px, calc(100svh - 116px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform-origin: bottom right; transform: translateY(18px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .42s var(--ease), opacity .35s var(--ease);
}
.chat.is-open .chat-panel { transform: none; opacity: 1; pointer-events: auto; }
.chat-panel[hidden] { display: none; }
@media (max-width: 440px) { .chat-panel { width: calc(100vw - 24px); right: -6px; } }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: var(--night); border-bottom: 1px solid var(--night-line); }
.chat-ava { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--night-line); }
.chat-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.chat-head-text { display: flex; flex-direction: column; gap: 2px; }
.chat-head-text strong { font-family: var(--f-disp); font-size: 16px; font-weight: 600; color: var(--night-text); letter-spacing: -.01em; }
.chat-pres { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .02em; color: var(--night-mute); display: inline-flex; align-items: center; gap: 6px; }
.chat-pres i { width: 7px; height: 7px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 #25d36688; animation: pulse 2.6s infinite; }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 84%; display: flex; flex-direction: column; gap: 3px; }
.chat-msg p { padding: 10px 14px; border-radius: 15px; font-size: 14px; line-height: 1.46; word-wrap: break-word; }
.chat-msg.admin { align-self: flex-start; }
.chat-msg.admin p { background: var(--night); color: var(--night-text); border-bottom-left-radius: 5px; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.user p { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg.pending p { opacity: .6; }
.chat-meta { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .04em; color: var(--night-mute); padding-inline: 4px; }

.chat-form { border-top: 1px solid var(--night-line); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--night-2); }
.chat-name { background: var(--night); border: 1px solid var(--night-line); border-radius: 10px; padding: 9px 12px; color: var(--night-text); font-family: var(--f-body); font-size: 13px; }
.chat-name::placeholder, .chat-input::placeholder { color: var(--night-mute); }
.chat-name:focus, .chat-input:focus { outline: none; border-color: var(--accent); }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input { flex: 1; resize: none; max-height: 116px; background: var(--night); border: 1px solid var(--night-line); border-radius: 10px; padding: 10px 12px; color: var(--night-text); font-family: var(--f-body); font-size: 14px; line-height: 1.4; }
.chat-send { flex: none; width: 42px; height: 42px; border-radius: 10px; border: 0; cursor: pointer; background: var(--accent); color: #fff; display: grid; place-items: center; transition: background .3s var(--ease); }
.chat-send:hover { background: var(--accent-2); }
.chat-send:disabled { opacity: .4; cursor: default; }
.chat-send svg { width: 18px; height: 18px; }
.chat-hint { font-family: var(--f-mono); font-size: 10px; letter-spacing: .03em; color: var(--night-mute); text-align: center; }

/* ==========================================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ========================================================================== */
.legal-hdr {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--ink-2);
}
.legal-hdr .hdr-logo { height: clamp(40px, 3.4vw, 50px); }
.legal-hdr a.back { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); transition: color .3s var(--ease); }
.legal-hdr a.back:hover { color: var(--accent-deep); }

.legal { background: var(--paper); color: var(--ink); padding-top: clamp(56px, 9vh, 110px); padding-bottom: clamp(60px, 9vw, 120px); min-height: 70vh; }
.legal .shell { max-width: 880px; }
.legal h1 { font-family: var(--f-disp); font-size: clamp(40px, 7vw, 88px); letter-spacing: -0.035em; margin: 10px 0 12px; }
.legal-stand { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: clamp(36px, 5vw, 60px); padding-bottom: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--ink-2); }
.legal-body { max-width: 74ch; }
.legal-body h2 { font-family: var(--f-disp); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.02em; margin: clamp(38px, 5vw, 56px) 0 14px; }
.legal-body h3 { font-family: var(--f-disp); font-size: 19px; font-weight: 600; margin: 26px 0 8px; }
.legal-body h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 22px 0 6px; font-weight: 400; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 16px; line-height: 1.72; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 8px 0 16px; padding-left: 4px; display: flex; flex-direction: column; gap: 9px; list-style: none; }
.legal-body ul li { padding-left: 20px; position: relative; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-deep); }
.legal-body a { color: var(--accent-deep); word-break: break-word; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body .addr { font-style: normal; color: var(--ink); line-height: 1.75; margin-bottom: 14px; }
.legal-body .upper { text-transform: uppercase; font-size: 13.5px; letter-spacing: .02em; color: var(--ink-mute); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-io), transform .9s var(--ease-io); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-title .ln > span { opacity: 1 !important; transform: none !important; }
  .overlay-nav li .ov-line { transform: none !important; }
}
