/* ============================================================
   Noah Amani — Design Tokens "Vienna Midnight" (P2.5)
   ============================================================ */

:root {
  --ink: #0B0E14;
  --carbon: #141821;
  --steel: #1F2530;
  --blood: #D33E3E;
  --blood-deep: #A82F2F;
  --blood-glow: rgba(200, 16, 46, 0.35);
  --bronze: #B08D57;
  --bronze-soft: #8C7045;
  --text: #FFFFFF;
  --bone: #F2EDE3;
  --mute: #8B92A0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --maxw: 1200px;
}

/* --- Reset --- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ============================================================
   Film-Korn / Grain
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Studien-Badge
   ============================================================ */
/* Blendet aus, sobald der Fussbereich im Blick ist: so ueberlagert der Badge
   die Kontakt-Sektion nicht mehr. Nur Opacity, keine Layout-Arbeit. */
.studie-badge {
  transition: opacity 300ms ease;
}
.studie-badge.is-out {
  opacity: 0;
  pointer-events: none;
}

.studie-badge {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 9200;
  pointer-events: none;
  background: var(--steel);
  border: 1px solid var(--line-strong);
  color: var(--bronze);
  font-family: "Oswald", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
}

/* Einheitlicher Studien-Streifen (Seite + Admin), präsent, aber statisch */
.studie-flag {
  /* Fester Platz über dem Studien-Footer statt fix über dem Inhalt: so
     verdeckt der Streifen keine Schaltfläche mehr. */
  margin: clamp(2rem, 6vh, 3.5rem) auto 0;
  width: fit-content;
  pointer-events: none;
  /* flex statt inline-flex: nur so greifen die auto-Margins und der Streifen
     steht mittig statt am linken Rand. */
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--steel);
  border: 1px solid var(--blood);
  border-left: 4px solid var(--blood);
  color: var(--bone);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border-radius: 3px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
/* roter Punkt als ruhiger Akzent (kein Blinken) */
.studie-flag::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blood);
  flex: none;
}
@media (max-width: 480px) {
  .studie-flag {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    padding: 0.55rem 0.9rem;
    left: 0.7rem;
    bottom: 0.7rem;
  }
}

/* ============================================================
   Kontakt-Leiste am rechten Rand
   Zwei Felder uebereinander, vertikal mittig, buendig am Rand: Telefon
   oben, WhatsApp darunter. Steht von Anfang an da, kein Einblenden beim
   Scrollen. Beide Felder blutrot mit leichtem Verlauf nach unten, Zeichen
   und Wort in Weiss.
   ============================================================ */
.kleiste {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9300;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--blood-deep);
  /* Zwei Lagen: harte Kantenabdunklung und ein weiter, weicher Wurf, dazu
     ein leiser roter Hauch. Statisch, nichts davon wird animiert. */
  box-shadow:
    -2px 0 10px rgba(0, 0, 0, 0.4),
    -16px 0 44px -10px rgba(0, 0, 0, 0.62),
    -10px 0 34px -14px var(--blood-glow);
}

.kleiste__feld {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, var(--blood) 0%, var(--blood-deep) 100%);
  color: var(--text);
  cursor: pointer;
  /* Nur transform, der Tonwechsel laeuft ueber die Deckkraft von ::before.
     Ein Verlauf selbst laesst sich nicht weich ueberblenden. */
  transition: transform 0.2s ease;
}

/* Der hellere Ton liegt fertig darueber und wird nur aufgeblendet. */
.kleiste__feld::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #E86363 0%, #C63C3C 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Zeichen und Wort muessen ueber der Aufhellung liegen. */
.kleiste__feld svg,
.kleiste__wort {
  position: relative;
  z-index: 1;
}

/* Trennlinie nur zwischen den Feldern, in einem dunkleren Rot. */
.kleiste__feld + .kleiste__feld {
  border-top: 1px solid #8A2525;
}

.kleiste__feld svg {
  width: 21px;
  height: 21px;
  display: block;
}

/* Das WhatsApp-Zeichen ist vollflaechig und traegt dadurch optisch mehr
   als der gestrichelte Hoerer. Eine Spur kleiner haelt beide im Gleichgewicht. */
.kleiste__feld--wa svg {
  width: 19px;
  height: 19px;
}

.kleiste__wort {
  font-family: "Oswald", sans-serif;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
}

.kleiste__feld:hover,
.kleiste__feld:focus-visible,
.kleiste__feld.is-aktiv {
  transform: translateX(-3px);
}

.kleiste__feld:hover::before,
.kleiste__feld:focus-visible::before,
.kleiste__feld.is-aktiv::before {
  opacity: 1;
}

.kleiste__feld:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -3px;
}

.kleiste__feld:active { transform: translateX(-3px) scale(0.96); }

