/* =========================================================================
   Garzi | media and more in education
   Designsystem «Wald und Kalk»
   ========================================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben (exakt) */
  --tanne: #1F3A2E;
  --salbei: #9AAE96;
  --bernstein: #D99A3E;
  --kalk: #F3F1EA;
  --moos: #5E6B61;

  /* Abgeleitete Flächen und Linien (keine Textfarben) */
  --kalk-2: #ECE9E0;
  --tanne-2: #1A3329; /* dunkler als Tannengrün: Salbei 5.7:1, Bernstein 5.6:1 */
  --line: rgba(31, 58, 46, 0.14);
  --line-strong: rgba(31, 58, 46, 0.28);
  --line-on-dark: rgba(243, 241, 234, 0.16);

  /* Rollen */
  --bg: var(--kalk);
  --text: var(--tanne);
  --text-muted: var(--moos);

  /* Typografie */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-display: clamp(2.75rem, 1.6rem + 5.4vw, 6.25rem);

  /* Raster */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --section-y: clamp(80px, 6rem + 4vw, 168px);
  --radius: 18px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.62;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--tanne); color: var(--kalk); }

:focus-visible {
  outline: 2px solid var(--tanne);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--bernstein); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--tanne);
  color: var(--kalk);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 48;
}
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--fs-lg); line-height: 1.55; max-width: 34em; }
.muted { color: var(--text-muted); }

/* Eyebrow mit dem senkrechten Strich als Markenelement */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 2px;
  height: 1.35em;
  background: var(--bernstein);
  border-radius: 2px;
  flex: none;
}
.on-dark .eyebrow { color: var(--salbei); }

/* Bernstein-Punkt als visueller Satzschluss (kein Text) */
.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.04em;
  border-radius: 50%;
  background: var(--bernstein);
  vertical-align: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--tanne);
  --btn-fg: var(--kalk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -14px rgba(31, 58, 46, 0.55); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--tanne);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--tanne); box-shadow: none; }

.btn--light { --btn-bg: var(--kalk); --btn-fg: var(--tanne); }
.btn--small { min-height: 42px; padding: 0 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.25s, gap 0.3s var(--ease-out);
}
.link-arrow:hover { border-color: currentColor; gap: 12px; }

