/* =============================================================
   Yuri Engellandt — Production Website Styles
   Imports brand tokens, then layers site-specific layout.
   ============================================================= */

@import url('colors_and_type.css');

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: radial-gradient(132% 92% at 50% -8%, var(--warm-top, #241810) 0%, #0a0705 58%, #050403 100%) fixed;
  color: var(--ink);
}

body {
  overscroll-behavior-y: contain;
  min-height: 100vh;
  position: relative;
}

/* =========================================================
   Background-Effect Variants
   class-based: body.bg-topo / .bg-dots / .bg-beam /
   .bg-whisper / .bg-grain — no class = none
   Intensity via --bg-i (0–1) set by JS slider.
   --------------------------------------------------------- */

/* default off — replaced by permanent dots below */
/* body::before, body::after { content: none; } */

/* Permanent dot-grid background — medium-high opacity, always visible */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(243, 233, 212, 1) 1.2px, transparent 1.8px);
  background-size: 24px 24px;
  background-attachment: fixed;
  opacity: 0.08;
  transform: translateY(calc(var(--py, 0px) * -1));
  will-change: transform;
}
/* Grain overlay — subtle warmth on top of dots */
body::after {
  content: none;   /* Grain im dunklen Design entfernt */
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.16  0 0 0 0 0.11  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: multiply;
  transform: translateY(calc(var(--py, 0px) * -1));
  will-change: transform;
}

/* All real content above the grain */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ====== Container ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 231, 210, 0.88);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border-bottom: 1px solid var(--paper-200);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.site-header .wordmark {
  font-size: 18px;
  font-weight: 700;
  color: var(--walnut);
  letter-spacing: -0.025em;
  text-decoration: none;
}
.site-header .wordmark .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--cognac);
  border-radius: 999px;
  margin-left: 4px;
  transform: translateY(-2px);
}
.site-header nav {
  display: flex; align-items: center; gap: 32px;
}
.site-header nav a {
  font-size: 15px; color: var(--ink); text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.site-header nav a:hover { color: var(--walnut); }
.site-header nav a.cta {
  color: var(--walnut); font-weight: 500;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--walnut);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
@media (max-width: 800px) {
  /* Brand links, Hamburger rechts auf Mobile */
  .site-header .inner { justify-content: space-between; }
  .site-header nav { display: none; }
  .site-header nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 22px 24px 28px;
    border-bottom: 1px solid var(--paper-200);
    gap: 16px;
    align-items: flex-start;
  }
  .menu-toggle { display: flex; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--walnut); color: var(--paper);
  border-color: var(--walnut);
}
.btn--primary:hover {
  background: var(--walnut-deep);
  border-color: var(--walnut-deep);
  box-shadow: 0 3px 0 0 var(--stamp-a50);
}
.btn--secondary {
  background: transparent; color: var(--walnut);
  border-color: var(--walnut);
}
.btn--secondary:hover {
  background: var(--cognac-tint);
  box-shadow: 0 3px 0 0 var(--stamp-a30);
}
.btn--ghost {
  background: transparent; color: var(--walnut);
  border-color: transparent; padding-left: 0;
}
.btn--ghost:hover { color: var(--walnut-deep); }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ====== Section primitives ====== */
.section { padding: 120px 0; }
.section--compact { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--paper-200); }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section--compact { padding: 56px 0; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted-warm);
  text-transform: uppercase;
  margin: 0 0 28px 0;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--walnut);
  opacity: 0.5;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  /* Left col = vertical eyebrow (44px) + gap, right = stage */
  align-items: stretch;
}

/* Vertical eyebrow — "LEAD ENGINEERING" rotated, runs full hero height */
.hero-eye-v {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--cognac);
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  border-right: 1px solid var(--paper-300);
  padding: 80px 0;
}

/* Stage: text column + portrait, centered as one tight pair */
.hero-stage {
  flex: 1;
  display: flex;
  align-items: center;          /* text + portrait vertically centered together */
  justify-content: center;      /* center the pair in the stage */
  gap: clamp(32px, 4vw, 64px);
  min-height: clamp(560px, 86vh, 920px);
  padding: 40px 48px;
}

/* Text column */
.hero-text {
  flex: 0 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.4vh, 40px);
}

/* Portrait: wide, full image (aspect-locked → no crop), beside the text */
.hero-portrait {
  flex: 0 0 auto;
  width: clamp(380px, 42vw, 640px);
  aspect-ratio: 960 / 1344;
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* Diagonal top-left cut: makes it non-rectangular */
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Soft grounding shadow at the bottom edge only */
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(37, 24, 18, 0.14) 0%, transparent 22%);
}

/* Headline */
.hero-headline-block h1 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--walnut);
  margin: 0;
  letter-spacing: -0.018em;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hero-headline-block .l-a {
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.3;
  opacity: 0.8;
}
.hero-headline-block .l-b {
  font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1.08;
}
.hero-headline-block .l-c {
  font-size: clamp(46px, 5.6vw, 86px);
  line-height: 1.02;
}

/* Subhead */
.hero-sub-block .subhead {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  max-width: 460px;
  margin: 0;
  text-wrap: pretty;
}

/* Actions: CTAs + meta */
.hero-actions-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted-warm);
  text-transform: uppercase;
}
.hero-meta img { height: 18px; opacity: 0.55; filter: contrast(0.7); }
.hero-meta .divider { width: 1px; height: 12px; background: var(--paper-300); }

/* ---- Tablet + Mobile: stack the hero ---- */
@media (max-width: 960px) {
  .hero { flex-direction: column; }
  .hero-eye-v { display: none; }
  .hero-stage {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(28px, 4vw, 40px);
    min-height: auto;
    padding: 32px clamp(22px, 5vw, 48px) 56px;
  }
  .hero-text { flex: none; order: 2; gap: 20px; max-width: 620px; }
  .hero-portrait {
    order: 1;
    width: 100%;
    max-width: 440px;
    margin: 0;
    aspect-ratio: 4 / 5;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  }
  .hero-portrait img { object-position: center 18%; }
  .hero-headline-block .l-c { font-size: clamp(44px, 8vw, 72px); }
}

/* ====== SERVICES ====== */
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 64px;
  max-width: 760px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--walnut);
  font-weight: 700;
  margin: 0;
  text-wrap: pretty;
}
.section-head .intro {
  font-size: 19px; line-height: 1.6; color: var(--ink);
  max-width: 640px; margin: 0;
}

/* ====== PIPELINE — architecture-sketch layout ====== */

/* Container: 5-column grid (station · arrow · station · arrow · station) */
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
}

/* ====== ACCENT-MARK — one keyword per headline ====== */
/* Marker-stroke feel: fades at both ends (ink start/stop),
   slightly wider than the word (bleed), font-proportional height.
   On load the stroke is LASER-ENGRAVED: a blinding contact point travels
   left -> right, the freshly cut groove glows hot behind it and cools to a
   slightly uneven, charred burnt-orange line. Decorative .laser carriage
   carries the hot point + its trailing afterglow; everything is synced to
   the same 2.4s linear timeline so the burn appears exactly under the beam. */
.accent-mark {
  position: relative;
  text-decoration: none;
  /* space for the stroke below text */
  padding-bottom: 0.1em;
}

/* The engraved line itself, revealed left -> right as the beam passes.
   Two stacked layers: a fine dark char striation (imperfect, uneven) over
   an uneven burnt-orange stroke (the burn depth wavers along the cut). */
.accent-mark::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;                 /* bleed slightly past the word, both sides */
  bottom: -0.01em;             /* close to baseline (matches old position) */
  height: 0.085em;
  border-radius: 1px;
  background-image:
    /* char unevenness: thin irregular dark striations across the groove */
    repeating-linear-gradient(
      96deg,
      rgba(70, 24, 0, 0)    0px,
      rgba(70, 24, 0, 0)    3px,
      rgba(74, 26, 2, 0.30) 4px,
      rgba(70, 24, 0, 0)    6px,
      rgba(70, 24, 0, 0)    10px
    ),
    /* the burnt stroke, deliberately uneven (burn depth wavers) */
    linear-gradient(
      to right,
      rgba(196, 82, 28, 0.04) 0%,
      rgba(150, 55, 12, 0.62) 4%,
      rgba(201, 86, 30, 0.68) 21%,
      rgba(168, 64, 16, 0.48) 37%,
      rgba(208, 90, 32, 0.72) 54%,
      rgba(160, 60, 16, 0.5)  71%,
      rgba(199, 84, 30, 0.64) 88%,
      rgba(196, 82, 28, 0.04) 100%
    );
  /* a soft char shadow so the groove reads as cut-in, not painted-on */
  filter: drop-shadow(0 0.4px 0.5px rgba(70, 25, 0, 0.5));
  /* hidden from the right, opens up exactly as the beam moves across */
  clip-path: inset(0 100% 0 0);
  animation: laser-engrave 2400ms linear 350ms both;
}

/* Ignition: a bloom that flares where the beam first bites the material */
.accent-mark::before {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0.03em;
  width: 0.55em;
  height: 0.55em;
  margin: 0 0 -0.275em -0.275em;     /* centre the bloom on the start point */
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 244, 224, 0.95) 0%,
    rgba(255, 168, 74, 0.55) 42%,
    rgba(255, 120, 30, 0) 70%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: laser-ignite 600ms ease-out 350ms both;
}

/* The moving carriage: an invisible anchor that travels + jitters; it
   carries the hot contact point (::after) and the afterglow trail (::before) */
.accent-mark .laser {
  position: absolute;
  left: -3px;
  bottom: 0.03em;                    /* vertical centre of the groove */
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
  animation:
    laser-travel 2400ms linear 350ms both,
    laser-jitter 90ms steps(2, end) 350ms 27 both;
}

/* The blinding contact point where the beam meets the surface */
.accent-mark .laser::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0.13em;
  height: 0.13em;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffffff 0%,
    #fff1d6 20%,
    #ffae4a 44%,
    #ff6a00 64%,
    rgba(255, 90, 0, 0) 76%
  );
  /* layered bloom = real laser intensity */
  box-shadow:
    0 0 4px 1px rgba(255, 246, 230, 0.95),
    0 0 11px 3px rgba(255, 172, 72, 0.95),
    0 0 24px 9px rgba(255, 110, 20, 0.6),
    0 0 44px 16px rgba(196, 82, 28, 0.35);
  animation: laser-flicker 70ms steps(2, jump-none) 350ms 30 both;
}

/* Afterglow: the just-cut groove still glowing, trailing behind the beam */
.accent-mark .laser::before {
  content: "";
  position: absolute;
  right: 0;                          /* anchored at the beam, extends left */
  bottom: 0;
  width: 1.15em;
  height: 0.1em;
  transform: translateY(50%);
  border-radius: 0.06em;
  background: linear-gradient(
    to left,
    rgba(255, 224, 158, 0.95) 0%,
    rgba(255, 142, 42, 0.8) 16%,
    rgba(214, 88, 22, 0.5) 44%,
    rgba(196, 82, 28, 0) 100%
  );
  filter: blur(0.5px);
}

@keyframes laser-engrave {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* travels the full word; fades in at ignition, burns out at the end */
@keyframes laser-travel {
  0%   { left: -3px;             opacity: 0; }
  4%   { left: -1px;             opacity: 1; }
  92%  { left: calc(100% + 1px); opacity: 1; }
  100% { left: calc(100% + 5px); opacity: 0; }
}

/* tiny nervous wobble = material resisting the cut (slightly imperfect) */
@keyframes laser-jitter {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(0.3px, -0.016em); }
  100% { transform: translate(-0.3px, 0.012em); }
}

@keyframes laser-ignite {
  0%   { opacity: 0; transform: scale(0.2); }
  35%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(0.5); }
}

/* rapid brightness flicker of the contact point */
@keyframes laser-flicker {
  0%   { opacity: 1;    filter: brightness(1.35); }
  100% { opacity: 0.7;  filter: brightness(1); }
}

/* Motion-sensitive users: show the finished engraving, skip the laser */
@media (prefers-reduced-motion: reduce) {
  .accent-mark::after  { animation: none; clip-path: inset(0 0 0 0); }
  .accent-mark::before { display: none; }
  .accent-mark .laser  { display: none; }
}

/* Horizontal spine: thin hairline connecting all three nodes */
.pipeline-spine {
  position: absolute;
  top: 5px;                          /* centre of the 10px node-dot */
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--stamp-a30) 4%,
    var(--stamp-a50) 50%,
    var(--stamp-a30) 96%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Each workflow station */
.pipe-station {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Node: small filled dot sitting on the spine */
.pipe-node {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.pipe-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--walnut);
  flex-shrink: 0;
  position: relative;
}
/* Outer ring — like a schematic symbol */
.pipe-node-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(61, 42, 28, 0.18);
}
/* Vertical stem from dot down to content */
.pipe-node::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 4.5px;
  width: 1px;
  height: 20px;
  background: rgba(61, 42, 28, 0.18);
}

