/* ============================================================
   vertical.consulting – Website
   Farben/Rundungen/Schrift: brand.css (gemeinsam mit Vertical Estimate).
   Typografie wie das AI-Portfolio (Helvetica Neue, Großbuchstaben mit
   weitem Tracking), aber freundlich: weiche Rundungen, Pastell-Akzent.
   ============================================================ */

:root {
  --w-max: clamp(1240px, 82vw, 1560px);   /* wächst auf großen Bildschirmen mit; Lesebreiten begrenzen die Texte selbst (ch) */
  --pad-x: clamp(20px, 4vw, 56px);
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: var(--radius-xs); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.shell { width: 100%; max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); }
.skip:focus { left: 16px; }

/* ---------- Typografie ---------- */

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--smoke);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.display {
  font-weight: 300; letter-spacing: .04em; text-transform: uppercase; line-height: 1.08;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
.estimate > *, .hero-grid > *, .section-head > *, .cta-band > *, .about-teaser > *, .cv-grid > *, .contact-grid > * { min-width: 0; }
h1.display { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
h2.display { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--smoke); max-width: 58ch; line-height: 1.7; }
.muted { color: var(--smoke); }
mark, .hl {
  background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%);
  color: inherit; padding: 0 .08em;
}
.caps { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-tint); border-color: var(--accent-ink); color: var(--accent-ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); box-shadow: 0 10px 24px -10px var(--accent-ink); transform: translateY(-1px); }
.btn-soft { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-soft:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.btn-ghost { border-color: transparent; color: var(--smoke); }
.btn-ghost:hover { background: var(--sand); border-color: transparent; color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 10px; }
.btn .arrow { font-size: 14px; letter-spacing: 0; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.link-arrow::after { content: "→"; font-size: 14px; letter-spacing: 0; transition: transform .25s ease; }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(5px); }
a:hover .link-arrow, .link-arrow:hover { color: var(--accent-ink); }

/* ---------- Kopfzeile ---------- */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-head.scrolled { border-bottom-color: var(--hairline); }
.site-head .shell { max-width: none; height: var(--bar-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; background: url(/favicon.svg) center / contain no-repeat; }   /* aus brand/logo.svg */
.logo-text { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; line-height: 1.2; }
.logo-text small { display: block; font-size: 9.5px; letter-spacing: .22em; color: var(--mist); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke);
  padding: 9px 11px; border-radius: var(--radius-pill); transition: color .2s ease, background .2s ease; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--paper); background: var(--accent-ink); }
.head-cta { display: flex; gap: 8px; align-items: center; }
/* Sprachumschalter (DE/EN) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; background: var(--sand); border-radius: var(--radius-pill); padding: 3px; flex-shrink: 0; }
.lang-switch a { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--smoke); padding: 7px 10px; border-radius: var(--radius-pill); transition: color .2s ease; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: var(--accent-ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; margin-left: auto; position: relative; }
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}
.menu-btn::before { top: 16px; } .menu-btn span { top: 21.5px; } .menu-btn::after { top: 27px; }
.menu-open .menu-btn::before { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn span { opacity: 0; }
.menu-open .menu-btn::after { transform: translateY(-5.5px) rotate(-45deg); }

/* Breite Bildschirme: Logo links, Menü genau in der Mitte, Buttons rechts */
@media (min-width: 1241px) {
  .site-head .shell { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-head .nav { margin-left: 0; }
  .site-head .head-cta { justify-self: end; }
}
@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav, .head-cta { display: none; }
  .menu-open .nav, .menu-open .head-cta {
    display: flex; position: fixed; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 8px var(--pad-x) 16px;
  }
  .menu-open .nav { top: var(--bar-h); gap: 2px; border-top: 1px solid var(--hairline); }
  .menu-open .nav a { padding: 14px 16px; font-size: 12px; }
  .menu-open .head-cta { top: calc(var(--bar-h) + 5 * 49px + 24px); flex-direction: row; box-shadow: 0 30px 40px -30px rgba(0,0,0,.25); padding-bottom: 24px; }
  .menu-open .head-cta .btn { flex: 1; }
  .menu-open .head-cta .lang-switch { align-self: center; }
}