/* ---------- Scroll-Rail (der Strich als Fortschritt) ---------- */
.rail {
  position: fixed;
  left: clamp(10px, 1.4vw, 22px);
  top: 50%;
  z-index: 40;
  width: 2px;
  height: 34vh;
  transform: translateY(-50%);
  background: var(--line);
  border-radius: 2px;
  pointer-events: none;
}
.rail__fill {
  position: absolute;
  inset: 0;
  background: var(--bernstein);
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}
@media (max-width: 899px) { .rail { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 234, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand__mono { width: 30px; height: 32px; flex: none; }
.brand__word {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__bar {
  align-self: center;
  width: 1.5px;
  height: 1.05rem;
  background: var(--line-strong);
}
.brand__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--moos);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav__links { display: flex; gap: clamp(16px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--tanne);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 899px) {
  .nav__links { display: none; }
}
.only-sm { display: none; }
@media (max-width: 520px) {
  .site-header .brand__word { flex-direction: column; align-items: flex-start; gap: 3px; }
  .site-header .brand__bar { display: none; }
  .site-header .brand__tag { font-size: 0.625rem; letter-spacing: 0.03em; }
  .brand__name { font-size: 1.35rem; }
  .brand__mono { width: 28px; height: 30px; }
  .brand { gap: 10px; }
  .only-sm { display: inline; }
  .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 6vw, 96px) clamp(56px, 7vw, 110px);
  overflow: hidden;
}
.hero__canvas,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease-soft);
}
.hero__video.is-ready { opacity: 1; }
.hero::after {
  /* weicher Übergang zum Inhalt, schützt die Lesbarkeit */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 18% 45%, rgba(243, 241, 234, 0.96) 0%, rgba(243, 241, 234, 0.82) 42%, rgba(243, 241, 234, 0) 78%),
    linear-gradient(to bottom, rgba(243, 241, 234, 0) 70%, var(--kalk) 100%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 380;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em {
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.hero__sub { margin-bottom: clamp(28px, 3.5vw, 40px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(36px, 4.5vw, 56px); }

/* Ich-bin-Umschalter */
.audience {
  max-width: 560px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.audience__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moos);
  margin-bottom: 12px;
}
.audience__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--kalk-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.audience__tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.audience__tab:hover { background: rgba(31, 58, 46, 0.06); }
.audience__tab[aria-selected="true"] { background: var(--tanne); color: var(--kalk); }
.audience__panel {
  margin-top: 16px;
  min-height: 5.2em;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--tanne);
}
.audience__panel p { transition: opacity 0.35s, transform 0.45s var(--ease-out); }
.audience__panel.is-swapping p { opacity: 0; transform: translateY(6px); }
.audience__panel a { font-weight: 600; }

/* Monogramm im Hero */
.hero__mark {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 1080 / 1120;
  perspective: 900px;
}
.hero__mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s var(--ease-out);
}
.g-band {
  fill: var(--tanne);
  stroke: var(--tanne);
  stroke-width: 3;
}
.js .g-band {
  fill-opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js .is-drawn .g-band {
  animation: g-draw 1.9s var(--ease-soft) forwards, g-fill 1.1s var(--ease-soft) forwards;
}
.js .is-drawn .g-band-2 { animation-delay: 0.18s, 1.25s; }
.js .is-drawn .g-band-3 { animation-delay: 0.36s, 1.45s; }
.js .is-drawn .g-band-1 { animation-delay: 0s, 1.05s; }
@keyframes g-draw { to { stroke-dashoffset: 0; } }
@keyframes g-fill { to { fill-opacity: 1; stroke-opacity: 0; } }

.g-dot { fill: var(--bernstein); transform-box: fill-box; transform-origin: center; }
.g-halo { fill: none; stroke: var(--bernstein); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.js .g-dot { transform: scale(0); }
.js .is-drawn .g-dot { animation: dot-in 0.9s var(--ease-out) 1.7s forwards, dot-breathe 5.5s var(--ease-soft) 2.8s infinite; }
.js .is-drawn .g-halo { animation: halo 5.5s var(--ease-soft) 2.8s infinite; }
@keyframes dot-in { 0% { transform: scale(0); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes dot-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes halo { 0% { opacity: 0.55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }

.hero__caption {
  position: absolute;
  right: 0;
  bottom: -8px;
  font-size: var(--fs-xs);
  color: var(--moos);
  letter-spacing: 0.04em;
}

@media (max-width: 899px) {
  .hero { min-height: 0; padding-top: 28px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { order: -1; width: 132px; justify-self: start; margin-bottom: 4px; }
  .hero__caption { display: none; }
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(243, 241, 234, 0.55) 0%, rgba(243, 241, 234, 0.9) 35%, rgba(243, 241, 234, 0.96) 100%);
  }
}

/* ---------- Vertrauensleiste ---------- */
.trust {
  border-block: 1px solid var(--line);
  padding-block: 22px;
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__item strong { font-weight: 600; }
.trust__item::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--salbei);
  flex: none;
}
.trust__item:first-child::before { background: var(--bernstein); }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(44px, 5vw, 72px); max-width: 820px; }
.section__head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 32px 64px;
}
@media (max-width: 899px) { .section__head--split { grid-template-columns: 1fr; } }

.on-dark {
  background: var(--tanne);
  color: var(--kalk);
  --text-muted: var(--salbei);
}
.on-dark .muted { color: var(--salbei); }

/* ---------- Magie entzaubern ---------- */
.magic { overflow: hidden; }
.magic__deco {
  position: absolute;
  right: -12%;
  top: -18%;
  width: min(62vw, 820px);
  opacity: 0.07;
  pointer-events: none;
}
.magic__deco path { fill: var(--kalk); }

.quote {
  margin: 0 0 clamp(56px, 6vw, 88px);
  max-width: 980px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.quote figcaption {
  margin-top: 22px;
  font-size: var(--fs-sm);
  color: var(--salbei);
}
.quote figcaption::before { content: ""; display: inline-block; width: 28px; height: 1.5px; background: var(--bernstein); vertical-align: middle; margin-right: 12px; }

.magic__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.magic__intro p + p { margin-top: 18px; }
.magic__intro h3 { margin-bottom: 20px; }
@media (max-width: 899px) { .magic__grid { grid-template-columns: 1fr; } }

/* Sprachmodell-Demo */
.llm {
  position: relative;
  background: var(--tanne-2);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
}
.llm__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--salbei);
  font-weight: 600;
}
.llm__step { font-variant-numeric: tabular-nums; white-space: nowrap; }
.llm__sentence {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.25;
  font-weight: 380;
  letter-spacing: -0.015em;
  min-height: 3.9em;
  margin-bottom: 26px;
}
.llm__word {
  display: inline;
  color: var(--bernstein);
  animation: word-in 0.6s var(--ease-out) both;
}
@keyframes word-in { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
.llm__caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 4px;
  background: var(--bernstein);
  vertical-align: -0.1em;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.llm__options { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.llm__opt {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--kalk);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.llm__opt:hover { border-color: rgba(243, 241, 234, 0.45); transform: translateX(3px); }
.llm__opt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(217, 154, 62, 0.22);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 0.7s var(--ease-out);
}
.llm__opt.is-top::before { background: rgba(217, 154, 62, 0.34); }
.llm__opt.is-picked { border-color: var(--bernstein); }
.llm__opt.is-scanning { border-color: rgba(217, 154, 62, 0.8); }
.llm__opt-word { font-weight: 500; }
.llm__opt-p { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); color: var(--salbei); font-weight: 600; }
.llm__opt.is-top .llm__opt-p { color: var(--bernstein); }
.llm__opts-disabled .llm__opt { pointer-events: none; }