/* Arrow connector between stations */
.pipe-connector {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stamp-a30);
  padding: 0 20px;
  padding-top: 0;
  line-height: 10px;   /* align arrow with node-dot centre */
  position: relative;
  z-index: 1;
}

/* Content area below node */
.pipe-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-right: 44px;
}
.pipe-station:last-child .pipe-content { padding-right: 0; }

.pipe-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cognac);
  margin: 0 0 14px 0;
}

.pipe-content h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 16px 0;
}

.pipe-content > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  flex: 1;
}

/* Tool tree: vertical trunk + branching tool tags */
.tool-tree {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(61, 42, 28, 0.1);
}

/* The vertical trunk line */
.tool-trunk {
  width: 1px;
  background: var(--stamp-a30);
  border-radius: 1px;
  flex-shrink: 0;
  align-self: stretch;
}

.tool-branches {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  flex: 1;
}

/* Each tool: small capsule, mono, machine-tag feel */
.tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--walnut-soft);
  border: 1px solid rgba(61, 42, 28, 0.22);
  border-radius: 4px;
  padding: 3px 9px 3px 7px;
  background: rgba(241, 231, 210, 0.55);
  align-self: flex-start;
  white-space: nowrap;
  /* The "branch" connecting tag to trunk is implied by the layout */
}
.tool-tag::before {
  content: '●';
  font-size: 5px;
  color: var(--cognac);
  flex-shrink: 0;
  position: relative;
  top: 0;
}

.services-footnote {
  margin-top: 64px;
  font-size: 14px;
  color: var(--muted-warm);
  line-height: 1.55;
  max-width: 720px;
}


/* Tablet + Mobile: stack stations vertically */
@media (max-width: 960px) {
  .pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline-spine { display: none; }
  .pipe-connector { display: none; }
  .pipe-station {
    border-top: 1px solid rgba(61, 42, 28, 0.1);
    padding: 36px 0;
  }
  .pipe-station:first-child { border-top: 0; padding-top: 0; }
  .pipe-node { display: none; }
  .pipe-content { padding-right: 0; }
}

/* ====== CASES — elongierte Karten, eine dunkel gehighlightet (folgt dem Hover) ====== */
.section-cases {
  padding: 96px 0 104px;
  border-top: 1px solid var(--paper-200);
}
.cases-stack { display: flex; flex-direction: column; gap: 22px; margin-top: 10px; }

/* one elongated card per case: narrative left, matching KPI right.
   Colours are driven by custom props so the dark "active" theme can
   default to the featured card and move to whichever card is hovered. */
.case-band {
  --c-surface: var(--paper-soft);
  --c-border: var(--paper-300);
  --c-title: var(--walnut);
  --c-text: var(--walnut-soft);
  --c-meta: var(--muted-warm);
  --c-num: var(--walnut);
  --c-num-op: 0.08;
  --c-logo-filter: contrast(0.6) brightness(0.5);
  --c-logo-op: 0.6;
  --c-spine: var(--stamp-a30);
  --c-statbefore: var(--muted-warm);
  --c-statafter: var(--walnut);
  --c-statlabel: var(--ink);
  --c-statsource: var(--muted-warm);
  --c-shadow: none;

  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(210px, 290px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(32px, 3.6vw, 46px) clamp(28px, 3.4vw, 48px);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: var(--c-shadow);
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.case-band:hover { transform: translateY(-2px); }

/* DARK active theme: default on featured, and on any hovered card */
.case-band--featured,
.case-band:hover {
  --c-surface: var(--walnut);
  --c-border: var(--walnut-deep);
  --c-title: var(--paper);
  --c-text: rgba(241, 231, 210, 0.82);
  --c-meta: rgba(241, 231, 210, 0.6);
  --c-num: var(--stamp);
  --c-num-op: 0.5;
  --c-logo-filter: brightness(0) invert(1);
  --c-logo-op: 0.72;
  --c-spine: var(--stamp);
  --c-statbefore: rgba(241, 231, 210, 0.55);
  --c-statafter: var(--paper);
  --c-statlabel: rgba(241, 231, 210, 0.78);
  --c-statsource: rgba(241, 231, 210, 0.5);
  --c-shadow: var(--shadow-3);
}
/* hovering another card un-darkens the featured one, so the highlight switches */
.cases-stack:hover .case-band--featured:not(:hover) {
  --c-surface: var(--paper-soft);
  --c-border: var(--paper-300);
  --c-title: var(--walnut);
  --c-text: var(--walnut-soft);
  --c-meta: var(--muted-warm);
  --c-num: var(--walnut);
  --c-num-op: 0.08;
  --c-logo-filter: contrast(0.6) brightness(0.5);
  --c-logo-op: 0.6;
  --c-spine: var(--stamp-a30);
  --c-statbefore: var(--muted-warm);
  --c-statafter: var(--walnut);
  --c-statlabel: var(--ink);
  --c-statsource: var(--muted-warm);
  --c-shadow: none;
}

/* "Featured Case" tab — thick ribbon hung over the top edge of the card */
.case-tab {
  position: absolute;
  top: 0; left: clamp(26px, 3.4vw, 46px);
  transform: translateY(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper);
  background: var(--stamp);
  padding: 7px 15px;
  border-radius: 7px;
  box-shadow: 0 6px 18px -8px rgba(196, 82, 28, 0.6);
}

/* big faint case number — editorial watermark */
.case-band-no {
  position: absolute;
  top: clamp(26px, 3.2vw, 40px);
  left: clamp(28px, 3.4vw, 48px);
  font-family: var(--font-mono);
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-num);
  opacity: var(--c-num-op);
  pointer-events: none;
  transition: color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.case-band-body { position: relative; padding-top: clamp(40px, 4.6vw, 64px); }

.case-band-head {
  display: flex; align-items: center; gap: 16px;
  min-height: 24px;
  margin-bottom: 16px;
}
.case-band .case-logo {
  height: 22px;
  max-width: 130px;
  opacity: var(--c-logo-op);
  filter: var(--c-logo-filter);
  transition: filter var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.case-band h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--c-title);
  margin: 0 0 14px 0;
  transition: color var(--dur-base) var(--ease-out);
}
.case-band .case-result {
  font-family: var(--font-emphasis);
  font-style: italic;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.45;
  color: var(--c-text);
  margin: 0 0 20px 0;
  max-width: 54ch;
  transition: color var(--dur-base) var(--ease-out);
}
.case-band .case-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-meta);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur-base) var(--ease-out);
}
.case-band .arrow {
  display: inline-block;
  color: var(--stamp);
  transition: transform var(--dur-base) var(--ease-out);
}
.case-band:hover .arrow { transform: translateX(4px); }

/* "Featured Case" flag (still used on the case-detail hero) */
.case-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  background: var(--stamp-a12);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ---- KPI block, right side — connected to its case by a stamp spine ---- */
.case-kpi {
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding-left: clamp(26px, 3vw, 44px);
}
.case-kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--c-spine);
  transition: background var(--dur-base) var(--ease-out);
}

.stat-before {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 400;
  color: var(--c-statbefore);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: line-through;
  text-decoration-color: rgba(196, 82, 28, 0.5);
  text-decoration-thickness: 1.5px;
  transition: color var(--dur-base) var(--ease-out);
}
.stat-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--stamp);
  line-height: 1;
  margin: 8px 0;
  opacity: 0.9;
}
.stat-after {
  font-family: var(--font-display);
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 600;
  color: var(--c-statafter);
  line-height: 1.05;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  max-width: 100%;
  transition: color var(--dur-base) var(--ease-out);
}
.stat-label {
  font-size: 13.5px;
  color: var(--c-statlabel);
  line-height: 1.45;
  margin-top: 16px;
  max-width: 240px;
  text-wrap: pretty;
  transition: color var(--dur-base) var(--ease-out);
}
.stat-source {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-statsource);
  margin-top: 6px;
  transition: color var(--dur-base) var(--ease-out);
}

.impact-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--paper-200);
}

@media (max-width: 960px) {
  .section-cases { padding: 72px 0; }
  .case-band {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 22px 28px;
  }
  .case-band-body { padding-top: 46px; }
  .case-band-no { top: 24px; left: 22px; font-size: 42px; }
  .case-kpi { padding-left: 0; padding-top: 24px; margin-top: 4px; }
  .case-kpi::before {
    left: 0; top: 0; right: auto; bottom: auto;
    width: 44px; height: 2px;
  }
}

/* ====== TESTIMONIALS — horizontal card carousel, draggable ====== */
.testimonials-bleed {
  background: transparent;
  overflow: hidden;
  position: relative;
  padding: clamp(64px, 8vh, 104px) 0;
}

/* Right-edge fade — hints "more cards to scroll" */
.testimonials-bleed::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: clamp(40px, 6vw, 96px);
  background: linear-gradient(to right, transparent, var(--paper));
  pointer-events: none;
  z-index: 2;
}

/* Section label — aligned to the content column */
.testimonials-head {
  max-width: 1200px;
  margin: 0 auto 36px;
  padding: 0 48px;
}
.eyebrow--invert {
  color: rgba(241, 231, 210, 0.55);
  margin: 0;
}
.eyebrow--invert::before {
  background: var(--stamp);
  opacity: 1;
}

/* The scrollable track — first card aligns with the content column,
   following cards bleed off the right edge */
.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-top: 4px;
  padding-bottom: 8px;
  padding-left: max(48px, calc((100vw - 1200px) / 2 + 48px));
  padding-right: max(48px, calc((100vw - 1200px) / 2 + 48px));
  cursor: grab;
  /* hide scrollbar across browsers */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

/* Each testimonial card — uniform format on the walnut surface */
.t-card {
  flex: 0 0 auto;
  width: clamp(290px, 78vw, 440px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--paper-300);
  border-radius: 12px;
  padding: 32px 36px;
  user-select: none;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
/* cursor-folgender Schein beim Hovern */
.t-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(196, 82, 28, 0.15), transparent 60%);
}
.t-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--stamp-a30); }
.t-card:hover::before { opacity: 1; }
.t-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--paper-200);
}
.t-portrait {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
}
.t-sig { flex: 1; min-width: 0; }
.t-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: -0.005em;
}
.t-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-warm);
  text-transform: uppercase;
  margin-top: 3px;
}
.t-logo {
  height: 16px;
  opacity: 0.5;
  filter: none;
  flex-shrink: 0;
  pointer-events: none;
}
.t-body {
  font-family: var(--font-emphasis);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.58;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 800px) {
  .testimonials-head { padding: 0 28px; }
  .testimonial-track {
    padding-left: 28px;
    padding-right: 28px;
    gap: 16px;
  }
  .t-card {
    width: clamp(264px, 82vw, 380px);
    padding: 26px 24px 48px;
    position: relative;
  }
  /* The company wordmark is too wide for the meta row on narrow cards —
     move it out of the row to a brand mark in the bottom-right corner */
  .t-logo {
    position: absolute;
    bottom: 22px;
    right: 24px;
    height: 14px;
  }
}

/* ====== ABOUT ====== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--paper-300);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
/* Quote sitting beneath the portrait */
.photo-quote {
  margin: 24px 0 0;
  font-family: var(--font-emphasis);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--walnut);
  text-wrap: balance;
}
@media (max-width: 720px) {
  .photo-quote { font-size: 18px; }
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.about-body {
  display: flex; flex-direction: column;
  padding-top: 8px;
}
.about-body h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--walnut);
  font-weight: 700;
  margin: 0 0 32px 0;
  text-wrap: pretty;
}
.about-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 20px 0;
  max-width: 580px;
}
.about-body .mini-quote {
  margin-top: 24px;
  padding: 24px 0 0;
  border-top: 1px solid var(--paper-300);
  font-family: var(--font-emphasis);
  font-size: 24px;
  line-height: 1.4;
  color: var(--walnut);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.005em;
  max-width: 540px;
  text-wrap: balance;
}
@media (max-width: 720px) {
  .about-body .mini-quote { font-size: 22px; }
}

/* ====== ÜBER MICH — aufklappbares Buch ====== */
.book {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  background: var(--paper-soft);
  border: 1px solid var(--paper-300);
  border-radius: 12px;
  box-shadow: var(--shadow-3);
}
/* center "spine" between the two leaves */
.book::before {
  content: '';
  position: absolute;
  top: 14px; bottom: 14px;
  left: calc(0.82 / 2 * 100%);
  width: 0;
  border-left: 1px solid var(--paper-300);
  box-shadow: -6px 0 14px -10px rgba(37,24,18,0.25), 6px 0 14px -10px rgba(37,24,18,0.25);
  pointer-events: none;
}

/* ---- Left leaf: portrait cover ---- */
.book-cover {
  padding: clamp(22px, 2.4vw, 34px);
  display: flex; flex-direction: column; gap: 18px;
}
.book-cover-photo {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-300);
  box-shadow: var(--shadow-2);
}
.book-cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700; letter-spacing: -0.018em; line-height: 1.1;
  color: var(--walnut); margin: 0;
}
.book-cover-role {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted-warm); margin: 6px 0 0; text-transform: none;
}
.book-cover-quote {
  font-family: var(--font-emphasis); font-style: italic; font-weight: 500;
  font-size: 16px; line-height: 1.4; color: var(--walnut);
  margin: 14px 0 0; padding-top: 14px;
  border-top: 1px solid var(--paper-300);
  text-wrap: balance;
}

