/* ============================================================
   YORY MEDIA — main.css
   Design System: Variablen, Reset, Typografie, Layout
   ============================================================ */

/* Fraunces entfernt — Area Normal für alle Headings */

/* ── Schriften aus brand-kit.json ─────────────────────────────
   Pfade exakt wie in brand-kit.json (heading_font_file, body_font_file,
   *_font_weights[].file). Das CMS legt die Dateien unter genau diesen
   Pfaden ab – Dateinamen nicht umbenennen. ── */
@font-face {
  font-family: 'Area Normal Semi Bold';
  src: url('../fonts/heading.otf') format('opentype');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal Semi Bold';
  src: url('../fonts/heading-700.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal Semi Bold';
  src: url('../fonts/heading-800.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal Regular';
  src: url('../fonts/body.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Fette Schnitte im Fliesstext (strong, Buttons) nutzen die
   Bold-/ExtraBold-Dateien der Heading-Familie aus dem Brand Kit */
@font-face {
  font-family: 'Area Normal Regular';
  src: url('../fonts/heading-700.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal Regular';
  src: url('../fonts/heading-800.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Variablen ────────────────────────────────────────────── */
:root {
  --black: #000000;
  --radius-ref: 12px;  /* Ecken der Bilder in Referenz-Karten */
  --bg:           #FFFFFF;
  --weiss-primaer: #F3F5FF;  /* Brand Kit: Weiss Primär */
  --bg-2:         #f7f3ff;
  --bg-card:      #FFFFFF;
  --bg-card-alt:  #f0ebff;
  --violet:       #5A467D;
  --violet-light: #7a64a0;
  --flieder:      #B588F2;
  --flieder-dim:  rgba(181,136,242,0.12);
  --gold:         #F2D188;
  --gold-dim:     rgba(242,209,136,0.15);
  --rot:          #E72A3D;
  --text:         #111111;
  --text-muted:   #555555;
  --text-dim:     #888888;
  --border:       rgba(0,0,0,0.12);
  --border-hover: rgba(0,0,0,0.25);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-pill:  999px;
  --max-w:        1100px;
  --font-h:       'Area Normal Semi Bold', system-ui, sans-serif;
  --font-b:       'Area Normal Regular', system-ui, sans-serif;
  --transition:   .2s ease;

  /* Ergänzende Farbtöne (aus bestehendem Design übernommen) */
  --white:        #FFFFFF;
  --ink:          #1a1228;
  --ink-deep:     #0d0b1a;
  --text-soft:    #666666;
  --text-strong:  #444444;
  --border-light: #cccccc;
  --flieder-tint: #ede6ff;
  --lavender-100: #e8e4f0;
  --lavender-200: #e0dbf5;
  --lavender-300: #d4c8f0;
  --lavender-line:#ded9ee;
  --surface-1:    #f8f7ff;
  --surface-2:    #f4f2fb;
  --surface-3:    #f1f3fa;
  --surface-4:    #f5f4fa;
  --surface-5:    #f5f3fb;
  --surface-6:    #f1eef8;
  --surface-7:    #fafafa;
  --flieder-light:#f0eaf9;
  --gold-shine:   #fff8dc;
  --gold-hover:   #f5da99;
  --gold-text:    #8a6000;
  --gold-text-2:  #b07800;
  --gold-text-3:  #b08a00;
  --rot-tint:     #fff5f5;
  --rot-tint-2:   #fdf0f0;
  --rot-dark:     #c0392b;
  --status-green: #3db87a;
  --status-amber: #e8a020;
  --hero-teal:    #5bbfad;
  --hero-coral:   #e07070;
  --hero-indigo:  #7070d8;
  --text-dark:    #333333;
  --violet-deep:  #2d1b4e;
  /* RGB-Tripel für transparente Varianten: rgba(var(--x-rgb), alpha) */
  --white-rgb:    255,255,255;
  --black-rgb:    0,0,0;
  --flieder-rgb:  181,136,242;
  --violet-rgb:   90,70,125;
  --gold-rgb:     242,209,136;
  --rot-rgb:      231,42,61;
  --ink-rgb:      26,18,40;
  --violett2-rgb: 216,136,242;
  --ink-deep-rgb: 13,11,26;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 18px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typografie ───────────────────────────────────────────── */
h1, h2  {
  font-family: var(--font-h);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}

h3,h4{
  font-family: var(--font-h);
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}
/* Feste Grössen — jede Ebene identisch auf allen Seiten */
h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; font-size: 1rem; }
em { font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
}

.text-gold   { color: var(--gold); }
.text-flieder{ color: var(--flieder); }
.text-muted  { color: var(--text-muted); }
.italic      { font-style: italic; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 100px 0; }
.section-sm{ padding: 72px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }

.founder-row-reverse > *:first-child { order: 2; }
.founder-row-reverse > *:last-child { order: 1; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .founder-row-reverse > *:first-child { order: 1; }
  .founder-row-reverse > *:last-child { order: 2; }
}
/* Nur Tablet – sonst überschreibt diese Regel die Handy-Regel oben
   (stand später im CSS) und Raster blieben auf dem Handy zweispaltig */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ── Section Label (flieder) ──────────────────────────────
   Funktioniert als <h3> und als <p> identisch. Auf der Startseite
   als <p>, damit die Überschriften-Hierarchie für Google stimmt. ── */
.section-kicker {
  font-family: var(--font-h);
  line-height: 1.5;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--flieder);
  margin-bottom: 24px;
}
.hero .section-kicker { color: rgba(var(--white-rgb), 0.95); }

/* ── Kicker / Label ───────────────────────────────────────── */
p.kicker,
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--flieder);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 14px;
}

/* ── Buttons — Comic-Stil: schwarzer Rahmen, eckig-rund ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: all .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  box-shadow: 4px 4px 0 rgba(var(--ink-rgb), 0.2);
  transform: translate(-2px, -2px);
}
/* Primär: Gold-Füllung mit schwarzem Rahmen */
.btn-primary {
  background: linear-gradient(105deg, var(--gold) 40%, var(--gold-shine) 50%, var(--gold) 60%);
  background-size: 400% auto;
  background-position: 0% center;
  border-color: var(--ink);
  color: var(--ink);
  animation: goldShimmer 8s ease-in-out infinite;
}
.btn-primary:hover {
  box-shadow: 4px 4px 0 rgba(var(--ink-rgb), 0.2);
  transform: translate(-2px, -2px);
}
/* Outline: kein Hintergrund, schwarzer Rahmen */
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
/* Im Hero: weisser Rahmen auf Lila */
.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.page-hero .btn-outline {
  border-color: rgba(var(--white-rgb), 0.55);
  color: rgba(var(--white-rgb), 0.85);
}
.hero .btn-outline:hover,
.page-hero .btn-outline:hover {
  background: rgba(var(--white-rgb), 0.15);
  box-shadow: 4px 4px 0 rgba(var(--white-rgb), 0.4);
  transform: translate(-2px, -2px);
}
/* Gold: Goldener Hintergrund mit schwarzem Text */
.btn-gold {
  background: var(--gold);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-hover);
  box-shadow: 4px 4px 0 rgba(var(--ink-rgb), 0.2);
  transform: translate(-2px, -2px);
}
/* Ghost: Text mit Pfeil */
.btn-ghost {
  padding: 13px 4px;
  border: none;
  background: transparent;
  color: var(--flieder);
  font-size: 15px;
  font-weight: 700;
}
.btn-ghost:hover { box-shadow: none; transform: none; color: var(--violet); }
.btn-ghost::after { content: ' →'; transition: margin .2s ease; }
.btn-ghost:hover::after { margin-left: 6px; }

/* ── Selbsttest ───────────────────────────────────────────── */
.selftest-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}
.selftest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface-1);
  border: 1.5px solid var(--lavender-200);
  border-radius: 12px;
  transition: border-color .2s ease;
}
.selftest-item.answered-ja  { border-color: var(--flieder); background: var(--flieder-tint); }
.selftest-item.answered-nein { border-color: var(--rot); background: var(--rot-tint); }
.selftest-question { font-size: 0.95rem; color: var(--text); flex: 1; }
.selftest-btns { display: flex; gap: 8px; flex-shrink: 0; }
.selftest-btn {
  padding: 6px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.selftest-btn:hover { border-color: var(--flieder); color: var(--flieder); }
.selftest-btn.active-ja  { background: var(--flieder); border-color: var(--flieder); color: var(--white); }
.selftest-btn.active-nein { background: var(--rot); border-color: var(--rot); color: var(--white); }
.selftest-cta {
  margin: 28px 0;
  padding: 22px 28px;
  background: var(--gold-dim);
  border: 1.5px solid transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 620px;
  transition: border-color .3s ease, background .3s ease;
}
.selftest-cta.highlighted {
  background: var(--flieder-tint);
  border-color: var(--flieder);
}
.selftest-cta p {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 0;
}
.selftest-benefits { max-width: 620px; }

/* ── Referenzen ─────────────────────────────────────────── */
.ref-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 4px 4px 0 rgba(var(--flieder-rgb), 0.45);
  transition: all .15s ease;
}
.ref-featured:hover { box-shadow: 4px 4px 0 rgba(var(--flieder-rgb), 0.45); transform: translate(-2px, -2px); }
.ref-featured-img { height: 400px; overflow: hidden; border-radius: 16px 0 0 16px; }
.ref-featured-img img { width: 100%; height: 100%; object-fit: cover; object-fit: cover; object-position: top center; display: block; box-shadow: inset 0 -20px 40px rgba(var(--black-rgb), 0.04); }
.ref-featured-content { padding: 32px 32px 32px 0; }
.ref-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  border-left: 3px solid var(--flieder);
  padding-left: 14px;
  margin: 0 0 8px;
}
.ref-quote:empty { display: none; }
.ref-quote-author { font-size: 0.85rem; color: var(--text-muted); }
.ref-card {
  background: var(--white);
  border: 1.5px solid var(--lavender-200);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.ref-card:hover { box-shadow: 0 4px 20px rgba(var(--violet-rgb), 0.1); border-color: var(--flieder); }
.ref-card-img { height: 180px; overflow: hidden; background: var(--flieder-tint); }
.ref-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ref-card-body { padding: 16px 18px 20px; }
.ref-card-text { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Für Logo-/Slide-Grafiken statt Fotos: ganze Grafik in voller Breite, keine feste Boxhöhe */
.ref-featured-img.contain { background: var(--surface-2); height: auto; display: flex; align-items: center; }
.ref-featured-img.contain img { width: 100%; height: auto; object-fit: contain; box-shadow: none; }
.ref-card-img.contain { height: auto; background: var(--surface-2); }
.ref-card-img.contain img { width: 100%; height: auto; object-fit: contain; }
/* Kundenlogos statt Fotos: Logo zentriert auf weissem Grund */
.ref-logo { background: var(--white); display: flex; align-items: center; justify-content: center; }
.ref-card-img.ref-logo { padding: 16px 8px; }
.ref-featured-img.ref-logo { padding: 48px 64px; }
.ref-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; box-shadow: none; }
/* Fotografie-Referenzen: Diashow pro Projekt */
.ref-slider { position: relative; height: 240px; cursor: zoom-in; }
.ref-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .4s ease;
}
.ref-slider img.is-active { opacity: 1; }
.ref-slider:focus-visible { outline: 2px solid var(--flieder); outline-offset: 3px; }
.ref-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(var(--white-rgb), 0.88); color: var(--ink);
  font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--black-rgb), 0.15);
  z-index: 2;
}
.ref-slider-btn:hover { background: var(--white); }
.ref-slider-btn:focus-visible { outline: 2px solid var(--flieder); outline-offset: 2px; }
.ref-slider-prev { left: 10px; }
.ref-slider-next { right: 10px; }
.ref-slider-dots {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; justify-content: center; gap: 6px; z-index: 2;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.35);
}
.ref-slider-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(var(--white-rgb), 0.5);
}
.ref-slider-dots span.is-active { background: var(--white); }

