/* ===========================================================
   haselsberger.at — Christian Haselsberger
   Design system: warm paper, sand, ochre clay accent, ink.
   Type: Spectral (display) + Hanken Grotesk (UI/body)
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Single brand beige — the only surface tone across the whole site */
  --beige: #eeede3;
  --paper:    var(--beige);
  --paper-2:  var(--beige);
  --sand:     var(--beige);

  /* Panels (sidebar, footer, approach strip) */
  --ink-panel: var(--beige);

  /* Ink scale (warm near-black) */
  --ink:    #221D17;
  --ink-2:  #4C4339;
  --ink-3:  #7A6E5E;
  --ink-on-dark: #F3EAD9;
  --ink-on-dark-2: #C7B79C;

  /* Accent — ochre / clay */
  --clay:      #B0793F;
  --clay-deep: #8F5E2C;
  --clay-soft: color-mix(in oklab, var(--clay), var(--paper) 78%);

  /* Lines & shadows */
  --line:   color-mix(in oklab, var(--ink) 14%, transparent);
  --line-2: color-mix(in oklab, var(--ink) 8%, transparent);
  --shadow-sm: 0 1px 2px rgba(34,29,23,.06), 0 2px 8px rgba(34,29,23,.05);
  --shadow-md: 0 4px 14px rgba(34,29,23,.08), 0 18px 40px rgba(34,29,23,.07);
  --shadow-lg: 0 10px 30px rgba(34,29,23,.10), 0 40px 80px rgba(34,29,23,.10);

  /* Shape motif colors */
  --shape-1: var(--clay);
  --shape-2: var(--sand);
  --shape-3: var(--ink);

  /* Type */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Metrics */
  --rail-w: 92px;          /* sidebar width, overridden per variant */
  --maxw: 1340px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

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

/* Sidebar variant widths */
body[data-sidebar="icons"]    { --rail-w: 116px; }
body[data-sidebar="vtext"]    { --rail-w: 108px; }
body[data-sidebar="editorial"]{ --rail-w: 244px; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 106.25%; } /* 17px root — lifts the whole rem-based scale ~6% for comfort */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-ui);
  background: #ffffff;
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.06rem; /* ~18px body copy */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 2.5px solid var(--clay-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  background: var(--ink); color: var(--ink-on-dark);
  padding: 10px 16px; border-radius: 8px;
  transform: translateY(-150%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.eyebrow {
  font-family: var(--font-ui);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay-deep);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: currentColor; display: inline-block; opacity: .7;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.28rem); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }

/* ---------- Layout shell ---------- */
.app { display: block; }
.main {
  margin-left: 0;
  transition: margin-left .35s var(--ease);
}
@media (min-width: 1024px) {
  .main { margin-left: var(--rail-w); }
}

.section { padding-block: clamp(64px, 9vw, 130px); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }

/* ============================================================
   SIDEBAR (the left rail)
   ============================================================ */
.rail {
  position: fixed; inset: 0 auto 0 0;
  width: min(86vw, 320px);
  z-index: 80;
  background: var(--ink-panel);
  color: var(--ink-2);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line-2);
  transform: translateX(-100%);
  transition: transform .42s var(--ease-out);
  padding: 22px 20px;
}
.rail.is-open { transform: translateX(0); }

@media (min-width: 1024px) {
  .rail {
    width: var(--rail-w);
    transform: none;
    padding: 26px 0;
    transition: width .35s var(--ease);
  }
  /* ----- Logo in the rail (desktop) ----- */
  /* icons: full wordmark rotated to run vertically up the rail */
  body[data-sidebar="icons"] .rail__mark-mono { display: none; }
  body[data-sidebar="icons"] .rail__mark { height: 200px; width: 100%; }
  body[data-sidebar="icons"] .rail__mark-word {
    display: block;
    flex: none;
    width: 200px; height: auto; max-width: none;
    transform: rotate(-90deg);
    transform-origin: center;
    opacity: 1;
    transition: opacity .2s var(--ease);
  }
  body[data-sidebar="icons"] .rail__mark:hover .rail__mark-word { opacity: .82; }
  /* The rotated wordmark replaces the text vertical-name */
  body[data-sidebar="icons"] .rail__vname { display: none; }

  /* vtext: keep the rotated text name, hide the icon mark */
  body[data-sidebar="vtext"] .rail__mark-mono { display: none; }

  /* editorial: horizontal wordmark at the top of the wide rail */
  body[data-sidebar="editorial"] .rail__mark-mono { display: none; }
  body[data-sidebar="editorial"] .rail__mark {
    height: auto; width: 100%; justify-content: flex-start;
  }
  body[data-sidebar="editorial"] .rail__mark-word {
    display: block; width: 100%; max-width: 200px; height: auto;
    opacity: 1; transition: opacity .2s var(--ease);
  }
}

