/* SR Sales Trainer — Schild-Roth-Designsystem (Leitpalette Web, tokens.json 01.09.2026)
   Layout-Vorbild: ElevenLabs Web (helle Produktoberfläche, linke Werkzeugleiste, Karten). */

:root {
  --sr-navy: #1A2D42; --sr-navy-2: #1F3550;
  --sr-red: #C41230; --sr-red-dark: #9A0E26; --sr-red-soft: #E84B6A;
  --sr-blue: #2B3990;
  --sr-ink: #3A4A5C; --sr-muted: #6B7B8D; --sr-line: #E2E8F0;
  --sr-cool-gray: #F5F5F8; --sr-rose-tint: #FDE8EC; --sr-white: #FFFFFF;
  --sr-success: #28A745; --sr-warning: #E8A317;
  --sr-font-heading: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif;
  --sr-font-body: Calibri, Carlito, 'Segoe UI', Arial, Helvetica, sans-serif;
  --sr-radius: 6px;
  --sr-sidebar: 15rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sr-white); color: var(--sr-ink);
  font-family: var(--sr-font-body); font-size: 16px; line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--sr-font-heading); font-weight: 700; color: var(--sr-navy); margin: 0; line-height: 1.2; }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
a { color: var(--sr-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--sr-blue); outline-offset: 2px; }

/* ---------- Shell: Werkzeugleiste links, Inhalt rechts ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sr-sidebar); flex: none; background: var(--sr-cool-gray);
  border-right: 1px solid var(--sr-line); display: flex; flex-direction: column;
  padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh;
}
.brand { display: block; padding: 0 .5rem .25rem; }
.brand img { width: 160px; height: auto; display: block; }
.nav { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.kicker {
  font-family: var(--sr-font-body); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sr-muted); font-weight: 700;
}
.nav .kicker { padding: 0 .5rem; margin-bottom: .35rem; }
.nav a {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem;
  border-radius: var(--sr-radius); color: var(--sr-ink); font-size: .95rem;
  border-left: 3px solid transparent;
}
.nav a:hover { background: var(--sr-white); text-decoration: none; }
.nav a[aria-current="page"] {
  background: var(--sr-white); color: var(--sr-navy); font-weight: 700;
  border-left-color: var(--sr-red);
}
.nav svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none;
           stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--sr-line); }
.who { font-size: .9rem; color: var(--sr-navy); font-weight: 700; }
.who small { display: block; font-weight: 400; color: var(--sr-muted); font-size: .78rem; }
.sidebar-foot form { margin: .6rem 0 0; }

.content { flex: 1; min-width: 0; padding: 2.5rem 3rem 4rem; position: relative; z-index: 1; }
.page-head { margin-bottom: 1.75rem; max-width: 60ch; }
.page-head .kicker { margin-bottom: .4rem; }
.page-head .lead { color: var(--sr-muted); margin: .5rem 0 0; }
.wrap { max-width: 52rem; }
.wrap-wide { max-width: 78rem; }

/* Angeschnittenes Schild-Wasserzeichen unten rechts (BRAND.md §4, 8 % Deckkraft). */
.watermark {
  position: fixed; right: -6vw; bottom: -12vh; width: 28vw; min-width: 260px;
  opacity: .08; pointer-events: none; z-index: 0; user-select: none;
}

/* ---------- Bausteine ---------- */
.card {
  background: var(--sr-white); border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}
.card-tint { background: var(--sr-cool-gray); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.4rem;
  background: var(--sr-cool-gray); border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius); color: var(--sr-ink); min-height: 8.5rem;
  transition: border-color .15s ease, background .15s ease;
}
.tile:hover { text-decoration: none; background: var(--sr-white); border-color: var(--sr-navy); }
.tile strong { font-family: var(--sr-font-heading); color: var(--sr-navy); font-size: 1.05rem; }
.tile span { color: var(--sr-muted); font-size: .92rem; }
.tile svg { width: 22px; height: 22px; stroke: var(--sr-red); fill: none; stroke-width: 1.8;
            stroke-linecap: round; stroke-linejoin: round; margin-bottom: .35rem; }