/* ---- Right leaf: chapter pages ---- */
.book-leaf {
  position: relative;
  padding: 0;
  display: flex; flex-direction: column;
}
.book-pages { list-style: none; margin: 0; padding: 0; }

/* Text inset lives on the page (not the leaf) so a page spans the whole
   card and the folded corner can sit exactly at the card's top-right. */
.book-page {
  padding: clamp(30px, 3.2vw, 46px) clamp(28px, 3.2vw, 48px) clamp(80px, 9vh, 96px);
}
.chapter-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stamp); margin: 0 0 16px 0;
}
.book-page h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -0.015em;
  color: var(--walnut); margin: 0 0 16px 0; text-wrap: pretty;
}
.book-page p {
  font-size: 16.5px; line-height: 1.7; color: var(--ink);
  margin: 0 0 16px 0; max-width: 52ch;
}
.book-page p:last-child { margin-bottom: 0; }
.book-page a { color: var(--walnut); text-underline-offset: 3px; }

/* Friendly, hand-drawn chapter illustration: centred in the free area
   below the text, roughly equal spacing to every edge. */
.chapter-art {
  padding-top: 24px;
  opacity: 0.92;
  display: flex; align-items: center; justify-content: center;
}
.book--enhanced .book-page.is-active .chapter-art { flex: 1; }
.chapter-art svg { width: clamp(188px, 54%, 240px); height: auto; display: block; }

/* No-JS fallback: pages stacked in normal flow (fully readable). */
.book:not(.book--enhanced) .book-page + .book-page { border-top: 1px solid var(--paper-200); }
.book-nav, .book-hint, .book-counter { display: none; }

/* Enhanced (JS on): one page at a time, controls visible. */
.book--enhanced .book-pages { position: relative; flex: 1; min-height: 300px; overflow: hidden; }
.book--enhanced .book-page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
/* The incoming page is fully present at once; only the outgoing sheet
   animates (peels off on top), so the two never blend mid-turn. */
.book--enhanced .book-page.is-active {
  opacity: 1; visibility: visible; transform: none;
  pointer-events: auto; z-index: 1;
}

/* Folded corner (dog-ear) at the card's top-right: permanent on the active
   page, and on the turning sheet while it peels. */
.book--enhanced .book-page.is-active::before,
.book--enhanced .book-page.is-leaving::after {
  content: '';
  position: absolute; top: 0; right: 0; z-index: 4;
  box-sizing: border-box;
  width: 30px; height: 30px;
  background: linear-gradient(225deg,
    var(--paper-warm) 0%, var(--paper-soft) 44%,
    rgba(37,24,18,0.20) 52%, rgba(37,24,18,0.06) 58%, transparent 62%);
  /* keep the card's outline running through the folded corner */
  border-top: 1px solid var(--paper-300);
  border-right: 1px solid var(--paper-300);
  border-top-right-radius: 12px;
  box-shadow: -3px 3px 7px -3px rgba(37,24,18,0.3);
  pointer-events: none;
}

/* The outgoing page becomes the "turning sheet": it peels from the
   top-right corner and pulls down off the page (opaque, then fades). */
.book--enhanced .book-page.is-leaving {
  opacity: 1; visibility: visible; z-index: 3;
  transform-origin: 100% 0;
  background: var(--paper-soft);
  animation: page-peel 0.9s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
.book--enhanced .book-page.is-leaving::after {
  animation: page-curl 0.9s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
@keyframes page-peel {
  0%   { transform: rotate(0deg) translateY(0); opacity: 1; box-shadow: none; }
  12%  { transform: rotate(-2.5deg) translateY(0.5%); box-shadow: -14px 12px 26px -14px rgba(37,24,18,0.45); }
  85%  { opacity: 1; }
  100% { transform: rotate(-14deg) translateY(112%); opacity: 0; box-shadow: -18px 22px 34px -16px rgba(37,24,18,0.38); }
}
@keyframes page-curl {
  0%   { width: 30px; height: 30px; }
  45%  { width: 74px; height: 74px; box-shadow: -7px 7px 15px -5px rgba(37,24,18,0.45); }
  100% { width: 42px; height: 42px; opacity: 0; }
}
.book--enhanced .book-nav { display: flex; }
.book--enhanced .book-counter { display: inline; }

/* Prev / next + counter pinned at the bottom of the leaf */
.book-nav {
  position: absolute;
  left: clamp(28px, 3.2vw, 48px); right: clamp(28px, 3.2vw, 48px);
  bottom: clamp(26px, 3.4vh, 34px);
  z-index: 6;                       /* above the page layers so Weiter/Zurück stay clickable */
  align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--paper-200);
  background: var(--paper-soft);    /* so it reads cleanly above the page area */
}
.book-prev, .book-next {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--walnut); background: transparent; border: 0;
  padding: 6px 4px; display: inline-flex; align-items: center; gap: 7px;
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.book-prev:hover, .book-next:hover { color: var(--stamp); }
.book-next:hover { transform: translateX(2px); }
.book-prev:hover { transform: translateX(-2px); }
.book-prev[disabled] { opacity: 0.32; pointer-events: none; }
.book-counter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted-warm);
}

/* ---- Bookmark tabs on the right edge ---- */
.book-tabs {
  position: absolute;
  top: 34px; right: -11px;
  display: flex; flex-direction: column; gap: 7px; z-index: 3;
}
.book-tab {
  width: 34px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--walnut-soft); text-decoration: none;
  background: var(--paper-warm);
  border: 1px solid var(--paper-300); border-left: 0;
  border-radius: 0 7px 7px 0;
  box-shadow: 3px 3px 10px -6px rgba(37,24,18,0.4);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.book-tab:hover { transform: translateX(4px); background: var(--cognac-tint); }
.book-tab.is-active {
  background: var(--stamp); color: var(--paper); border-color: var(--stamp);
  transform: translateX(4px);
}

/* ---- Page-turn hint speech bubble ---- */
.book-hint {
  position: absolute;
  bottom: clamp(90px, 11vh, 104px); right: clamp(26px, 3vw, 46px);
  z-index: 7;
  background: var(--walnut); color: var(--paper);
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500;
  padding: 8px 13px; border-radius: 8px; box-shadow: var(--shadow-3);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.book--enhanced .book-hint.show { display: block; opacity: 1; transform: translateY(0); animation: book-hint-bob 1.7s ease-in-out infinite; }
.book-hint::after {
  content: ''; position: absolute; right: 20px; bottom: -5px;
  width: 10px; height: 10px; background: var(--walnut); transform: rotate(45deg);
}
@keyframes book-hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .book--enhanced .book-page { transition: opacity 0.01ms, visibility 0.01ms; transform: none; }
  .book--enhanced .book-hint.show { animation: none; }
}

/* ---- Mobile: stack the spread, tabs become a horizontal row ---- */
@media (max-width: 820px) {
  .book { grid-template-columns: 1fr; }
  .book::before { display: none; }
  .book-cover {
    flex-direction: row; align-items: center; gap: 16px;
    border-bottom: 1px solid var(--paper-300);
  }
  .book-cover-photo {
    width: 96px; flex-shrink: 0; aspect-ratio: 4 / 5;
  }
  .book-cover-quote { display: none; }
  .book-tabs {
    position: static; flex-direction: row; flex-wrap: wrap;
    gap: 6px; padding: 16px clamp(22px, 5vw, 32px) 0;
    order: 3;
  }
  .book-tab {
    width: 32px; height: 28px; border: 1px solid var(--paper-300); border-radius: 6px;
    box-shadow: none;
  }
  .book-tab:hover, .book-tab.is-active { transform: none; }
  /* Illustration a touch smaller on phones; the pages area height is set by
     JS to the tallest chapter so flipping never changes the height. */
  .chapter-art svg { width: clamp(168px, 58%, 208px); }
}

/* ====== RETAINER-RECHNER — drag-and-drop price builder ====== */
.section-rechner { padding-bottom: 80px; }

.rechner-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .rechner-grid { grid-template-columns: 1fr; gap: 28px; }
}

.rechner-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-warm);
  margin: 0 0 16px 0;
}

/* Palette of draggable chips */
.palette-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.calc-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--walnut-soft);
  background: rgba(241, 231, 210, 0.55);
  border: 1px solid rgba(61, 42, 28, 0.22);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: grab;
  user-select: none;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.calc-chip::before {
  content: '+';
  margin-right: 6px;
  color: var(--cognac);
  font-weight: 600;
}
.calc-chip:hover { border-color: var(--walnut); }
.calc-chip:active { cursor: grabbing; }
.calc-chip.dragging { opacity: 0.5; }
.calc-chip.selected {
  background: var(--walnut);
  border-color: var(--walnut);
  color: var(--paper);
}
.calc-chip.selected::before { content: '✓'; color: var(--paper); }

/* "beliebt" badge inside popular chips */
.chip-pop {
  margin-left: 8px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stamp);
  background: var(--stamp-a12);
  padding: 2px 5px;
  border-radius: 3px;
  vertical-align: middle;
}
.calc-chip.selected .chip-pop { color: var(--paper); background: rgba(241, 231, 210, 0.22); }

/* Drag-hint speech bubble (nudge to drag a chip into the basket) */
.rechner-palette { position: relative; }
.drag-hint {
  position: absolute;
  top: -4px;
  right: 8px;
  z-index: 5;
  background: var(--walnut);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  box-shadow: var(--shadow-3);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.drag-hint.show {
  opacity: 1;
  animation: drag-hint-bob 1.6s ease-in-out infinite;
}
.drag-hint::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  margin-top: -5px;
  width: 10px; height: 10px;
  background: var(--walnut);
  transform: rotate(45deg);
}
@keyframes drag-hint-bob {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
.dh-narrow { display: none; }
@keyframes drag-hint-bob-v { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 800px) {
  .drag-hint { right: auto; left: 0; }
  .dh-wide { display: none; }
  .dh-narrow { display: inline; }
  .drag-hint::after { right: auto; left: 18px; top: auto; bottom: -4px; margin-top: 0; }
  .drag-hint.show { animation: drag-hint-bob-v 1.6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .drag-hint.show { animation: none; }
}

/* Field-hint bubble above the contact message field */
.msg-wrap { position: relative; }
.field-hint {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 6;
  max-width: 300px;
  background: var(--walnut);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 13px;
  border-radius: 8px;
  box-shadow: var(--shadow-3);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.field-hint.show { opacity: 1; transform: translateY(0); }
.field-hint::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 28px;
  width: 10px; height: 10px;
  background: var(--walnut);
  transform: rotate(45deg);
}

/* Basket card */
.rechner-basket {
  background: var(--paper-soft);
  border: 1px solid var(--paper-300);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-2);
}
.basket-drop {
  border: 1.5px dashed var(--paper-300);
  border-radius: 6px;
  min-height: 150px;
  padding: 16px;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.basket-drop.drag-over {
  border-color: var(--stamp);
  background: var(--stamp-a12);
}
.basket-drop.has-items { border-style: solid; border-color: var(--paper-300); }
.basket-empty {
  font-size: 14px;
  color: var(--muted-warm);
  text-align: center;
  margin: 44px 0;
}
.basket-drop.has-items .basket-empty { display: none; }

.basket-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.basket-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--paper-200);
  border-radius: 6px;
}
.bi-name { flex: 1; font-size: 14px; color: var(--ink); font-weight: 500; }
.bi-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--walnut);
}
.bi-remove {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-warm);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.bi-remove:hover { background: var(--cognac-tint); color: var(--walnut); }

.basket-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--paper-200);
}
.total-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-warm);
}
.total-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.basket-note {
  font-size: 13px;
  color: var(--muted-warm);
  margin: 14px 0 0 0;
}
.basket-note a { color: var(--walnut); text-underline-offset: 2px; }

/* ====== CONTACT — Lückentext + Marginalie ====== */
.section-contact { padding-top: 96px; padding-bottom: 112px; }

/* Outer wrap uses the container's width but lays out as grid */
.contact-wrap {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 56px;
  align-items: start;
}

/* ---- Left: Marginalie ---- */
.contact-marginalia {
  border-right: 1px solid var(--paper-300);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4px;
}

.mar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mar-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-warm);
}

.mar-value {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--walnut);
  text-decoration: none;
  word-break: break-word;
}
.mar-value:hover { color: var(--stamp); }

/* ---- Right: form area ---- */
.contact-form-area { min-width: 0; }

.contact-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--walnut);
  font-weight: 500;
  margin: 0 0 36px 0;
  text-wrap: pretty;
}

/* ---- Lückentext form ---- */
.lueckentext-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}

/* The prose lines with inline fields */
.luecken-para {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  text-wrap: pretty;
}

.luecken-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  color: var(--ink);
  margin: 20px 0 4px 0;
  font-weight: 400;
}

/* Inline field wrapper — keeps baseline alignment */
.field-wrap {
  display: inline-block;
  vertical-align: baseline;
}

