/* Claudio Caldart – Landingpage. Tokens gemäss Handoff (README.md). */
:root {
  --font-heading: 'Newsreader', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --font-script: 'Pinyon Script', cursive;

  --color-bg: #F3ECE2;
  --color-text: #2E1E14;
  --color-surface: #E9DFD1;
  --color-neutral-100: var(--color-light); --color-neutral-200: #EDE3D6; --color-neutral-300: #DDD0BF;
  --color-neutral-400: #C2B09A; --color-neutral-500: #9C8872; --color-neutral-600: #7C6753;
  --color-neutral-700: #6B5646; --color-neutral-800: #4A3627; --color-neutral-900: #2E1E14;
  --color-accent: #6B3F2A;
  --color-accent-100: #F3E6DC; --color-accent-200: #E6CFBE; --color-accent-300: #D3B097;
  --color-accent-400: #B88A6B; --color-accent-600: #5A3423; --color-accent-700: #5E3B29;
  --color-accent-800: #4A2E20; --color-accent-900: #331F16;
  --color-accent-2: #A68A55;
  --color-accent-2-100: #F5EEDF; --color-accent-2-200: #EADDC2; --color-accent-2-300: #D9C49C;
  --color-accent-2-400: #C3A873; --color-accent-2-600: #8A7042; --color-accent-2-700: #6E5833;
  --color-accent-2-800: #54432A; --color-accent-2-900: #3A2E1E;

  --shade: 46,30,20;        /* RGB der dunklen Overlays/Schatten */
  --pulse: 198,113,57;      /* RGB Stations-Puls */
  --color-light: #FAF6F0;   /* helle Schrift/Buttons auf dunklem Grund */

  --shadow-sm: 0 1px 2px rgba(var(--shade),.06);
  --shadow-md: 0 10px 30px -12px rgba(var(--shade),.18);
  --shadow-lg: 0 24px 50px -20px rgba(var(--shade),.3);

  --edge: max(clamp(20px, 5vw, 72px), calc((100vw - 1240px) / 2));   /* Seitenrand = Position der Linie; ab 1240px als Block zentriert */
  --inset: clamp(52px, 7vw, 112px);        /* Abstand Inhalt zur Linie */
  --rail-w: 12px;                          /* Linienbreite (Handy schmaler) */
  --node: 48px;                            /* Stationspunkt */
  --pad-y: clamp(56px, 7vw, 110px);        /* Sektionsabstand */
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-weight: 300; -webkit-font-smoothing: antialiased; }
body { overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 300; letter-spacing: -.01em; }
strong { font-weight: 500; color: var(--color-text); }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-text); }
p { margin: 0; }
figure { margin: 0; }
img, video { display: block; }

@keyframes eq { 0%, 100% { transform: scaleY(.25) } 50% { transform: scaleY(1) } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--pulse),.45) } 100% { box-shadow: 0 0 0 18px rgba(var(--pulse),0) } }

/* ---------- Reveal ---------- */
.reveal-init { opacity: 0; transform: translateY(var(--reveal-dist, 48px)); }
.reveal-anim { transition: opacity .9s ease, transform .9s var(--ease); }