/* Fotografie-Referenzen: breite Kacheln, Bild und Text abwechselnd */
.foto-refs { display: flex; flex-direction: column; gap: 32px; }
.ref-card.ref-wide {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}
.ref-card.ref-wide:hover { transform: none; }
.ref-wide .ref-slider { height: 400px; }
.ref-wide .ref-card-body { padding: 0 12px 0 0; }
.ref-wide .ref-card-text { font-size: 1rem; line-height: 1.7; }
.foto-refs .ref-wide:nth-child(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.foto-refs .ref-wide:nth-child(even) .ref-slider { order: 2; }
.foto-refs .ref-wide:nth-child(even) .ref-card-body { order: 1; padding: 0 0 0 12px; }
@media (max-width: 768px) {
  .ref-card.ref-wide,
  .foto-refs .ref-wide:nth-child(even) { grid-template-columns: 1fr; gap: 0; }
  .ref-wide .ref-slider { height: 260px; }
  .foto-refs .ref-wide:nth-child(even) .ref-slider { order: 0; }
  .foto-refs .ref-wide .ref-card-body,
  .foto-refs .ref-wide:nth-child(even) .ref-card-body { order: 0; padding: 16px 18px 4px; }
  .ref-wide .ref-card-text { font-size: 0.92rem; }
}

/* Video-Referenzen: Vorschaubild mit Play-Knopf, Video erst beim Klick */
.video-group-title {
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  margin: 0 0 16px;
}
.section-accent .video-group-title { color: var(--text); }
.video-grid { margin-bottom: 48px; }
.video-poster {
  position: relative; display: block; width: 100%;
  padding: 0; border: none; background: var(--ink);
  cursor: pointer; overflow: hidden;
}
.video-card-wide .video-poster { aspect-ratio: 16 / 9; }
.video-short .video-poster { aspect-ratio: 9 / 16; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.video-poster:hover img { transform: scale(1.03); }
.video-poster:focus-visible { outline: 2px solid var(--flieder); outline-offset: 3px; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(var(--white-rgb), 0.92);
  box-shadow: 0 4px 16px rgba(var(--black-rgb), 0.25);
  transition: transform .2s ease;
}
.video-play::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--violet);
}
.video-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.ref-card.video-card { padding: 20px; }
.video-card .ref-card-body { padding: 16px 4px 4px; }
.ref-card.video-shorts-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px; align-items: center; padding: 40px;
}
.video-shorts-intro { max-width: 420px; padding: 0 4px; }
.video-shorts-list { display: flex; gap: 24px; }
.video-short { margin: 0; width: 220px; }
.video-short .video-poster { box-shadow: 0 8px 24px rgba(var(--ink-rgb), 0.18); }
.video-short figcaption { margin-top: 16px; padding: 0 4px; }
.video-shorts-panel h4 { color: var(--text); }
@media (max-width: 600px) {
  .video-play { width: 52px; height: 52px; }
}