/* ---------- Abschnitte ---------- */

main { display: block; }
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section.tight { padding: clamp(40px, 6vh, 72px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 5vh, 56px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { justify-self: start; }
.tinted { background: var(--canvas); }
.lavender { background: linear-gradient(180deg, var(--accent-tint), var(--paper)); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(56px, 11vh, 130px) 0 clamp(56px, 9vh, 110px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: min(780px, 90vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  pointer-events: none; z-index: -1;
}
.hero::after {
  content: ""; position: absolute; left: -12%; bottom: -40%; width: min(560px, 70vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 35%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-grid .facts { grid-column: 1 / -1; }
.hero h1 { hyphens: manual; -webkit-hyphens: manual; }   /* keine Trennung kurzer Wörter in der Startseiten-Überschrift */
.hero-visual { position: relative; height: 460px; }
.hv-card {
  position: absolute; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px 20px; animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hv-head .caps { color: var(--smoke); font-size: 9.5px; }
.hv-pill { font-size: 11px; font-weight: 700; color: var(--success); background: var(--success-soft); padding: 2px 9px; border-radius: var(--radius-pill); }
.hv-chart { width: 260px; top: 0; right: 6%; }
.hv-bars { display: flex; align-items: flex-end; gap: 9px; height: 110px; padding: 0 2px; }
.hv-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--accent); }
.hv-bars i:nth-child(1) { height: 38%; } .hv-bars i:nth-child(2) { height: 52%; } .hv-bars i:nth-child(3) { height: 46%; }
.hv-bars i:nth-child(4) { height: 64%; } .hv-bars i:nth-child(5) { height: 58%; } .hv-bars i:nth-child(6) { height: 78%; }
.hv-bars i:nth-child(7) { height: 96%; background: var(--accent-ink); }
.hv-foot { font-size: 11.5px; color: var(--smoke); margin-top: 12px; }
.hv-agent { width: 250px; top: 250px; left: 0; animation-delay: -2.5s; }
.hv-agent p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; background: var(--accent-tint); border-radius: 14px 14px 14px 4px; padding: 10px 12px; }
.hv-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--accent), var(--accent-ink)); flex-shrink: 0; margin-right: auto; }
.hv-agent .hv-head { justify-content: flex-start; }
.hv-plan { display: flex; gap: 12px; align-items: center; top: 372px; right: 0; animation-delay: -4.5s; }
.hv-check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-weight: 700; }
.hv-plan strong { display: block; font-size: 13.5px; }
.hv-plan span { font-size: 12px; color: var(--smoke); }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 36px; }
.facts { margin-top: clamp(48px, 8vh, 84px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); gap: 12px; }
.fact { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; }
.fact strong { display: block; font-size: 1.55rem; font-weight: 300; letter-spacing: .02em; line-height: 1.2; }
.fact span { font-size: 13px; color: var(--smoke); }

/* ---------- Startseite: Einstieg mit Leistungen auf einen Blick ---------- */

.home-hero { padding: clamp(28px, 4.5vh, 56px) 0 clamp(28px, 4vh, 48px); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.home-grid > * { min-width: 0; }
.home-intro h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 20ch; hyphens: manual; -webkit-hyphens: manual; }
.home-intro .lead { margin-top: 18px; }
.home-intro .btn-row { margin-top: 26px; }
.home-svc {
  background: color-mix(in oklab, var(--paper) 88%, transparent); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-lg); display: grid; gap: 8px; backdrop-filter: blur(6px);
}
.home-svc-head { padding: 4px 6px 6px; }
.svc {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--canvas); border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.svc:hover, .svc:focus-visible { background: var(--accent-tint); border-color: var(--accent-line); transform: translateX(3px); }
.svc-ico { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--paper); color: var(--accent-ink); border: 1px solid var(--hairline); }
.svc-ico svg { width: 22px; height: 22px; }
.svc:nth-child(2) .svc-ico, .svc:nth-child(3) .svc-ico { color: var(--chart-2-ink); background: var(--chart-2); border-color: transparent; }   /* BI, Planung */
.svc:nth-child(4) .svc-ico { color: var(--chart-4-ink); background: var(--chart-4); border-color: transparent; }   /* KI */
.svc-txt { display: grid; min-width: 0; line-height: 1.4; }
.svc-txt strong { font-size: 15.5px; font-weight: 650; }
.svc-txt small { font-size: 13.5px; color: var(--smoke); }
.svc-arr { margin-left: auto; font-weight: 700; color: var(--accent-ink); opacity: .35; transition: opacity .2s ease; }
.svc:hover .svc-arr, .svc:focus-visible .svc-arr { opacity: 1; }