.rail__top { display: flex; align-items: center; justify-content: space-between; }
.rail__mark {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.rail__mark svg { width: 40px; height: auto; }
.rail__mark:hover { color: var(--clay-deep); }
.rail__mark-word { display: none; }

/* brand block for editorial variant */
.rail__brand { display: none; }
.rail__brand-name { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.15; color: var(--ink); }
.rail__brand-role { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

/* Nav */
.rail__nav { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rail__link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500; font-size: .98rem;
  transition: background .2s var(--ease), color .2s var(--ease);
  position: relative;
}
.rail__link .ic { width: 20px; height: 20px; flex: none; opacity: .85; }
.rail__link:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink); }
.rail__link.is-active { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.rail__link.is-active::before {
  content: ""; position: absolute; left: -0px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 3px; background: var(--clay);
}
.rail__label { white-space: nowrap; }

.rail__foot { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.rail__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.rail__social {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.rail__social:hover { background: var(--clay); color: #fff; border-color: var(--clay); transform: translateY(-2px); }
.rail__social svg { width: 18px; height: 18px; }
.rail__contact { font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
.rail__contact a:hover { color: var(--clay-deep); }

/* ----- Variant: icons (default) — desktop: burger at top, logo centered, flyout menu ----- */
@media (min-width: 1024px) {
  body[data-sidebar="icons"] .rail { align-items: stretch; padding-inline: 0; }

  /* Burger sits at the very top of the rail */
  body[data-sidebar="icons"] .rail__top { justify-content: center; padding: 0 14px; }
  body[data-sidebar="icons"] .rail__burger { display: flex; }

  /* Logo (rotated wordmark) centered vertically in the middle of the rail */
  body[data-sidebar="icons"] .rail__mark {
    position: absolute; top: 50%; left: 0; right: 0;
    transform: translateY(-50%); height: auto;
  }

  /* Nav is hidden until the burger opens it, then slides out beside the rail */
  body[data-sidebar="icons"] .rail__nav {
    position: fixed; top: 0; left: var(--rail-w);
    width: 268px; height: 100vh; margin: 0;
    padding: 92px 18px 28px;
    background: var(--ink-panel);
    border-right: 1px solid var(--line-2);
    box-shadow: 22px 0 60px -34px rgba(20,16,12,.45);
    display: flex; flex-direction: column; gap: 4px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-14px);
    transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
    z-index: 78;
  }
  body[data-sidebar="icons"].nav-open .rail__nav {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0);
  }
  /* Flyout links show icon + label inline */
  body[data-sidebar="icons"] .rail__nav .rail__link { justify-content: flex-start; padding: 13px 14px; }
  body[data-sidebar="icons"] .rail__nav .rail__label {
    display: block; position: static; opacity: 1; transform: none;
    background: none; color: inherit; box-shadow: none; padding: 0; pointer-events: auto;
    font-size: .98rem; white-space: nowrap;
  }
  body[data-sidebar="icons"] .rail__link.is-active::before { left: -8px; }

  /* Foot socials remain pinned at the bottom of the rail */
  body[data-sidebar="icons"] .rail__foot { padding-inline: 14px; align-items: center; }
  body[data-sidebar="icons"] .rail__contact { display: none; }
  body[data-sidebar="icons"] .rail__socials { flex-direction: column; }

  /* Scrim becomes usable on desktop for the flyout */
  body[data-sidebar="icons"] .scrim { display: block; }
}

/* ----- Variant: vtext — vertical rotated wordmark ----- */
body[data-sidebar="vtext"] .rail__vname { display: none; }
@media (min-width: 1024px) {
  body[data-sidebar="vtext"] .rail { align-items: center; padding-inline: 0; }
  body[data-sidebar="vtext"] .rail__top { justify-content: center; }
  body[data-sidebar="vtext"] .rail__nav { padding-inline: 16px; }
  body[data-sidebar="vtext"] .rail__link { justify-content: center; padding: 12px; }
  body[data-sidebar="vtext"] .rail__label { display: none; }
  body[data-sidebar="vtext"] .rail__contact { display: none; }
  body[data-sidebar="vtext"] .rail__socials { flex-direction: column; align-items: center; }
  body[data-sidebar="vtext"] .rail__foot { align-items: center; }
  body[data-sidebar="vtext"] .rail__vname {
    display: block;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: var(--font-display); font-size: 1.04rem; letter-spacing: .04em;
    color: var(--ink); margin: 18px auto;
    white-space: nowrap;
  }
  body[data-sidebar="vtext"] .rail__link .rail__label {
    display: block; position: absolute; left: calc(100% + 14px); top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: var(--ink); color: var(--ink-on-dark);
    padding: 6px 11px; border-radius: 8px; font-size: .85rem;
    box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; white-space: nowrap;
    transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 90;
  }
  body[data-sidebar="vtext"] .rail__link:hover .rail__label { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ----- Variant: editorial — wide rail with brand + labels + contact ----- */
@media (min-width: 1024px) {
  body[data-sidebar="editorial"] .rail { padding: 30px 24px; }
  body[data-sidebar="editorial"] .rail__brand { display: block; margin-top: 26px; }
  body[data-sidebar="editorial"] .rail__top { justify-content: flex-start; }
}

/* ---------- Mobile top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad-x);
  background: color-mix(in oklab, var(--paper), transparent 8%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.topbar__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.topbar__brand .m { width: 30px; color: var(--ink); }
.topbar__logo { height: 26px; width: auto; display: block; }
.burger {
  width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  flex-direction: column; gap: 5px; background: var(--paper);
}
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.rail.is-open ~ * .burger span:nth-child(1) { } /* handled via JS class on body */
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .topbar { display: none; } }

/* Scrim */
.scrim {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(20,16,12,.45); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
body.nav-open .scrim { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .scrim { display: none; } }

/* Close btn inside drawer (mobile only) */
.rail__close {
  width: 42px; height: 42px; border-radius: 10px; color: var(--ink-2);
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
}
.rail__close:hover { color: var(--ink); }
@media (min-width: 1024px) { .rail__close { display: none; } }

/* Desktop burger inside the rail — toggles the flyout menu */
.rail__burger {
  display: none;
  width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--paper);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.rail__burger:hover { border-color: var(--ink); }
.rail__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
body.nav-open .rail__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .rail__burger span:nth-child(2) { opacity: 0; }
body.nav-open .rail__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 100px;
  font-weight: 600; font-size: .98rem; letter-spacing: .005em;
  transition: transform .22s var(--ease), background .22s, color .22s, box-shadow .22s, border-color .22s;
  will-change: transform;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: var(--ink-on-dark); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 17px 30px; font-size: 1.04rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 3px; transition: color .2s, border-color .2s;
}
.textlink .arr { transition: transform .25s var(--ease); }
.textlink:hover { color: var(--clay-deep); border-color: var(--clay); }
.textlink:hover .arr { transform: translateX(4px); }

/* ============================================================
   HERO — full-bleed photo (Startseite)
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero__media { position: relative; aspect-ratio: 16/10; background: #BFDFE8; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 14% bottom;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.40) 74%);
}
.hero__wrap { position: relative; z-index: 1; }
.hero__content { padding-block: clamp(40px, 7vw, 72px); max-width: 640px; }
.hero__kicker { margin-bottom: 20px; }
.hero h1.hero__title {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  font-weight: 400; line-height: 1.0; letter-spacing: -0.018em;
}
.hero__title .line { display: block; }
.hero__title .accent { font-style: italic; color: var(--clay-deep); }
.hero__lead { margin-top: 24px; max-width: 36ch; }
.hero__lead strong { font-weight: 700; color: var(--ink); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 1024px) {
  /* Full-bleed overlay as soon as there's room for the photo and the text
     column side-by-side. The face sits far left in the photo and the text
     column is pinned right, so the two don't collide well below the old
     1300px threshold — the text stays in the hero much longer this way.
     Height is capped by viewport width (not just vh) so a narrower-but-tall
     window can't force an over-zoomed, over-cropped image. */
  .hero { display: grid; align-items: center; min-height: clamp(500px, min(88vh, 52vw), 840px); }
  .hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero__media img { object-position: left bottom; }
  .hero__media::after { opacity: 1; }
  .hero__wrap { width: 100%; }
  /* Text column shrinks (and so shifts right, since it stays flush right)
     as the viewport narrows — the photo gets cropped tighter and the face
     needs more clearance, so a fixed width would start to sit over it. */
  .hero__content { margin-left: auto; max-width: clamp(300px, 40vw, 560px); padding-block: clamp(56px, 9vw, 110px); }
}

.hero__badge {
  margin-top: 36px;
  background: color-mix(in oklab, #fff 62%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #57965f; flex: none; box-shadow: 0 0 0 4px color-mix(in oklab,#57965f, transparent 75%); }
.hero__badge small { color: var(--ink-3); font-size: .76rem; display: block; }
.hero__badge b { font-size: .92rem; }

/* Floating motif shapes */
.motif { position: absolute; pointer-events: none; opacity: 0; }
.motif--circle { width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--clay); }
.motif--tri { width: 0; height: 0; border-left: 46px solid transparent; border-right: 46px solid transparent; border-bottom: 78px solid var(--sand); }
.motif--rect { width: 96px; height: 64px; border-radius: 8px; background: var(--clay); opacity: .9; }
.hero .motif--circle { top: 4%; left: 6%; }
.hero .motif--tri { bottom: 6%; left: 2%; }
.hero .motif--rect { top: 8%; right: 4%; opacity: 0; }

/* Motif visibility per tweak (body[data-motif]) */
body[data-motif="circle"] .motif--circle,
body[data-motif="mix"] .motif--circle { opacity: .9; }
body[data-motif="triangle"] .motif--tri,
body[data-motif="mix"] .motif--tri { opacity: .9; }
body[data-motif="rectangle"] .motif--rect,
body[data-motif="mix"] .motif--rect { opacity: .85; }
body[data-motif="none"] .motif { opacity: 0 !important; }



/* ============================================================
   SERVICE FIELDS
   ============================================================ */
.fields__head { display: grid; gap: 22px; margin-bottom: 54px; }
@media (min-width: 820px) { .fields__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.fields__head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; }
.grid-fields { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid-fields { grid-template-columns: repeat(2, 1fr); } }

.field {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--paper-2); border: 1px solid var(--line-2);
  overflow: hidden; min-height: 250px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.field:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); background: color-mix(in oklab, var(--paper-2), #fff 25%); }
.field__media {
  margin: -30px -30px 22px; aspect-ratio: 16/10;
  position: relative; overflow: hidden; display: grid; place-items: center;
  border-bottom: 1px solid var(--line-2);
  background-color: var(--beige);
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in oklab, var(--ink) 5%, transparent) 0,
    color-mix(in oklab, var(--ink) 5%, transparent) 1px,
    transparent 1px,
    transparent 11px);
}
.field__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.field:hover .field__media img { transform: scale(1.045); }
.field__media-label {
  position: relative; z-index: 1;
  font-family: var(--font-ui); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  background: var(--beige); padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); max-width: 82%; text-align: center;
}
.field__num { font-family: var(--font-display); font-size: .95rem; color: var(--clay-deep); letter-spacing: .04em; }
.field__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sand); color: var(--ink);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.field:hover .field__icon { background: var(--clay); color: #fff; transform: rotate(-6deg); }
.field__icon svg { width: 26px; height: 26px; }
.field h3 { font-size: 1.42rem; margin-bottom: 10px; font-weight: 500; }
.field p { color: var(--ink-2); font-size: .98rem; flex: 1; text-wrap: pretty; }
.field__link { margin-top: 18px; align-self: flex-start; }

/* ============================================================
   APPROACH / STRIP (dark)
   ============================================================ */
.strip { background: var(--ink-panel); color: var(--ink-2); border-radius: clamp(20px, 3vw, 36px); overflow: hidden; position: relative; border: 1px solid var(--line-2); }
.strip__inner { padding: clamp(40px, 6vw, 80px); }
.strip .eyebrow { color: var(--clay-deep); }
.strip h2 { color: var(--ink); font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 400; max-width: 20ch; }
.strip__lead { color: var(--ink-2); margin-top: 18px; max-width: 56ch; }
.steps { margin-top: 48px; display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step__n { font-family: var(--font-display); font-size: 1rem; color: var(--clay-deep); }
.step h3 { color: var(--ink); font-size: 1.2rem; margin: 10px 0 8px; font-weight: 500; }
.step p { color: var(--ink-2); font-size: .94rem; }

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.about { display: grid; gap: clamp(30px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px) { .about { grid-template-columns: .9fr 1.1fr; } }
.about__figure { position: relative; }
.about__photo {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--sand);
  aspect-ratio: 5/5.6; box-shadow: var(--shadow-md); position: relative;
}
.about__photo img { position: absolute; inset: auto 0 0 0; width: 100%; object-position: bottom center; }
.about__tag {
  position: absolute; left: -14px; bottom: 30px; background: var(--clay); color: #fff;
  font-family: var(--font-display); font-size: 1.04rem; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-md);
}
.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 400; margin: 16px 0 18px; }
.about p { color: var(--ink-2); margin-bottom: 16px; text-wrap: pretty; }
.about__sig { margin-top: 10px; display: flex; align-items: center; gap: 16px; }
.about__sig .nm { font-family: var(--font-display); font-size: 1.2rem; }
.about__sig .rl { font-size: .82rem; color: var(--ink-3); }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 30px 22px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line-2); text-align: left; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; display: block; line-height: 1; }
.stat span { color: var(--ink-3); font-size: .88rem; margin-top: 8px; display: block; }