.tile-primary { background: var(--sr-navy); border-color: var(--sr-navy); color: #fff; }
.tile-primary strong, .tile-primary span { color: #fff; }
.tile-primary span { opacity: .8; }
.tile-primary svg { stroke: var(--sr-red-soft); }
.tile-primary:hover { background: var(--sr-navy-2); border-color: var(--sr-navy-2); }

.btn {
  display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 700;
  padding: .6rem 1.2rem; border-radius: var(--sr-radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sr-red); color: #fff; }
.btn-primary:hover { background: var(--sr-red-soft); }
.btn-secondary { background: var(--sr-blue); color: #fff; }
.btn-secondary:hover { background: #3a49a8; }
.btn-ghost { background: var(--sr-white); color: var(--sr-navy); border-color: var(--sr-line); }
.btn-ghost:hover { border-color: var(--sr-navy); }
.btn-navy { background: var(--sr-navy); color: #fff; }
.btn-navy:hover { background: var(--sr-navy-2); }
.btn-sm { padding: .3rem .7rem; font-size: .85rem; font-weight: 600; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }

label { display: block; font-size: .82rem; font-weight: 700; color: var(--sr-navy); margin: .9rem 0 .3rem; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--sr-ink);
  background: var(--sr-white); border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius); padding: .55rem .7rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sr-blue);
  box-shadow: 0 0 0 3px rgba(43,57,144,.12); }
textarea { resize: vertical; line-height: 1.45; }
.hint { color: var(--sr-muted); font-size: .85rem; margin: .3rem 0 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--sr-line); border-radius: var(--sr-radius); background: var(--sr-white); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--sr-line);
         font-size: .92rem; vertical-align: top; }
th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sr-muted);
     background: var(--sr-cool-gray); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--sr-muted); font-size: .8rem; }
.num { font-variant-numeric: tabular-nums; }

.tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
       font-weight: 700; padding: .15rem .5rem; border-radius: 999px;
       background: var(--sr-cool-gray); color: var(--sr-muted); white-space: nowrap; vertical-align: middle; }
.tag-warn { background: #FBF1DC; color: #8A5E00; }
.tag-rose { background: var(--sr-rose-tint); color: var(--sr-red-dark); }
.notice { border-left: 3px solid var(--sr-warning); background: #FBF1DC; padding: .8rem 1rem;
          border-radius: var(--sr-radius); margin-bottom: 1rem; }
.notice-error { border-left-color: var(--sr-red); background: var(--sr-rose-tint); }
.muted { color: var(--sr-muted); }
.empty { color: var(--sr-muted); padding: 1.5rem; text-align: center; border: 1px dashed var(--sr-line); background: var(--sr-white);
         border-radius: var(--sr-radius); }

/* KPI mit rotem Akzentbalken (BRAND.md: 3 px Rot als Akzent) */
.kpi { border-left: 3px solid var(--sr-red); padding-left: 1rem; }
.kpi-value { font-family: var(--sr-font-heading); font-size: 2.4rem; color: var(--sr-navy); line-height: 1; }
.kpi-value small { font-size: 1rem; color: var(--sr-muted); font-family: var(--sr-font-body); font-weight: 400; }
.bar { background: var(--sr-line); border-radius: 999px; height: 8px; overflow: hidden; margin: .5rem 0; }
.bar span { display: block; height: 100%; background: var(--sr-navy); border-radius: 999px; }
blockquote { margin: .5rem 0; padding: .5rem .9rem; border-left: 3px solid var(--sr-line);
             color: var(--sr-ink); background: var(--sr-cool-gray); border-radius: 0 var(--sr-radius) var(--sr-radius) 0; }
blockquote.me { border-left-color: var(--sr-red); }

/* Anrufkonsole (Trainings-Call): die Leitung ist das zentrale Element der Seite. */
.console { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.line-state { display: inline-flex; align-items: center; gap: .7rem; padding: .65rem 1.3rem;
              border-radius: 999px; background: var(--sr-cool-gray); border: 1px solid var(--sr-line);
              font-weight: 700; color: var(--sr-navy); font-size: .95rem;
              box-shadow: 0 0 0 0 rgba(196,18,48,0); transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
.line-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sr-muted); flex: none; }
.console.live .line-dot { background: var(--sr-red); box-shadow: 0 0 0 0 rgba(196,18,48,.45); animation: pulse 1.6s ease-out infinite; }
.console.live .line-state { border-color: var(--sr-red-soft); background: var(--sr-rose-tint);
                             box-shadow: 0 0 0 6px rgba(196,18,48,.1), 0 6px 24px -6px rgba(196,18,48,.35); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(196,18,48,.45); } 100% { box-shadow: 0 0 0 12px rgba(196,18,48,0); } }