/* Portfolio-Karten mit Vorschau, Erfahrung */
/* Beide Karten gleich aufgebaut: Bildfläche mit fester Höhe, damit die Listen auf gleicher Höhe beginnen;
   die Breite folgt immer der Karte (kein Seitenverhältnis, sonst ragt die Fläche auf dem Handy rechts hinaus) */
.pf-visual { margin: 6px 0 4px; padding: 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--hairline); height: 236px; min-width: 0; display: grid; align-content: center; }
.pf-visual svg { width: 100%; height: 100%; }
/* Loop-Feed (AI-Karte): 6 Freigaben, je Schritt 3 s. Die Liste rückt pro Schritt eine Zeile hoch; die oberste
   Freigabe wird nach 1,4 s entschieden (Verzögerung je Eintrag --k · 3 s). Ohne Bewegung: stehende Liste. */
.pf-loop { --row: 58px; --step: 3s; padding: 12px 14px 0; align-content: start; overflow: hidden; }
.loop-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--mist); padding: 0 2px 10px; border-bottom: 1px solid var(--hairline); }
.loop-head strong { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.loop-head span:last-child { margin-left: auto; }
.loop-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chart-4-ink); animation: loop-pulse 2s ease-in-out infinite; }
.loop-win { height: calc(var(--row) * 3); overflow: hidden; margin-top: 8px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.loop-list { list-style: none; margin: 0; padding: 0; animation: loop-roll calc(var(--step) * 6) var(--ease) infinite; }
.loop-it { height: var(--row); display: flex; align-items: center; gap: 12px; padding: 0 10px; border-radius: 12px; }
.loop-txt { display: grid; min-width: 0; line-height: 1.35; }
.loop-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loop-txt small { font-size: 11.5px; color: var(--smoke); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loop-st { margin-left: auto; display: grid; flex-shrink: 0; }
.loop-st i { grid-area: 1 / 1; justify-self: end; font-style: normal; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.loop-st .open { background: color-mix(in oklab, var(--chart-4) 60%, var(--paper)); color: var(--chart-4-ink); }
.loop-st .done { background: var(--success-soft); color: var(--success); opacity: 0; }
.loop-it[style] { animation: loop-focus calc(var(--step) * 6) linear infinite; animation-delay: calc(var(--k) * var(--step)); }
.loop-it[style] .open { animation: loop-open calc(var(--step) * 6) linear infinite; animation-delay: calc(var(--k) * var(--step)); }
.loop-it[style] .done { animation: loop-done calc(var(--step) * 6) linear infinite; animation-delay: calc(var(--k) * var(--step)); }
/* Umlauf: je Schritt (16,67 %) 2,5 s stehen, 0,5 s hochrücken */
@keyframes loop-roll {
  0%, 13.89% { transform: translateY(0); }
  16.67%, 30.56% { transform: translateY(calc(var(--row) * -1)); }
  33.33%, 47.22% { transform: translateY(calc(var(--row) * -2)); }
  50%, 63.89% { transform: translateY(calc(var(--row) * -3)); }
  66.67%, 80.56% { transform: translateY(calc(var(--row) * -4)); }
  83.33%, 97.22% { transform: translateY(calc(var(--row) * -5)); }
  100% { transform: translateY(calc(var(--row) * -6)); }
}
/* je Eintrag, relativ zu seinem Schritt: oben hervorheben, bei 1,4 s entscheiden, nach dem Hinauslaufen zurücksetzen */
@keyframes loop-focus { 0%, 15% { background: var(--sand); } 16.67%, 100% { background: transparent; } }
@keyframes loop-open { 0%, 7% { opacity: 1; } 7.6%, 16.67% { opacity: 0; } 17%, 100% { opacity: 1; } }
@keyframes loop-done { 0%, 7.6% { opacity: 0; transform: scale(.9); } 8.6%, 16.67% { opacity: 1; transform: none; } 17%, 100% { opacity: 0; } }
@keyframes loop-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .loop-list, .loop-dot, .loop-it[style], .loop-it[style] .open, .loop-it[style] .done { animation: none; }
}
.proof { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.proof .facts { margin-top: 30px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.proof-lists { display: grid; gap: 26px; }
.proof-lists h3 { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); margin-bottom: 12px; }
.proof .chip { font-size: 13.5px; padding: 7px 14px; }

@media (max-width: 1020px) {
  .home-grid, .proof { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .svc { padding: 12px; gap: 12px; }
  .svc-ico { width: 38px; height: 38px; }
}

/* ---------- Karten ---------- */

.cards { display: grid; gap: 16px; }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 34px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}
a.card:hover, .card.hoverable:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-no { font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 200; line-height: 1; color: var(--accent-line); margin-bottom: 26px; transition: color .25s ease; }
a.card:hover .card-no { color: var(--accent-ink); }
.card h3 { font-size: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.45; margin-bottom: 12px; }
.card p { color: var(--smoke); font-size: 14.5px; }
.card .link-arrow { margin-top: auto; padding-top: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag {
  font-size: 12px; padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--sand); color: var(--ink-soft); white-space: nowrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink);
}
.badge.grey { background: var(--sand); color: var(--smoke); }

/* Portfolio-Karten */
.pf-card { min-height: 360px; overflow: hidden; }
/* Farben: BI-Themen grün (chart-2), KI-Themen blau (chart-4), ebenso in „Leistungen auf einen Blick“ */
.pf-card.ai { background: linear-gradient(150deg, color-mix(in oklab, var(--chart-4) 70%, var(--paper)), var(--paper) 62%); border-color: var(--chart-4); }
.pf-card.ai .pf-list li::before { background: var(--chart-4-ink); }
.pf-card.bi { background: linear-gradient(150deg, color-mix(in oklab, var(--chart-2) 70%, var(--paper)), var(--paper) 62%); border-color: var(--chart-2); }
.pf-card.bi .pf-list li::before { background: var(--chart-2-ink); }
.pf-card h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 300; letter-spacing: .05em; margin-bottom: 14px; }
.pf-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.pf-list li { display: flex; gap: 12px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pf-list li::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--accent-ink); flex-shrink: 0; transition: width .3s ease; }
a.card:hover .pf-list li::before { width: 24px; }