/* ============================================================
   NEWS / LINKEDIN
   ============================================================ */
.news__head { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 40px; }
.news__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 400; }
.news__head h2 .li { color: #0a66c2; font-style: normal; }
.news__feed { min-height: 420px; }
.grid-news { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-news { grid-template-columns: repeat(3, 1fr); } }
.post {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post__media { aspect-ratio: 16/10; position: relative; overflow: hidden; display: grid; place-items: center; }
.post__media.m1 { background: linear-gradient(135deg, var(--sand), color-mix(in oklab, var(--clay), var(--paper) 60%)); }
.post__media.m2 { background: linear-gradient(135deg, var(--ink-panel), color-mix(in oklab, var(--sand), var(--clay) 14%)); }
.post__media.m3 { background: linear-gradient(135deg, color-mix(in oklab, var(--clay), var(--paper) 40%), var(--sand)); }
.post__shape { opacity: .9; }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__date { font-size: .78rem; color: var(--clay-deep); letter-spacing: .04em; font-weight: 600; text-transform: uppercase; }
.post h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.25; }
.post p { color: var(--ink-2); font-size: .92rem; flex: 1; }
.post__foot { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-3); margin-top: 6px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--paper-2); }
.contact__grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 920px) { .contact__grid { grid-template-columns: .85fr 1.15fr; } }
.contact h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; margin: 16px 0 18px; }
.contact__lead { color: var(--ink-2); max-width: 40ch; }
.contact__details { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.cdetail { display: flex; gap: 14px; align-items: flex-start; }
.cdetail__ic { width: 44px; height: 44px; border-radius: 11px; background: var(--sand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cdetail__ic svg { width: 20px; height: 20px; }
.cdetail small { display: block; color: var(--ink-3); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.cdetail a, .cdetail span { font-size: 1.02rem; font-weight: 500; }
.cdetail a:hover { color: var(--clay-deep); }

/* Form */
.form {
  background: color-mix(in oklab, var(--clay), var(--paper) 90%);
  border: 1px solid color-mix(in oklab, var(--clay), var(--line) 40%);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field-group label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field-group label .req { color: var(--clay-deep); }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  border: 1.5px solid var(--line); background: var(--paper-2); color: var(--ink);
  font: inherit; font-size: .97rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--clay); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in oklab, var(--clay), transparent 84%); }
.textarea { resize: vertical; min-height: 118px; }
.field-group .err { font-size: .8rem; color: #b3402f; display: none; }
.field-group.invalid .input, .field-group.invalid .textarea { border-color: #b3402f; }
.field-group.invalid .err { display: block; }
.form__consent { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin: 4px 0 20px; }
.form__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--clay-deep); flex: none; }
.form__note { font-size: .82rem; color: var(--ink-3); margin-top: 14px; }
.form__success {
  display: none; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: color-mix(in oklab, #57965f, var(--paper) 82%); border: 1px solid color-mix(in oklab,#57965f, transparent 55%);
  color: #2f5a35; font-weight: 500; margin-bottom: 18px;
}
.form__success.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-panel); color: var(--ink-2); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-2); }
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand .logo { width: 240px; max-width: 80%; color: var(--ink); margin-bottom: 18px; }
.footer__brand p { max-width: 42ch; font-size: .94rem; line-height: 1.65; }
.footer h4 { color: var(--ink); font-family: var(--font-ui); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--clay-deep); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: .85rem; }
.footer__bottom a:hover { color: var(--clay-deep); }

