/* ============================================================
   financeit.ch — Hi-Fi (Variante C)
   Brand: EleMate "Boring" tokens (DEC-097) — Inter, navy/blue/teal/warm
   ============================================================ */

/* Self-hosted Inter (brand-official woff2). Kein externes Font-CDN —
   passt zu "keine externen Quellen / Daten verlassen die Schweiz nicht"
   (Datenschutzerklaerung) + CSP font-src 'self'. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable-Italic.woff2') format('woff2');
}

:root {
  --bg:            #F7F8FA;
  --surface:       #FFFFFF;
  --ink:           #0F1B2D;
  --ink-2:         #4A5566;
  --primary:       #1E5FB8;
  --primary-700:   #174a90;
  --secondary:     #2EBFA8;
  --warm:          #E8743A;
  --line:          rgba(15, 27, 45, 0.10);
  --line-soft:     rgba(15, 27, 45, 0.06);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  --radius: 10px;
  --radius-lg: 18px;
  --max: 1120px;
  --max-narrow: 760px;

  --shadow-sm: 0 1px 2px rgba(15,27,45,.06), 0 2px 8px rgba(15,27,45,.05);
  --shadow-md: 0 4px 14px rgba(15,27,45,.08), 0 18px 40px rgba(15,27,45,.08);
  --shadow-lg: 0 10px 30px rgba(15,27,45,.12), 0 30px 70px rgba(15,27,45,.14);

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

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-3); }
.narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--space-3); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow.muted { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(30,95,184,.28); }
.btn-primary:hover { background: var(--primary-700); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30,95,184,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ondark { background: #fff; color: var(--ink); }
.btn-ondark:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.btn-ondark-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ondark-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,250,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(247,248,250,.92); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--space-3);
  height: 70px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.nav-logo { display: flex; align-items: center; height: 34px; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-2); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: rgba(15,27,45,.04); }
.nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* hamburger */
.nav-burger { display: none; width: 42px; height: 42px; padding: 0; border: 0;
  background: transparent; cursor: pointer; position: relative; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px; border-radius: 10px;
  transition: background .2s; -webkit-tap-highlight-color: transparent; }
.nav-burger:hover { background: rgba(15,27,45,.05); }
.nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .28s var(--ease), opacity .2s var(--ease); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(247,248,250,.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) var(--space-3) var(--space-3);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .34s var(--ease), opacity .24s var(--ease), padding .34s var(--ease);
}
.mobile-menu a { color: var(--ink-2); font-size: 17px; font-weight: 500;
  padding: 13px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--ink); background: rgba(15,27,45,.05); }