.llm__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-on-dark);
}
.temp { display: grid; gap: 6px; flex: 1 1 220px; max-width: 320px; }
.temp label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--salbei); }
.temp__scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--salbei); }
.temp input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
.temp input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-on-dark); border-radius: 2px; }
.temp input[type="range"]::-moz-range-track { height: 2px; background: var(--line-on-dark); border-radius: 2px; }
.temp input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--bernstein);
  border: 3px solid var(--tanne-2);
  box-shadow: 0 0 0 1px var(--bernstein);
}
.temp input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bernstein);
  border: 3px solid var(--tanne-2);
  box-shadow: 0 0 0 1px var(--bernstein);
}
.llm__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.llm .btn--ghost { --btn-fg: var(--kalk); border-color: var(--line-on-dark); }
.llm .btn--ghost:hover { border-color: var(--kalk); }

.llm__done {
  display: none;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-left: 2px solid var(--bernstein);
  background: rgba(243, 241, 234, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.llm__done strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--kalk);
}
.llm.is-complete .llm__done { display: block; animation: word-in 0.7s var(--ease-out) both; }
.llm.is-complete .llm__options { display: none; }

/* ---------- Angebote ---------- */
.offers {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.offer {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--kalk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s, transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.offer:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 24px 48px -32px rgba(31, 58, 46, 0.5); }
.offer.is-recommended { border-color: var(--tanne); box-shadow: 0 0 0 1px var(--tanne); }
.offer__badge-rec {
  position: absolute;
  top: -12px;
  right: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tanne);
  color: var(--kalk);
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
  pointer-events: none;
}
.offer.is-recommended .offer__badge-rec { opacity: 1; transform: translateY(0); }
.offer__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--moos);
  font-variant-numeric: tabular-nums;
}
.offer__for { font-size: var(--fs-sm); color: var(--moos); }
.offer__text { font-size: var(--fs-sm); }
.offer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.offer__facts li {
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.offer__foot { margin-top: auto; padding-top: 10px; }

.offer--feature {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--tanne);
  color: var(--kalk);
  border-color: var(--tanne);
  overflow: hidden;
}
.offer--feature:hover { border-color: var(--tanne); }
.offer--feature.is-recommended { box-shadow: 0 0 0 2px var(--bernstein); }
.offer--feature .offer__badge-rec { background: var(--bernstein); color: var(--tanne); top: 20px; right: 24px; }
.offer--feature .offer__for,
.offer--feature .offer__num { color: var(--salbei); }
.offer--feature h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.offer--feature .offer__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: var(--fs-lg);
  color: var(--salbei);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.offer--feature .offer__facts li { border-color: var(--line-on-dark); }