/* ============================================================
   BREADCRUMBS (subpages)
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-3); padding-top: clamp(20px, 4vw, 40px); }
.crumbs a:hover { color: var(--clay-deep); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.pagehero { padding-top: clamp(12px, 2vw, 24px); }
.pagehero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 400; margin: 18px 0 0; }
.pagehero .lead { margin-top: 22px; max-width: 56ch; }
.pagehero__cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page-hero variants (per tweak: body[data-pagehero]) ---------- */
.pagehero__grid { display: grid; gap: clamp(28px, 4vw, 60px); grid-template-columns: 1fr; align-items: center; }
.pagehero__figure { display: none; }
.pagehero__meta { display: none; }
.pagehero__meta .mi b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; display: block; line-height: 1; color: var(--clay-deep); }
.pagehero__meta .mi span { font-size: .82rem; color: var(--ink-3); letter-spacing: .02em; max-width: 20ch; display: block; }

/* Variante: Mit Bild — Text links, gerahmtes Bild rechts */
@media (min-width: 900px) {
  body[data-pagehero="split"] .pagehero__grid { grid-template-columns: 1.08fr .92fr; }
}
body[data-pagehero="split"] .pagehero__figure {
  display: block; position: relative; justify-self: center; width: 100%; max-width: 420px;
}
body[data-pagehero="split"] .pagehero__figure::before {
  content: ""; position: absolute; z-index: 0;
  left: -16px; top: -16px; right: 34px; bottom: 34px;
  background: var(--sand); border-radius: var(--radius-lg); opacity: .55; pointer-events: none;
}
body[data-pagehero="split"] .pagehero__figure .ph { position: relative; z-index: 1; }
body[data-pagehero="split"] .pagehero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
body[data-pagehero="split"] .pagehero .lead { max-width: 42ch; }

