/* ============================================================
   seite-referenzen.css — Unterseite „Referenzen"
   Erbt Tokens/Grundklassen aus main.css. Nur seitenspezifische
   Ergänzungen: Unterseiten-Held, Fallstudien, Kundenstimmen-Akt,
   Vertrauens-Leiste, Einblicke-Videos.
   ============================================================ */

/* ---------- Unterseiten-Held ---------- */

.unterheld { padding-bottom: clamp(40px, 6vh, 72px); }

/* ---------- Fallstudien (getönte Bühne) ---------- */

.belege {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(103, 205, 198, 0.14), transparent 65%),
    var(--bg-tint);
  padding-block: clamp(60px, 8.5vh, 108px);
}

.belege-kopf {
  font-size: var(--fs-h2);
  max-width: 20ch;
  margin-bottom: clamp(36px, 5vh, 60px);
}

/* Kronzeuge groß: Bild breit oben, Story darunter (mobil); ab 900px
   Bild/Story nebeneinander, damit der Block sichtbar mehr Gewicht trägt
   als die zwei kleineren Karten darunter. */
.beleg-gross { margin-bottom: clamp(24px, 3vw, 40px); }

.beleg-motor {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-leise);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: clamp(18px, 2.4vw, 28px);
}

.beleg-fakten {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 clamp(24px, 3vw, 36px) clamp(6px, 1vw, 10px);
}

.beleg-zeile { display: grid; gap: 4px; }

.beleg-zeile dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--petrol);
}

.beleg-zeile dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.beleg-gross .kronzeuge-inhalt .beleg-motor { padding-inline: 0; border: 0; padding-block: 0; }

@media (min-width: 900px) {
  .beleg-gross {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
  }

  .beleg-gross .kronzeuge-bild { height: 100%; }

  .beleg-gross .kronzeuge-bild img { height: 100%; aspect-ratio: auto; }

  .beleg-gross .kronzeuge-inhalt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 3.4vw, 48px);
  }

  .beleg-gross blockquote { padding: 0; }

  .beleg-gross .beleg-fakten { padding: clamp(20px, 2.4vw, 28px) 0 0; }

  .beleg-gross .beleg-motor { order: -1; margin-top: 0; margin-bottom: 18px; }
}

/* Die zwei kleineren Belege: bewusst unterschiedliche Muster,
   kein identisches Karten-Grid. */
.belege-neben {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.beleg-stat {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--karte-schatten);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.beleg-stat img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.beleg-stat-inhalt { padding: clamp(22px, 2.8vw, 32px); }

.beleg-zahl {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--petrol);
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}

.beleg-label {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 4px;
}

.beleg-stat .beleg-fakten { padding: 4px 0 0; }

/* Wenzel-Fall nutzt das bestehende .stimme-Muster (Foto + Zitat),
   nur mit eigenem Motor-Label oben in der Textspalte. */
.stimme .beleg-inhalt { display: flex; flex-direction: column; }

.stimme .beleg-motor { margin-top: 0; margin-bottom: 14px; align-self: flex-start; }

/* ---------- Kundenstimmen (der eine dunkle Voll-Bleed-Akt) ---------- */

.oton {
  position: relative;
  background: var(--bg-deep);
  color: var(--dunkel-ink);
  padding-block: clamp(60px, 8.5vh, 108px);
  overflow: clip;
}

.oton-aurora {
  position: absolute;
  inset: -12% -18%;
  z-index: var(--z-orb);
  background:
    radial-gradient(780px 420px at 88% 6%, rgba(20, 120, 124, 0.32), transparent 65%),
    radial-gradient(680px 420px at 8% 92%, rgba(103, 205, 198, 0.14), transparent 60%);
  filter: blur(10px);
  animation: orb-drift 30s ease-in-out infinite alternate;
}

.oton .wrap { position: relative; z-index: var(--z-inhalt); }

/* Feine Kachel-Textur auf der dunklen Bühne (wie Problem-Akt der Startseite) */
.oton::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 110px);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.oton-kopf {
  font-size: var(--fs-h2);
  color: #ffffff;
  max-width: 22ch;
  margin-bottom: 14px;
}

.oton-kopf em { color: var(--mint-hell); }

.oton-lead {
  color: var(--dunkel-soft);
  max-width: 46ch;
  font-size: 1.05rem;
  margin-bottom: clamp(36px, 5vh, 60px);
}