/* The fill-in-the-blank inputs: no box, just an underline */
.luecken-input {
  font-family: var(--font-emphasis);
  font-style: italic;
  font-size: inherit;
  line-height: inherit;
  color: var(--walnut);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(61, 42, 28, 0.28);
  outline: none;
  padding: 0 4px 2px;
  vertical-align: baseline;
  transition: border-color var(--dur-base) var(--ease-out), border-width var(--dur-fast);
}
.luecken-input::placeholder {
  color: var(--muted-warm);
  opacity: 0.65;
  font-style: italic;
}
.luecken-input:focus {
  border-bottom-color: var(--stamp);
  border-bottom-width: 2px;
}

/* Multi-line textarea: document-line style */
.luecken-textarea {
  display: block;
  width: 100%;
  font-family: var(--font-emphasis);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  color: var(--walnut);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(61, 42, 28, 0.28);
  outline: none;
  resize: none;
  padding: 6px 4px 8px;
  transition: border-color var(--dur-base) var(--ease-out);
}
.luecken-textarea::placeholder {
  color: var(--muted-warm);
  opacity: 0.6;
  font-style: italic;
}
.luecken-textarea:focus {
  border-bottom-color: var(--stamp);
  border-bottom-width: 2px;
}

/* Browser-Autofill (Chrome/Edge/Safari): kein heller Kasten.
   Inline-Felder sind bewusst transparent; der erzwungene Autofill-
   Hintergrund wird auf die Glyphen geclippt + die lange Transition
   verhindert den Farbsprung -> bleibt transparent in Light & Dark. */
.luecken-input:-webkit-autofill,
.luecken-input:-webkit-autofill:hover,
.luecken-input:-webkit-autofill:focus,
.luecken-input:-webkit-autofill:active,
.luecken-textarea:-webkit-autofill,
.luecken-textarea:-webkit-autofill:hover,
.luecken-textarea:-webkit-autofill:focus,
.luecken-textarea:-webkit-autofill:active {
  -webkit-text-fill-color: var(--walnut);
  -webkit-background-clip: text;
  background-clip: text;
  caret-color: var(--walnut);
  transition: background-color 600000s 0s, color 600000s 0s;
}

/* Footer row: counter left, submit-sentence right */
.luecken-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--paper-200);
  gap: 20px;
  flex-wrap: wrap;
}

.luecken-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-warm);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Submit: prominenter, klar erkennbarer CTA-Button */
.luecken-submit {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--paper);
  background: var(--stamp);
  border: none;
  border-radius: var(--radius-lg);
  padding: 15px 30px;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(196, 82, 28, 0.7);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.luecken-submit .ls-label,
.luecken-submit .ls-arrow { position: relative; z-index: 1; display: inline-block; }
.luecken-submit .ls-arrow { transition: transform var(--dur-base) var(--ease-out); }
.luecken-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(196, 82, 28, 0.8); filter: saturate(1.05); }
.luecken-submit:hover .ls-arrow { transform: translateX(4px); }
.luecken-submit:focus-visible { outline: 3px solid var(--stamp-a50); outline-offset: 3px; }
.luecken-submit:active { transform: translateY(0); }
/* Fill-Feedback beim Absenden */
.luecken-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--walnut);
  transform: scaleX(0); transform-origin: left;
  z-index: 0;
}
.luecken-submit.is-sending { box-shadow: none; transform: none; cursor: default; }
.luecken-submit.is-sending::before { animation: ls-fill 620ms var(--ease-out) forwards; }
.luecken-submit.is-sending .ls-arrow { transform: translateX(6px); opacity: 0.55; }
@keyframes ls-fill { to { transform: scaleX(1); } }

.luecken-privacy {
  font-size: 12px;
  color: var(--muted-warm);
  line-height: 1.5;
  margin: 14px 0 0 0;
  max-width: none;
}
.luecken-privacy a {
  color: var(--walnut);
  text-underline-offset: 2px;
}

/* Success state */
.lueckentext-form.success .success-msg h4 {
  font-family: var(--font-emphasis);
  font-size: 22px;
  font-weight: 500;
  color: var(--walnut);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  font-style: italic;
}
.lueckentext-form.success .success-msg p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 800px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-marginalia {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 32px;
    border-right: 0;
    border-bottom: 1px solid var(--paper-300);
    padding-right: 0;
    padding-bottom: 28px;
    margin-bottom: 36px;
  }
  .luecken-para, .luecken-label { font-size: 17px; }
  .luecken-textarea { font-size: 17px; }
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--paper-200);
  margin-top: 24px;
}
.site-footer .inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .col {
  display: flex; flex-direction: column; gap: 8px;
}
.site-footer .copy {
  font-size: 13px; color: var(--muted-warm);
}
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .links a {
  color: var(--muted-warm); text-decoration: none;
  font-size: 13px;
}
.site-footer .links a:hover { color: var(--walnut); }
.site-footer .wordmark {
  font-size: 16px; font-weight: 700;
  color: var(--walnut);
  letter-spacing: -0.025em;
  text-decoration: none;
}

/* ====== CASES LISTING (cases.html) ====== */
.page-hero {
  padding: 80px 0 48px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--walnut);
  font-weight: 500;
  margin: 0 0 24px 0;
  max-width: 700px;
  text-wrap: balance;
}
.page-hero .lead {
  font-size: 19px; line-height: 1.6; color: var(--ink);
  max-width: 600px; margin: 0;
}

.case-list {
  display: flex; flex-direction: column;
  margin-top: 32px;
}
.case-list .case-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--paper-300);
  text-decoration: none;
  transition: padding var(--dur-base) var(--ease-out);
}
.case-list .case-item:last-child { border-bottom: 1px solid var(--paper-300); }
.case-list .case-item:hover { padding-left: 16px; padding-right: -16px; }
@media (max-width: 720px) {
  .case-list .case-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .case-list .case-item:hover { padding-left: 0; }
}
.case-list .case-logo {
  height: 24px;
  opacity: 0.7;
  filter: contrast(0.6) brightness(0.4);
  justify-self: start;
  max-width: 160px;
  width: auto;
}
.case-list .case-info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--walnut);
  margin: 0 0 8px 0;
}
.case-list .case-info p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 580px;
}
.case-list .case-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted-warm);
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
}
.case-list .case-item.coming-soon { opacity: 0.55; pointer-events: none; }
.case-list .case-item.coming-soon .case-meta { color: var(--cognac); }

/* ====== CASE DETAIL ====== */
.case-detail .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-warm);
  text-decoration: none;
  margin-bottom: 48px;
}
.case-detail .back-link:hover { color: var(--walnut); }

.case-detail .case-header {
  margin-bottom: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--paper-300);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
}
.case-detail .case-header img.case-logo {
  height: 32px;
  width: auto;
  opacity: 0.8;
  align-self: flex-start;
  max-width: 220px;
  filter: contrast(0.65) brightness(0.4);
}
.case-detail .case-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--walnut);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.case-detail .case-meta-row {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--paper-300);
}
.case-detail .case-meta-row .item {
  display: flex; flex-direction: column; gap: 4px;
}
.case-detail .case-meta-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-warm);
}
.case-detail .case-meta-row .value {
  font-size: 15px; color: var(--ink); font-weight: 500;
}

.case-detail .case-body {
  max-width: 720px;
}
.case-detail .case-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: -0.012em;
  margin: 64px 0 20px 0;
}
.case-detail .case-body h2:first-child { margin-top: 0; }
.case-detail .case-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 20px 0;
  max-width: 680px;
}
.case-detail .case-body .pull-quote {
  font-family: var(--font-emphasis);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--walnut);
  margin: 48px 0;
  padding-left: 32px;
  border-left: 2px solid var(--cognac);
  text-wrap: balance;
}
.case-detail .case-body ul {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}
.case-detail .case-body li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}
.case-detail .case-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--cognac);
}
.case-detail .case-body code {
  background: rgba(61, 42, 28, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 32px 0 48px;
  padding: 36px 32px;
  background: var(--paper-soft);
  border: 1px solid var(--paper-300);
  border-radius: 8px;
}
@media (max-width: 720px) {
  .case-results { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
}
.case-results .item .number {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--walnut);
  margin-bottom: 6px;
}
.case-results .item .label {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.case-detail .stack-note {
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--paper-300);
  border-bottom: 1px solid var(--paper-300);
  display: flex; flex-direction: column; gap: 6px;
}
.case-detail .stack-note .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-warm);
}
.case-detail .stack-note .value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--walnut);
  line-height: 1.55;
}

.case-cta {
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--paper-300);
}
.case-cta h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--walnut);
  margin: 0 0 24px 0;
  letter-spacing: -0.012em;
}
.case-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ====== LEGAL (impressum, datenschutz) ====== */
.legal-body {
  max-width: 720px;
  margin-top: 32px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: -0.012em;
  margin: 48px 0 16px 0;
  line-height: 1.2;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--walnut);
  margin: 32px 0 8px 0;
  letter-spacing: -0.005em;
}
.legal-body p, .legal-body ul, .legal-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 680px;
}
.legal-body p { margin: 0 0 16px 0; }
.legal-body ul { padding-left: 0; list-style: none; margin: 0 0 20px 0; }
.legal-body li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.legal-body li::before { content: '·'; position: absolute; left: 4px; color: var(--cognac); font-weight: 700; }
.legal-stand { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted-warm); margin-top: 36px; }
.legal-body a { color: var(--walnut); text-decoration: underline; text-underline-offset: 3px; }

.placeholder-block {
  background: var(--cognac-tint);
  border-left: 3px solid var(--cognac);
  padding: 16px 20px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--walnut-deep);
  border-radius: 0 6px 6px 0;
}

/* focus reset across page */
*:focus-visible {
  outline: 2px solid var(--walnut);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ====================================================
   TOOL TOOLTIP OVERLAY
   ==================================================== */
.tool-tooltip {
  position: fixed;
  z-index: 300;
  background: var(--walnut);
  color: var(--paper);
  border-radius: 8px;
  padding: 18px 20px;
  width: 252px;
  box-shadow:
    0 16px 40px -12px rgba(20, 12, 6, 0.42),
    0 4px 12px rgba(20, 12, 6, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 140ms var(--ease-out),
    transform 140ms var(--ease-out);
  font-family: var(--font-sans);
  /* stamp-orange top-border accent */
  border-top: 2.5px solid var(--stamp);
}
.tool-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.tt-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.2;
}
.tt-row {
  margin-bottom: 10px;
}
.tt-row:last-child { margin-bottom: 0; }
.tt-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 231, 210, 0.5);
  margin-bottom: 3px;
}
.tt-text {
  font-size: 12.5px;
  line-height: 1.52;
  color: rgba(241, 231, 210, 0.88);
}

/* Tool tags get a subtle cursor hint when info is available */
.tool-tag[data-has-info] {
  cursor: help;
  border-color: rgba(61, 42, 28, 0.3);
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.tool-tag[data-has-info]:hover {
  border-color: var(--stamp);
  color: var(--stamp);
  background: rgba(196, 82, 28, 0.06);
}
   ==================================================== */

/* (1) PARALLAX — background drifts 8% of scroll speed
   Fixed pseudo-elements accept transform in modern browsers.
   JS sets --py = scrollY * 0.08; negative Y moves them
   counter to scroll, so they appear to lag behind. */
body::before,
body::after {
  transform: translateY(calc(var(--py, 0px) * -1));
  will-change: transform;
}

/* (2) INK-STROKE DIVIDERS */
.ink-divider,
.fold-divider {
  display: block;
  width: 100%;
  pointer-events: none;
  position: relative;
  z-index: 2;          /* above grain pseudo-layers */
  overflow: visible;
  /* pull into surrounding section padding so divider sits
     at the visual boundary, not in an extra gap */
  margin: -14px 0;
  line-height: 0;      /* collapse baseline gap */
}
.ink-divider svg,
.fold-divider svg {
  display: block;
  width: 100%;
  overflow: visible;
}

/* (3) CUSTOM CURSOR — fine crosshair (20×20 SVG data URL)
   Two variants: dark (walnut) for light surfaces, light (paper) for
   dark/brown surfaces, so the cursor stays visible everywhere. */
:root {
  --cur-dark:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cline x1='10' y1='2' x2='10' y2='18' stroke='rgba(61,42,28,0.68)' stroke-width='1'/%3E%3Cline x1='2' y1='10' x2='18' y2='10' stroke='rgba(61,42,28,0.68)' stroke-width='1'/%3E%3Ccircle cx='10' cy='10' r='2.4' stroke='rgba(61,42,28,0.5)' fill='none' stroke-width='0.8'/%3E%3C/svg%3E") 10 10, pointer;
  --cur-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cline x1='10' y1='2' x2='10' y2='18' stroke='rgba(241,231,210,0.9)' stroke-width='1'/%3E%3Cline x1='2' y1='10' x2='18' y2='10' stroke='rgba(241,231,210,0.9)' stroke-width='1'/%3E%3Ccircle cx='10' cy='10' r='2.4' stroke='rgba(241,231,210,0.75)' fill='none' stroke-width='0.8'/%3E%3C/svg%3E") 10 10, pointer;
}

/* Default: dark crosshair on interactive elements (light surfaces) */
a,
button:not([disabled]),
.btn,
label[for],
.accent-mark {
  cursor: var(--cur-dark);
}
input, textarea, select { cursor: text; }

/* Light crosshair over dark / brown surfaces so it stays visible.
   Each selector is specific enough to beat the base rule above. */
.case-band,                                  /* homepage case cards (dark when hovered/featured) */
.cases-cta,                                  /* homepage Knowledge-Base teaser band */
.btn--primary:not(.lm-gate-btn),             /* walnut buttons (hero, CTAs); paper gate-button keeps dark */
.case-cta-card .btn,                         /* buttons inside the dark final-CTA card */
.lm-card .lm-gate-prompt,                    /* label on the dark lead-magnet card */
.lm-success a {                              /* link on the dark success panel */
  cursor: var(--cur-light);
}

/* ====================================================
   HOVER MARKER-STROKE — same orange stroke as .accent-mark
   Used on header nav links, ghost button, and the
   Lückentext submit "verb". Animates in from 0 width.
   ==================================================== */
.site-header nav a,
.btn--ghost {
  background-image: linear-gradient(
    to right,
    rgba(196, 82, 28, 0.05) 0%,
    rgba(196, 82, 28, 0.58) 5%,
    rgba(196, 82, 28, 0.62) 50%,
    rgba(196, 82, 28, 0.52) 92%,
    rgba(196, 82, 28, 0.05) 100%
  );
  background-repeat: no-repeat;
  background-size: 0% 0.08em;
  background-position: left calc(100% + 0.05em);
  padding-bottom: 0.12em;
  transition:
    background-size 240ms var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.site-header nav a:hover,
.btn--ghost:hover {
  background-size: calc(100% + 6px) 0.08em;
}

/* =====================================================================
   CASE DETAIL PAGE (case-content-automation.html)
   ===================================================================== */

.case-page .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-warm);
  text-decoration: none;
}
.case-page .back-link:hover { color: var(--stamp); }