/* ---------- Telefon-Popover ---------- */
/* Klappt links neben der Leiste auf, auf Hoehe des Telefon-Feldes. */
.telpop {
  position: fixed;
  right: calc(56px + 0.7rem);
  top: 50%;
  z-index: 9350;
  width: min(15rem, calc(100vw - 5.6rem));
  padding: 0.85rem 2rem 0.85rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--carbon);
  box-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(-100%) translateX(8px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.telpop.is-auf {
  opacity: 1;
  transform: translateY(-100%) translateX(0);
}

.telpop__titel {
  margin: 0 0 0.3rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
}

.telpop__nr {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.telpop__zeit {
  margin: 0.25rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--bone);
}

.telpop__studie {
  margin: 0.45rem 0 0;
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--mute);
  opacity: 0.85;
}

.telpop__zu {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.telpop__zu:hover { color: var(--text); }

@media (max-width: 480px) {
  .kleiste__feld { width: 50px; height: 50px; }
  .kleiste__feld svg { width: 19px; height: 19px; }
  /* Dasselbe Groessenverhaeltnis wie am Desktop beibehalten. */
  .kleiste__feld--wa svg { width: 17px; height: 17px; }
  .telpop { right: calc(50px + 0.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .kleiste__feld,
  .kleiste__feld::before,
  .telpop { transition: none; }
}

/* ============================================================
   Hero
   ============================================================ */
/* Cover: Bild und Titel nebeneinander, das Bild vollständig sichtbar.
   Keine feste Viewport-Höhe mehr, die Seite darf darunter anfangen. */
.hero {
  position: relative;
  background: var(--ink);
  padding-block: clamp(1.75rem, 4vh, 3rem) clamp(1.5rem, 4vh, 2.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
/* ── Galerie-Rahmen ──────────────────────────────────────────────────────
   Zwei Kanten mit Luft dazwischen, das Bild liegt eingelassen darin. Alles
   statisch: kein Hover, keine Transition, nichts, was pro Frame rechnet. */
.frame {
  margin: 0;
  padding: clamp(0.5rem, 0.9vw, 0.85rem);
  border: 1px solid var(--line);
  background: var(--carbon);
}
.frame__inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 232, 0.14);
}
.frame__img {
  display: block;
  width: 100%;
  height: auto;
  /* Startzustand der Scroll-Tiefe: minimal vergrößert, damit die Bewegung im
     Rahmen Platz hat. Ohne JS bleibt genau dieser Zustand stehen. */
  transform: scale(1.06);
  transform-origin: 50% 50%;
  will-change: transform;
}
/* Statischer Lichtverlauf an der Oberkante: gibt dem Ausschnitt Tiefe,
   als läge Glas davor. */
.frame__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(245, 240, 232, 0.07) 0%,
    rgba(245, 240, 232, 0) 18%
  );
}
.frame__cap {
  margin-top: 0.8rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero__cover { animation: heroFade 1.4s ease both; }

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Ein Reveal für alle Sektions-Einstiege: nur Opacity und Transform, per
   IntersectionObserver einmalig geschaltet (site.js). */
/* Der unsichtbare Startzustand gilt nur, wenn JS laeuft und ihn auch wieder
   aufloesen kann. Ohne JS steht der Inhalt sofort da. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__cover { animation: none; }
  /* Ohne Bewegung braucht das Bild auch keine Reserve: es steht unbeschnitten. */
  .frame__img { transform: none; will-change: auto; }
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile: Bild oben in voller Breite, Titel darunter */
@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.6rem, 5vh, 2.4rem);
  }
  /* Bild randbündig über die volle Breite, vollständig sichtbar. */
  .hero__cover {
    margin-inline: calc(-1 * clamp(1.25rem, 5vw, 3rem));
    border-inline: 0;
  }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow — DRAMA: rot, inkl. Mini-Linie */
/* Kapitel-Nummer vor Rubrik und Label, gleiches Muster auf der ganzen Seite. */
.kicker__num,
.label__num {
  margin-right: 0.85em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
  opacity: 0.55;
}

.kicker {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(0.72rem, 1.1vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blood);
  padding-bottom: clamp(0.9rem, 1.6vh, 1.2rem);
  margin-bottom: clamp(1.6rem, 3vh, 2.4rem);
  position: relative;
}
.kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 2px;
  background: var(--blood);
}

/* Riesiger Name */
.hero__name {
  font-family: "Anton", "Oswald", sans-serif;
  font-weight: 400;
  /* Typografisches Statement des Covers: an die Viewport-Breite gekoppelt,
     Versalien, enger Satz. Obergrenze so, dass AMANI in der Spalte bleibt. */
  font-size: clamp(2.8rem, 9.5vw, 8.75rem);
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text);
  /* dezente Tiefe — dunkel, kein Farbschein */
  text-shadow: 0 10px 44px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.hero__line { display: block; }