/* Variante: Statement — grosse Typo, Kennzahlen-Zeile, kein Bild */
body[data-pagehero="statement"] .pagehero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.018em; }
body[data-pagehero="statement"] .pagehero .lead { max-width: 52ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
body[data-pagehero="statement"] .pagehero__meta {
  display: flex; flex-wrap: wrap; gap: 22px 44px;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-2);
}

/* Variante: Panorama — vollflächiges Querformat-Bild ab ganz oben, Text darüberliegend */
body[data-pagehero="panorama"] { --hero-h: clamp(460px, 78vh, 820px); }
body[data-pagehero="panorama"] .main { position: relative; }

/* Bild: volle Breite, ab dem oberen Rand, hinter den Inhalten */
body[data-pagehero="panorama"] .pagehero__figure {
  display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  height: auto; z-index: 0; margin: 0; max-width: none;
}
body[data-pagehero="panorama"] .pagehero__figure .ph {
  height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none;
  background-color: #2b241c;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 11px);
}
body[data-pagehero="panorama"] .pagehero__figure .ph__label { color: rgba(243,234,217,.62); }
body[data-pagehero="panorama"] .pagehero__figure img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0;
}
/* Abdunklungs-Verlauf (Scrim) für garantierte Lesbarkeit — oben (Breadcrumbs/Kicker)
   und unten (Titel/Lead) kräftiger, Bildmitte bleibt frei. Wirkt auf jedem Foto. */
body[data-pagehero="panorama"] .pagehero__figure::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(178deg,
      rgba(24,17,10,.60) 0%,
      rgba(24,17,10,.30) 20%,
      rgba(24,17,10,.12) 44%,
      rgba(24,17,10,.40) 74%,
      rgba(24,17,10,.80) 100%);
}