.offer__proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bernstein);
}
.offer__proof::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bernstein); }
.offer__col { display: flex; flex-direction: column; gap: 18px; }
.offer__includes { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.offer__includes li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  font-size: var(--fs-sm);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-on-dark);
}
.offer__includes li:last-child { border-bottom: 0; }
.offer__includes svg { width: 22px; height: 22px; margin-top: 1px; stroke: var(--bernstein); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.offer__includes strong { display: block; font-weight: 600; }
.offer__includes span { color: var(--salbei); }

@media (max-width: 1023px) {
  .offer { grid-column: span 6; }
  .offer--feature { grid-column: span 12; }
  .offer:last-child:nth-child(even) { grid-column: span 12; }
}
@media (max-width: 719px) {
  .offer, .offer:last-child:nth-child(even) { grid-column: span 12; }
  .offer--feature { grid-template-columns: 1fr; }
}

/* ---------- Arbeitsweise ---------- */
.approach {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}
.principles { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.principle {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
}
.principle__icon svg { width: 22px; height: 22px; stroke: var(--tanne); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.principle__icon .accent { fill: var(--bernstein); stroke: none; }
.principle h3 { font-size: 1.375rem; margin-bottom: 8px; }
.principle p { color: var(--moos); font-size: var(--fs-sm); max-width: 36em; }

.approach__media { position: sticky; top: 104px; }
@media (max-width: 899px) {
  .approach { grid-template-columns: 1fr; }
  .approach__media { position: relative; top: 0; }
}

/* ---------- Medien-Slots mit Fallback ---------- */
.media-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tanne);
  aspect-ratio: 4 / 5;
}
.media-slot--wide { aspect-ratio: 3 / 2; }
.media-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease-soft), transform 1.8s var(--ease-out);
}
.media-slot.is-loaded img { opacity: 1; transform: scale(1); }
.media-slot.is-loaded .media-slot__fallback { opacity: 0; }
.media-slot__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 36px);
  color: var(--kalk);
  transition: opacity 0.8s;
}
.media-slot__fallback svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-slot__fallback svg.lines path { fill: none; stroke: var(--salbei); stroke-width: 1.2; opacity: 0.38; }
.media-slot__fallback svg.lines circle { fill: var(--bernstein); }
.media-slot__fallback-text { position: relative; max-width: 22em; }
.media-slot__fallback-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.15;
  margin-bottom: 8px;
}
.media-slot__fallback-text span { font-size: var(--fs-sm); color: var(--salbei); }