.hero__sub {
  margin-top: clamp(1.6rem, 3.2vh, 2.4rem);
  max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

/* Titel-Chips */
/* Hero-CTA: bewusst kein Button. Das Cover verkauft die Geschichte. */
.hero__cta {
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  padding: 0 0 0.35rem;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.hero__cta:hover,
.hero__cta:focus-visible {
  color: var(--text);
  border-bottom-color: var(--bronze);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
}
.chip {
  background: var(--carbon);
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.75);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-radius: 2px;
}
/* Letztes Chip (Zertifizierung) → Bronze (Ehrung) */
.chip:last-child {
  border-color: var(--bronze);
  color: var(--bronze);
}

/* Scroll-Hinweis */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-hint__line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--mute), transparent);
}
.scroll-hint__label {
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============================================================
   Sektionen (P2)
   ============================================================ */
.section {
  padding-block: clamp(5rem, 12vh, 9rem);
  border-top: 1px solid var(--line);
}

/* Section-Label — EDITORIAL/PREMIUM: bronze, inkl. Mini-Linie */
.label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 2.6rem;
}
.label__line {
  display: inline-block;
  width: 46px;
  height: 2px;
  background: var(--bronze);
  flex: none;
}

/* Dezenter Studien-Hinweis */
.studie-note {
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.4rem;
}

/* --- Vita (Magazin-Editorial) --- */
.vita__p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  line-height: 1.95;
}
.vita__p + .vita__p { margin-top: 2.1rem; }

/* Masthead-Zeile */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.3rem;
  margin-bottom: 2.8rem;
}
.masthead .label { margin-bottom: 0; }
.masthead__meta {
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Reportage-Aufmacher: links das Bild, rechts der Text. */
.editorial {
  display: grid;
  grid-template-columns: 49% 51%;
  gap: clamp(1.75rem, 3.2vw, 3rem);
  align-items: start;
}
.editorial__media { margin: 0; }
/* Bildspalte: Rahmen und darunter die Pull-Quote, damit beide Spalten auf
   ähnlicher Höhe enden. */
.editorial__side {
  display: flex;
  flex-direction: column;
}
.editorial__text {
  width: 100%;
  max-width: 62ch;
}

/* Drop-Cap im ersten Absatz */
.vita__lead::first-letter {
  font-family: "Anton", "Oswald", sans-serif;
  font-weight: 400;
  color: var(--bronze);
  float: left;
  font-size: 3.4em;
  line-height: 0.78;
  padding-right: 0.1em;
  margin-top: 0.04em;
}

/* Pull-Quote: zwischen zwei Haarlinien abgesetzt, mit kurzem Bronze-Segment
   als Akzent. Trägt die Sektion optisch, seit das Bild weg ist. */
.vita__quote {
  position: relative;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding-block: clamp(1.8rem, 4vh, 2.6rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  /* Die Zeilen der Quote sind fest gesetzt (span.line) und muessen in die
     Satzbreite passen, ohne zu brechen. */
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: var(--bone);
}
.vita__quote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 1px;
  background: var(--bronze);
}
.vita__quote .line { display: block; }

/* Editorial Mobile */
@media (max-width: 768px) {
  .editorial { grid-template-columns: 1fr; gap: 1.6rem; }
  .vita__lead::first-letter { font-size: 3em; }
  .vita__quote {
    margin: 1.8rem 0;
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    padding-left: 1.1rem;
  }
}

/* ============================================================
   Die Bilanz (Stats) — M3
   ============================================================ */
/* Ohne Bildspalte sind die vier Zahlen das Visual der Sektion. */
.bilanz__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.bilanz__stats {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
  padding-block: clamp(1.5rem, 5vh, 3.5rem);
}
/* extrem subtile Lichtquelle hinter den Zahlen → Flächen-Tiefe */
.bilanz__stats::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(58% 58% at 50% 45%, rgba(255, 255, 255, 0.045), transparent 70%);
}
/* Haarlinien-Trenner zwischen den Zahlen; die erste Spalte bleibt offen. */
.stat {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: clamp(0.6rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-family: "Anton", "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  /* weicher dunkler Halo → Zahlen schweben */
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.5);
}
.stat__label {
  display: block;
  margin-top: 0.45rem;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}