/* ---------- Platzhalter / Bilder ---------- */
.ph {
  --ph-a: var(--color-surface); --ph-b: var(--color-neutral-200);
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 12px, var(--ph-b) 12px 24px);
  background-size: cover; background-position: center;
}
.ph.fill { position: absolute; }
.ph-accent { --ph-a: var(--color-accent-200); --ph-b: var(--color-accent-100); }
.ph-accent .ph-label { color: var(--color-accent-800); }
.ph-gold { --ph-a: var(--color-accent-2-200); --ph-b: var(--color-accent-2-100); }
.ph-gold .ph-label { color: var(--color-accent-2-800); }
.ph-dark { --ph-a: var(--color-neutral-800); --ph-b: color-mix(in srgb, var(--color-neutral-800) 70%, var(--color-neutral-900)); }
.ph-dark .ph-label { color: var(--color-neutral-400); }
.ph-label { font-family: ui-monospace, monospace; font-size: 11px; color: var(--color-neutral-700); text-align: center; padding: 0 12px; }
.ph.has-img .ph-label { display: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 2.5px solid var(--color-accent); border-radius: 50%; pointer-events: none; opacity: 0;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, opacity .3s;
}
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--color-accent) 18%, transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px var(--edge);
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand { font-family: var(--font-script); font-size: 30px; line-height: 1; color: var(--color-text); text-decoration: none; }
.nav { display: flex; gap: 6px; font-weight: 400; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.nav-link { color: var(--color-text); text-decoration: none; padding: 8px 14px; transition: background .2s; }
.nav-link:hover { background: var(--color-surface); color: var(--color-text); }
.nav-cta, .nav-cta:hover { color: var(--color-bg); background: var(--color-text); padding: 8px 16px; }
@media (max-width: 600px) { .nav-opt { display: none; } .brand { font-size: 26px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; color: var(--color-light); }
.hero-bg { position: absolute; inset: -12% 0; }
.hero-bg .ph-label { position: absolute; bottom: 18%; font-size: 12px; color: #E9DFD1; opacity: .8; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--shade),.35), rgba(94,59,41,.45)); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 20px; }
.hero-kicker { font-size: clamp(13px, 1.2vw, 18px); letter-spacing: .4em; text-transform: uppercase; font-weight: 400; }
.hero-name { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; font-size: clamp(84px, 13vw, 210px); line-height: 1.05; margin: 10px 0 0; }
.hero-role { font-size: clamp(16px, 1.8vw, 28px); letter-spacing: .14em; text-transform: uppercase; }
.btn-light {
  margin-top: clamp(40px, 6vh, 72px); padding: 18px 44px; background: var(--color-light); color: var(--color-accent-700);
  text-decoration: none; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-light:hover { background: var(--color-accent-700); color: var(--color-light); }

/* ---------- Statement ---------- */
.statement { background: var(--color-accent-700); color: #F3ECE2; padding: clamp(80px, 11vw, 160px) 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.statement-title { margin: 0; max-width: 1000px; font-size: clamp(40px, 5.6vw, 84px); line-height: 1.08; text-wrap: balance; color: #F3ECE2; }
.statement-portrait { position: relative; margin-top: clamp(48px, 7vw, 96px); width: min(340px, 70vw); aspect-ratio: 4/5; overflow: hidden; }
.statement-text { margin-top: clamp(40px, 5vw, 64px); max-width: 620px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.7; color: #E6CFBE; text-wrap: pretty; }
.statement-langs { margin-top: 28px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #D3B097; }

/* ---------- Linie ---------- */
.line { position: relative; }
.rail { position: absolute; left: var(--edge); top: 0; width: var(--rail-w); pointer-events: none; }
.rail { bottom: 200px; background: var(--color-neutral-300); }

/* ---------- Intro ---------- */
.intro { position: relative; padding: clamp(40px, 6vw, 88px) var(--edge) 32px calc(var(--edge) + var(--inset)); }
.intro-title { margin: 0 0 26px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; }
.intro-body { display: flex; flex-direction: column; gap: 18px; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.65; color: var(--color-neutral-800); text-wrap: pretty; }
.intro-close { margin-top: 28px; font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-700); }

/* ---------- Zug ---------- */
.train {
  position: fixed; z-index: 3; left: 0; top: 0; width: 46px; height: 60px; will-change: transform; pointer-events: none;
  transform: translate3d(-200px, -200px, 0);
  filter: drop-shadow(0 8px 14px rgba(var(--shade), .28));
}
.train img { display: block; width: 100%; height: 100%; }
/* Handy: Linie, Zug und Stationspunkte dezenter */
@media (max-width: 760px) {
  :root { --rail-w: 6px; --node: 32px; --inset: 40px; }
  .train { width: 26px; height: 34px; }
  .node { border-width: 3px; font-size: 13px; }
}

/* ---------- Stimmen (Horizontal-Pin) ---------- */
.voices { position: relative; }
.voices-sticky { position: sticky; top: 0; z-index: 6; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
.voices-head { padding: 0 var(--edge) 0 calc(var(--edge) + var(--inset)); }
.voices-head h3 { margin: 14px 0 0; max-width: 620px; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; }
.tag { display: inline-block; padding: 6px 14px; background: var(--color-accent-200); color: var(--color-accent-800); font-weight: 500; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.switch { position: relative; height: 150px; margin-top: 8px; flex: none; }
.switch svg { position: absolute; left: calc(var(--edge) - 16px); top: 0; overflow: visible; }
.switch-line { position: absolute; left: calc(var(--edge) + 244px); right: 0; top: 106px; height: 12px; background: var(--color-neutral-300); }
.track { position: relative; z-index: 4; display: flex; gap: 24px; width: max-content; padding: 0 var(--edge) 28px calc(var(--edge) + 200px); margin-top: 18px; align-items: flex-start; will-change: transform; }

.card-wrap { flex: 0 0 340px; }
@media (max-width: 760px) {
  /* Handy: kein horizontaler Pin – Karten einfach untereinander entlang der Linie */
  .voices-sticky { position: relative; height: auto; overflow: visible; display: block; padding: 56px 0 24px; }
  .switch { display: none; }
  .track { display: flex; flex-direction: column; gap: 28px; width: auto; padding: 28px var(--edge) 0 calc(var(--edge) + var(--inset)); margin-top: 0; transform: none !important; }
  .card-wrap { flex: none; width: 100%; max-width: 420px; }
  .card:hover { transform: none; }
}
.card { position: relative; background: var(--color-neutral-100); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4/3; cursor: pointer; }
.card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; background: var(--color-neutral-200); }
.card-media.has-video video { opacity: 1; }
.card-media.has-video .ph-label { display: none; }
.eq { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: flex-end; gap: 3px; height: 16px; padding: 9px 12px; background: var(--color-text); box-sizing: content-box; opacity: 0; transition: opacity .3s; }
.eq span { width: 3px; height: 16px; border-radius: 2px; background: var(--color-accent-300); transform-origin: bottom; animation: eq .8s infinite; }
.eq span:nth-child(2) { animation-delay: .2s; } .eq span:nth-child(3) { animation-delay: .4s; } .eq span:nth-child(4) { animation-delay: .1s; }
.card.is-playing .eq { opacity: 1; }
.card.is-playing.is-muted .eq span { animation-play-state: paused; }
.sound {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-bg); color: var(--color-text); box-shadow: var(--shadow-md);
  cursor: pointer; opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.sound svg { width: 20px; height: 20px; }
.sound:hover { background: var(--color-accent); color: var(--color-light); }
.card.is-playing.is-muted .sound { opacity: 1; transform: none; pointer-events: auto; animation: pulse 1.6s 2 .4s; }

.stops { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 18px 24px 0; }
.stops::before { content: ''; position: absolute; left: 14px; right: 14px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--color-neutral-300); }
.stop { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 4px solid var(--color-neutral-400); background: var(--color-neutral-100); color: var(--color-neutral-700); font-family: var(--font-heading); font-size: 12px; cursor: pointer; padding: 0; transition: all .25s; }
.stop.missing { opacity: .45; }
.stop.active { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-bg); }
.card-body { padding: 18px 24px 26px; }
.card-quote { min-height: 100px; font-family: var(--font-heading); font-size: 19px; line-height: 1.32; text-wrap: pretty; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; }
.card-meta .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent-2); }
.card-meta .name { font-weight: 500; }
.card-meta .role { color: var(--color-neutral-700); }

/* ---------- Stationen ---------- */
.station { position: relative; padding: var(--pad-y) var(--edge) var(--pad-y) calc(var(--edge) + var(--inset)); }
.station-last { padding-bottom: 0; }
.node {
  position: absolute; left: calc(var(--edge) + var(--rail-w) / 2 - var(--node) / 2); top: var(--pad-y); z-index: 2; width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--color-bg); border: 5px solid var(--color-text); display: grid; place-items: center;
  font-family: var(--font-heading); font-size: 18px; transition: all .5s var(--ease);
}
.node.reached { background: var(--color-accent); color: var(--color-bg); transform: scale(1.08); animation: pulse 1.4s 2; }
.maxw { max-width: 1300px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(36px, 5vw, 80px); align-items: start; max-width: 1300px; }
.grid-2b { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 64px); margin-top: 48px; align-items: start; }
.kicker { font-weight: 500; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--color-accent-700); }
.sub { margin-top: 6px; font-size: 14px; color: var(--color-neutral-700); }
.h-station { margin: 22px 0 0; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.04; text-wrap: balance; }
.lead { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--color-neutral-800); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 8px 16px; background: var(--color-surface); font-weight: 400; font-size: 14px; }
.chip-gold { background: var(--color-accent-2-200); color: var(--color-accent-2-800); font-weight: 500; }
.inset-photo { position: absolute; left: -10px; bottom: 0; width: 44%; aspect-ratio: 1/1; border: 8px solid var(--color-bg); box-shadow: var(--shadow-md); }