/* Breadcrumbs über das Bild legen */
body[data-pagehero="panorama"] .main > .wrap:first-of-type { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
body[data-pagehero="panorama"] .crumbs { color: var(--ink-on-dark-2); }
body[data-pagehero="panorama"] .crumbs a { color: var(--ink-on-dark-2); }
body[data-pagehero="panorama"] .crumbs a:hover,
body[data-pagehero="panorama"] .crumbs [aria-current="page"] { color: #fff; }

/* Text über dem Bild halten (body ist Geschwister der Figur im Grid) */
body[data-pagehero="panorama"] .pagehero__body { position: relative; z-index: 2; }

/* Hero-Inhalt füllt die Bildhöhe, Text am unteren Rand */
body[data-pagehero="panorama"] .pagehero {
  position: relative; z-index: 2; min-height: var(--hero-h);
  display: flex; align-items: flex-end;
  padding-top: clamp(96px, 14vh, 168px);
  padding-bottom: clamp(46px, 7vh, 88px);
}
body[data-pagehero="panorama"] .pagehero__grid { grid-template-columns: 1fr; }
body[data-pagehero="panorama"] .pagehero__body { max-width: 40ch; }
body[data-pagehero="panorama"] .pagehero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--ink-on-dark); }
/* Textschatten als zusätzliche Lesbarkeits-Versicherung an schwierigen Bildstellen */
body[data-pagehero="panorama"] .pagehero h1,
body[data-pagehero="panorama"] .pagehero .lead,
body[data-pagehero="panorama"] .pagehero .eyebrow,
body[data-pagehero="panorama"] .pagehero .section-eyebrow,
body[data-pagehero="panorama"] .crumbs { text-shadow: 0 1px 18px rgba(24,17,10,.45); }
body[data-pagehero="panorama"] .pagehero h1 span { color: #EBBE87 !important; }
body[data-pagehero="panorama"] .pagehero .eyebrow,
body[data-pagehero="panorama"] .pagehero .section-eyebrow { color: var(--ink-on-dark-2); }
body[data-pagehero="panorama"] .pagehero .lead { color: var(--ink-on-dark); max-width: 46ch; }
body[data-pagehero="panorama"] .pagehero .lead a.textlink { color: #fff; border-color: rgba(255,255,255,.55); }
body[data-pagehero="panorama"] .pagehero .btn--ghost { color: var(--ink-on-dark); border-color: rgba(243,234,217,.55); }
body[data-pagehero="panorama"] .pagehero .btn--ghost:hover { border-color: #fff; }

/* Etwas Luft zwischen Bild-Hero und der ersten Textsektion */
body[data-pagehero="panorama"] .pagehero + .section { padding-top: clamp(52px, 8vw, 96px) !important; }

/* Panorama auf hellen Bildern (z. B. Über mich): Text rechts, dunkle Schrift */
body.hero-light[data-pagehero="panorama"] .pagehero__figure img { object-position: left center; }
body.hero-light[data-pagehero="panorama"] .pagehero__figure::after {
  background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.10) 34%, rgba(255,255,255,.30) 66%, rgba(255,255,255,.68) 100%);
}
/* Heller Scrim -> heller Textschatten, damit dunkler Text auf hellen Fotos hält */
body.hero-light[data-pagehero="panorama"] .pagehero h1,
body.hero-light[data-pagehero="panorama"] .pagehero .lead,
body.hero-light[data-pagehero="panorama"] .pagehero .eyebrow,
body.hero-light[data-pagehero="panorama"] .pagehero .section-eyebrow,
body.hero-light[data-pagehero="panorama"] .crumbs { text-shadow: 0 1px 16px rgba(255,255,255,.85); }
@media (min-width: 900px) {
  body.hero-light[data-pagehero="panorama"] .pagehero__body { justify-self: end; max-width: 44ch; }
  body.hero-light[data-pagehero="panorama"] .pagehero__grid { grid-template-columns: 1fr; width: 100%; }
}
body.hero-light[data-pagehero="panorama"] .pagehero h1 { color: var(--ink); }
body.hero-light[data-pagehero="panorama"] .pagehero h1 span { color: var(--clay-deep) !important; }
body.hero-light[data-pagehero="panorama"] .pagehero .lead { color: var(--ink-2); }
body.hero-light[data-pagehero="panorama"] .pagehero .eyebrow,
body.hero-light[data-pagehero="panorama"] .pagehero .section-eyebrow { color: var(--clay-deep); }
body.hero-light[data-pagehero="panorama"] .pagehero .btn--ghost { color: var(--ink); border-color: var(--line); }
body.hero-light[data-pagehero="panorama"] .pagehero .btn--ghost:hover { border-color: var(--ink); }
body.hero-light[data-pagehero="panorama"] .crumbs,
body.hero-light[data-pagehero="panorama"] .crumbs a { color: var(--ink-2); }
body.hero-light[data-pagehero="panorama"] .crumbs a:hover,
body.hero-light[data-pagehero="panorama"] .crumbs [aria-current="page"] { color: var(--ink); }

/* Split-Variante mit echtem Bild */
body[data-pagehero="split"] .pagehero__figure img {
  position: relative; z-index: 1; display: block; width: 100%;
  aspect-ratio: 4/3.4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}

/* ============================================================
   TIMELINE (about page)
   ============================================================ */
.timeline { position: relative; display: flex; flex-direction: column; gap: 8px; }
.tl-item { position: relative; padding: 22px 0 22px 38px; border-bottom: 1px solid var(--line-2); }
.tl-item::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item::after { content: ""; position: absolute; left: 0; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--clay); }
.tl-item .yr { font-family: var(--font-display); color: var(--clay-deep); font-size: 1.04rem; }
.tl-item h3 { font-size: 1.3rem; font-weight: 500; margin: 4px 0 6px; }
.tl-item p { color: var(--ink-2); font-size: .96rem; max-width: 62ch; }