.bilanz__source {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* M4/M5: Titel & Bilanz als eine Erfolgs-Strecke */
.achievements .bilanz__grid { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ach__rule { margin: clamp(2rem, 4vw, 3rem) 0 1.1rem; }
.ach__rule-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
/* Titelliste über die volle Breite, zweispaltig */
.achievements .titles__list {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
}
.achievements .title-item__meta { font-variant-numeric: tabular-nums; }

/* Bilanz Mobile */
@media (max-width: 768px) {
  .bilanz__grid { gap: 1.8rem; }
  .bilanz__stats { grid-template-columns: 1fr 1fr; row-gap: clamp(1.8rem, 5vh, 2.6rem); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { padding-top: clamp(1.8rem, 5vh, 2.6rem); border-top: 1px solid var(--line); }
  .achievements .titles__list { grid-template-columns: 1fr; }
}

/* --- Titel & Erfolge --- */
.titles__list {
  list-style: none;
  max-width: 64ch;
  border-top: 1px solid var(--line);
}
.title-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.title-item__main {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.02em;
  color: var(--text);
}
/* Jahres-/Meta-Angaben → Bone, edel hervorgehoben */
.title-item__meta {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--bone);
  white-space: nowrap;
}
/* Letzter Eintrag (Auszeichnung) → Meta in Bronze */
.title-item:last-child .title-item__meta { color: var(--bronze); }
.titles__note { margin-top: 1.6rem; }

/* ============================================================
   Karten (Seminare / Events) — P3
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  /* box-shadow bewusst nicht animiert: teuer auf schwachen Geraeten. */
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--bronze);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}
/* CTA immer am Kartenboden → gleiche optische Linie */
.card .card__cta { margin-top: auto; }

.card__date {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.card__badge {
  align-self: flex-start;
  font-family: "Oswald", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
}

.card__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.2;
}

.card__place {
  font-size: 0.82rem;
  color: var(--mute);
}

.card__desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Roter Button / Link — Drama/Aktion */
.btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--blood);
  border: none;
  border-radius: 2px;
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--blood-deep); }

.cards__empty {
  color: var(--mute);
  font-size: 0.95rem;
}

/* Button-Varianten */
.btn--lg {
  font-size: 0.9rem;
  padding: 1rem 1.8rem;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--bone);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: transparent;
  border-color: var(--bone);
}

/* ============================================================
   Privatstunden
   ============================================================ */
/* Conversion-Sektion ohne Bild: Angebot, Ablauf, Anfrage. */
.private__text { max-width: 62ch; }
/* Bild-Seite: gerahmtes Foto, gleiche Kante wie die übrigen Flächen. */
.private__figure {
  position: relative;
  /* block statt flex: als Flex-Item behielte das Bild min-width:auto und
     sprengte damit seine Grid-Spalte. Der Rahmen gibt die Größe vor, das Bild
     liegt absolut darin. */
  display: block;
  min-width: 0;
  /* Hochformat-Rahmen: die Quelle ist hochkant und soll auch so stehen. */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--carbon);
  border: 1px solid var(--line);
}
/* dezenter Tiefe-Glow hinter der Figur (neutral, kein Rot) */
.private__figure::before {
  content: "";
  position: absolute;
  inset: 8% 0 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(48% 50% at 50% 42%, rgba(255, 255, 255, 0.07), transparent 70%);
}
.private__coach {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 26%;
}

.private__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.private__headline {
  font-family: "Anton", "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.2rem;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.5);
}
.private__text {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.private__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.private__tags li {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  border: 1px solid var(--bronze-soft);
  border-radius: 2px;
  padding: 0.45rem 0.85rem;
}
.private__content .btn { align-self: flex-start; }

/* Ablauf in drei Schritten, Haarlinie über jedem Schritt wie in der Titelliste. */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.step { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.step__num {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--bronze);
}
.step__title {
  margin-top: 0.7rem;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
  color: var(--text);
}
.step__text {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

/* Anfrage-Block: der Lead-Moment der Seite. Viel Luft, alles zentriert. */
.cta-block {
  margin-top: clamp(3rem, 9vh, 6rem);
  padding-top: clamp(2.5rem, 7vh, 4.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-block__eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}
.cta-block__line {
  margin: 1rem auto 0;
  max-width: 44ch;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--bone);
}
.cta-block .btn { margin-top: clamp(1.6rem, 4vh, 2.4rem); }
.cta-block__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--mute);
}

/* Privatstunden Mobile — muss NACH dem Desktop-Block stehen, sonst gewinnt
   dessen Zwei-Spalten-Regel bei gleicher Spezifität. */
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .private__content .btn { align-self: stretch; text-align: center; }
  .cta-block .btn { width: 100%; }
}

/* ============================================================
   Kontakt
   ============================================================ */
.contact__intro {
  max-width: 56ch;
  color: var(--bone);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}