/* ---------- Über Manuel ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 104px);
  align-items: center;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--kalk-2);
  border: 1px dashed var(--line-strong);
}
.portrait.is-loaded { border-style: solid; border-color: transparent; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease-soft); }
.portrait.is-loaded img { opacity: 1; }
.portrait.is-loaded .portrait__ph { display: none; }
.portrait__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.portrait__ph svg { width: 74px; height: 78px; opacity: 0.9; }
.portrait__ph strong { font-family: var(--font-display); font-weight: 450; font-size: 1.25rem; }
.portrait__ph span { font-size: var(--fs-xs); color: var(--moos); max-width: 22em; }
.portrait__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--kalk);
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.portrait__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bernstein); }

.about__body h2 { margin-bottom: 26px; }
.about__body .lead { margin-bottom: 22px; }
.about__body p + p { margin-top: 16px; }
.stations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.stations li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.stations li span { display: block; font-size: var(--fs-xs); color: var(--moos); font-weight: 500; letter-spacing: 0.02em; }
@media (max-width: 899px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }
@media (max-width: 520px) { .stations { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.step { position: relative; padding-top: 34px; }
.step::before {
  content: "";
  position: absolute;
  top: 9px; left: 0; right: 0;
  height: 1px;
  background: var(--line-on-dark);
}
.step::after {
  content: "";
  position: absolute;
  top: 4px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--salbei);
}
.step:first-child::after { background: var(--bernstein); }
.step__num { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--salbei); margin-bottom: 10px; display: block; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--salbei); font-size: var(--fs-sm); max-width: 26em; }
@media (max-width: 719px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}
.contact__direct { display: grid; gap: 0; margin: 34px 0 0; padding: 0; list-style: none; }
.contact__direct li { border-top: 1px solid var(--line); }
.contact__direct li:last-child { border-bottom: 1px solid var(--line); }
.contact__direct a,
.contact__direct div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  text-decoration: none;
}
.contact__direct a:hover .contact__value { text-decoration: underline; text-underline-offset: 4px; }
.contact__ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--kalk-2);
  display: grid;
  place-items: center;
}
.contact__ico svg { width: 18px; height: 18px; stroke: var(--tanne); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__label { display: block; font-size: var(--fs-xs); color: var(--moos); font-weight: 500; }
.contact__value { font-weight: 600; font-size: var(--fs-base); overflow-wrap: anywhere; }

.form {
  background: var(--kalk-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(22px, 3.4vw, 44px);
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 18px;
}
.field { display: grid; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--moos); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--kalk);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F3A2E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--moos); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--tanne);
  box-shadow: 0 0 0 3px rgba(31, 58, 46, 0.14);
}
.field.has-error input,
.field.has-error textarea { border-color: #9B3B2E; }
.field__error { font-size: var(--fs-xs); color: #8A3427; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 24px;
}
.form__note { font-size: var(--fs-xs); color: var(--moos); max-width: 30em; }
.form__note a { font-weight: 600; }
.form .btn[aria-busy="true"] { pointer-events: none; opacity: 0.8; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(243, 241, 234, 0.35);
  border-top-color: var(--kalk);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { display: none; }
.form.is-done .form__body { display: none; }
.form.is-done .form__status { display: block; animation: word-in 0.7s var(--ease-out) both; }
.form__status h3 { margin: 18px 0 12px; }
.form__status p + p { margin-top: 12px; }
.form__status .status-mark { width: 54px; height: 56px; }
.form__alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--bernstein);
  background: var(--kalk);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-sm);
}
.form__alert[hidden] { display: none; }

@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 6vw, 88px) 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  gap: 36px 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer__brand .brand__name { font-size: 2.25rem; }
.footer__brand .brand__tag { color: var(--salbei); font-size: 0.8125rem; }
.footer__brand .brand__bar { background: var(--line-on-dark); height: 1.3rem; }
.footer__brand p { margin-top: 18px; color: var(--salbei); font-size: var(--fs-sm); max-width: 28em; }
.footer__col h4 {
  margin: 0 0 14px;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--salbei);
  font-weight: 600;
}
.footer__col address,
.footer__col ul { font-style: normal; font-size: var(--fs-sm); line-height: 1.8; margin: 0; padding: 0; list-style: none; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: var(--fs-xs);
  color: var(--salbei);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }
@media (max-width: 719px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal-Animationen ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-soft), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js .hero h1 .line > span {
  transform: translateY(105%);
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .hero.is-in h1 .line > span { transform: none; }
.js .hero [data-hero-fade] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-soft), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .hero.is-in [data-hero-fade] { opacity: 1; transform: none; }

/* ---------- Rechtsseiten ---------- */
.legal { padding-block: clamp(48px, 6vw, 96px) var(--section-y); }
.legal__body { max-width: 720px; }
.legal__body h1 { font-size: var(--fs-h2); margin-bottom: 28px; }
.legal__body h2 { font-size: var(--fs-h3); margin: 40px 0 12px; }
.legal__body p, .legal__body li { color: var(--tanne); }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { padding-left: 1.2em; }
.legal__body address { font-style: normal; line-height: 1.8; }
.legal__meta { margin-top: 40px; font-size: var(--fs-sm); color: var(--moos); }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .g-band { fill-opacity: 1; stroke-dashoffset: 0; stroke-opacity: 0; }
  .js .g-dot { transform: none; }
  .js [data-reveal], .js .hero [data-hero-fade], .js .hero h1 .line > span { opacity: 1; transform: none; }
  .hero__video { display: none; }
}

@media print {
  .site-header, .rail, .hero__canvas, .hero__video, .llm, .form { display: none !important; }
  .on-dark { background: none; color: #000; }
}

/* Feinschliff */
.contact h2 { margin-bottom: 22px; }
@media (max-width: 520px) {
  .audience__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .audience__tab { padding: 9px 6px; font-size: 0.875rem; }
}