/* ---- Hero ---- */
.case-hero { padding: 56px 0 56px; }
.case-hero-head {
  display: flex; align-items: center; gap: 18px;
  margin: 32px 0 24px;
  flex-wrap: wrap;
}
.case-hero-logo {
  height: 24px; opacity: 0.62;
  filter: contrast(0.6) brightness(0.5);
}
.case-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--walnut);
  margin: 0 0 24px 0;
  max-width: 16ch;
  text-wrap: balance;
}
.case-hero-lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 0 40px 0;
  text-wrap: pretty;
}
.case-meta-row {
  display: flex; flex-wrap: wrap;
  gap: 18px 48px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--paper-300);
}
.case-meta-row .cm-item { display: flex; flex-direction: column; gap: 5px; }
.case-meta-row dt {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-warm);
}
.case-meta-row dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--walnut); }

/* ---- KPI strip ---- */
.case-kpis {
  padding: 48px 0;
  background: transparent;   /* braunes Band entfernt, Zahlen sitzen auf dem Seitenverlauf */
}
.ck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.ck-item { display: flex; flex-direction: column; gap: 12px; }
.ck-num, .ck-num--text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFB36B 0%, #E5763E 55%, #C4521C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ck-num--text { font-size: clamp(34px, 4vw, 52px); }
.ck-item .ck-label {
  font-size: 14px; line-height: 1.45; color: var(--ink);
  max-width: 22ch; text-wrap: pretty;
}
@media (max-width: 760px) {
  .ck-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}

/* ---- Prose blocks ---- */
.case-prose h2,
.case-flow-section h2,
.case-artifacts-section h2,
.case-stack-section h2,
.case-complexity-section h2,
.case-fit-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--walnut);
  font-weight: 700;
  margin: 0 0 24px 0;
  text-wrap: pretty;
}
.case-prose p {
  font-size: 17px; line-height: 1.7; color: var(--ink);
  margin: 0 0 20px 0; max-width: 68ch;
}
.section-intro {
  font-size: 18px; line-height: 1.6; color: var(--ink);
  max-width: 64ch; margin: 0 0 12px 0;
}
.case-page .pull-quote {
  font-family: var(--font-emphasis);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.4;
  color: var(--walnut);
  margin: 36px 0 0;
  padding-left: 28px;
  border-left: 2px solid var(--stamp);
  max-width: 52ch;
  text-wrap: balance;
}
.case-points { list-style: none; margin: 8px 0 0; padding: 0; max-width: 70ch; }
.case-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 16px;
  font-size: 17px; line-height: 1.6; color: var(--ink);
}
.case-points li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--stamp);
  opacity: 0.7;
}
.case-points strong { color: var(--walnut); font-weight: 600; }

/* ---- Process flow timeline ---- */
.case-flow { list-style: none; margin: 44px 0 0; padding: 0; position: relative; }
.case-flow::before {
  content: '';
  position: absolute; left: 19px; top: 10px; bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--stamp-a30), var(--stamp-a50) 50%, var(--stamp-a30));
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: clamp(18px, 3vw, 32px);
  padding-bottom: 34px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-no {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--walnut);
  background: var(--paper-soft);
  border: 1px solid var(--walnut);
  position: relative; z-index: 1;
}
.flow-step--gate .flow-no {
  color: var(--stamp);
  border-color: var(--stamp);
  background: var(--stamp-a12);
}
.flow-body { padding-top: 6px; }
.flow-body h3 {
  font-family: var(--font-sans);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--walnut);
  margin: 0 0 10px 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.flow-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stamp); background: var(--stamp-a12);
  padding: 3px 8px; border-radius: 4px;
}
.flow-body p { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0; max-width: 64ch; }

/* ---- Artifact showcase ---- */
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 860px) { .artifact-grid { grid-template-columns: 1fr; max-width: 560px; } }
.artifact { margin: 0; display: flex; flex-direction: column; }
.artifact-media {
  border: 1px solid var(--paper-300);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-soft);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.artifact-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artifact-media--pad { padding: 14px; }
.artifact-media--pad img { object-fit: contain; }
.artifact figcaption {
  font-size: 14px; line-height: 1.5; color: var(--muted-warm);
  margin-top: 16px;
}
.artifact-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--walnut); margin-bottom: 5px;
}

/* mini preview-artifact mock (the bilingual approval card) */
.artifact-media--mock { background: #eef1f5; padding: 18px; align-items: stretch; }
.preview-mock {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d8dee7;
  padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 8px 22px -16px rgba(18,46,82,0.5);
}
.pm-tabs { display: flex; gap: 6px; }
.pm-tab {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
  background: #eef1f5; color: #5a6b81;
}
.pm-tab.is-active { background: #2865b7; color: #fff; }
.pm-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; color: #122e52; }
.pm-meta { font-size: 10.5px; color: #5a6b81; }
.pm-seo { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.pm-pill {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.03em;
  padding: 3px 7px; border-radius: 4px;
  background: #eef1f5; color: #5a6b81;
}
.pm-pill--green { background: #e3f3e8; color: #2f7d4f; }
.pm-cta {
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  text-align: center; color: #fff;
  background: linear-gradient(135deg, #122e52, #2865b7);
  padding: 8px; border-radius: 6px;
}

/* ---- Stack grid ---- */
.stack-grid {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 860px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-card {
  background: var(--paper-soft);
  border: 1px solid var(--paper-300);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.stack-card--own {
  border-color: var(--stamp-a30);
  background: var(--stamp-a12);
}
.stack-name { font-family: var(--font-mono); font-size: 14px; color: var(--walnut); font-weight: 500; }
.stack-card--own .stack-name { color: var(--stamp); }
.stack-role { font-size: 13px; color: var(--muted-warm); line-height: 1.4; }

/* ---- Complexity ---- */
.complexity-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .complexity-grid { grid-template-columns: 1fr; gap: 36px; } }
.complexity-text p { font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0 0 18px 0; max-width: 60ch; }
.complexity-meters { display: flex; flex-direction: column; gap: 24px; padding-top: 6px; }
.meter-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.meter-head span:first-child { font-size: 16px; font-weight: 600; color: var(--walnut); }
.meter-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted-warm); }
.meter-dots { display: flex; gap: 8px; }
.meter-dots i {
  width: 100%; height: 8px; border-radius: 3px;
  background: var(--paper-300);
}
.meter-dots[data-level="4"] i:nth-child(-n+4) { background: var(--walnut); }
.meter-dots[data-level="1"] i:nth-child(-n+1) { background: var(--stamp); }

/* ---- Fit (who it's for) ---- */
.fit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 40px;
}
@media (max-width: 760px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-col {
  border: 1px solid var(--paper-300);
  border-radius: 12px;
  padding: 28px 28px 24px;
  background: var(--paper-soft);
}
.fit-col--yes { border-top: 3px solid var(--stamp); }
.fit-col--no { border-top: 3px solid var(--paper-300); background: transparent; }
.fit-col h3 {
  font-family: var(--font-sans); font-size: 17px; font-weight: 600;
  color: var(--walnut); margin: 0 0 18px 0; letter-spacing: -0.005em;
}
.fit-col ul { list-style: none; margin: 0; padding: 0; }
.fit-col li {
  position: relative; padding-left: 26px; margin-bottom: 14px;
  font-size: 15.5px; line-height: 1.5; color: var(--ink);
}
.fit-col li::before {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-weight: 600;
}
.fit-col--yes li::before { content: '+'; color: var(--stamp); }
.fit-col--no li::before { content: '–'; color: var(--muted-warm); }

/* ---- Final CTA ---- */
.case-cta-section { padding: 80px 0 96px; }
.case-cta-card {
  background: var(--walnut);
  border-radius: 16px;
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.case-cta-card h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--paper); margin: 0 0 16px 0; letter-spacing: -0.018em;
}
.case-cta-card p {
  font-size: 18px; line-height: 1.6;
  color: rgba(241, 231, 210, 0.82);
  margin: 0 auto 32px; max-width: 48ch;
}
.case-cta-section .case-cta-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.case-cta-card .btn--secondary {
  color: var(--paper); border-color: rgba(241, 231, 210, 0.4);
}
.case-cta-card .btn--secondary:hover {
  background: rgba(241, 231, 210, 0.1);
  border-color: var(--paper);
  box-shadow: none;
}

@media (max-width: 760px) {
  .case-hero { padding: 36px 0 44px; }
  .case-hero h1 { max-width: none; }
}

/* ---- Lead magnet: free skill download ---- */
.lm-headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--walnut);
  margin: 0 0 18px 0; text-wrap: balance;
}
.lm-sub { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 66ch; margin: 0 0 36px 0; text-wrap: pretty; }

.lm-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--walnut);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
@media (max-width: 860px) { .lm-card { grid-template-columns: 1fr; } }
.lm-left, .lm-right { padding: clamp(26px, 3vw, 40px); }
.lm-left {
  background: var(--walnut-deep);
  background-image: repeating-linear-gradient(90deg, rgba(241,231,210,0.018) 0 2px, transparent 2px 8px);
}
.lm-right { position: relative; }

.lm-file {
  display: flex; align-items: center; gap: 14px;
  background: rgba(241,231,210,0.06);
  border: 1px solid rgba(241,231,210,0.16);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  margin-bottom: 26px;
}
.lm-file-icon {
  font-family: var(--font-mono); font-size: 16px; font-weight: 500;
  color: var(--stamp);
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--stamp-a12); border-radius: 8px;
}
.lm-file-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lm-file-name { font-family: var(--font-mono); font-size: 14px; color: var(--paper); font-weight: 500; word-break: break-word; }
.lm-file-meta { font-family: var(--font-mono); font-size: 11px; color: rgba(241,231,210,0.55); letter-spacing: 0.03em; }
.lm-stamp {
  position: absolute; top: -11px; right: 12px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stamp);
  border: 1.5px solid var(--stamp); border-radius: 4px;
  padding: 3px 7px; background: var(--walnut-deep);
  transform: rotate(-4deg); opacity: 0.9;
}

.lm-list-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(241,231,210,0.55); margin: 0 0 14px 0;
}
.lm-list { list-style: none; margin: 0; padding: 0; }
.lm-list li {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 9px 0; border-top: 1px solid rgba(241,231,210,0.1);
  font-size: 13.5px; line-height: 1.45; color: rgba(241,231,210,0.82);
}
.lm-list li:first-child { border-top: 0; }
.lm-list code {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--cognac-tint); background: rgba(241,231,210,0.08);
  padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}

.lm-steps { list-style: none; counter-reset: lm; margin: 0 0 28px 0; padding: 0; }
.lm-steps li {
  counter-increment: lm;
  position: relative; padding-left: 40px; margin-bottom: 16px;
  font-size: 14.5px; line-height: 1.5; color: rgba(241,231,210,0.85);
}
.lm-steps li::before {
  content: counter(lm, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--stamp);
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--stamp-a50);
  display: flex; align-items: center; justify-content: center;
}