/* Beide Seiten als edle Panels */
.contact__wa,
.contact__form {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.contact__wa {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.3rem;
}
.contact__lead {
  color: var(--bone);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.4;
}
.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.contact__wa .btn--lg { align-self: flex-start; }

/* ============================================================
   Felder (Inputs) — --line-strong
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field__label {
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.field__opt { letter-spacing: 0.06em; text-transform: none; opacity: 0.8; }

.field input,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.18s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blood);
}

.field__error {
  color: var(--blood);
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================================
   Modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(3px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--carbon);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 2rem;
}
.modal__x {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--mute);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.modal__x:hover { color: var(--text); }
.modal__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.modal__ref {
  font-size: 0.9rem;
  color: var(--bronze);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.4rem;
}
.modal__ref[hidden] { display: none; }
.modal__form { display: flex; flex-direction: column; gap: 1rem; }
.modal__actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 9600;
  background: var(--steel);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-size: 0.9rem;
  padding: 0.8rem 1.3rem;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.toast[hidden] { display: none; }
.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Lenis Smooth-Scroll (M7a)
   ============================================================ */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .modal__dialog { padding: 1.5rem; }
  /* CTAs voll breit → bessere Tap-Targets */
  .card .card__cta,
  .contact__wa .btn--lg { align-self: stretch; text-align: center; }
}

@media (max-width: 480px) {
  .chips { flex-direction: column; align-items: stretch; }
  .chip { text-align: center; }
  .studie-badge { font-size: 0.55rem; max-width: 46vw; }
}

/* ============================================================
   ADMIN (P6)
   ============================================================ */
.admin-body { min-height: 100svh; }

/* --- Login-Gate --- */
.login {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login[hidden] { display: none; }
.login__card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--carbon);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 2.2rem;
}
.login__studie {
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.login__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.login__hint {
  font-size: 0.82rem;
  color: var(--mute);
  margin-bottom: 0.4rem;
}
.login__hint strong { color: var(--bone); font-weight: 500; }

/* --- Dashboard --- */
.dash[hidden] { display: none; }
.dash__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.dash__brand {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--text);
}
.dash__studie {
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.7rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.dash__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100svh - 110px);
}

/* Sidebar */
.dash__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.4rem 0.9rem;
  border-right: 1px solid var(--line);
}
.nav-item {
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: var(--mute);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-item:hover { color: var(--bone); }
.nav-item.is-active {
  color: var(--bronze);
  border-left-color: var(--bronze);
}

/* Hauptbereich */
.dash__main { padding: clamp(1.5rem, 4vw, 2.8rem); }
.view { display: none; }
.view.is-active { display: block; }
.view[hidden] { display: none; }
.view__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.view__note { color: var(--mute); font-size: 0.95rem; }

/* --- Anfragen-Inbox (P7) --- */
.inbox__count {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.4rem;
}
.inbox__new { color: var(--bronze); }
.inbox__empty { color: var(--mute); font-size: 0.95rem; }

.inbox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
  max-width: 900px;
}

.acard {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.3rem;
}
.acard--done { opacity: 0.55; }

.acard__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.acard__badge {
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  color: var(--text);
}
.acard__badge.is-neu { background: var(--blood); }
.acard__badge.is-prog { background: var(--bronze); color: var(--ink); }
.acard__badge.is-done { background: var(--steel); color: var(--mute); }

.acard__typ {
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.acard__bezug {
  font-size: 0.85rem;
  color: var(--bronze);
}
.acard__name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.acard__contact { font-size: 0.85rem; color: var(--bone); }
.acard__msg {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}
.acard__date { font-size: 0.78rem; color: var(--mute); }

.acard__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.acard__sbtn {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--mute);
  font-family: "Oswald", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.acard__sbtn:hover { color: var(--bone); }
.acard__sbtn.is-active {
  color: var(--text);
  border-color: var(--bronze);
}

.acard__notebox { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; }
.acard__notiz {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  padding: 0.6rem 0.7rem;
  resize: vertical;
}
.acard__notiz:focus { outline: none; border-color: var(--blood); }
.acard__noterow { display: flex; align-items: center; gap: 0.8rem; }
.acard__saved { font-size: 0.78rem; color: var(--bronze); }
.acard__saved[hidden] { display: none; }

.btn--sm {
  font-size: 0.68rem;
  padding: 0.45rem 0.9rem;
}
/* Löschen: dauerhaft rot sichtbar, Hover füllt */
.btn--danger {
  color: var(--blood);
  border-color: var(--blood);
}
.btn--danger:hover,
.btn--danger:focus-visible {
  background: var(--blood);
  color: var(--text);
  border-color: var(--blood);
}

/* --- Seminare/Events CRUD (P8) --- */
.view__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.view__head .view__title { margin-bottom: 0; }

.editpanel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--carbon);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  max-width: 560px;
}
.editpanel[hidden] { display: none; }
.editpanel__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}
.editpanel__actions { display: flex; gap: 0.8rem; margin-top: 0.3rem; }