.quote { position: relative; padding: 24px 26px; }
.quote p { font-family: var(--font-heading); font-size: 20px; line-height: 1.32; text-wrap: pretty; }
.quote figcaption { margin-top: 12px; font-size: 14px; font-weight: 500; }
.quote-gold { background: var(--color-accent-2-200); }
.quote-gold p { color: var(--color-accent-2-900); }
.quote-gold figcaption { color: var(--color-accent-2-800); }
.quote-card { background: var(--color-neutral-100); box-shadow: var(--shadow-md); }
.quote-card figcaption { color: var(--color-accent-700); }
.quote-accent { background: var(--color-accent); color: var(--color-bg); padding: clamp(28px, 3vw, 44px); }
.quote-accent p { font-size: clamp(22px, 2vw, 28px); line-height: 1.28; }
.quote-accent figcaption { margin-top: 20px; font-size: 15px; color: var(--color-accent-100); }
.quote-mark { font-family: var(--font-heading); font-size: 64px; line-height: .6; height: 30px; }
.quote-dark { margin-top: 36px; background: var(--color-neutral-800); padding: 26px 28px; }
.quote-dark p { line-height: 1.34; color: var(--color-neutral-100); }
.quote-dark figcaption { margin-top: 14px; color: var(--color-accent-2-300); }