@media (prefers-reduced-motion: reduce) { .console.live .line-state { transition: none; } }
.timer { font-family: var(--sr-font-heading); font-size: 1.6rem; color: var(--sr-navy); font-variant-numeric: tabular-nums; min-width: 4.5ch; }
.status-line { margin-top: 1rem; color: var(--sr-ink); display: flex; align-items: center; gap: .5rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--sr-muted);
              box-shadow: 0 0 0 3px rgba(107,123,141,.15); transition: background-color .25s ease, box-shadow .25s ease; }
.status-dot--connecting { background: var(--sr-muted); box-shadow: 0 0 0 3px rgba(107,123,141,.15); }
.status-dot--connected { background: var(--sr-success); box-shadow: 0 0 5px 2px rgba(40,167,69,.5); }
.status-dot--failed { background: var(--sr-red); box-shadow: 0 0 5px 2px rgba(196,18,48,.4); }

.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--sr-cool-gray); padding: 1.5rem; }
.login-card { width: 100%; max-width: 24rem; background: var(--sr-white); border: 1px solid var(--sr-line);
              border-radius: var(--sr-radius); padding: 2.25rem 2rem; position: relative; z-index: 1; }
.login-card .brand img { width: 180px; margin: 0 auto 1.5rem; }

@media (prefers-reduced-motion: reduce) { .console.live .line-dot { animation: none; } .tile { transition: none; } }

@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: static; padding: 1rem; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .75rem; }
  .nav-group { flex-direction: row; flex-wrap: wrap; gap: .25rem; }
  .nav .kicker { display: none; }
  .sidebar-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .sidebar-foot form { margin: 0; }
  .content { padding: 1.5rem 1.25rem 5rem; }
  h1 { font-size: 1.6rem; }
  .watermark { width: 60vw; }
}

/* ---------- Rückruf-Loop (Gamification Schritt 2: Q7/Q8/Q9/Q15) ---------- */
.rueckruf-kopf { display: flex; align-items: center; gap: .75rem; }
.ring-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sr-muted); flex: none; }
/* Listening indicator (Timothy, 04.09.2026): a ring of dots like the OMI app icon,
   one grey dot running around it like a loading cycle while the coach listens. */
.omi { position: relative; width: 44px; height: 44px; flex: none; display: none; }
.rueckruf.hoert .omi { display: block; }
.rueckruf.hoert .ring-dot { display: none; }
.omi i { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%;
  background: var(--sr-line); transform: rotate(var(--a)) translateY(-17px); animation: omi-lauf 1.6s linear infinite; animation-delay: var(--d); }
.omi i:nth-child(1) { --a: 0deg; --d: 0s; } .omi i:nth-child(2) { --a: 45deg; --d: .2s; }
.omi i:nth-child(3) { --a: 90deg; --d: .4s; } .omi i:nth-child(4) { --a: 135deg; --d: .6s; }
.omi i:nth-child(5) { --a: 180deg; --d: .8s; } .omi i:nth-child(6) { --a: 225deg; --d: 1s; }
.omi i:nth-child(7) { --a: 270deg; --d: 1.2s; } .omi i:nth-child(8) { --a: 315deg; --d: 1.4s; }
@keyframes omi-lauf { 0%, 20% { background: var(--sr-muted); transform: rotate(var(--a)) translateY(-17px) scale(1.35); }
  40%, 100% { background: var(--sr-line); transform: rotate(var(--a)) translateY(-17px) scale(1); } }