.adminlist {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 760px;
}
.adminrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem 1.2rem;
}
.adminrow__date {
  font-size: 0.78rem;
  color: var(--bone);
}
.adminrow__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.adminrow__sub { font-size: 0.82rem; color: var(--mute); }
.adminrow__actions { display: flex; gap: 0.5rem; }
.adminrow__actions[hidden] { display: none; }
.adminrow__confirm {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.adminrow__confirm[hidden] { display: none; }
.adminrow__q { font-size: 0.85rem; color: var(--bone); }
.adminrow--ticket { align-items: flex-start; }
.adminrow--ticket .acard__head { margin-bottom: 0.4rem; }

/* --- Unterschrift-Modal (P8.5) --- */
.sig-dialog { max-width: 520px; }
.sig-meta {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sig-meta__row {
  display: flex;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.sig-meta__row dt {
  flex: 0 0 90px;
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 0.15rem;
}
.sig-meta__row dd { margin: 0; color: var(--bone); }
.sig-clause {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.sig-canvas {
  display: block;
  width: 100%;
  height: 180px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  touch-action: none; /* verhindert Scrollen beim Zeichnen */
  cursor: crosshair;
}
#sig-error { margin-top: 0.5rem; }

/* --- Dokumente (P8.7) --- */
.doc-chooser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 560px;
  margin-bottom: 1.6rem;
}
.doc-chooser[hidden] { display: none; }
.doc-tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  background: var(--carbon);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 1.3rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.doc-tile:hover { border-color: var(--bronze); }
.doc-tile__t {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.doc-tile__s { font-size: 0.8rem; color: var(--mute); }

.doc-ezb {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.doc-ezb[hidden] { display: none; }
.doc-ezb legend {
  padding: 0 0.4rem;
  color: var(--bronze);
}
.doc-mailhint {
  font-size: 0.8rem;
  color: var(--mute);
  border-left: 2px solid var(--line-strong);
  padding-left: 0.7rem;
  margin-top: -0.3rem;
}

.sigpad { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.sigpad[hidden] { display: none; }
.sigpad__label {
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.sigpad .sig-canvas { height: 150px; }
.sigpad .btn { align-self: flex-start; }

/* Admin Mobile: Sidebar → horizontale Leiste */
@media (max-width: 720px) {
  .dash__body { grid-template-columns: 1fr; min-height: 0; }
  .dash__nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem);
  }
  .nav-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.7rem;
  }
  .nav-item.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--bronze);
  }
  .inbox { grid-template-columns: 1fr; }
  .adminrow { flex-direction: column; align-items: flex-start; }
  .sp__item { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* --- Sportler-Ansicht (P8.8) --- */
.sportler {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 820px;
}
.sp {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.sp__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  text-align: left;
  transition: background 0.15s ease;
}
.sp__head:hover { background: var(--steel); }
.sp__name {
  flex: 1;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}
.sp__counts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sp__badge {
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.25rem 0.55rem;
}
.sp__chev {
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--bronze);
  width: 1.2rem;
  text-align: center;
}
.sp__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  padding: 0 1.3rem 1.3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.sp__body[hidden] { display: none; }
.sp__bt {
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.7rem;
}
.sp__empty { color: var(--mute); font-size: 0.88rem; }
.sp__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.sp__item:last-child { border-bottom: none; }
.sp__item-info { display: flex; flex-direction: column; gap: 0.3rem; }
.sp__item-typ {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.sp__item-meta { font-size: 0.78rem; color: var(--mute); }
.sp__item-act { display: flex; gap: 0.4rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .sp__body { grid-template-columns: 1fr; }
}

/* --- Sportler-Kartei (P10a) --- */
.sp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  max-width: 820px;
}
.sp-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sp-card:hover { border-color: var(--bronze); transform: translateY(-2px); }
.sp-card__name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}
.sp-card__sub { font-size: 0.82rem; color: var(--mute); }
.sp-card__counts {
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 0.4rem;
}

#sp-back { margin-bottom: 1.4rem; }
.sp-detail { max-width: 760px; }
.sp-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}
.sp-detail__name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.sp-detail__kvs { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.sp-detail__kv { display: flex; gap: 0.7rem; font-size: 0.9rem; }
.sp-detail__kv dt {
  flex: 0 0 110px;
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 0.15rem;
}
.sp-detail__kv dd { margin: 0; color: var(--bone); }
.sp-detail__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sp-detail__confirm {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-basis: 100%;
}
.sp-detail__confirm[hidden] { display: none; }

.sp-coll {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.6rem;
}
.sp-coll__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.sp-coll__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.sp-coll__hint { font-size: 0.85rem; color: var(--mute); }

@media (max-width: 720px) {
  .sp-cards { grid-template-columns: 1fr; }
}

/* --- Hinzufügen-Auswahl + Sammlung (P10b) --- */
.sp-add-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}
.sp-add-tile {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--steel);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.sp-add-tile:hover { border-color: var(--bronze); }
.sp-add-tile__t {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.sp-add-tile__s { font-size: 0.8rem; color: var(--mute); }

.sp-coll__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 0.8rem;
}
.sp-coll__block .sp__bt { margin-bottom: 0.6rem; }
@media (max-width: 720px) {
  .sp-coll__grid { grid-template-columns: 1fr; }
}

/* --- Rechnungs-Modul (P9) --- */
.inv-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.inv-pos { margin: 0.4rem 0; }
.inv-pos__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.inv-posrow {
  display: grid;
  grid-template-columns: 1fr 80px 110px 90px auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.inv-posrow input {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  padding: 0.55rem 0.6rem;
  min-width: 0;
}
.inv-posrow input:focus { outline: none; border-color: var(--blood); }
.inv-betrag {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--bone);
  text-align: right;
  white-space: nowrap;
}
.inv-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
.inv-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--blood); }