.panorama { position: relative; width: 100%; margin-top: 44px; overflow: hidden; aspect-ratio: 21/9; min-height: 260px; }   /* width:100% verhindert, dass min-height die Breite aufbläht */
.panorama-langs { position: absolute; left: 24px; top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.panorama-langs span { padding: 8px 16px; background: var(--color-bg); font-weight: 500; font-size: 14px; box-shadow: var(--shadow-sm); }
/* Projekt-Karten: 4 Spalten → 2 → 1 */
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 1100px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .projects { grid-template-columns: 1fr; } }
.project { background: var(--color-neutral-100); padding: 22px 22px 18px; box-shadow: var(--shadow-sm); }
.project-v { font-family: var(--font-heading); font-size: 30px; line-height: 1.1; color: var(--color-accent); }
.project dl { margin: 16px 0 0; }
.project dl > div { padding: 9px 0; border-top: 1px solid var(--color-neutral-200); }
.project dt { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--color-neutral-600); }
.project dd { margin: 3px 0 0; font-size: 15px; line-height: 1.4; color: var(--color-text); }

.branch { width: 100%; max-width: 440px; margin-top: 36px; overflow: visible; }
.grid-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.dark-box { max-width: 1300px; background: var(--color-neutral-900); color: var(--color-neutral-100); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(36px, 5vw, 72px); align-items: center; }
.dark-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dark-pill { padding: 6px 14px; background: var(--color-neutral-800); font-weight: 500; font-size: 13px; }
.dark-title { margin: 24px 0 0; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; color: var(--color-bg); }
.signal-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.signal-col { display: flex; flex-direction: column; align-items: center; }
.signal { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #141311; }
.lamp { width: 52px; height: 52px; border-radius: 50%; }
.lamp-red { background: #E0613F; box-shadow: 0 0 24px #E0613F; transition: opacity .6s; }
.lamp-off { background: var(--color-neutral-800); }
.lamp-green { background: #9FD36A; opacity: .15; transition: opacity .6s, box-shadow .6s; }
.dark-box.go .lamp-red { opacity: .18; }
.dark-box.go .lamp-green { opacity: 1; box-shadow: 0 0 28px #9FD36A; }
.signal-pole { width: 12px; height: 120px; background: var(--color-neutral-700); }
.signal-photos { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 480px) { .lamp { width: 36px; height: 36px; } .signal { padding: 12px; gap: 10px; } }

.h-contact { margin: 22px 0 0; max-width: 860px; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; text-wrap: balance; }
.grid-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 48px; align-items: stretch; }
.contact-card { background: var(--color-neutral-100); padding: clamp(28px, 3vw, 44px); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 14px; }
.contact-title { font-family: var(--font-heading); font-size: 26px; margin-bottom: 6px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--color-bg); color: var(--color-text); text-decoration: none; font-weight: 400; transition: background .2s; }
.contact-row:hover { background: var(--color-surface); color: var(--color-text); }
.contact-row .muted { color: var(--color-neutral-700); text-align: right; }
.contact-pdf { margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 18px 24px; background: var(--color-accent); color: var(--color-bg); text-decoration: none; font-family: var(--font-heading); font-size: 18px; text-align: center; transition: background .2s; }
.contact-pdf:hover { background: var(--color-accent-600); color: var(--color-bg); }

.end-wrap { position: relative; height: 200px; margin-left: calc(-1 * var(--inset)); margin-right: calc(-1 * var(--edge)); }
.end-wrap svg { position: absolute; left: calc(var(--rail-w) / 2 - 22px); top: 0; overflow: visible; }
.end-wrap svg path { stroke-width: var(--rail-w); }
.end-line { position: absolute; left: calc(var(--rail-w) / 2 + 118px); right: 0; top: calc(110px - var(--rail-w) / 2); height: var(--rail-w); background: var(--color-neutral-300); }
.end-pill { position: absolute; right: var(--edge); top: 48px; padding: 10px 20px; background: var(--color-accent-2); color: var(--color-bg); font-family: var(--font-heading); font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-init { opacity: 1; transform: none; }
  .node.reached { animation: none; }
}

/* ---------- Variante: Lead mit Porträt (variante-portrait.html) ---------- */
.lead-hero { position: relative; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); display: flex; align-items: center; overflow: hidden; color: var(--color-light); background: var(--color-neutral-800); }
.lead-bg { position: absolute; inset: -8% 0; background-position: 70% 18%; animation: lead-zoom 14s var(--ease) both; }
@keyframes lead-zoom { from { scale: 1.08; } to { scale: 1; } }
/* wärmt das graue Studio-Grau in die Brauntöne der Seite */
.lead-tint { position: absolute; inset: 0; background: var(--color-accent); mix-blend-mode: color; opacity: .38; }
.lead-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--shade),.92) 0%, rgba(var(--shade),.78) 30%, rgba(var(--shade),.25) 58%, rgba(var(--shade),0) 75%), linear-gradient(to top, rgba(var(--shade),.55), transparent 35%); }
.lead-inner { position: relative; width: 100%; padding: clamp(72px, 10vh, 140px) var(--edge); max-width: calc(760px + 2 * var(--edge)); }
.lead-kicker { font-size: 12px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--color-accent-300); }
.lead-sig { font-family: var(--font-script); font-size: clamp(44px, 5vw, 76px); line-height: 1.1; margin-top: 10px; color: var(--color-accent-2-300); }
.lead-title { margin: clamp(18px, 3vh, 32px) 0 0; font-size: clamp(42px, 6.2vw, 96px); line-height: 1.02; text-wrap: balance; color: var(--color-light); }
.lead-text { margin-top: clamp(20px, 3vh, 32px); max-width: 540px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--color-accent-200); text-wrap: pretty; }
.lead-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: clamp(32px, 5vh, 56px); }
.lead-foot .btn-light { margin-top: 0; }
.lead-meta { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--color-accent-300); }
@media (max-width: 760px) {
  /* Handy: Foto oben, Text darunter auf dunklem Grund – kein Text über dem hellen Hemd */
  .lead-hero { display: block; min-height: 0; }
  .lead-bg { position: relative; inset: auto; height: calc(60svh + 80px); margin-top: -40px; background-position: 66% 0; }
  .lead-tint { bottom: auto; height: 60svh; }
  .lead-shade { background: linear-gradient(to bottom, rgba(var(--shade),0) 0, rgba(var(--shade),0) 32svh, rgba(var(--shade),1) calc(60svh - 30px), rgba(var(--shade),1) 100%); }
  .lead-inner { margin-top: calc(-40px - 70px); padding-top: 0; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { .lead-bg { animation: none; } }

/* ---------- Farbthema Petrol (variante-teal.html): <html data-theme="teal"> ---------- */
[data-theme="teal"] {
  --color-bg: #F1F4F2;
  --color-text: #1E2B2A;
  --color-surface: #E2EAE7;
  --color-light: #F8FAF9;
  --color-neutral-100: #F8FAF9; --color-neutral-200: #E6ECEA; --color-neutral-300: #D2DCD9;
  --color-neutral-400: #B2C0BC; --color-neutral-500: #8E9E9A; --color-neutral-600: #6D7E7A;
  --color-neutral-700: #56645F; --color-neutral-800: #3A4744; --color-neutral-900: #1E2B2A;
  --color-accent: #55918E;
  --color-accent-100: #E6F1F0; --color-accent-200: #CCE3E0; --color-accent-300: #A9CFCA;
  --color-accent-400: #7FB0AC; --color-accent-600: #467A77; --color-accent-700: #3A6563;
  --color-accent-800: #2D4F4D; --color-accent-900: #1F3735;
  --color-accent-2: #91BBB2;
  --color-accent-2-100: #EFF6F4; --color-accent-2-200: #DDEBE8; --color-accent-2-300: #C3DDD7;
  --color-accent-2-400: #A9CCC4; --color-accent-2-600: #6F9C92; --color-accent-2-700: #557E75;
  --color-accent-2-800: #3F5F58; --color-accent-2-900: #2A403B;
  --shade: 30,43,42;
  --pulse: 85,145,142;
}
[data-theme="teal"] .end-pill { color: var(--color-text); }
[data-theme="teal"] .lead-tint { opacity: .2; }

/* ---------- Sprachen (assets/js/i18n.js) ---------- */
.i18n-wait body { visibility: hidden; }   /* kurz ausblenden, bis die Übersetzung steht (max. 1.5 s) */
.h-contact .hl { color: var(--color-accent); }
.voices-note { margin: 10px 0 0; font-size: 13px; color: var(--color-neutral-600); }
.voices-note:empty { display: none; }

/* Sprachwähler oben: DE EN FR IT nebeneinander, auf dem Handy als Ausklapp-Menü */
.nav { align-items: center; }
.lang-switch { position: relative; display: flex; align-items: center; margin: 0 6px; padding: 0 6px; border-left: 1px solid var(--color-neutral-300); border-right: 1px solid var(--color-neutral-300); }
.lang-menu { display: flex; }
.lang-opt { color: var(--color-neutral-600); text-decoration: none; padding: 8px 7px; transition: color .2s; }
.lang-opt:hover { color: var(--color-text); }
.lang-opt.active { color: var(--color-text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang-toggle { display: none; align-items: center; gap: 6px; padding: 8px 10px; border: 0; background: none; color: var(--color-text); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.lang-toggle svg { width: 10px; height: 6px; transition: transform .2s; }
@media (max-width: 600px) {
  .lang-switch { border: 0; margin: 0; padding: 0; }
  .lang-toggle { display: inline-flex; }
  .lang-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; flex-direction: column; min-width: 72px; padding: 6px; background: var(--color-neutral-100); box-shadow: var(--shadow-md); }
  .lang-switch.open .lang-menu { display: flex; }
  .lang-switch.open .lang-toggle svg { transform: rotate(180deg); }
  .lang-menu .lang-opt { padding: 10px 12px; }
}

/* Fusszeile mit Sprachwähler */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 32px var(--edge); background: var(--color-neutral-900); color: var(--color-neutral-400); font-size: 13px; }
.footer-brand { color: var(--color-neutral-100); font-size: 28px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-langs .lang-opt { color: var(--color-neutral-400); padding: 6px 10px; letter-spacing: .08em; }
.footer-langs .lang-opt:hover { color: var(--color-neutral-100); }
.footer-langs .lang-opt.active { color: var(--color-neutral-100); text-decoration-color: var(--color-accent-400); }
@media (max-width: 600px) { .site-footer { flex-direction: column; text-align: center; } .footer-langs { justify-content: center; } }
@media (max-width: 600px) { .site-header { gap: 12px; } .brand { white-space: nowrap; } .nav { gap: 2px; } .lang-toggle { padding: 8px; } }