@media (max-width: 900px) {
  .ref-card.video-shorts-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .video-shorts-intro { max-width: none; }
  .video-shorts-list { gap: 12px; }
  .video-short { width: auto; flex: 1 1 0; min-width: 0; max-width: 240px; }
}

@media (max-width: 600px) {
  .ref-card.video-shorts-panel { padding: 24px 18px; gap: 20px; }
  .video-shorts-panel .ref-card-text { font-size: 0.9rem; line-height: 1.65; }
  .video-short figcaption { margin-top: 10px; padding: 0 2px; }
  .video-short figcaption .kicker { font-size: 11px; margin-bottom: 2px; }
  .video-short figcaption h4 { font-size: 0.92rem; line-height: 1.3; }
  .video-shorts-list .video-play { width: 44px; height: 44px; }
  .video-shorts-list .video-play::after { border-width: 8px 0 8px 13px; }
}

/* Video-Fenster */
.video-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(var(--ink-deep-rgb), 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px 24px;
}
.video-modal[hidden] { display: none; }
.video-modal-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; max-height: calc(100dvh - 100px); }
.video-modal-frame.is-short { width: auto; height: min(85dvh, 860px); aspect-ratio: 9 / 16; max-width: 100%; }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: var(--black); }
@media (prefers-reduced-motion: reduce) {
  .video-poster img, .video-play { transition: none; }
}