.inv-totals {
  margin-top: 0.4rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  max-width: 320px;
  margin-left: auto;
}
.inv-tline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--bone);
  padding: 0.25rem 0;
}
.inv-tline--sum {
  border-top: 1px solid var(--line-strong);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}
.inv-tnote {
  font-size: 0.78rem;
  color: var(--mute);
  padding: 0.3rem 0;
}

@media (max-width: 720px) {
  .inv-row2 { grid-template-columns: 1fr; }
  .inv-posrow { grid-template-columns: 1fr 60px 90px; }
  .inv-posrow .inv-betrag { grid-column: 1 / -1; text-align: left; }
  .inv-posrow [data-pos-del] { grid-column: 1 / -1; justify-self: start; }
  .inv-totals { max-width: none; }
}

/* ============================================================
   Studien-Kennzeichnung (Seite + Admin)
   ============================================================ */
.studie-footer {
  padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--mute);
}
.studie-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.studie-footer a:hover { color: var(--text); }


/* ============================================================
   Gefuehrter Rundgang (Front und Studio)
   Optik aus den Tokens dieser Seite: Carbon-Grund, Blut-Akzent,
   Oswald fuer Beschriftungen. Bewegung nur ueber opacity.
   ============================================================ */

/* Startdialog, oben mittig. */
.tour-dialog {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9100;
  width: min(23rem, calc(100vw - 2rem));
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(20, 24, 33, 0.97);
  color: var(--text);
}

.tour-dialog__titel {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.tour-dialog__text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--mute);
}