/* Generic prose */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); margin-bottom: 18px; text-wrap: pretty; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; margin: 38px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 26px 0 10px; }
.prose ul.ticks { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.prose ul.ticks li { display: flex; gap: 12px; color: var(--ink-2); }
.prose ul.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--clay-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238F5E2C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }

/* ============================================================
   COOKIE CONSENT — DSGVO/EU-konform, app-like
   ============================================================ */
/* Full-page blocking backdrop. Stays blurred until the user acts.
   The blur intensity animates in so the page visibly "locks". */
.cc-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in oklab, #14100c 42%, transparent);
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), backdrop-filter .5s var(--ease), -webkit-backdrop-filter .5s var(--ease);
  display: grid; place-items: end stretch; padding: 0;
}
.cc-scrim.show {
  opacity: 1; pointer-events: auto;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
@media (min-width: 720px) { .cc-scrim { place-items: center; padding: 24px; } }
/* lock the page behind the modal */
body.cc-locked { overflow: hidden; }

.cc {
  background: var(--paper); color: var(--ink); width: 100%; max-width: 580px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-bottom: none;
  transform: translateY(102%); opacity: 1;
  transition: transform .5s var(--ease-out);
  max-height: min(92vh, 780px); overflow: auto;
  padding-bottom: env(safe-area-inset-bottom);
  position: relative;
}
.cc-scrim.show .cc { transform: none; }
@media (min-width: 720px) {
  .cc { border-radius: var(--radius-lg); border-bottom: 1px solid var(--line); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
  .cc-scrim.show .cc { transform: none; opacity: 1; }
}
/* mobile drag-handle affordance (decorative — sheet is dismissed by choosing) */
.cc__handle { display: block; width: 40px; height: 4px; border-radius: 100px; background: var(--line); margin: 12px auto 0; }
@media (min-width: 720px) { .cc__handle { display: none; } }

.cc__head { padding: 18px 26px 6px; display: flex; gap: 14px; align-items: center; }
.cc__head .m { width: 36px; flex: none; color: var(--ink); }
.cc__head .logo { width: 128px; flex: none; height: auto; color: var(--ink); }
.cc__head h2 { font-size: 1.36rem; font-weight: 500; }
.cc__body { padding: 6px 26px 0; }
.cc__body p { color: var(--ink-2); font-size: .94rem; }
.cc__body p a { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 2px; }
.cc__cats { margin: 18px 0 6px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-2); }
.cc-cat { display: flex; gap: 14px; align-items: flex-start; padding: 15px 2px; border-bottom: 1px solid var(--line-2); }
.cc-cat__txt { flex: 1; }
.cc-cat__txt b { font-size: .98rem; }
.cc-cat__txt small { display: block; color: var(--ink-3); font-size: .85rem; margin-top: 3px; }
.cc-toggle { position: relative; width: 46px; height: 27px; flex: none; margin-top: 2px; }
.cc-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-toggle .track { position: absolute; inset: 0; background: var(--line); border-radius: 100px; transition: background .25s; }
.cc-toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.cc-toggle input:checked + .track { background: var(--clay); }
.cc-toggle input:checked + .track::after { transform: translateX(19px); }
.cc-toggle input:disabled { cursor: not-allowed; }
.cc-toggle input:disabled + .track { background: var(--clay-deep); opacity: .55; }
.cc-toggle input:focus-visible + .track { outline: 2.5px solid var(--clay-deep); outline-offset: 2px; }

/* Actions — sticky footer so choices stay reachable while the list scrolls.
   Accept & Reject carry EQUAL visual weight (DSGVO): same size, both solid. */
.cc__actions {
  position: sticky; bottom: 0;
  padding: 16px 26px calc(20px + env(safe-area-inset-bottom));
  display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
  background: linear-gradient(to top, var(--paper) 72%, transparent);
  border-top: 1px solid var(--line-2);
}
.cc__actions .btn { justify-content: center; padding: 14px 18px; }
/* Reject = equally prominent outline; Accept = filled ink */
.cc__actions #cc-reject { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.cc__actions #cc-reject:hover { background: var(--ink); color: var(--ink-on-dark); transform: translateY(-2px); }
.cc__actions #cc-accept { grid-column: auto; }
/* Save selection = full-width tertiary confirm below the two equal choices */
.cc__actions #cc-save { grid-column: 1 / -1; order: 3; background: transparent; color: var(--ink-2); border: none; text-decoration: underline; text-underline-offset: 3px; padding: 8px; font-size: .92rem; }
.cc__actions #cc-save:hover { color: var(--clay-deep); }

/* Cookie settings are reachable only from the footer link — no floating button. */
.cc-reopen { display: none !important; }

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

/* Section label helper */
.section-eyebrow { margin-bottom: 18px; }

/* ============================================================
   IMAGE PLACEHOLDERS (drop real photos here)
   ============================================================ */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  border-radius: var(--radius-lg); overflow: hidden; color: var(--ink-3);
  background-color: var(--beige);
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in oklab, var(--ink) 5%, transparent) 0,
    color-mix(in oklab, var(--ink) 5%, transparent) 1px,
    transparent 1px,
    transparent 11px);
  border: 1px solid var(--line);
}
.ph__label {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  background: var(--beige); padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); max-width: 80%;
}
.ph--wide  { aspect-ratio: 16/9; }
.ph--photo { aspect-ratio: 5/5.6; box-shadow: var(--shadow-md); }
.ph--tall  { aspect-ratio: 4/5; }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pullquote { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(28px, 5vw, 52px) 0; text-align: center; }
.pullquote blockquote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.32; color: var(--ink); max-width: 26ch; margin: 0 auto; text-wrap: balance; }
.pullquote cite { display: block; margin-top: 18px; font-style: normal; font-size: .95rem; color: var(--clay-deep); font-family: var(--font-ui); }