.lm-gate { border-top: 1px solid rgba(241,231,210,0.14); padding-top: 22px; }
.lm-gate-prompt { display: block; font-family: var(--font-emphasis); font-style: italic; font-size: 18px; color: var(--paper); margin-bottom: 14px; }
.lm-gate-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lm-gate-input {
  flex: 1 1 200px; min-width: 0;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--paper); background: rgba(241,231,210,0.07);
  border: 1px solid rgba(241,231,210,0.22); border-radius: 8px;
  padding: 12px 14px; outline: none;
  transition: border-color var(--dur-base) var(--ease-out);
}
.lm-gate-input::placeholder { color: rgba(241,231,210,0.4); }
.lm-gate-input:focus, .lm-gate-input[aria-invalid="true"] { border-color: var(--stamp); }
.lm-gate-btn.btn--primary { background: var(--paper); color: var(--walnut); border-color: var(--paper); }
.lm-gate-btn.btn--primary:hover { background: #fff; border-color: #fff; box-shadow: 0 3px 0 0 var(--stamp-a50); }
.lm-gate-note { font-size: 12px; color: rgba(241,231,210,0.5); margin: 12px 0 0; }
.lm-gate-note--error { color: var(--stamp); }

.lm-success { border-top: 1px solid rgba(241,231,210,0.14); padding-top: 22px; }
.lm-success-title { font-family: var(--font-emphasis); font-size: 20px; font-style: italic; color: var(--paper); margin: 0 0 8px; }
.lm-success p { font-size: 14.5px; line-height: 1.55; color: rgba(241,231,210,0.82); margin: 0; }
.lm-success a { color: var(--cognac-tint); text-underline-offset: 2px; }

.lm-why {
  font-family: var(--font-emphasis); font-style: italic;
  font-size: 15px; line-height: 1.6; color: var(--muted-warm);
  max-width: 72ch; margin: 28px 0 0;
}

/* ---- Case 2 specifics ---- */
.status-pill {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cognac);
  border: 1px solid var(--cognac-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.case-status-note {
  font-family: var(--font-emphasis); font-style: italic;
  font-size: 15px; line-height: 1.55; color: var(--muted-warm);
  max-width: 60ch; margin: -16px 0 36px 0;
}

/* extra complexity-meter levels */
.meter-dots[data-level="2"] i:nth-child(-n+2) { background: var(--stamp); }
.meter-dots[data-level="3"] i:nth-child(-n+3) { background: var(--walnut); }

/* single-column lead-magnet card (waitlist) */
.lm-card--single { grid-template-columns: 1fr; max-width: 720px; }

/* UI mocks (software-style cards on a cool surface) */
.mock-card {
  width: 100%;
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 8px 22px -16px rgba(18, 46, 82, 0.5);
  font-family: var(--font-sans);
  text-align: left;
}
.mock-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #5a6b81; margin-bottom: 12px;
}
.mock-fields { list-style: none; margin: 0; padding: 0; }
.mock-fields li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid #eef1f5;
  font-size: 13px; color: #5a6b81;
}
.mock-fields li:first-child { border-top: 0; }
.mock-fields b { color: #122e52; font-weight: 600; }
.mock-row { font-size: 13px; color: #122e52; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.mock-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  background: #eef1f5; color: #5a6b81; padding: 3px 7px; border-radius: 4px;
}
.mock-score { color: #2f7d4f; font-weight: 600; }
.mock-row--note { color: #5a6b81; font-size: 12.5px; line-height: 1.45; display: block; }
.mock-hs-top {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: #5a6b81; display: flex; align-items: center; gap: 7px; margin-bottom: 12px;
}
.mock-hs-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff7a59; flex-shrink: 0; }
.mock-hs-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #122e52; margin-bottom: 12px; }
.mock-hs-note {
  background: #f4f7fb; border-left: 3px solid #2865b7; border-radius: 0 6px 6px 0;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.45; color: #344b66; margin-bottom: 12px;
}
.mock-hs-label {
  display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #2865b7; margin-bottom: 4px;
}
.mock-hs-owner { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: #5a6b81; }

/* ---- Cases overview page ---- */
.case-item--soon { pointer-events: none; }
.case-item--soon .case-info h3, .case-item--soon .case-info p, .case-item--soon .case-meta { opacity: 0.75; }
.case-logo--placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1.5px dashed var(--paper-300);
  font-family: var(--font-mono); font-size: 22px; color: var(--cognac);
  justify-self: start;
}
.inline-status {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cognac); border: 1px solid var(--cognac-soft); border-radius: 999px;
  padding: 2px 8px; vertical-align: middle; margin-left: 8px; white-space: nowrap;
}

.skills-section h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.16;
  letter-spacing: -0.018em; color: var(--walnut); font-weight: 700; margin: 0 0 24px 0;
}
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 0; }
@media (max-width: 720px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-card {
  background: var(--paper-soft); border: 1px solid var(--paper-300); border-radius: 12px;
  padding: 26px 26px 22px; display: flex; flex-direction: column;
}
.skill-card--ready { border-top: 3px solid var(--stamp); }
.skill-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.skill-file { font-family: var(--font-mono); font-size: 12px; color: var(--muted-warm); word-break: break-word; }
.skill-badge {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-warm); background: var(--paper-200); padding: 3px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.skill-badge--ready { color: #2f7d4f; background: #e3f3e8; }
.skill-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--walnut); margin: 0 0 10px 0;
}
.skill-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink); margin: 0 0 16px 0; }
.skill-link {
  margin-top: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stamp); display: inline-flex; align-items: center; gap: 6px;
}
.skill-link--muted { color: var(--muted-warm); }
.skills-gate-card { margin-top: 24px; }

/* content mock tiles that size to their content (no clipping) */
.artifact-media--tall {
  aspect-ratio: auto;
  min-height: 264px;
  align-items: center;
}
.artifact-media--tall .mock-card { width: 100%; }

/* ---- Nav: orange star hint on the Cases link (draws clicks) ---- */
.site-header nav a[href="cases.html"]:not([aria-current="page"])::after {
  content: '\2726'; /* ✦ */
  color: var(--stamp);
  font-size: 0.64em;
  margin-left: 4px;
  vertical-align: 2px;
  display: inline-block;
  animation: nav-star-pulse 2.6s var(--ease-out) infinite;
}
@keyframes nav-star-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.28); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header nav a[href="cases.html"]::after { animation: none; opacity: 1; }
}

/* ---- Prominent Cases/Skills teaser band (replaces the small ghost link) ---- */
.cases-cta {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
  padding: clamp(26px, 3vw, 38px) clamp(26px, 3.2vw, 44px);
  background: var(--walnut);
  border-radius: 16px;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.cases-cta:hover { transform: translateY(-2px); background: var(--walnut-deep); box-shadow: var(--shadow-3); }
.cases-cta-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cases-cta-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(241, 231, 210, 0.6); display: inline-flex; align-items: center; gap: 8px;
}
.cc-star { color: var(--stamp); font-size: 12px; }
.cases-cta-title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2; letter-spacing: -0.015em; color: var(--paper);
}
.cases-cta-sub { font-size: 14.5px; line-height: 1.5; color: rgba(241, 231, 210, 0.7); max-width: 54ch; }
.cases-cta-action {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--paper); background: var(--stamp);
  padding: 14px 24px; border-radius: 10px;
  box-shadow: 0 8px 22px -10px rgba(196, 82, 28, 0.7);
}
.cases-cta-action .arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-out); }
.cases-cta:hover .cases-cta-action .arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .cases-cta { flex-direction: column; align-items: flex-start; }
  .cases-cta-action { width: 100%; justify-content: center; }
}

/* ---- About: entity-clear lead + availability close ---- */
.about-body .about-lead {
  font-size: 19px; line-height: 1.6; color: var(--walnut); font-weight: 500;
  margin-bottom: 22px; max-width: 580px;
}
.about-body .about-availability { color: var(--ink); }
.about-body .about-availability a { color: var(--walnut); text-underline-offset: 3px; }

/* =========================================================
   Ablauf der Zusammenarbeit (Wasserfall, top-down)
   Center stream + zigzag cards (desktop), left rail (mobile).
   Progressive enhancement: ohne JS voll lesbar.
   --------------------------------------------------------- */
.waterfall {
  list-style: none;
  margin: 8px 0 0;
  margin-inline: auto;
  padding: 0;
  position: relative;
  max-width: 980px;
}
/* Stream: vertikale Linie mittig, Burnt-Orange-Marker-Ink */
.waterfall::before {
  content: '';
  position: absolute;
  left: 50%; top: -6px; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--stamp-a50) 16px,
    var(--stamp) 64px,
    var(--stamp) calc(100% - 80px),
    var(--stamp-a30) calc(100% - 24px),
    transparent 100%
  );
  border-radius: 2px;
}
/* Fliessendes Wasser: weiches Highlight, das den Stream herunterwandert */
.waterfall::after {
  content: '';
  position: absolute;
  left: 50%; top: -8%;
  width: 6px; height: 64px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(to bottom, transparent, rgba(255, 233, 209, 0.9), var(--stamp), transparent);
  filter: blur(1px);
  opacity: 0.7;
  animation: wf-flow 3.6s linear infinite;
  pointer-events: none;
}
@keyframes wf-flow {
  0%   { top: -8%;  opacity: 0; }
  14%  { opacity: 0.75; }
  86%  { opacity: 0.75; }
  100% { top: 100%; opacity: 0; }
}

.wf-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  align-items: center;
  min-height: 96px;
  margin-bottom: 30px;
}
.wf-step:last-child { margin-bottom: 0; }

/* Knoten sitzt auf dem Stream */
.wf-node {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-soft);
  border: 1.5px solid var(--stamp);
  box-shadow: 0 0 0 6px var(--paper), var(--shadow-2);
  color: var(--stamp);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.wf-no { line-height: 1; }

/* Karten wechseln die Seite (Zickzack) */
.wf-card {
  background: var(--paper-soft);
  border: 1px solid var(--paper-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 22px 24px;
}
.wf-step:nth-child(odd)  .wf-card { grid-column: 1; text-align: right; }
.wf-step:nth-child(even) .wf-card { grid-column: 2; }

.wf-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; letter-spacing: -0.012em;
  color: var(--walnut);
  margin: 0 0 8px 0;
}
.wf-text { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0; max-width: none; }
.wf-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cognac);
  background: var(--cognac-tint);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
}

/* Reveal beim Scrollen (nur wenn JS die Liste als enhanced markiert) */
.waterfall.is-enhanced .wf-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.waterfall.is-enhanced .wf-step.is-in { opacity: 1; transform: none; }

/* ---- Mobile: ein linker Strang, Karten rechts daneben ---- */
@media (max-width: 720px) {
  .waterfall { max-width: 100%; }
  .waterfall::before, .waterfall::after { left: 23px; }
  .wf-step {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-left: 64px;
    min-height: 0;
    margin-bottom: 24px;
  }
  .wf-node { left: 23px; top: 28px; width: 42px; height: 42px; }
  .wf-step:nth-child(odd)  .wf-card,
  .wf-step:nth-child(even) .wf-card { grid-column: 1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .waterfall::after { display: none; }
  .waterfall.is-enhanced .wf-step { opacity: 1; transform: none; transition: none; }
}

/* Zentrierter, grosser Kopf der Ablauf-Sektion */
.flow-collab .section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
  margin-bottom: 56px;
}
.flow-collab .flow-collab-title {
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing: -0.02em;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
.flow-collab .section-head--center .intro { margin-inline: auto; }

/* ---- Kontakt-Formular: Politur + Erfolgs-Moment ---- */
.luecken-footer { align-items: center; }
/* weicher Fokus-Highlight hinter den Inline-Feldern */
.luecken-input:focus { background: var(--stamp-a12); border-radius: 4px 4px 0 0; }
.luecken-textarea:focus { background: var(--stamp-a12); border-radius: 6px 6px 0 0; }
/* Erfolgs-Moment */
.lueckentext-form.success .success-msg { animation: success-in 460ms var(--ease-out) both; }
.success-check {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--stamp); color: var(--paper);
  font-size: 21px; line-height: 1; margin: 0 0 14px 0;
  box-shadow: 0 8px 20px -8px rgba(196, 82, 28, 0.7);
  animation: success-pop 460ms var(--ease-out) both;
}
@keyframes success-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes success-pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .luecken-submit.is-sending::before { animation: none; transform: scaleX(1); }
  .lueckentext-form.success .success-msg,
  .success-check { animation: none; }
  .luecken-submit:hover { transform: none; }
  .luecken-submit:hover .ls-arrow { transform: none; }
}

/* Retainer-Rechner: kleingedruckter Schaetzungs-Hinweis */
.basket-fineprint { font-size: 11.5px; line-height: 1.5; color: var(--muted-warm); margin: 10px 0 0 0; max-width: none; }

/* =========================================================
   DARK MODE
   Aktiv via data-theme="dark" auf <html>. Toggle im Header.
   Tokens werden gekippt; dual-genutzte Faelle (dunkle Flaechen,
   helle CTA-Schrift) bekommen gezielte Overrides.
   --------------------------------------------------------- */