/* ---------- Estimate-Teaser ---------- */

.estimate {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.estimate::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 45%, transparent), transparent 70%);
}
.estimate .eyebrow { color: var(--accent); margin-bottom: 20px; }
.estimate h2 { color: var(--paper); }
.estimate .lead { color: color-mix(in oklab, var(--paper) 72%, var(--ink)); margin-top: 18px; }
.estimate .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); margin-top: 30px; }
.estimate .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.mock {
  position: relative; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-lg); font-size: 13px;
}
.mock .eyebrow { color: var(--smoke); margin-bottom: 12px; font-size: 9.5px; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--smoke); }
.mock-row b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.mock-total { border-top: 1px solid var(--accent-line); margin-top: 10px; padding-top: 12px; }
.mock-total .caps { color: var(--smoke); font-size: 9px; }
.mock-total strong { display: block; font-size: 1.7rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.mock-chip { position: absolute; top: -14px; right: 18px; }

/* ---------- Prinzipien ---------- */

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.principle .k { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.principle .k::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent-ink); }
.principle p { color: var(--smoke); font-size: 14.5px; }

/* ---------- Über-mich-Teaser ---------- */

.about-teaser { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.portrait { border-radius: 50%; overflow: hidden; background: var(--accent-soft); aspect-ratio: 1; position: relative; box-shadow: 0 0 0 10px var(--accent-tint), var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }

/* ---------- CTA-Band ---------- */

.cta-band {
  background: var(--accent-soft); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center;
}
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--ink-soft); margin-top: 14px; max-width: 52ch; }

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-hero { padding: clamp(48px, 9vh, 110px) 0 clamp(32px, 5vh, 56px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -8%; top: -50%; width: min(620px, 80vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%); z-index: -1;
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero .lead { margin-top: 22px; }

/* ---------- Über mich ---------- */

.about-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 340px); gap: clamp(28px, 5vw, 80px); align-items: end; }
.switch-tabs { display: inline-flex; padding: 5px; background: var(--sand); border-radius: var(--radius-pill); gap: 4px; }
.switch-tabs button {
  padding: 10px 20px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.switch-tabs button[aria-selected="true"] { background: var(--accent-ink); color: var(--paper); box-shadow: var(--shadow-sm); }
/* CV-Variante: nur die gewählte ist sichtbar (body[data-cv] wird im HTML vorbelegt) */
body[data-cv="bi"] [data-variant="ai"], body[data-cv="ai"] [data-variant="bi"] { display: none !important; }
.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cv-block { padding: 32px 0; border-top: 1px solid var(--hairline); }
.cv-block:first-child { border-top: none; padding-top: 0; }
.cv-block > h2 { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 20px; display: flex; gap: 14px; align-items: center; }
.cv-block > h2::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent-ink); }
.cv-block p + p { margin-top: 12px; }
.cv-aside { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 16px; }
.aside-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; }
.aside-card h3 { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--paper); border: 1px solid var(--hairline); }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.timeline { display: grid; gap: 22px; }
.tl-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; }
.tl-when { font-size: 13px; color: var(--smoke); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-what h3 { font-size: 15px; font-weight: 600; }
.tl-what .sub { font-size: 13.5px; color: var(--smoke); }
.tl-what p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.tl-what ul { margin-top: 10px; padding-left: 18px; font-size: 14.5px; color: var(--ink-soft); display: grid; gap: 4px; }
.tl-what li::marker { color: var(--accent-ink); }
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.proj { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.proj h3 { font-size: 14.5px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.proj p { font-size: 14px; color: var(--smoke); }
.proj .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; color: var(--accent-ink); font-weight: 700; font-size: 13px; }
details.more { margin-top: 18px; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
details.more summary { cursor: pointer; padding: 16px 20px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 16px; font-weight: 300; letter-spacing: 0; }
details.more[open] summary::after { content: "–"; }
details.more summary:hover { background: var(--accent-tint); color: var(--accent-ink); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable td { padding: 11px 20px; border-top: 1px solid var(--hairline); vertical-align: top; }
.ptable td:first-child { width: 170px; color: var(--smoke); font-size: 13px; }
.ptable td:nth-child(2) { width: 120px; color: var(--smoke); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Kontakt & Buchung ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); }
.panel.lav { background: var(--accent-tint); border-color: var(--accent-soft); }
.panel > .eyebrow { margin-bottom: 14px; }
.panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 300; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; margin-bottom: 10px; }
.panel > p.muted { margin-bottom: 24px; font-size: 14.5px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--hairline); background: var(--paper); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: var(--mist); }
.field input:focus, .field textarea:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-glow); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--smoke); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; border: 1.5px solid var(--mist); border-radius: 6px; display: grid; place-content: center; cursor: pointer; background: var(--paper); }
.check input:checked { background: var(--accent-ink); border-color: var(--accent-ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; min-height: 1.4em; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--success); }
.success-box { text-align: left; padding: 8px 0; }
.success-box .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.success-box h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.success-box p { color: var(--smoke); }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.day {
  flex-shrink: 0; min-width: 74px; padding: 10px 8px; border-radius: var(--radius); border: 1px solid var(--accent-soft);
  background: var(--paper); text-align: center; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.day small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.day strong { display: block; font-size: 1.35rem; font-weight: 300; line-height: 1.3; }
.day span { display: block; font-size: 11px; color: var(--smoke); }
.day:hover { border-color: var(--accent-ink); }
.day[aria-pressed="true"] { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] span { color: color-mix(in oklab, var(--paper) 80%, var(--accent-ink)); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 14px; }
.time {
  padding: 10px 0; border-radius: var(--radius-pill); border: 1px solid var(--accent-soft); background: var(--paper);
  font-size: 14px; font-variant-numeric: tabular-nums; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.time:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.time[aria-pressed="true"] { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
.booking-step + .booking-step { margin-top: 22px; }
.booking-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); margin-bottom: 10px; display: block; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--accent-soft); margin-bottom: 16px; font-size: 14.5px; }
.picked strong { font-weight: 600; }
/* Terminbestätigung (confirm.js): schmales Panel, Abstände zwischen Termin, Hinweis, Meldung und Knopf */
.confirm-panel { max-width: 640px; }
.confirm-panel > p.muted { margin-bottom: 8px; font-size: 14.5px; }
.confirm-panel > .form-msg { margin-bottom: 12px; }
.skeleton { height: 64px; border-radius: var(--radius); background: linear-gradient(90deg, var(--sand), var(--paper), var(--sand)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.note { font-size: 13px; color: var(--smoke); margin-top: 14px; }
.direct { display: grid; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 14.5px; }
.direct a { color: var(--accent-ink); }
.cf-turnstile { min-height: 0; }

/* ---------- BI-Vorschau ---------- */

.soon {
  border: 1.5px dashed var(--accent-line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px);
  background: var(--accent-tint); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}

/* ---------- Rechtliches ---------- */

.legal { max-width: 780px; }
.legal h2 { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .todo { background: var(--accent-soft); color: var(--accent-ink); padding: 1px 8px; border-radius: var(--radius-xs); font-style: normal; }
.legal .stand { margin-top: 36px; color: var(--mist); font-size: 13px; }

/* ---------- Fußzeile ---------- */

.site-foot { border-top: 1px solid var(--hairline); padding: clamp(40px, 7vh, 72px) 0 32px; background: var(--canvas); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h3 { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.foot-grid a:hover { color: var(--accent-ink); }
.foot-grid .claim { color: var(--smoke); font-size: 14.5px; max-width: 34ch; margin-top: 16px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); font-weight: 700; }

/* ---------- Reveal-Animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsiv ---------- */

@media (max-width: 1020px) {
  .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards.c3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate, .about-teaser, .cv-grid, .about-hero, .contact-grid { grid-template-columns: 1fr; }
  .cv-aside { position: static; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .about-hero .portrait { max-width: 300px; }
}
@media (max-width: 680px) {
  h1.display { font-size: clamp(1.9rem, 8.6vw, 2.4rem); letter-spacing: .02em; }
  h2.display { font-size: clamp(1.45rem, 6.6vw, 1.8rem); letter-spacing: .02em; }
  .cards.c2, .cards.c4, .principles, .proj-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band, .soon { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .ptable td:first-child { width: auto; }
  .ptable td { padding: 10px 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo-text small { display: none; }
}

/* ---------- Schaltfläche im Textfluss (z. B. „Datenschutz-Einstellungen“) ---------- */
.link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--accent-ink); }
.legal .link-btn { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Einwilligung zur Besuchsstatistik (site.js) ---------- */
.consent {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 820px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 22px; align-items: center; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: consent-in .5s cubic-bezier(.2, .7, .2, 1) .4s both;
}
.consent strong { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.consent p { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--smoke); }
.consent a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.consent .consent-now { font-size: 12.5px; color: var(--mist); }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .btn { min-width: 138px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 760px) {
  .consent { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .consent-actions .btn { flex: 1; min-width: 0; }
}