/* Social-Media-Referenzen: Profilkarte mit Plattform und Konto */
a.ref-card.social-ref { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.social-ref-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: var(--radius-ref);
  background: var(--weiss-primaer);
}
.social-ref-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--violet); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.social-ref-icon svg { width: 22px; height: 22px; }
.social-ref-account { display: flex; flex-direction: column; min-width: 0; }
.social-ref-platform { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.social-ref-handle { font-family: var(--font-h); font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--text); overflow-wrap: normal; }
.social-ref .ref-card-body { display: flex; flex-direction: column; flex: 1; }
.social-ref-link { margin-top: auto; padding-top: 16px; font-size: 0.9rem; color: var(--violet); font-weight: 600; }
.social-ref:hover .social-ref-link { text-decoration: underline; }

/* Newsletter-Referenzen: oberer Teil des Newsletters als Vorschau */
.ref-card-img.ref-newsletter { height: 340px; background: var(--white); }
.ref-newsletter img { object-position: top center; }
@media (max-width: 600px) { .ref-card-img.ref-newsletter { height: 260px; } }

/* Fallbeispiel ohne Bild: Text oben, darunter drei Ergebnis-Kacheln (Zahl über Text) */
.ref-card.case-card { display: flex; flex-direction: column; gap: 24px; }
.case-card .ref-card-body { padding: 0; max-width: 720px; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-ref);
  background: var(--weiss-primaer);
}
.case-stat-zahl { font-family: var(--font-h); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--violet); }
.case-stat-text { font-size: 0.88rem; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 768px) {
  .case-stats { grid-template-columns: 1fr; gap: 8px; }
  .case-stat { padding: 12px 14px; gap: 3px; }
  .case-stat-zahl { font-size: 1.15rem; }
  .case-stat-text { font-size: 0.8rem; line-height: 1.4; }
}