:root[data-theme="dark"] {
  --paper:        #181109;
  --paper-soft:   #1A130B;
  --paper-warm:   #221810;
  --paper-200:    rgba(241, 231, 210, 0.12);
  --paper-300:    rgba(241, 231, 210, 0.20);
  --walnut:       #F2E8D4;
  --walnut-deep:  #FFFBF2;
  --walnut-soft:  #C9B89C;
  --cognac:       #CC9259;
  --cognac-soft:  #DCA972;
  --cognac-tint:  #33271A;
  --ink:          #E9DEC9;
  --muted-warm:   #A18F77;
}

/* Body: unser warmer Verlauf (identisch zur Hauptseite), --warm-top als Standard */
[data-theme="dark"] html,
[data-theme="dark"] body {
  background: radial-gradient(132% 92% at 50% -8%, var(--warm-top, #241810) 0%, #0a0705 58%, #050403 100%) fixed;
}
/* Punkt-Raster: helle Punkte auf dunkel, dezent */
[data-theme="dark"] body::before {
  background-image: radial-gradient(circle, rgba(241, 231, 210, 1) 1.2px, transparent 1.8px);
  opacity: 0.05;
}
[data-theme="dark"] body::after { opacity: 0.035; }

/* Header: dunkles, halbtransparentes Glas */
[data-theme="dark"] .site-header {
  background: rgba(20, 14, 8, 0.82);
  border-bottom-color: rgba(241, 231, 210, 0.10);
}

/* Grosse Dunkel-Flaechen (nutzten --walnut als bg) bleiben dunkel/elevated */
[data-theme="dark"] .case-cta-card,
[data-theme="dark"] .cases-cta { background: var(--paper-soft); }
[data-theme="dark"] .cases-cta:hover { background: var(--paper-warm); }

/* CTAs auf Stamp/Orange: Schrift hell halten */
[data-theme="dark"] .luecken-submit,
[data-theme="dark"] .cases-cta-action { color: #FFF4E6; }

/* ---- Header-Toggle (Dark Mode), absolut am Container-Rand ---- */
.theme-toggle {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: calc((100% - min(100%, 1200px)) / 2 + 32px);
  z-index: 51;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--paper-300);
  border-radius: 999px;
  color: var(--walnut);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.theme-toggle:hover { background: var(--cognac-tint); color: var(--stamp); border-color: var(--stamp-a50); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
@media (max-width: 800px) { .theme-toggle { right: 62px; } }

/* ---- Sprechblase am Toggle ---- */
.theme-hint {
  position: absolute; top: calc(100% + 12px);
  right: calc((100% - min(100%, 1200px)) / 2 + 18px);
  z-index: 60;
  background: var(--walnut); color: var(--paper);
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; line-height: 1.3;
  padding: 9px 14px; border-radius: 10px; box-shadow: var(--shadow-3);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(-5px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.theme-hint.show { opacity: 1; transform: translateY(0); }
.theme-hint::after {
  content: ''; position: absolute; top: -5px; right: 18px;
  width: 10px; height: 10px; background: var(--walnut); transform: rotate(45deg);
}
@media (max-width: 800px) { .theme-hint { right: 16px; } }

/* Dark-Mode Holdouts: helle Chips/Baender dunkel ziehen */
[data-theme="dark"] .tool-tag { background: rgba(241, 231, 210, 0.08); border-color: rgba(241, 231, 210, 0.16); color: var(--ink); }
[data-theme="dark"] .calc-chip { background: rgba(241, 231, 210, 0.07); border-color: rgba(241, 231, 210, 0.18); color: var(--ink); }
/* Cases-Baender: lokale --c-* Vars fuer Dark Mode neu setzen (Light-Annahmen kippen sonst) */
[data-theme="dark"] .case-band {
  --c-surface: #1F1710;
  --c-border: rgba(241, 231, 210, 0.14);
  --c-title: var(--walnut);
  --c-text: rgba(241, 231, 210, 0.80);
  --c-meta: rgba(241, 231, 210, 0.58);
  --c-num: var(--stamp);
  --c-num-op: 0.5;
  --c-logo-filter: brightness(0) invert(1);
  --c-logo-op: 0.85;
  --c-spine: var(--stamp-a30);
  --c-statbefore: rgba(241, 231, 210, 0.5);
  --c-statafter: var(--walnut);
  --c-statlabel: rgba(241, 231, 210, 0.80);
  --c-statsource: rgba(241, 231, 210, 0.5);
  --c-shadow: none;
}
[data-theme="dark"] .case-band--featured,
[data-theme="dark"] .case-band:hover {
  --c-surface: #2C2118;
  --c-border: var(--stamp-a30);
  --c-num-op: 0.6;
  --c-shadow: var(--shadow-3);
}
[data-theme="dark"] .cases-stack:hover .case-band--featured:not(:hover) {
  --c-surface: #1F1710;
  --c-border: rgba(241, 231, 210, 0.14);
  --c-num-op: 0.5;
  --c-shadow: none;
}

/* Nudges/Tooltips im Dark Mode dunkel statt hell */
[data-theme="dark"] .tool-tooltip,
[data-theme="dark"] .drag-hint,
[data-theme="dark"] .field-hint {
  background: #2A2017;
  color: var(--ink);
  border: 1px solid rgba(241, 231, 210, 0.12);
}
[data-theme="dark"] .drag-hint::after,
[data-theme="dark"] .field-hint::after { background: #2A2017; }
[data-theme="dark"] .tool-tooltip .tt-label { color: var(--cognac); }
[data-theme="dark"] .tool-tooltip .tt-name { color: var(--walnut); }

/* Skill-Download-Karte (lm-card): bleibt dunkle Karte via lokalem Token-Kontext */
[data-theme="dark"] .lm-card {
  background: var(--paper-soft);
  border-color: rgba(241, 231, 210, 0.14);
  --paper: #F4ECD9;
  --walnut-deep: #2C2118;
  --cognac-tint: #E0C9A0;
}
/* Heller "Skills holen"-Button braucht dunklen Text — --walnut kippt im
   Dark Mode auf hell, sonst hell auf hell (Button unleserlich). */
[data-theme="dark"] .lm-card .lm-gate-btn.btn--primary { color: var(--walnut-deep); }

/* Logos im Dark Mode hell (sonst unsichtbar auf dunkel) */
[data-theme="dark"] .t-logo { filter: brightness(0) invert(1); opacity: 0.7; }
[data-theme="dark"] .hero-meta img { filter: brightness(0) invert(1); opacity: 0.85; }
[data-theme="dark"] .case-list .case-logo,
[data-theme="dark"] .case-hero-logo { filter: brightness(0) invert(1); opacity: 0.85; }

/* Dunkel-Flaechen-Headings nutzen var(--paper) -> im Dark hell statt schwarz */
[data-theme="dark"] .cases-cta-title,
[data-theme="dark"] .case-cta-card h2 { color: var(--walnut); }
/* Sekundaerer CTA-Button ("Zur Startseite"): heller Text auf dunkler Karte.
   --paper ist im Dark Mode dunkel -> sonst unsichtbar. */
[data-theme="dark"] .case-cta-card .btn--secondary {
  color: var(--walnut);
  border-color: rgba(241, 231, 210, 0.4);
}

/* Tool-Chips-Erklaerung an Station 03.
   Default (Mobile + schmaler Desktop): dezente Info-Note unter den Chips.
   Breit (>=1600px): schwebende Sprechblase rechts daneben, Pfeil links, bewegt sich. */
.pipe-station { position: relative; }
.stack-hint {
  order: 1;
  align-self: flex-start;
  max-width: 460px;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 12.5px; line-height: 1.45; font-weight: 500;
  color: var(--muted-warm);
  background: var(--paper-warm);
  border-left: 2px solid var(--stamp);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  z-index: 5;
}
@keyframes stack-hint-bob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
@media (min-width: 1600px) {
  .stack-hint {
    position: absolute;
    order: 0;
    left: calc(100% + 18px);
    bottom: -22px;
    width: 200px;
    margin-top: 0;
    align-self: auto;
    color: var(--paper);
    background: var(--walnut);
    border-left: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-3);
    animation: stack-hint-bob 2.6s ease-in-out infinite;
  }
  .stack-hint::after {
    content: '';
    position: absolute; left: -5px; top: 50%;
    width: 11px; height: 11px; background: inherit; transform: translateY(-50%) rotate(45deg);
  }
  [data-theme="dark"] .stack-hint { background: #2A2017; color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .stack-hint { animation: none; } }

/* =============================================================
   CASE: Follow-up-Automation (case-followup-reminder.html)
   Eigene kreative Mocks im hellen "Tool-Look" (wie .preview-mock),
   bewusst NICHT dark-mode-abhaengig: lesen sich als HubSpot-Screens.
   ============================================================= */

/* ---- Workflow diagram (centrepiece) ---- */
.hwf-mock {
  margin: 40px auto 0;
  max-width: 700px;
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px -28px rgba(18, 46, 82, 0.5);
}
.hwf-mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: #f4f6f9;
  border-bottom: 1px solid #e3e8ef;
}
.hwf-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #cdd5e0; }
.hwf-mock-dot:nth-child(1) { background: #f1655a; }
.hwf-mock-dot:nth-child(2) { background: #f5bd4f; }
.hwf-mock-dot:nth-child(3) { background: #5fc77e; }
.hwf-mock-title {
  margin-left: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.01em; color: #42526b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hwf-mock-state {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #7a8aa0; background: #fff; border: 1px solid #e3e8ef; border-radius: 999px; padding: 3px 9px;
}
.hwf-canvas {
  background:
    radial-gradient(circle at 1px 1px, #e2e8f0 1px, transparent 0) 0 0 / 22px 22px,
    #f7f9fc;
  padding: 26px 18px 30px;
}
.hwf-node {
  display: flex; align-items: center; gap: 11px;
  width: 100%; max-width: 340px; margin: 0 auto;
  background: #fff; border: 1px solid #d8dee7; border-radius: 9px;
  padding: 11px 13px;
  box-shadow: 0 4px 12px -8px rgba(18, 46, 82, 0.45);
}
.hwf-ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  background: #eef3f8; color: #00a4bd;
}
.hwf-ic svg { width: 17px; height: 17px; }
.hwf-ic--ai { background: #ffece6; color: #ff5c35; }
.hwf-ic--mail { background: #eceeff; color: #4a5ee0; }
.hwf-node-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hwf-node-body b { font-size: 13px; color: #1b2b41; font-weight: 600; }
.hwf-node-body span { font-size: 11.5px; color: #5a6b81; line-height: 1.35; }
.hwf-tagchip {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.03em;
  color: #2f7d4f; background: #e3f3e8; border-radius: 999px; padding: 3px 7px;
}
.hwf-node--trigger { border-color: #b7e3ea; }
.hwf-node--ai { border-color: #ffd2c4; }
.hwf-node--mail { border-color: #cdd3fb; }
.hwf-link { width: 2px; height: 18px; background: #c6d0dc; margin: 0 auto; }
.hwf-fork {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin: 10px auto 2px;
}
.hwf-branch-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em;
  background: #fff; border: 1px solid #d8dee7; border-radius: 6px; padding: 4px 10px;
  color: #42526b;
}
.hwf-branch-label--yes { color: #2f7d4f; border-color: #bfe6cb; background: #f1faf3; }
.hwf-branch-label--no { color: #9aa6b6; }
.hwf-mock-cap {
  font-size: 13px; line-height: 1.55; color: var(--muted-warm);
  max-width: 640px; margin: 18px auto 0; text-align: center;
}
.hwf-mock-cap em { font-family: var(--font-mono); font-size: 12px; font-style: normal; color: var(--walnut-soft); }

/* ---- Mock artifacts: let content set the height (no 16/10 crop) ---- */
.artifact-media--auto { aspect-ratio: auto; align-items: stretch; }

/* ---- Branch-logic mock ---- */
.stage-mock { width: 100%; display: flex; flex-direction: column; gap: 11px; }
.sm-group { background: #fff; border: 1px solid #d8dee7; border-radius: 8px; padding: 11px 12px; }
.sm-group--excluded { background: #f7f9fc; }
.sm-head {
  display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #7a8aa0; margin-bottom: 8px;
}
.sm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.sm-list li { font-size: 11px; padding: 3px 8px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; }
.sm-yes { background: #e3f3e8; color: #2f7d4f; }
.sm-yes::before { content: "✓"; font-size: 10px; }
.sm-no { background: #f0f1f4; color: #9aa6b6; text-decoration: line-through; text-decoration-color: #c2cad6; }

/* ---- Deal-summary mock ---- */
.summary-mock {
  width: 100%; background: #fff; border: 1px solid #d8dee7; border-radius: 8px;
  padding: 14px; display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 8px 22px -16px rgba(18, 46, 82, 0.5);
}
.su-spark {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: #ff5c35;
}
.su-spark svg { width: 13px; height: 13px; }
.su-line { display: flex; gap: 8px; font-size: 12px; }
.su-key { color: #7a8aa0; min-width: 96px; flex-shrink: 0; }
.su-val { color: #1b2b41; font-weight: 600; }
.su-text { font-size: 12.5px; line-height: 1.5; color: #42526b; margin: 4px 0 0; max-width: none; }

/* ---- Owner-notification mock (showpiece, DE/EN toggle) ---- */
.notify-mock {
  width: 100%; background: #fff; border: 1px solid #d8dee7; border-radius: 8px;
  padding: 14px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 8px 22px -16px rgba(18, 46, 82, 0.5);
}
.nm-head { display: flex; align-items: center; gap: 8px; }
.nm-ic { width: 24px; height: 24px; border-radius: 6px; background: #eceeff; color: #4a5ee0; display: grid; place-items: center; }
.nm-ic svg { width: 14px; height: 14px; }
.nm-to { font-size: 12px; color: #42526b; }
.nm-badge {
  margin-left: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em;
  text-transform: uppercase; color: #7a8aa0; background: #f1f4f8; border-radius: 999px; padding: 3px 8px;
}
.nm-subject { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.25; color: #122e52; }
.nm-ctx { font-size: 11px; color: #5a6b81; }
.nm-suggest { background: #f7f9fc; border: 1px solid #e3e8ef; border-radius: 7px; padding: 10px; }
.nm-suggest-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.nm-suggest-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #7a8aa0; }
.nm-toggle { display: inline-flex; background: #eceeff; border-radius: 999px; padding: 2px; gap: 2px; }
.nm-lang {
  font-family: var(--font-mono); font-size: 10px; border: 0; cursor: pointer;
  padding: 3px 10px; border-radius: 999px; background: transparent; color: #5a6b81;
}
.nm-lang.is-active { background: #ff5c35; color: #fff; }
.nm-lang:focus-visible { outline: 2px solid #ff5c35; outline-offset: 1px; }
.nm-msg { font-size: 12.5px; line-height: 1.55; color: #1b2b41; margin: 0; max-width: none; }
.nm-actions { display: flex; gap: 8px; }
.nm-btn {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 6px; background: #f1f4f8; color: #42526b;
}
.nm-btn--primary { background: linear-gradient(135deg, #ff5c35, #ff7a59); color: #fff; }

/* ---- Recipe (open build guide, warm brand tokens) ---- */
.recipe-steps {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px; max-width: 760px;
}
.recipe-steps > li { display: flex; gap: 18px; align-items: flex-start; }
.recipe-no {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--stamp);
  width: 38px; height: 38px; border-radius: 8px; background: var(--stamp-a12); display: grid; place-items: center;
}
.recipe-steps h3 { font-size: 18px; margin: 0 0 4px; }
.recipe-steps p { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0; max-width: 62ch; }
.recipe-steps em {
  font-family: var(--font-mono); font-size: 13px; font-style: normal;
  color: var(--stamp); background: var(--stamp-a12); padding: 1px 6px; border-radius: 4px;
}
@media (max-width: 560px) {
  .recipe-no { width: 32px; height: 32px; font-size: 12px; }
  .recipe-steps > li { gap: 12px; }
}

/* Lead pull-quote: the single most important statement of a case,
   bigger and upright (not italic) so it reads as the thesis, not an aside. */
.case-page .pull-quote--lead {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(25px, 3.2vw, 35px);
  line-height: 1.2;
  border-left-width: 3px;
  margin: 44px 0 40px;
  max-width: 24ch;
}

/* Skill-Karten: sanfter Hover-Lift als interaktives Feedback */
.skill-card {
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--cognac-soft);
}
@media (prefers-reduced-motion: reduce) {
  .skill-card { transition: none; }
  .skill-card:hover { transform: none; }
}

/* =============================================================
   TERMINBUCHUNG (booking.js, Section #termin)
   Eigenes Buchungs-UI im Seitendesign: Kalender links,
   freie Slots + Formular rechts. Light + Dark via Tokens.
   ============================================================= */
.section-booking { padding-top: 96px; padding-bottom: 104px; }

.bk-widget {
  margin-top: 8px;
  background: var(--paper-soft);
  border: 1px solid var(--paper-300);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  padding: clamp(20px, 2.6vw, 34px);
}
.bk-fallback { margin: 0; color: var(--ink); }
.bk-fallback a { color: var(--walnut); }

.bk-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
@media (max-width: 760px) { .bk-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Kalender ---- */
.bk-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.bk-cal-month {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; color: var(--walnut);
}
.bk-nav {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  background: transparent; color: var(--walnut);
  border: 1px solid var(--paper-300); border-radius: 999px;
  cursor: pointer; font-size: 15px;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.bk-nav:hover:not(:disabled) { background: var(--cognac-tint); border-color: var(--stamp-a50); color: var(--stamp); }
.bk-nav:disabled { opacity: 0.32; cursor: default; }

.bk-dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 6px;
}
.bk-dow span {
  text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-warm);
}
.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-day {
  aspect-ratio: 1 / 1;
  display: inline-grid; place-items: center;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent; border-radius: 9px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.bk-day:hover:not(:disabled) { background: var(--cognac-tint); border-color: var(--stamp-a30); }
.bk-day.is-selected {
  background: var(--walnut); color: var(--paper); border-color: var(--walnut);
  box-shadow: 0 6px 16px -10px rgba(61, 42, 28, 0.6);
}
.bk-day--empty { visibility: hidden; cursor: default; }
.bk-day--off { color: var(--muted-warm); opacity: 0.38; cursor: default; }
.bk-tz { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted-warm); }

/* ---- Rechte Spalte: Slots + Formular ---- */
.bk-right { min-width: 0; }
.bk-hint {
  font-family: var(--font-emphasis); font-style: italic;
  font-size: 16px; line-height: 1.55; color: var(--muted-warm);
  padding: 8px 0;
}
.bk-right-title {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  color: var(--walnut); margin-bottom: 14px;
}
.bk-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-slot {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: -0.01em;
  color: var(--walnut);
  background: var(--paper); border: 1px solid var(--paper-300); border-radius: 8px;
  padding: 9px 14px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.bk-slot:hover { border-color: var(--stamp-a50); background: var(--cognac-tint); transform: translateY(-1px); }
.bk-slot.is-selected { background: var(--stamp); border-color: var(--stamp); color: #FFF4E6; }
.bk-loading, .bk-empty { font-size: 14px; color: var(--muted-warm); padding: 6px 0; }
.bk-empty a { color: var(--walnut); }

/* ---- Buchungsformular ---- */
.bk-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--paper-200); }
.bk-form-lead { font-size: 15px; color: var(--ink); margin: 0 0 16px; }
.bk-form-lead strong { color: var(--walnut); }
.bk-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.bk-field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-warm);
}
.bk-opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.bk-field input, .bk-field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--paper-300); border-radius: 8px;
  padding: 11px 13px; outline: none; resize: vertical;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.bk-field input::placeholder, .bk-field textarea::placeholder { color: var(--muted-warm); opacity: 0.7; }
.bk-field input:focus, .bk-field textarea:focus { border-color: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-a12); }
.bk-error { font-size: 13px; color: var(--stamp); margin: 0 0 12px; }
.bk-confirm { margin-top: 6px; width: 100%; justify-content: center; }
.bk-confirm:disabled { opacity: 0.7; cursor: default; }
.bk-privacy { font-size: 12px; line-height: 1.5; color: var(--muted-warm); margin: 14px 0 0; }
.bk-privacy a { color: var(--walnut); }

/* ---- Demo-Hinweis ---- */
.bk-demo-note {
  margin: 20px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted-warm);
  background: var(--paper-warm); border-left: 2px solid var(--stamp);
  border-radius: 0 8px 8px 0; padding: 9px 13px;
}

/* ---- Erfolg ---- */
.bk-success { text-align: center; padding: 18px 0; }
.bk-success-check {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--stamp); color: #FFF4E6;
  font-size: 22px; line-height: 1; margin-bottom: 16px;
  box-shadow: 0 8px 20px -8px rgba(196, 82, 28, 0.7);
  animation: success-pop 460ms var(--ease-out) both;
}
.bk-success h3 { font-family: var(--font-display); font-size: 24px; color: var(--walnut); margin: 0 0 8px; }
.bk-success-when { font-family: var(--font-emphasis); font-style: italic; font-size: 17px; color: var(--ink); margin: 0 0 10px; }
.bk-success p { margin: 0 auto 6px; max-width: 46ch; font-size: 15px; color: var(--ink); }
.bk-success-meet { font-size: 14px; word-break: break-word; }
.bk-success-meet a { color: var(--walnut); }

/* Dark Mode: helle Eingabeflaechen abdunkeln */
[data-theme="dark"] .bk-slot,
[data-theme="dark"] .bk-field input,
[data-theme="dark"] .bk-field textarea {
  background: rgba(241, 231, 210, 0.05);
}
[data-theme="dark"] .bk-slot.is-selected { color: #FFF4E6; }
@media (prefers-reduced-motion: reduce) {
  .bk-day, .bk-slot { transition: none; }
  .bk-success-check { animation: none; }
}

/* Kontaktformular: Fehlermeldung bei fehlgeschlagenem Versand */
.form-error { font-size: 13px; color: var(--stamp); margin: 12px 0 0; }

/* =============================================================
   KOMBINIERTES OVERLAY (Termin + Kontakt) + STICKY CTA
   Inhalte aus #termin/#contact werden per JS hierher verschoben;
   die Originalsektionen werden ausgeblendet (No-JS-Fallback: CTAs
   sind mailto-Links).
   ============================================================= */
.section-booking, .section-contact { display: none; }

/* ---- Sticky CTA ---- */
.sticky-cta {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  color: #FFF4E6; background: var(--stamp); text-decoration: none;
  border: none; border-radius: var(--radius-pill);
  padding: 14px 22px; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(196, 82, 28, 0.75);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.sticky-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(196, 82, 28, 0.85); }
.sticky-cta:focus-visible { outline: 3px solid var(--stamp-a50); outline-offset: 3px; }
.sticky-cta-arrow { transition: transform var(--dur-base) var(--ease-out); }
.sticky-cta:hover .sticky-cta-arrow { transform: translateX(3px); }
body.overlay-open .sticky-cta { display: none; }
@media (max-width: 520px) {
  .sticky-cta { left: clamp(16px, 4vw, 28px); right: clamp(16px, 4vw, 28px); justify-content: center; }
}

/* ---- Overlay ---- */
.overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 28px); }
.overlay[hidden] { display: none; }
.overlay-backdrop { position: absolute; inset: 0; background: rgba(31, 20, 12, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.overlay-dialog {
  position: relative; z-index: 1;
  width: min(720px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--paper-300); border-radius: 16px;
  box-shadow: var(--shadow-3);
  padding: clamp(22px, 3vw, 38px);
  animation: overlay-in 240ms var(--ease-out) both;
}
@keyframes overlay-in { from { opacity: 0; transform: translateY(12px) scale(0.99); } to { opacity: 1; transform: none; } }
.overlay-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  background: transparent; color: var(--walnut);
  border: 1px solid var(--paper-300); border-radius: 999px; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.overlay-close:hover { background: var(--cognac-tint); color: var(--stamp); border-color: var(--stamp-a50); }
.overlay-head { margin-bottom: 22px; padding-right: 44px; }
.overlay-head .eyebrow { margin-bottom: 14px; }
.overlay-head h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; color: var(--walnut); margin: 0 0 18px; }
.overlay-tabs { display: inline-flex; gap: 6px; background: var(--paper-warm); border: 1px solid var(--paper-300); border-radius: var(--radius-pill); padding: 4px; }
.overlay-tab {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--muted-warm); background: transparent; border: none; border-radius: var(--radius-pill);
  padding: 9px 18px; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.overlay-tab:hover { color: var(--walnut); }
.overlay-tab.is-active { background: var(--walnut); color: var(--paper); }
.overlay-tab:focus-visible { outline: 2px solid var(--stamp-a50); outline-offset: 2px; }
.overlay-panel[hidden] { display: none; }
.overlay-panel-intro { font-size: 15px; line-height: 1.55; color: var(--muted-warm); margin: 0 0 18px; max-width: none; }
.overlay-contact-meta {
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--paper-200);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-warm);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.overlay-contact-meta a { color: var(--walnut); }

/* Buchungs-Widget im Overlay: ohne eigene Kartenoptik (der Dialog ist die Karte) */
.overlay .bk-widget { background: transparent; border: none; box-shadow: none; padding: 0; margin: 0; }
.overlay .lueckentext-form { max-width: none; }
.overlay .luecken-para { font-size: clamp(18px, 2vw, 22px); }

[data-theme="dark"] .overlay-dialog { background: var(--paper-soft); }
[data-theme="dark"] .overlay-tab.is-active { color: var(--walnut-deep); }
@media (prefers-reduced-motion: reduce) {
  .overlay-dialog { animation: none; }
  .sticky-cta, .sticky-cta-arrow { transition: none; }
}



/* Skip-Link (Tastatur: zum Inhalt springen) - ergaenzt 2026-06-25 */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--walnut); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { left: 16px; }