.rueckruf-restzeit { display: block; font-size: .85rem; color: var(--sr-muted); font-variant-numeric: tabular-nums; margin-top: .15rem; }
.rueckruf.klingelt { border-color: var(--sr-red-soft); background: var(--sr-rose-tint); }
.rueckruf.klingelt .ring-dot { background: var(--sr-red); animation: pulse 1s ease-out infinite; }
.rueckruf.klingelt h3 { animation: wackeln 5s linear infinite; }
@keyframes wackeln { 0%, 20% { transform: translateX(0); } 3%, 9%, 15% { transform: translateX(-2px); } 6%, 12%, 18% { transform: translateX(2px); } }
.verlauf { margin: .75rem 0; display: grid; gap: .3rem; }
.verlauf-zeile { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--sr-line); font-size: .95rem; }
.verlauf-label { color: var(--sr-muted); }
.verlauf-wert { font-weight: 700; color: var(--sr-navy); font-variant-numeric: tabular-nums; text-align: right; }
.rueckruf-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.drill-ergebnis { display: grid; gap: .25rem; margin: .75rem 0; padding: .75rem 1rem; border-left: 3px solid var(--sr-navy); background: var(--sr-cool-gray); border-radius: 0 var(--sr-radius) var(--sr-radius) 0; }
.drill-zahl { font-family: var(--sr-font-heading); color: var(--sr-navy); }
.loop-steps { display: inline-flex; align-items: center; gap: .25rem; margin: 0 .5rem; vertical-align: middle; }
.loop-steps .step { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--sr-line); color: var(--sr-muted); background: var(--sr-white); }
.loop-steps .step.done { border-color: var(--sr-navy); color: #fff; background: var(--sr-navy); }
.loop-zeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid var(--sr-line); }
.loop-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }
.debrief { border-left: 3px solid var(--sr-red); }
.debrief-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.debrief-steuerung { display: flex; align-items: center; gap: .75rem; margin-top: .9rem; }
.debrief-fortschritt { flex: 1; margin: 0; }
.debrief-fortschritt span { background: var(--sr-red); transition: width .3s linear; }
.debrief-text { margin: .75rem 0 0; min-height: 1.5rem; color: var(--sr-navy); font-style: italic; }
.debrief.spricht .debrief-text { border-left: 3px solid var(--sr-red-soft); padding-left: .75rem; }
.drill-angebot { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--sr-line); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.drill-angebot .hint { flex-basis: 100%; }
.kriterium { transition: background .3s ease, border-color .3s ease; }
.kriterium.aktiv { border-color: var(--sr-red); background: #FFF7F8; box-shadow: inset 3px 0 0 var(--sr-red); }
blockquote.aktiv { outline: 2px solid var(--sr-red); background: var(--sr-rose-tint); }
@media (prefers-reduced-motion: reduce) { .rueckruf.klingelt h3, .rueckruf.klingelt .ring-dot, .omi i { animation: none; } }

/* Skillfaktor (Gamification Schritt 3): Wertungs-Hinweis vor der Runde, Skill-Karte */
.wertung { margin-top: .6rem; padding: .5rem .75rem; border-radius: 8px; font-size: .9rem; }
.wertung.gewertet { background: #E6F4EA; color: #1E5E33; }
.wertung.uebung { background: #FBF1DC; color: #8A5E00; }
.skill-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: .75rem; }
.skill-format { padding: .75rem 1rem; border-radius: 10px; background: var(--sr-rose-tint, #FBF2F3); }
.skill-format .skill-zahl { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.skill-format .skill-stufe { display: block; margin-top: .25rem; font-weight: 600; }
.skill-format .sub { display: block; font-size: .85rem; opacity: .75; margin-top: .2rem; }
.skill-gesamt { margin-top: .75rem; font-weight: 600; }

/* Wochen-Serie + Einstieg + Meilenstein (Gamification Schritt 4) */
.serie-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.serie-zahl { text-align: right; line-height: 1; }
.serie-zahl .num { font-family: var(--sr-font-heading); font-size: 2.4rem; font-weight: 700; color: var(--sr-navy); display: block; }
.serie-zahl small { color: var(--sr-muted); }
.serie-woche { margin: .75rem 0 .5rem; }
.serie-tage { display: flex; gap: .4rem; flex-wrap: wrap; }
.serie-tag { display: inline-flex; flex-direction: column; align-items: center; min-width: 3.6rem; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--sr-line); background: var(--sr-white); font-weight: 700; color: var(--sr-navy); }
.serie-tag small { font-weight: 500; font-size: .7rem; color: var(--sr-muted); }
.serie-tag.trainiert { background: var(--sr-navy); border-color: var(--sr-navy); color: #fff; }
.serie-tag.trainiert small { color: #fff; }
.serie-tag.feiertag, .serie-tag.abwesend { background: var(--sr-cool-gray); border-style: dashed; }
.serie-tag.verpasst { background: var(--sr-rose-tint); border-color: var(--sr-red-soft); color: var(--sr-red-dark); }
.serie-freeze { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: .75rem 0 0; font-size: .85rem; }
.tag-ok { background: #E6F4EA; color: #1E5E33; }
.serie-verlauf { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .75rem; }
.serie-kw { display: inline-flex; flex-direction: column; align-items: center; padding: .25rem .5rem; border-radius: 6px; font-size: .75rem; border: 1px solid var(--sr-line); color: var(--sr-muted); }
.serie-kw small { font-size: .65rem; }
.serie-kw.erreicht { background: var(--sr-navy); border-color: var(--sr-navy); color: #fff; }
.serie-kw.freeze { background: #E3F0FB; border-color: #8FB8E6; color: #1B4F7A; }
.serie-kw.abwesend { border-style: dashed; }
.serie-kw.verfehlt { background: var(--sr-rose-tint); border-color: var(--sr-red-soft); color: var(--sr-red-dark); }
.serie-zeile { margin: .5rem 0 1rem; color: var(--sr-navy); }
.einstieg-bar span { background: var(--sr-red); transition: width .4s ease; }
.einstieg-schritte { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.einstieg-schritte li { display: flex; align-items: center; gap: .5rem; color: var(--sr-muted); }
.einstieg-schritte li small { white-space: nowrap; color: var(--sr-muted); font-weight: 500; }
.einstieg-schritte li.done { color: var(--sr-navy); font-weight: 600; }
.einstieg-schritte .check { width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1px solid var(--sr-line); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; flex: none; }
.einstieg-schritte li.done .check { background: var(--sr-navy); border-color: var(--sr-navy); color: #fff; }
.feier { position: relative; overflow: hidden; border: 2px solid var(--sr-red); background: linear-gradient(135deg, #FFF7F8, #FBF1DC); text-align: center; }
.feier h3 { color: var(--sr-red-dark); position: relative; }
.feier p { position: relative; }
.feier-konfetti { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--sr-red) 3px, transparent 3px), radial-gradient(circle, var(--sr-navy) 2px, transparent 2px), radial-gradient(circle, var(--sr-warning) 2px, transparent 2px);
  background-size: 60px 60px, 45px 45px, 75px 75px; background-position: 0 0, 20px 10px, 40px 30px; opacity: .12; }
.feier.feiert .feier-konfetti { animation: konfetti 1.6s ease-out; }
@keyframes konfetti { from { transform: translateY(-100%); opacity: .6; } to { transform: translateY(0); opacity: .12; } }
@media (prefers-reduced-motion: reduce) { .feier.feiert .feier-konfetti { animation: none; } }

/* Week league (step 5): closed-week chips reuse the streak chip shapes. */
.liga-letzte { margin: .5rem 0; color: var(--sr-navy); }
.serie-kw.aufstieg { background: #E6F4EA; border-color: #7FBF8E; color: #1E5E33; }
.serie-kw.abstieg { background: var(--sr-rose-tint); border-color: var(--sr-red-soft); color: var(--sr-red-dark); }
.serie-kw.bleibt { background: var(--sr-navy); border-color: var(--sr-navy); color: #fff; }
.serie-kw.neutral { border-style: dashed; }

/* Call history (Timothy, 04.09.2026): compact rows, icon actions, inline player. */
.historie-filter { margin: 0 0 .75rem; }
.historie-tabelle td { vertical-align: middle; }
.historie-tabelle td.datum { white-space: nowrap; }
.historie-tabelle tr.klickbar { cursor: pointer; }
.historie-tabelle tr.klickbar:hover td { background: var(--sr-cool-gray); }
.historie-tabelle tr.klickbar:focus-visible td { outline: 2px solid var(--sr-navy); outline-offset: -2px; }
.historie-tabelle tr.weg { opacity: 0; transition: opacity .25s; }
.historie-tabelle .aktionen { white-space: nowrap; text-align: right; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: .25rem;
  border: 1px solid var(--sr-line); border-radius: 8px; background: var(--sr-white); color: var(--sr-navy); cursor: pointer; vertical-align: middle; }
.icon-btn:hover { border-color: var(--sr-navy); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .ic-play, .icon-btn .ic-pause { fill: currentColor; stroke: none; }
.icon-btn svg[hidden] { display: none; }
.icon-btn.aktiv { background: var(--sr-navy); border-color: var(--sr-navy); color: #fff; }
.icon-btn.ok { border-color: #7FBF8E; color: #1E5E33; }
@media (max-width: 800px) {
  .historie-tabelle th.num, .historie-tabelle td.num:not(.datum) { display: none; }
  .historie-tabelle td .sub:last-child { display: none; }
}