/* Grossansicht (Lightbox) */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(var(--ink-deep-rgb), 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.lightbox-figure img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox-count { color: rgba(var(--white-rgb), 0.7); font-size: 0.85rem; margin-top: 12px; }
.lightbox-close, .lightbox-nav {
  position: absolute; border: none; cursor: pointer;
  background: rgba(var(--white-rgb), 0.12); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.lightbox-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.8rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(var(--white-rgb), 0.24); }
.lightbox.is-single .lightbox-nav, .lightbox.is-single .lightbox-count { display: none; }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid var(--flieder); outline-offset: 2px; }
@media (max-width: 600px) {
  .lightbox { padding: 64px 8px; }
  .lightbox-nav { top: auto; bottom: 16px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .lightbox-figure img { max-height: calc(100dvh - 180px); }
}
@media (prefers-reduced-motion: reduce) {
  .ref-slider img { transition: none; }
}
/* Einheitliche abgerundete Ecken für alle Bilder und Videos in Referenz-Karten */
.ref-card-img, .video-poster { border-radius: var(--radius-ref); }

/* Optischer Grössenausgleich der einzelnen Kundenlogos */
.ref-logo img.ref-logo-bbv   { max-height: 72%; }
.ref-logo img.ref-logo-soron { max-width: 80%; }
@media (max-width: 768px) {
  .ref-logo img.ref-logo-zeitlos { max-width: 75%; max-height: 80%; }
  .ref-logo img.ref-logo-bbv     { max-height: 80%; }
  .ref-logo img.ref-logo-soron   { max-width: 62%; }
}
/* Titel der grossen Referenz-Karte schwarz wie bei den kleinen Karten */
.ref-featured .ref-featured-content h3 { color: var(--text); }

@media (max-width: 768px) {
  .ref-featured { grid-template-columns: 1fr; }
  .ref-featured-content { padding: 16px 46px 28px; }
  .ref-featured { gap: 0; }
  /* Bild mit Abstand zum Rand wie bei den kleinen Referenz-Karten */
  .ref-featured-img { min-height: 0; height: auto; border-radius: var(--radius-ref); margin: 28px 28px 0; }
  /* Webseiten-Screenshots: nur den oberen Teil zeigen, nicht die ganze Seite */
  .ref-featured-img:not(.ref-logo) { height: 220px; }
  .ref-featured-img:not(.ref-logo) img { height: 100%; object-fit: cover; object-position: top center; }
  .ref-featured-img.ref-logo { height: 200px; padding: 8px 16px; }
  .ref-card-img.ref-logo { height: 170px; padding: 8px 16px; }
  .ref-featured-img.ref-logo img { height: 100%; }
}

/* ── Card Sub-Links (Hover-Beschreibung) ──────────────────── */
.card-sublink {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  padding: 5px 0;
}
.card-sublink-title {
  color: var(--flieder);
  font-size: 0.9rem;
  transition: color .2s ease;
  white-space: nowrap;
}
.card-sublink:hover .card-sublink-title { color: var(--violet); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 28px;
  transition: all .15s ease;
  box-shadow: 4px 4px 0 rgba(var(--flieder-rgb), 0.45);
  overflow-wrap: break-word;
}
.card:hover {
  box-shadow: 4px 4px 0 rgba(var(--flieder-rgb), 0.45);
}

.card-sm {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 3px 3px 0 rgba(var(--flieder-rgb), 0.45);
  transition: all .15s ease;
}
.card-sm:hover {
  box-shadow: 4px 4px 0 rgba(var(--flieder-rgb), 0.45);
  transform: translate(-1px, -1px);
}

/* ── Tags / Pills ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--flieder-dim);
  color: var(--flieder);
  border: 1.5px solid var(--flieder);
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag-gold {
  background: rgba(var(--gold-rgb), 0.2);
  color: var(--gold-text);
  border-color: var(--gold);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Highlight Box ────────────────────────────────────────── */
.highlight-box {
  background: var(--violet);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.highlight-box h2, .highlight-box h3 { color: var(--white); }
.highlight-box p { color: rgba(var(--white-rgb), 0.8); }

/* ── Section Accent ───────────────────────────────────────── */
.section-accent {
  background: var(--surface-3);
}
.section-accent h2 { color: var(--text); }
.section-accent h3 { color: var(--flieder); }

/* Yory Weiss (Brand Kit «Weiss Primär») als Sektionshintergrund */
.section-yory-weiss { background: var(--weiss-primaer); }

/* ── Section Gold ─────────────────────────────────────────── */
.section-gold {
  background: var(--gold);
  position: relative;
}
.section-gold .section-otter {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 240px;
  pointer-events: none;
}
.section-gold .section-otter img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .section-gold .section-otter { width: 160px; }
}
@media (max-width: 768px) {
  .section-gold .section-otter { display: none; }
}

/* ── Step Row ─────────────────────────────────────────────── */
.step-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--flieder);
  font-family: var(--font-b);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  min-width: 36px;
}