.mobile-menu a.active { color: var(--primary); }
.mobile-menu .mobile-menu-cta { margin-top: var(--space-2); justify-content: center;
  text-align: center; color: #fff; }
.mobile-menu .mobile-menu-cta:hover { color: #fff; }
.nav.menu-open .mobile-menu { display: flex; max-height: 80vh; opacity: 1; padding-top: var(--space-2); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 12vh, 130px) 0 clamp(60px, 9vh, 100px);
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glowA { position: absolute; width: 60vw; height: 60vw; top: -20vw; right: -15vw;
  background: radial-gradient(circle, rgba(30,95,184,.12), transparent 62%); }
.hero-glowB { position: absolute; width: 48vw; height: 48vw; bottom: -22vw; left: -12vw;
  background: radial-gradient(circle, rgba(46,191,168,.10), transparent 64%); }

.hero-inner { position: relative; z-index: 2; max-width: 920px; }
@media (min-width: 900px) { .hero-inner { margin-left: -40px; } }

.hero .eyebrow { margin-bottom: var(--space-3); display: inline-block; }

/* rotating headline */
.hero-h {
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 800;
  color: var(--ink); margin: 0;
}
.rotator { position: relative; display: block; min-height: 2.04em; }
.rot-line { display: block; white-space: nowrap; }
.rot-item {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(22px); filter: blur(4px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
  pointer-events: none;
}
.rot-item.show { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.rot-item .accent { color: var(--primary); }
.rot-item .accent-teal { color: var(--secondary); }

.hero-sub {
  margin-top: var(--space-4); font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600; color: var(--primary);
}
.hero-lead {
  margin-top: var(--space-2); font-size: 18px; color: var(--ink-2);
  max-width: 540px;
}
/* Privacy-Trust-Zeile (permanent sichtbar, VR-Wunsch 2026-06-05) */
.hero-trust {
  margin-top: var(--space-2); display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.hero-trust svg { color: var(--secondary); flex-shrink: 0; }
.hero-pillrow { margin-top: var(--space-2); font-size: 14px; color: var(--ink-2); letter-spacing: .04em; }
.hero-cta { margin-top: var(--space-4); display: flex; gap: 12px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.scroll-cue .dot { width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 12px; position: relative; }
.scroll-cue .dot::after { content:''; position:absolute; top:6px; left:50%; width:4px; height:6px; margin-left:-2px;
  background: var(--primary); border-radius: 2px; animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0%{opacity:0; transform:translateY(0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0; transform:translateY(12px)} }

/* ============================================================
   WIRKSAM & NACHHALTIG (helles Band)
   ============================================================ */
.impact { background: var(--bg); padding: clamp(48px, 7vh, 84px) 0; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.impact-item .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(46,191,168,.12); color: #1c8a78; margin-bottom: var(--space-2); }
.impact-item .ic svg { width: 24px; height: 24px; }
.impact-item h3 { font-size: 19px; font-weight: 700; }
.impact-item p { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.impact-item a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.impact-item a:hover { color: var(--secondary); }

/* ============================================================
   Generic section
   ============================================================ */
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: var(--space-2); }
.section-head p { margin-top: var(--space-2); font-size: 18px; color: var(--ink-2); }
.section.alt { background: var(--surface); }


/* ============================================================
   SWIBEE platform (dark showcase)
   ============================================================ */
.platform { background: linear-gradient(160deg, #0F1B2D 0%, #142a47 100%); color: #fff; position: relative; overflow: hidden; }
.platform .hero-glowA { background: radial-gradient(circle, rgba(46,191,168,.18), transparent 60%); top:-10vw; right:-6vw; width:40vw; height:40vw; }
.platform-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-8); align-items: center; }
.platform .eyebrow { color: var(--secondary); }
.platform h2 { font-size: clamp(34px, 5vw, 58px); margin-top: var(--space-2); }
.platform h2 .dot-ch { color: var(--secondary); }
.platform h2 .swibee-link { color: inherit; text-decoration: none; transition: opacity .2s ease; }
.platform h2 .swibee-link:hover { opacity: .72; }
.platform .former { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.5); }
.platform .lead { margin-top: var(--space-3); font-size: 19px; color: rgba(255,255,255,.82); max-width: 460px; }

.agents { margin-top: var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.agent {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center;
  padding: 14px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  background: rgba(255,255,255,.03); transition: border-color .25s, background .25s, transform .25s;
}
.agent:hover { border-color: rgba(46,191,168,.5); background: rgba(255,255,255,.06); transform: translateX(4px); }
.agent .badge {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; letter-spacing: -.02em;
  background: rgba(46,191,168,.14); color: var(--secondary);
}
.agent .nm { font-weight: 700; font-size: 17px; }
.agent .ds { font-size: 14px; color: rgba(255,255,255,.6); }
.agent.soon .badge { background: rgba(232,116,58,.16); color: var(--warm); }
.agent.more { border-style: dashed; border-color: rgba(255,255,255,.2); background: transparent; }
.agent.more:hover { transform: none; border-color: rgba(255,255,255,.34); }
.agent .more-badge { background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); font-size: 26px; font-weight: 400; }
.agent.more .nm { color: rgba(255,255,255,.85); }
.agent .tag { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--warm); border: 1px solid rgba(232,116,58,.4); padding: 3px 8px; border-radius: 999px; }
.platform-cta { margin-top: var(--space-4); display: flex; gap: 12px; flex-wrap: wrap; }

.app-visual { position: relative; display: flex; justify-content: center; }
/* Phone-Mock kommt fertig gerendert aus dem Asset (Frame + abgerundete Ecken
   transparent eingebacken) — kein CSS-Frame drumherum (VR-Wunsch 2026-06-04). */
.phone-shot {
  width: 280px; height: auto; display: block;
  border-radius: 22px; /* matcht den eingebackenen Eckradius (44px @ 2x) fuer den Schatten-Clip */
  /* Schatten/Glow analog preview.lia.swibee.ch Sektion 2 (ThreemaFrame) */
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.02);
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.svc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-4); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.svc::before { content:''; position:absolute; left:0; top:0; height:4px; width:100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transform-origin:left; transition: transform .35s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(30,95,184,.10); color: var(--primary); margin-bottom: var(--space-3); }
.svc .ic svg { width: 26px; height: 26px; }
.svc .n { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .14em; }
.svc h3 { font-size: 24px; margin: 8px 0 10px; }
.svc p { color: var(--ink-2); font-size: 16px; }
.svc ul { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.svc li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.svc li::before { content:'→'; position:absolute; left:0; color: var(--secondary); }

/* ---- Ergänzende Angebote (sekundär, leichter als die Kacheln) ---- */
.svc-extra { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.svc-extra-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--space-3); }
.svc-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.svc-mini { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.svc-mini .mini-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(46,191,168,.12); color: #1c8a78; }
.svc-mini .mini-ic svg { width: 22px; height: 22px; }
.svc-mini h4 { font-size: 17px; font-weight: 700; color: var(--ink); }
.svc-mini p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ============================================================
   KUNDENSTIMMEN / TESTIMONIALS  (single featured · spotlight)
   ============================================================ */
.testimonials { background: var(--ink); color: #fff; }
.tm-head { max-width: 680px; }
.testimonials .eyebrow { color: var(--secondary); }
.testimonials .section-head h2 { color: #fff; }

.tm-feature { max-width: 820px; margin: var(--space-5) auto 0;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.tm-feature::before { content: '\201C'; position: absolute; top: -6px; right: 30px;
  font: 800 110px/1 Georgia, 'Times New Roman', serif; color: rgba(46,191,168,.16); pointer-events: none; }

.tm-rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tm-stars { color: #F5A623; font-size: 20px; letter-spacing: 2px; line-height: 1; }
.tm-score { font-weight: 800; font-size: 18px; color: #fff; }
.tm-src { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  color: #6cb1ff; text-decoration: none; transition: opacity .2s; }
.tm-src svg { width: 18px; height: 18px; flex: 0 0 auto; }
.tm-src:hover { text-decoration: underline; }

.tm-quote { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.34; font-weight: 600; color: #fff;
  margin: var(--space-3) 0; text-wrap: pretty; letter-spacing: -0.01em; }

.tm-author { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tm-avatar { flex: 0 0 auto; }
.tm-avatar image-slot { width: 64px; height: 64px; display: block; border-radius: 50%; box-shadow: var(--shadow-sm); }
.tm-meta { display: flex; flex-direction: column; line-height: 1.32; }
.tm-name { font-weight: 700; font-size: 18px; color: #fff; }
.tm-role { font-size: 14px; color: rgba(255,255,255,.65); }
.tm-org { font-size: 14px; color: var(--secondary); font-weight: 600; }
.tm-context { margin-left: auto; font-size: 13px; color: rgba(255,255,255,.65); white-space: nowrap; }

/* ============================================================
   ABOUT — scroll-scrub Zahlenstrahl timeline
   ============================================================ */
.about { background: var(--surface); position: relative; }
.about-intro { padding-top: clamp(64px, 10vh, 120px); padding-bottom: var(--space-8); }
.about-intro .person { margin-top: var(--space-6); }
/* tall scroll track; inner pins */
.tl-track { position: relative; }
.tl-pin {
  position: sticky; top: 70px; height: calc(100vh - 70px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-4) 0;
}
.tl-head { max-width: 640px; margin: 0 auto var(--space-4); text-align: center; }
.tl-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: var(--space-2); }
.tl-head p { margin-top: var(--space-2); color: var(--ink-2); }

/* the number line */
.tl-axis-wrap { max-width: 1000px; margin: 0 auto; width: 100%; padding: 0 var(--space-3); }
.tl-axis { position: relative; height: 64px; }
.tl-line { position: absolute; left: 0; right: 0; top: 32px; height: 2px; background: var(--line); border-radius: 2px; }
.tl-fill { position: absolute; left: 0; top: 32px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 2px; transition: width .4s var(--ease); }
.tl-ticks { position: absolute; inset: 0; }
.tl-tick {
  position: absolute; top: 32px; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
}
.tl-tick .knob {
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  transition: all .3s var(--ease); position: relative; z-index: 2;
}
.tl-tick .yr {
  position: absolute; top: 22px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  transition: color .3s, transform .3s; white-space: nowrap;
}
.tl-tick.passed .knob { border-color: var(--primary); background: var(--primary); }
.tl-tick.active .knob { border-color: var(--primary); background: #fff; transform: scale(1.7);
  box-shadow: 0 0 0 5px rgba(30,95,184,.16); }
.tl-tick.active .yr { color: var(--primary); font-weight: 800; transform: scale(1.08); }

/* moving marker w/ year bubble above */
.tl-marker { position: absolute; top: 32px; transform: translate(-50%,-50%); z-index: 3;
  transition: left .4s var(--ease); pointer-events: none; }
.tl-marker .ring { width: 20px; height: 20px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 6px rgba(30,95,184,.18), var(--shadow-sm); }

/* the description card */
.tl-card-wrap { width: 100%; max-width: 1000px; margin: var(--space-8) auto 0; min-height: 200px; position: relative; padding: 0 var(--space-3); }
.tl-card { position: absolute; inset: 0 var(--space-3); opacity: 0; transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.tl-card.show { opacity: 1; transform: none; pointer-events: auto; }
.tl-card .yr-big { font-size: clamp(44px, 7vw, 78px); font-weight: 800; letter-spacing: -.04em;
  color: rgba(30,95,184,.14); line-height: .9; }
.tl-card .role { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin-top: -6px; }
.tl-card .org { font-size: 18px; font-weight: 600; color: var(--primary); margin-top: 6px; }
.tl-card .desc { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin-top: var(--space-2); max-width: 880px; line-height: 1.55; }
.tl-card .chip { display:inline-block; margin-top: var(--space-2); font-size: 12px; letter-spacing:.1em; text-transform:uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(46,191,168,.12); color: #1c8a78; font-weight:600; }
.tl-card a.chip-link { text-decoration: none; transition: background .2s, color .2s; cursor: pointer; }
.tl-card a.chip-link:hover { background: rgba(46,191,168,.22); color: #14705f; }

/* CV links inside timeline cards + fallback rows (no underline) */
.tl-card .role a, .tl-card .org a, .tl-card .desc a,
.tlf-role a, .tlf-org a, .tlf-desc a {
  color: inherit; text-decoration: none; transition: opacity .2s ease;
}
.tl-card .desc a, .tlf-desc a { color: var(--primary); }
.tl-card .role a:hover, .tl-card .org a:hover, .tl-card .desc a:hover,
.tlf-role a:hover, .tlf-org a:hover, .tlf-desc a:hover { opacity: .65; }

/* Mandate-Aufzaehlung (eigener Abschnitt neben/unter desc) */
.tl-card .tl-projects { margin-top: var(--space-2); }
.tl-card .tl-projects .lbl { font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); opacity: .65; }
.tl-card .tl-projects ul { margin: 8px 0 0; padding-left: 20px; }
.tl-card .tl-projects li { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin-top: 4px; }
.tl-projects a, .tlf-projects a { color: var(--primary); text-decoration: none; transition: opacity .2s ease; }
.tl-projects a:hover, .tlf-projects a:hover { opacity: .65; }
.tlf-projects { margin: 6px 0 0; padding-left: 18px; }
.tlf-projects li { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-top: 3px; }

.tl-progress-hint { text-align:center; margin-top: var(--space-2); font-size: 12px; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-2); opacity:.6; }

/* fallback when reduced motion / no JS: show as stacked list */
.tl-fallback { display: none; }
.tlf-row { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: var(--space-3) 0; border-top: 1px solid var(--line-soft); }
.tlf-row:first-child { border-top: none; }
.tlf-yr { font-size: 20px; font-weight: 800; color: var(--primary); }
.tlf-role { font-size: 19px; font-weight: 700; }
.tlf-org { font-size: 14px; font-weight: 600; color: var(--primary); margin-top: 2px; }
.tlf-desc { font-size: 15px; color: var(--ink-2); margin-top: 6px; }

/* show fallback / disable scrub on small screens */
@media (max-width: 680px) {
  .tl-axis-wrap, .tl-card-wrap { display: none; }
  .tl-fallback { display: block; max-width: 720px; margin: var(--space-4) auto 0; padding: 0 var(--space-3); }
  .tl-head { text-align: left; margin-left: 0; }
}

/* no-JS (= auch reine HTML-Sicht der Crawler): statische Fallback-Liste zeigen,
   leere Scrub-Timeline verbergen, reveal-Elemente nicht auf opacity:0 lassen.
   tl-pin entstickyfizieren, sonst ueberlappt der viewport-hohe Header die Liste. */
.no-js .tl-axis-wrap, .no-js .tl-card-wrap { display: none; }
.no-js .tl-fallback { display: block; max-width: 720px; margin: var(--space-4) auto 0; padding: 0 var(--space-3); }
.no-js .reveal { opacity: 1; transform: none; transition: none; }
.no-js .tl-pin { position: static; height: auto; }
.no-js .tl-head p { display: none; }

/* ============================================================
   ABOUT — person card under timeline (separate sub-section)
   ============================================================ */
.person { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-4); align-items: center;
  max-width: 820px; margin: 0 auto; }
.person image-slot { width: 200px; height: 300px; display:block; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.person image-slot img { object-position: center top; }
.person h3 { font-size: 26px; }
.person .pr { color: var(--primary); font-weight: 600; margin-top: 4px; }
.person p { color: var(--ink-2); margin-top: var(--space-2); }
.person .skills { margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: 8px; }
.person .skills span { font-size: 13px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.person-cert { display: inline-block; margin-top: var(--space-3); border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.person-cert:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.person-cert img { display: block; width: 230px; height: auto; }
.person-cert-text { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

/* ============================================================
   ANFRAGE — AI-safe 2 step
   ============================================================ */
.contact { background: var(--bg); }
.contact-head { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.contact-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: var(--space-2); }
.contact-head p { margin-top: var(--space-2); font-size: 18px; color: var(--ink-2); }
.form-card-wide { max-width: 680px; margin: var(--space-6) auto 0; }
.hide { display: none !important; }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; padding: 12px; font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-8); align-items: start; }
.contact-copy h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: var(--space-2); }
.contact-copy .lead { font-size: 19px; color: var(--ink-2); margin-top: var(--space-3); max-width: 420px; }
.flow-steps { margin-top: var(--space-4); display: flex; flex-direction: column; gap: 18px; }
.flow-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.flow-step .si { width: 32px; height: 32px; border-radius: 9px; background: rgba(30,95,184,.1); color: var(--primary);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.flow-step h4 { font-size: 16px; }
.flow-step p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.trust-note { margin-top: var(--space-4); padding: 14px 16px; border-left: 3px solid var(--secondary);
  background: rgba(46,191,168,.07); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink-2); }
.trust-note strong { color: var(--ink); }

/* form card */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.form-stage { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.form-stage.hide { display: none; }
.stage-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-3); }
.stage-badge .n { background: var(--primary); color: #fff; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label .req { color: var(--warm); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 9px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,95,184,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .counter { font-size: 12px; color: var(--ink-2); text-align: right; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fakecaptcha { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 9px; font-size: 13px; color: var(--ink-2); background: #fff; margin-bottom: var(--space-2); }
.fakecaptcha .cb { width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--line); flex: none; }
.fakecaptcha .turn { margin-left: auto; font-size: 11px; color: var(--ink-2); opacity: .7; }
.form-foot { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }
.form-error { margin: 0 0 var(--space-2); padding: 11px 14px; border-radius: 9px;
  background: rgba(232,116,58,.10); border: 1px solid rgba(232,116,58,.35); color: #b4480f;
  font-size: 14px; font-weight: 500; }
.form-error[hidden] { display: none; }
.micro { font-size: 12px; color: var(--ink-2); opacity: .8; flex: 1 1 300px; }
.micro a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.micro a:hover { color: var(--primary); }

/* analyzing */
.analyzing { text-align: center; padding: var(--space-6) 0; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary);
  margin: 0 auto var(--space-3); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* classification result fields */
.cls-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.cls-row:last-of-type { border-bottom: none; }
.cls-row .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { font: inherit; font-size: 14px; padding: 7px 14px; border: none; background: #fff; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--primary); color: #fff; }
.detected { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #1c8a78;
  background: rgba(46,191,168,.12); padding: 6px 12px; border-radius: 999px; margin-bottom: var(--space-3); }

/* success */
.success { text-align: center; padding: var(--space-4) 0; }
.success .check { width: 64px; height: 64px; border-radius: 50%; background: rgba(46,191,168,.14); color: var(--secondary);
  display: grid; place-items: center; margin: 0 auto var(--space-3); }
.success h3 { font-size: 26px; }
.success p { color: var(--ink-2); margin-top: var(--space-2); max-width: 380px; margin-left:auto; margin-right:auto; }
.lia-bubble { margin-top: var(--space-3); display: inline-flex; align-items: flex-start; gap: 12px; text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; max-width: 420px; }
.lia-bubble .av { width: 38px; height: 38px; border-radius: 10px; background: rgba(30,95,184,.12); color: var(--primary);
  display:grid; place-items:center; font-weight: 800; flex: none; }
.lia-bubble .tx { font-size: 14px; color: var(--ink-2); }
.lia-bubble .tx b { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: var(--space-8) 0 var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.footer-logo { height: 44px; margin-bottom: var(--space-3); display: inline-block;
  background: #fff; padding: 12px 18px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.footer p { font-size: 14px; line-height: 1.7; }
.footer h5 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 var(--space-2); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul li { font-size: 14px; }
.footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .platform-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .app-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-extra-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .tm-context { margin-left: 0; flex-basis: 100%; }
  .impact-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .person { grid-template-columns: 1fr; text-align: center; }
  .person image-slot { margin: 0 auto; }
  .person .skills { justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tl-pin { height: auto; position: relative; top: 0; }
}

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.legal-nav { position: sticky; top: 0; z-index: 50; background: rgba(247,248,250,.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); }
.legal-nav .nav-inner { display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 14px var(--space-3); }
.legal-nav .nav-logo img { height: 30px; display: block; }
.legal-nav .back { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.legal-nav .back:hover { color: var(--primary); }

.legal-page { background: var(--bg); min-height: 100vh; }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vh, 96px) var(--space-3) var(--space-8); }
.legal-wrap .eyebrow { display: inline-block; margin-bottom: var(--space-2); }
.legal-wrap h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.legal-wrap .legal-meta { color: var(--ink-2); font-size: 15px; margin-bottom: var(--space-5); }
.legal-note { background: rgba(46,191,168,.08); border-left: 3px solid var(--secondary);
  border-radius: 0 10px 10px 0; padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin-bottom: var(--space-5); }
.legal-note strong { color: var(--ink); }
.legal-wrap h2 { font-size: 22px; margin: var(--space-5) 0 var(--space-2); }
.legal-wrap p, .legal-wrap li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal-wrap p { margin-bottom: var(--space-2); }
.legal-wrap a { color: var(--primary); }
.legal-wrap ul { margin: 0 0 var(--space-2) 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-wrap .ph { color: var(--primary); font-weight: 600; background: rgba(30,95,184,.08);
  padding: 1px 6px; border-radius: 5px; }
.legal-dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 18px; margin-bottom: var(--space-3); }
.legal-dl dt { font-weight: 600; color: var(--ink); font-size: 15px; }
.legal-dl dd { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-dl dd { margin-bottom: 10px; } }

/* ============================================================
   Static-Build image-slot renderer (assets/image-slot.js)
   Ersetzt die Design-Tool-Editor-Komponente: rendert <img> (cover-fit)
   bzw. ein Monogramm-Fallback. Groessen/Radius kommen aus den
   bestehenden .phone/.person/.tm-avatar Regeln oben.
   ============================================================ */
image-slot { display: block; overflow: hidden; }
image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
image-slot .is-mono {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 20px;
  letter-spacing: .5px; color: var(--primary); background: rgba(30,95,184,.12);
}