.tour-dialog__wege {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

/* Spotlight-Schicht. Die Huelle selbst faengt keine Klicks, nur die
   Sperrflaechen und die Karte tun das. */
.tour {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.tour__maske {
  position: fixed;
  background: rgba(11, 14, 20, 0.78);
  pointer-events: auto;
}

.tour__maske--voll {
  inset: 0;
}

/* Im freien Schritt bleibt alles bedienbar, nur der Ring zeigt hin. */
.tour--frei .tour__maske {
  display: none;
}

.tour__ring {
  position: fixed;
  border: 1px solid var(--blood);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(211, 62, 62, 0.25);
  pointer-events: none;
}

.tour--frei .tour__ring {
  display: block;
}

.tour__karte {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(23rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(20, 24, 33, 0.97);
  color: var(--text);
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.tour__karte--mitte {
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Solange ein Bearbeiten-Fenster offen steht, tritt die Karte zurueck. */
.tour__karte.is-zurueck {
  opacity: 0.35;
  pointer-events: none;
}

.tour__zaehler {
  font-family: "Oswald", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.tour__titel {
  margin-top: 0.3rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.tour__text {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mute);
}

.tour__aufgabe {
  margin-top: 0.7rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(211, 62, 62, 0.45);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.tour__aufgabe.is-fertig {
  border-color: rgba(176, 141, 87, 0.55);
  color: var(--bronze);
}

.tour__wege {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tour__luecke {
  flex: 1;
}

.tour-btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--mute);
  font-family: "Oswald", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tour-btn:hover {
  color: var(--text);
}

.tour-btn:active {
  transform: scale(0.97);
}

.tour-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tour-btn--primaer {
  background: var(--blood);
  border-color: var(--blood);
  color: var(--text);
}

.tour-btn:focus-visible,
.tour-dialog button:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* Waehrend der Rundgang laeuft, steht die Seite still. */
html.tour-laeuft,
html.tour-laeuft body {
  overflow: hidden;
}

@media (max-width: 640px) {
  /* Unter der Kopfzeile, sonst deckt der Dialog die Wortmarke zu. */
  .tour-dialog {
    top: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-btn,
  .tour__karte {
    transition: none;
  }
}

/* ---------- Studie zuruecksetzen ---------- */
.studio-reset {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(211, 62, 62, 0.55);
  border-radius: 999px;
  background: none;
  color: var(--blood);
  font-family: "Oswald", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.studio-reset:hover {
  opacity: 0.8;
}

.studio-reset:active {
  transform: scale(0.97);
}

/* Rundgang-Knopf im Fussbereich der Front. */
.studie-footer__rundgang {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bronze);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}


/* ============================================================
   Nachrichtenfenster der Seite
   Optik aus den Tokens dieser Seite. Bewusst KEIN WhatsApp-Nachbau:
   kein fremdes Logo, keine gruenen Blasen, keine Haken.

   Raumaufteilung: das Fenster haengt links neben der Kontakt-Leiste und
   steht vertikal mittig. Es waechst mit dem Gespraech nach beiden Seiten
   aus der Mitte, deshalb kann es an keiner Kante aus dem Bild laufen. Die
   max-height ist die harte Grenze, ab da scrollt der Verlauf.
   ============================================================ */

.chat {
  position: fixed;
  right: calc(56px + 0.7rem);
  top: 50%;
  z-index: 9400;
  width: min(23rem, calc(100vw - 5.6rem));
  max-height: calc(100vh - 1.6rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--carbon);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 24px 60px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(-50%) translateX(10px) scale(0.985);
  transform-origin: center right;
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat.is-auf {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

/* ---------- Kopfzeile ---------- */
/* Kraeftiger als der Verlauf darunter: ein dunkler Blutrot-Verlauf traegt
   das Portrait und setzt das Fenster als eigene Karte ab. */
.chat__kopf {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  background: linear-gradient(135deg, #2a1418 0%, var(--carbon) 62%);
  border-bottom: 1px solid var(--line-strong);
}

.chat__portrait {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--steel);
}

.chat__wer {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  flex: 1;
}

.chat__name {
  font-family: "Oswald", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.chat__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--mute);
  line-height: 1.2;
}

.chat__punkt {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #4ea87a;
}

.chat__zu {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat__zu:hover { color: var(--text); }
.chat__zu:active { transform: scale(0.94); }

/* ---------- Verlauf ---------- */
/* Einen Ton heller als die Kopfzeile, damit die Blasen darauf stehen. */
.chat__verlauf {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 3.6rem;
  max-height: 17rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.8rem;
  background: var(--steel);
  scrollbar-width: thin;
}

.chat__verlauf::-webkit-scrollbar { width: 6px; }
.chat__verlauf::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--line-strong);
}

.chat__blase {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  max-width: 84%;
  padding: 0.45rem 0.65rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat__wort {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat__zeit {
  flex-shrink: 0;
  align-self: flex-end;
  font-size: 0.62rem;
  line-height: 1.6;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.chat__blase--trainer {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: #2b323d;
  color: var(--bone);
}

.chat__blase--ich {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--blood);
  color: var(--text);
}

.chat__blase--ich .chat__zeit { opacity: 0.75; }

/* Drei Punkte, nur transform und opacity. */
.chat__tippt {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0.7rem;
}

.chat__tippt i {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--mute);
  animation: chatTippt 1.1s ease-in-out infinite;
}

.chat__tippt i:nth-child(2) { animation-delay: 0.16s; }
.chat__tippt i:nth-child(3) { animation-delay: 0.32s; }

@keyframes chatTippt {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* ---------- Eingabe ---------- */
.chat__eingabe {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem 0;
  background: var(--carbon);
}

.chat__feld {
  flex: 1;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.chat__feld::placeholder { color: var(--mute); }
.chat__feld:focus-visible { outline: 2px solid var(--bronze); outline-offset: 1px; }
.chat__feld:disabled { opacity: 0.5; }

.chat__senden {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blood);
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat__senden svg { width: 19px; height: 19px; display: block; }
.chat__senden:hover { opacity: 0.9; }
.chat__senden:active { transform: scale(0.94); }
.chat__senden:disabled { opacity: 0.4; cursor: not-allowed; }

.chat__studie {
  padding: 0.5rem 0.8rem 0.7rem;
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--mute);
  opacity: 0.85;
  background: var(--carbon);
}

/* Am Handy fast ueber die ganze Breite, rechts bleibt die Leiste frei,
   damit sie das Fenster auch wieder schliessen kann. */
@media (max-width: 640px) {
  .chat {
    right: calc(50px + 0.6rem);
    left: 0.6rem;
    width: auto;
    max-height: calc(100vh - 1.2rem);
  }

  .chat__verlauf { max-height: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chat,
  .chat__zu,
  .chat__senden { transition: none; }
  .chat__tippt i { animation: none; opacity: 0.7; }
}