/* ── Step Timeline (verbundene Schritte ohne Nummern, z.B. "Wie wir arbeiten") ── */
.step-timeline .step-row {
  position: relative;
}
.step-timeline .step-row:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  bottom: -42px;
  left: 5px;
  width: 2px;
  background: currentColor;
  opacity: 0.3;
}
.step-timeline .step-num {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  color: inherit;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--white);
  flex-shrink: 0;
  min-width: 0;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.section-accent .step-timeline .step-num { box-shadow: 0 0 0 4px var(--surface-3); }
.step-content h3,
.step-content h4 { margin-bottom: 4px; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.step-content p  { font-size: 0.9rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--flieder); }
.faq-icon {
  font-size: 20px;
  color: var(--flieder);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  /* Kein Übergang auf padding: sonst misst das JS die Höhe ohne den
     Abstand unten und die letzte Zeile klebt an der Trennlinie */
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer { padding-bottom: 24px; }
.faq-item.open .faq-icon   { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--flieder); }
@media (max-width: 600px) {
  .faq-question { font-size: 0.95rem; line-height: 1.4; padding: 14px 0; }
  .faq-answer { font-size: 0.85rem; line-height: 1.6; }
}

/* ── Referenz-Card ────────────────────────────────────────── */
.ref-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 4px 4px 0 rgba(var(--flieder-rgb), 0.45);
  transition: all .15s ease;
}
.ref-card:hover {
  box-shadow: 4px 4px 0 rgba(var(--flieder-rgb), 0.45);
  transform: translate(-2px, -2px);
}
.ref-result {
  font-size: 14px;
  color: var(--flieder);
  font-weight: 500;
  margin-top: 8px;
}
.ref-result::before { content: '→ '; }
.ref-result-plain {
  font-size: 14px;
  color: var(--flieder);
  font-weight: 500;
  margin-top: 8px;
}