.oton-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.oton-gross blockquote {
  margin: 20px 0 0;
  padding: 0;
}

.oton-gross blockquote p {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.3;
  color: #ffffff;
}

.oton-gross footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.oton-gross footer strong { font-size: 0.98rem; color: #ffffff; }

.oton-gross footer span { font-size: 0.86rem; color: var(--dunkel-soft); }

.oton-neben {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.oton-karte {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--linie-dunkel);
  transition: border-color 0.35s ease, background 0.35s ease;
}

.oton-karte:hover {
  border-color: rgba(103, 205, 198, 0.45);
  background: linear-gradient(165deg, rgba(103, 205, 198, 0.09), rgba(255, 255, 255, 0.02));
}

.oton-karte blockquote { margin: 0; }

.oton-karte blockquote p {
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--dunkel-ink);
}

.oton-karte footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.oton-karte footer strong { font-size: 0.92rem; color: #ffffff; }

.oton-karte footer span { font-size: 0.82rem; color: var(--dunkel-soft); }

/* Die Video-Fassade (.vid-schild) ist ein gemeinsamer Baustein und lebt in
   main.css (auch die Startseite nutzt sie). */

/* Kleine, quadratische Variante für die Karten in .oton-karte */
.vid-mini {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0d282b;
}

.vid-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.vid-mini::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 23, 25, 0.32);
  pointer-events: none;
}

.vid-mini:hover img { transform: scale(1.06); opacity: 1; }

.vid-mini-spiel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--petrol);
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.vid-mini:hover .vid-mini-spiel { transform: translate(-50%, -50%) scale(1.1); }

/* ---------- Vertrauens-Leiste (helle Bühne, eigenständige Sektion) ---------- */

.kundenband {
  background: var(--bg);
  padding-block: clamp(48px, 7vh, 84px);
}

/* ---------- Einblicke (getönte Bühne, Videos) ---------- */

.einblicke {
  background:
    radial-gradient(800px 400px at 85% 110%, rgba(103, 205, 198, 0.14), transparent 60%),
    var(--bg-tint);
  padding-block: clamp(60px, 8.5vh, 108px);
}

.einblicke h2 {
  font-size: var(--fs-h2);
  max-width: 22ch;
}

.einblicke h2 em { color: var(--petrol); }

.einblicke-lead {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 14px;
  margin-bottom: clamp(32px, 4.5vh, 52px);
  font-size: 1.05rem;
}

.einblicke-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.einblicke-haupt { grid-column: 1 / -1; }

.einblicke-note {
  margin-top: clamp(20px, 3vh, 32px);
  font-size: 0.85rem;
  color: var(--ink-leise);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .oton-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .belege-neben { grid-template-columns: minmax(0, 1fr); }
  .einblicke-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .oton-karte { grid-template-columns: 72px minmax(0, 1fr); }
  .vid-mini-spiel { width: 26px; height: 26px; }
}

/* Sehr schmale Geräte: lange Motor-Chips dürfen schrumpfen und umbrechen */
@media (max-width: 380px) {
  .beleg-motor {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    white-space: normal;
    max-width: 100%;
  }
}

/* Kundenstimmen: rechte Spalte füllt die Bühne, kein Leerraum mehr */
.oton-grid { align-items: stretch; }

/* Kronzeugen-Karte: das Video füllt die Kartenhöhe (hochkant beschnitten),
   das Zitat sitzt unten. height:100% statt Attribut-Höhe (Check: CSS-width
   ⇒ height:auto bzw. explizite CSS-Höhe). */
.oton-gross { display: flex; flex-direction: column; }
.oton-gross .vid-schild { flex: 1; min-height: 0; }
.oton-gross .vid-schild img { height: 100%; }
.oton-gross .video-buehne { flex: 1; aspect-ratio: auto; }

@media (max-width: 1024px) {
  /* Einspaltig gibt es keine Bühnenhöhe: Video zurück auf 16:9 */
  .oton-gross .vid-schild { flex: none; }
  .oton-gross .vid-schild img { height: auto; }
  .oton-gross .video-buehne { flex: none; aspect-ratio: 16 / 9; }
}
.oton-neben {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}
.oton-neben .oton-karte {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

/* Das Fallstudien-Schaufenster (.sf-*) ist ein gemeinsamer Baustein und lebt
   in main.css (auch die Startseite nutzt es). */