/* ============================================================
   LOGO / PARTNER STRIP
   ============================================================ */
.logo-strip { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.logo-chip { flex: 1 1 180px; min-height: 96px; display: grid; place-items: center; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in oklab, var(--beige), #fff 35%); }
.logo-chip span { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: center; line-height: 1.4; }

/* ============================================================
   CLIENT REFERENCES / LOGO WALL
   Swap-ready: replace <span>Name</span> with <img src="assets/logos/…svg" alt="Name">
   to drop in real logos. Cells keep a uniform footprint either way.
   ============================================================ */
.refs__head { display: grid; gap: 20px; margin-bottom: 46px; }
@media (min-width: 820px) { .refs__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.refs__head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; }

.refwall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.refwall__cell {
  background: color-mix(in oklab, var(--beige), #fff 32%);
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 22px 24px;
  text-align: center;
  transition: background .35s var(--ease);
}
.refwall__cell:hover { background: #fff; }
.refwall__cell span {
  font-family: var(--font-ui);
  font-size: clamp(.72rem, 1vw, .8rem);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink-3);
  text-wrap: balance;
  transition: color .35s var(--ease);
}
.refwall__cell:hover span { color: var(--ink); }
/* When real logos are supplied */
.refwall__cell img {
  max-height: 46px; width: auto; max-width: 100%;
  filter: grayscale(1); opacity: .62;
  transition: filter .35s var(--ease), opacity .35s var(--ease);
}
.refwall__cell:hover img { filter: grayscale(0); opacity: 1; }

.refs__note { margin-top: 20px; font-size: .88rem; color: var(--ink-3); }
.refs__note b { color: var(--ink-2); font-weight: 600; }

/* ============================================================
   FÖRDER-BADGE (subsidy pill)
   ============================================================ */
.fund-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-ui); font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: #fff; background: var(--clay-deep); padding: 8px 16px; border-radius: 999px; }
.fund-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-on-dark); }

/* Two-up media + copy on subpages */
.media-split { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .media-split { grid-template-columns: 1fr 1fr; } .media-split.is-reverse > .media-split__media { order: 2; } }

/* ============================================================
   VALUE CHIPS (über mich)
   ============================================================ */
.value-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 60ch; }
.value-chip { font-family: var(--font-ui); font-size: .9rem; font-weight: 500; color: var(--clay-deep); background: color-mix(in oklab, var(--clay) 14%, transparent); border: 1px solid color-mix(in oklab, var(--clay) 30%, transparent); padding: 7px 15px; border-radius: 999px; }


/* ============================================================
   Mobile quick actions + touch feedback
   ============================================================ */
.btn, .field, .post, .quickbar__btn { -webkit-tap-highlight-color: transparent; }
.btn:active, .quickbar__btn:active { transform: scale(.97); }
@media (hover: none) {
  .field:active, .post:active { transform: scale(.985); box-shadow: var(--shadow-sm); }
}
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 72;
  display: flex; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--paper), transparent 12%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.quickbar__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; border-radius: 14px;
  font-weight: 600; font-size: .97rem;
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  transition: transform .15s var(--ease);
}
.quickbar__btn svg { width: 19px; height: 19px; }
.quickbar__btn--primary { background: var(--ink); color: var(--ink-on-dark); border-color: var(--ink); }
@media (min-width: 1024px) { .quickbar { display: none; } }
@media (max-width: 1023px) {
  .footer { padding-bottom: calc(clamp(48px, 6vw, 80px) + 74px); }
  .cc-reopen { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