/* ── Score Row ────────────────────────────────────────────── */
.score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.score-label { font-size: 14px; font-weight: 500; min-width: 130px; }
.score-dots  { display: flex; gap: 6px; }
.score-dot   { width: 12px; height: 12px; border-radius: 50%; background: var(--bg-card-alt); }
.score-dot.green  { background: var(--status-green); }
.score-dot.amber  { background: var(--status-amber); }
.score-dot.red    { background: var(--rot); }
.score-note  { font-size: 13px; color: var(--text-muted); }

/* ── Preis-Box ────────────────────────────────────────────── */
.price-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.price-row:last-child { border-bottom: none; background: var(--flieder-dim); }
.price-label { color: var(--text); }
.price-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.price-val   { font-weight: 500; color: var(--flieder); white-space: nowrap; }

/* ── Animationen (nur wenn Bewegung gewünscht ist) ─────────── */
/* Elemente sind standardmässig sichtbar (für Crawler, Screenreader,
   prefers-reduced-motion). Der versteckte Startzustand gilt nur, wenn JS
   läuft (Klasse .js am <html>) und Bewegung nicht reduziert ist.      */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .js .fade-up { animation: fadeUp .7s cubic-bezier(.22,.68,0,1.2) both; }
  .js .fade-up-1 { animation-delay: .12s; }
  .js .fade-up-2 { animation-delay: .24s; }
  .js .fade-up-3 { animation-delay: .36s; }
  .js .fade-up-4 { animation-delay: .48s; }

  /* Scroll-Reveal für Sektionselemente */
  .js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js .reveal.visible { opacity: 1; transform: translateY(0); }
  .js .reveal-delay-1 { transition-delay: .1s; }
  .js .reveal-delay-2 { transition-delay: .2s; }
  .js .reveal-delay-3 { transition-delay: .3s; }
  .js .reveal-delay-4 { transition-delay: .4s; }
  .js .reveal-delay-5 { transition-delay: .5s; }
  .js .reveal-delay-6 { transition-delay: .6s; }
}

/* Otter schwebt sanft */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
.otter-float { animation: float 5s ease-in-out infinite; }

/* Hero-Gradient atmet */
@keyframes heroBreath {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Btn-Primary Shimmer */
@keyframes goldShimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-16 { gap: 16px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ── Grid-Varianten ───────────────────────────────────────── */
.grid-2-center { align-items: center; gap: 64px; }
.grid-2-top    { align-items: start; gap: 64px; }
@media (max-width: 768px) {
  /* Gestapelt: 64px Abstand wäre zu viel (z.B. FAQ-Titel → erste Frage) */
  .grid-2-center { gap: 32px; }
  .grid-2-top    { gap: 8px; }
  .grid-2-top h2.mb-32 { margin-bottom: 16px; }
}

/* ── Karten-Modifier ──────────────────────────────────────── */
.card-violet { border-color: var(--violet-light); }

/* ── Profil-Komponenten ───────────────────────────────────── */
.profile-stack { display: flex; flex-direction: column; gap: 16px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--white);
}
.profile-name { margin-bottom: 3px; }
.profile-desc { font-size: 0.85rem; }
.diff-point {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  padding-left: 1.6em;
  text-indent: -1.6em;
}

/* Elemente, die beim Laden schon sichtbar sind (Hero, erste Sektion),
   werden per JS mit .no-anim markiert und erscheinen sofort. */
.js .fade-up.no-anim, .js .reveal.no-anim { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }

/* ── «Bewegung reduzieren» respektieren (Pflicht) ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .fade-up { opacity: 1; transform: none; }
}

/* ── Handy: nichts darf breiter als der Bildschirm werden ───── */
@media (max-width: 600px) {
  /* Lange Button-Texte umbrechen statt die Seite zu verbreitern */
  .btn { white-space: normal; text-align: center; justify-content: center; }
  .hero .section-kicker { white-space: normal !important; }
}
/* Kleine Handys: H1 etwas kleiner, damit lange Wörter wie
   «Verkaufsgespräch.» ganz auf eine Zeile passen (keine Silbentrennung) */
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h1, h2 { overflow-wrap: break-word; }
}
/* Sicherheitsnetz gegen seitliches Verrutschen der ganzen Seite */
html, body { overflow-x: clip; }
