/* Presse-Tempozeittabelle – Bildschirm + Druck (quer) */
.svp {
    --p-line: #d8dce4;
    --p-head: #f2f4f8;
    --p-text: #16181d;
    --p-muted: #6b7280;
    color: var(--p-text);
    font-size: 13px;
}

.svp__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; justify-content: space-between; margin: 0 0 12px; }
.svp__title h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.svp__meta { margin: 2px 0 0; color: var(--p-muted); }
.svp__actions { display: flex; gap: 8px; }
.svp__btn { padding: 8px 14px; border: 1px solid var(--p-line); border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; font-size: 0.9rem; }
.svp__btn:hover { border-color: #2a7ae2; color: #2a7ae2; }

.svp__profilebox { position: relative; border: 1px solid var(--p-line); border-radius: 8px; padding: 4px 6px 0; margin: 0 0 12px; background: #fbfcfd; }
.svp__proflabel { position: absolute; top: 3px; left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--p-muted); }
.svp__profile { display: block; width: 100%; height: 130px; }
.svp__profile--strip { height: 56px; }
.svp__profcell { padding: 0 !important; vertical-align: bottom; }
.svp__profcell svg { display: block; width: 100%; height: 56px; }

/* --- Tabelle --- */
.svp__scroll { overflow: auto; max-height: 78vh; border: 1px solid var(--p-line); border-radius: 8px; }
.svp__table { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: calc(11px * var(--z, 1)); }
.svp__table th, .svp__table td { padding: calc(2px * var(--z, 1)) calc(6px * var(--z, 1)); border-bottom: 1px solid #eceff4; border-right: 1px solid #f2f4f8; text-align: right; }
.svp__table thead th { background: var(--p-head); font-weight: 700; }
.svp__table thead tr.svp__colhead th { position: sticky; top: 0; z-index: 3; border-bottom: 2px solid #c3c9d4; }
.svp__kmu { color: var(--p-muted); font-weight: 400; margin-left: 2px; font-size: calc(9px * var(--z, 1)); }
.svp__lead { text-align: left !important; }

/* Erste drei Spalten festhalten – feste Breiten, damit die Offsets passen */
.svp__table th:nth-child(1), .svp__table td:nth-child(1),
.svp__table th:nth-child(2), .svp__table td:nth-child(2),
.svp__table th:nth-child(3), .svp__table td:nth-child(3) { width: calc(52px * var(--z, 1)); min-width: calc(52px * var(--z, 1)); box-sizing: border-box; }
.svp__table tbody td:nth-child(1) { position: sticky; left: 0; background: #fff; z-index: 2; font-weight: 700; }
.svp__table tbody td:nth-child(2) { position: sticky; left: calc(52px * var(--z, 1)); background: #fff; z-index: 2; color: var(--p-muted); }
.svp__table tbody td:nth-child(3) { position: sticky; left: calc(104px * var(--z, 1)); background: #fff; z-index: 2; font-weight: 700; border-right: 2px solid #c3c9d4; }
.svp__table thead .svp__colhead th:nth-child(1) { left: 0; z-index: 5; }
.svp__table thead .svp__colhead th:nth-child(2) { left: calc(52px * var(--z, 1)); z-index: 5; }
.svp__table thead .svp__colhead th:nth-child(3) { left: calc(104px * var(--z, 1)); z-index: 5; border-right: 2px solid #c3c9d4; }
.svp__table tbody tr:hover td { background: #eef4ff; }

/* --- Streckenstreifen im Tabellenkopf --- */
.svp__courserow th { background: #fbfcfd; font-weight: 400; color: var(--p-muted); font-size: 0.92em; vertical-align: bottom; }
.svp__courserow--prof th { height: 56px; padding-bottom: 0; }
.svp__bar { display: inline-block; width: 70%; min-height: 4px; background: linear-gradient(180deg, #7f95b8, #b7c5dc); border-radius: 2px 2px 0 0; vertical-align: bottom; }
.svp__courserow--street th { position: relative; height: calc(58px * var(--t, 1)); padding: 0 2px; vertical-align: bottom; color: var(--p-text); overflow: visible; }
.svp__courserow--street .svp__street { position: absolute; left: 3px; bottom: 3px; display: inline-block; transform-origin: left bottom; transform: rotate(-28deg); white-space: nowrap; max-width: calc(150px * var(--t, 1)); overflow: hidden; text-overflow: ellipsis; font-size: calc(0.82em * var(--t, 1)); line-height: 1.1; }
.svp__street { display: inline-block; text-align: right; }
.svp__courserow th.is-up { color: #b45309; }
.svp__courserow th.is-down { color: #1d6fa6; }
.svp__hint { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #fff7e3; border: 1px solid #e6cd8a; font-size: 12px; color: #4a3a12; }

/* --- Markierungszeilen (Rekorde, Top-Starter, Listen, Sieger) --- */
.svp__rec td { text-align: left; padding: 3px 8px; font-size: 1em; border-bottom: 0; white-space: normal; }
.svp__rectime { display: inline-block; min-width: 5.6em; font-weight: 800; font-variant-numeric: tabular-nums; }
.svp__recg { display: inline-block; min-width: 1.5em; font-weight: 700; color: var(--p-muted); }
.svp__reccat { font-weight: 700; margin-right: 8px; }
.svp__rectext { color: #333; }
.svp__recok { margin-left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: #1d8f3a; }
.svp__recsplits td { font-size: 10px; color: #3a3f47; border-bottom: 1px solid #e3e7ee; }
.svp__recsplits td.svp__c3 { font-weight: 400; color: var(--p-muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; }
/* Die festgeklebte erste Spalte (weißer Hintergrund) darf die Farbe nicht überdecken */
.svp__table tbody tr.svp__rec td:nth-child(1) { position: static; }
/* Zeit, Art und Name der Markierungszeilen bleiben beim seitlichen Blättern am linken Rand stehen */
.svp__recinner { position: sticky; left: 0; display: inline-flex; align-items: baseline; gap: 0; padding-right: 10px; max-width: calc(100% - 6px); }
.svp__table tbody tr.svp__rec td, .svp__table tbody tr.svp__recsplits td { background: var(--rec, #f7f7f9) !important; }
.svp__table tbody tr.svp__rec:hover td, .svp__table tbody tr.svp__recsplits:hover td { filter: brightness(0.97); }
.svp__rec--world, .svp__lg--world { --rec: #ffd6d6; }
.svp__rec--course, .svp__lg--course { --rec: #ffe0b3; }
.svp__rec--national, .svp__lg--national { --rec: #cfeed3; }
.svp__rec--continental, .svp__lg--continental { --rec: #e2d6f5; }
.svp__rec--list, .svp__lg--list { --rec: #d3e6f8; }
.svp__rec--everlist, .svp__lg--everlist { --rec: #e6e6ea; }
.svp__rec--starter, .svp__lg--starter { --rec: #fff3b0; }
.svp__rec--winner, .svp__lg--winner { --rec: #cdeeea; }
.svp__rec--other { --rec: #f0f0f2; }
.svp__legend { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 0; font-size: 11px; }
.svp__lg { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--rec, #eee); border: 1px solid rgba(0,0,0,0.08); }

/* --- Startlisten --- */
.svp__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; margin-top: 22px; }
.svp__list h3 { margin: 0 0 6px; font-size: 1.05rem; }
.svp__list h3 span { color: var(--p-muted); font-weight: 400; }
.svp__ltable { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.svp__ltable th { text-align: left; border-bottom: 2px solid #c3c9d4; padding: 3px 6px; background: var(--p-head); }
.svp__ltable td { border-bottom: 1px solid #eceff4; padding: 3px 6px; }
.svp__ltable tr.is-susp td { color: #b32d2e; }
.svp__bib { color: var(--p-muted); font-weight: 400; }
.svp__foot { margin-top: 14px; color: var(--p-muted); font-size: 11px; }

@media (max-width: 640px) {
    .svp__table tbody td:nth-child(2),
    .svp__table thead .svp__colhead th:nth-child(2) { position: static; }
    .svp__table tbody td:nth-child(3),
    .svp__table thead .svp__colhead th:nth-child(3) { position: static; }
}

/* --- Druck: quer, sehr klein, alles sichtbar --- */
@media print {
    @page { size: A4 landscape; margin: 8mm; }
    body * { visibility: hidden; }
    .svp, .svp * { visibility: visible; }
    .svp { position: absolute; left: 0; top: 0; width: 100%; font-size: 6.5pt; }
    .svp__actions { display: none; }
    .svp__scroll { overflow: visible; max-height: none; border: 0; }
    .svp__table { font-size: 5.6pt; width: 100%; }
    .svp__table th, .svp__table td { padding: 0.4pt 1.2pt; }
    .svp__table thead th { position: static; }
    .svp__table tbody td:nth-child(1),
    .svp__table tbody td:nth-child(2),
    .svp__table tbody td:nth-child(3) { position: static; }
    .svp__rec td { font-size: 5.6pt; padding: 0.8pt 2pt; }
    .svp__rec td, .svp__recsplits td, .svp__lg, .svp__bar, .svp__table thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .svp__recsplits td { font-size: 5.2pt; padding: 0.4pt 1.2pt; }
    .svp__courserow--prof th { height: 22pt; }
    .svp__courserow--street th { height: 30pt; }
    .svp__courserow--street .svp__street { max-width: 34pt; font-size: 5pt; }
    .svp__profile { height: 70pt; }
    .svp__profcell svg { height: 22pt; }
    .svp__legend { font-size: 6pt; }
    .svp__lists { page-break-before: always; grid-template-columns: 1fr 1fr; }
    .svp__ltable { font-size: 6pt; }
    .svp__table tbody tr { page-break-inside: avoid; }
}

/* Excel-Export (mit Höhenprofil) – Knopf sitzt in einem Formular */
.svp__actions form { display: inline; margin: 0; }
.svp__btn--x { background: #1d6fa6; color: #fff; border-color: #1d6fa6; }
.svp__btn--x:hover { background: #155a88; }
@media print { .svp__actions { display: none; } }

/* --- Auswahl über der Tabelle (gilt für Ansicht, Druck, CSV und Excel) --- */
.svp__filter { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--p-line); border-radius: 8px; background: #fbfcfd; font-size: 12px; }
.svp__fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.svp__flabel { min-width: 82px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--p-muted); font-weight: 700; }
.svp__fopt { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.svp__fopt input { margin: 0; }
.svp__fnum { display: inline-flex; align-items: center; gap: 4px; color: #333; }
.svp__fnum input { padding: 3px 6px; border: 1px solid var(--p-line); border-radius: 6px; font-size: 12px; width: auto; }
.svp__btn--go { padding: 5px 12px; background: #2a7ae2; color: #fff; border-color: #2a7ae2; }
@media print { .svp__filter { display: none; } }
/* Mehrere Bedeutungen einer Zeit in EINER Zeile – jede Art als Chip in ihrer Farbe */
.svp__chip { display: inline-block; margin: 0 6px 0 0; padding: 1px 8px; border-radius: 999px; background: var(--rec, #eee); border: 1px solid rgba(0,0,0,0.12); font-weight: 700; font-size: 0.95em; white-space: nowrap; }
.svp__table tbody tr.svp__rec td .svp__chip { background: var(--rec, #eee) !important; }
@media print { .svp__chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 5.4pt; padding: 0 3pt; } }
.svp__fnote { color: var(--p-muted); font-size: 11px; }
/* Gemessene Durchgangszeit im Raster: echte Zeit fett, Kürzel klein, Farbe des Laufs */
.svp__table tbody td.svp__hit { background: var(--rec, #eee) !important; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.18); }
.svp__table tbody td.svp__hit b { font-weight: 800; }
.svp__table tbody td.svp__hit i { display: block; font-style: normal; font-size: 0.72em; line-height: 1; letter-spacing: 0.04em; color: #333; text-align: right; }
.svp__recreal { margin-left: 8px; font-size: 0.9em; color: #333; }
.svp__lgnote { flex-basis: 100%; font-size: 10.5px; color: var(--p-muted); }
@media print { .svp__table tbody td.svp__hit { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .svp__table tbody td.svp__hit i { font-size: 4pt; } }
.svp__table tbody td.svp__hit i { white-space: nowrap; }
/* Starter-Auswahl (Kästchen in den Startlisten) */
.svp__selbox { margin: 22px 0 10px; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: 10px; background: #f7f9fc; }
.svp__selhead { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 0.95rem; }
.svp__selcount { font-weight: 700; color: #1d4ed8; }
.svp__selmode { color: var(--p-muted); font-size: 0.85rem; }
.svp__selchips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; min-height: 22px; font-size: 12px; }
.svp__selchips em { color: var(--p-muted); }
.svp__selchip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid #c3c9d4; cursor: pointer; }
.svp__selchip::after { content: " ×"; color: #999; }
.svp__selchip--m { border-color: #7fb0e8; background: #eaf3fd; }
.svp__selchip--w { border-color: #e79ac1; background: #fceaf3; }
.svp__selact { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.svp__selhint { flex-basis: 100%; font-size: 0.8rem; color: var(--p-muted); }
.svp__btn.is-dirty { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.svp__ltable .svp__ck { width: 22px; padding: 3px 2px; text-align: center; }
.svp__ltable .svp__ck input { margin: 0; cursor: pointer; }
.svp__ltable tr.is-on td { background: #fff7d6; }
.svp__selall { font-size: 0.75rem; font-weight: 400; color: var(--p-muted); margin-left: 8px; cursor: pointer; }
@media print { .svp__selbox, .svp__ltable .svp__ck, .svp__selall { display: none; } .svp__ltable tr.is-on td { background: #fff7d6; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* --- Gedrehte Ansicht: km in Zeilen, Tempo nach rechts --- */
.svp__table--hoch th:nth-child(1), .svp__table--hoch td:nth-child(1),
.svp__table--hoch th:nth-child(2), .svp__table--hoch td:nth-child(2),
.svp__table--hoch th:nth-child(3), .svp__table--hoch td:nth-child(3) { width: auto; min-width: 0; }
.svp__table--hoch tbody td:nth-child(2), .svp__table--hoch tbody td:nth-child(3) { position: static; color: inherit; font-weight: inherit; border-right: 1px solid #f2f4f8; }
.svp__table--hoch thead .svp__colhead th:nth-child(2), .svp__table--hoch thead .svp__colhead th:nth-child(3) { position: sticky; left: auto; border-right: 1px solid #f2f4f8; }
.svp__table--hoch .svp__hkm { position: sticky; left: 0; z-index: 4; background: var(--p-head); font-weight: 800; text-align: right; min-width: calc(44px * var(--z, 1)); width: calc(44px * var(--z, 1)); box-sizing: border-box; border-right: 2px solid #c3c9d4; }
.svp__table--hoch tbody .svp__hkm { background: #fff; }
.svp__table--hoch thead .svp__colhead .svp__hkm { z-index: 6; }
.svp__table--hoch .svp__hstreet { text-align: left; max-width: 110px; font-size: 0.86em; color: var(--p-muted); white-space: normal; line-height: 1.15; }
.svp__table--hoch .svp__hmini { font-size: 0.9em; color: var(--p-muted); }
.svp__table--hoch td.is-up { color: #b45309; } .svp__table--hoch td.is-down { color: #1d6fa6; }
.svp__table--hoch .svp__hclock { font-size: 0.95em; color: var(--p-muted); }
.svp__table--hoch .svp__hp { vertical-align: bottom; line-height: 1.15; min-width: calc(58px * var(--z, 1)); }
.svp__table--hoch .svp__hp b { display: block; font-size: 1.1em; }
.svp__table--hoch .svp__hp span { display: block; font-weight: 400; font-size: 0.82em; color: var(--p-muted); white-space: nowrap; }
.svp__table--hoch .svp__hm { background: var(--rec, #eee) !important; vertical-align: bottom; padding: 4px 3px; min-width: 22px; width: 22px; }
.svp__table--hoch .svp__hmv { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9em; font-weight: 700; line-height: 1.1; }
.svp__table--hoch td.svp__mcell { background: var(--rec, #eee) !important; opacity: 0.55; }
.svp__table--hoch td.svp__hit { font-size: 0.95em; padding: 2px 3px; }
.svp__table--hoch tbody tr:hover td.svp__mcell { opacity: 0.85; }
@media print {
    .svp__table--hoch .svp__hmv { max-height: 90pt; font-size: 6pt; }
    .svp__table--hoch .svp__hp b { font-size: 7pt; } .svp__table--hoch .svp__hp span { font-size: 5pt; }
    .svp__table--hoch .svp__hm, .svp__table--hoch td.svp__mcell { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Basis-Pille für Stationen (Verpflegung, Getränke, Gels … – beliebig viele, je nach Import) */
.svp__feed { display: inline-block; padding: 1px 5px; border-radius: 5px; font-weight: 700; font-size: 0.95em; background: #eef1f6; }
.svp__feed--0 { background: #fef3c7; color: #92400e; }
.svp__feed--1 { background: #dbeafe; color: #1d4ed8; }
.svp__feed--2 { background: #dcfce7; color: #166534; }
.svp__feed--3 { background: #fce7f3; color: #9d174d; }
.svp__feed--drink { background: #dbeafe; color: #1d4ed8; }
/* --- Schnellauswertung: km + Zeit eingeben, Tempo/Hochrechnung + Vergleich mit Rekorden/Listen/Startern --- */
.svp__evalbox { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: 10px; background: #f7f9fc; }
.svp__evalform { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.svp__evalform label { font-size: 0.9rem; }
.svp__evalform input[type="number"], .svp__evalform input[type="text"] { padding: 3px 6px; border: 1px solid var(--p-line); border-radius: 6px; }
.svp__evalcard { margin-top: 12px; border-top: 1px solid var(--p-line); padding-top: 10px; }
.svp__evalcard h3 { margin: 0 0 8px; font-size: 1.05rem; }
.svp__evalstats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; font-size: 0.92rem; }
.svp__evalstats b { font-size: 1.05em; }
.svp__evaltable { width: 100%; border-collapse: collapse; font-size: 12px; }
.svp__evaltable th { text-align: left; border-bottom: 2px solid #c3c9d4; padding: 4px 8px; }
.svp__evaltable td { border-bottom: 1px solid #eceff4; padding: 5px 8px; vertical-align: top; }
.svp__evalslow { color: #b45309; font-weight: 700; white-space: nowrap; }
.svp__evalfast { color: #1a7f37; font-weight: 700; white-space: nowrap; }
@media print { .svp__evalbox { display: none; } }
.svp__blitem { display: inline-flex; align-items: center; gap: 8px; padding: 3px 7px; border: 1px solid var(--p-line); border-radius: 8px; background: #fff; }
.svp__blitem.is-off { opacity: 0.5; }
.svp__fopt--list { margin-right: 0; }
.svp__blcount { width: 64px; min-width: 64px; margin: 0; padding: 3px 6px; border: 1px solid var(--p-line); border-radius: 6px; font-size: 12px; line-height: 1.3; background: #fff; color: var(--p-text); vertical-align: middle; box-sizing: border-box; }
.svp__blcount::placeholder { color: var(--p-muted); opacity: 1; }
/* Nationen: bei großen Feldern werden es viele – die Liste bekommt eine eigene Höhe und scrollt für sich */
.svp__fsec[data-sec="nationen"] .svp__fgroup { max-height: 40vh; overflow-y: auto; }
.svp__fsec[data-sec="nationen"] .svp__blitem { min-width: 118px; }
/* --- Stationen: schmale Linie „durchgehend" am km, klassisch per <style>-Einschub (Spalte), hoch hier (Zeile) --- */
/* Führungslinie in der gedrehten Ansicht: durchgehend über die ganze Zeile (links nach rechts), ganz schwach */
.svp__table--hoch tr.svp__rowst > th, .svp__table--hoch tr.svp__rowst > td { background-image: var(--stln); background-repeat: no-repeat; background-size: 100% 1.5px; background-position: top; }
.svp__stlegend { margin: 6px 0 0; font-size: 11px; color: var(--p-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.svp__stswatch { display: inline-flex; align-items: center; gap: 4px; color: var(--p-text); }
.svp__stswatch i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
@media print { .svp__stlegend { display: none; } }
/* Kompakte Stationszeile: kleine quadratische Kürzel-Chips statt einer Zeile je Station */
.svp__feedrow th:not(.svp__lead) { vertical-align: middle; padding-top: 3px; padding-bottom: 3px; }
.svp__stchip { display: inline-flex; align-items: center; justify-content: center; width: 1.4em; height: 1.4em; border-radius: 4px; font-size: 0.85em; font-weight: 800; line-height: 1; margin: 0 1px; cursor: default; }
.svp__fsave { margin-left: 4px; }
.svp__fsave a { color: #2a7ae2; text-decoration: underline; }

/* --- Presse-Zugang: Code-Abfrage und Kopfzeile --- */
.svp--gate { display: flex; justify-content: center; padding: 24px 12px; }
.svp__gatebox { max-width: 460px; width: 100%; padding: 22px 24px; border: 1px solid var(--p-line); border-radius: 12px; background: #fbfcfd; }
.svp__gatebox h2 { margin: 0 0 8px; font-size: 1.25rem; }
.svp__gatebox p { margin: 0 0 12px; font-size: 0.95rem; color: var(--p-text); }
.svp__gateform { display: flex; gap: 8px; flex-wrap: wrap; }
.svp__gateform input { flex: 1 1 200px; padding: 9px 12px; border: 1px solid var(--p-line); border-radius: 8px; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; }
.svp__gateerr { color: #b32d2e; font-weight: 700; }
.svp__gatenote { margin: 12px 0 0 !important; font-size: 0.82rem !important; color: var(--p-muted) !important; }
.svp__codebar { margin: 0 0 10px; padding: 5px 10px; border-radius: 8px; background: #eef4ff; font-size: 12px; color: #1d4ed8; display: flex; gap: 10px; flex-wrap: wrap; }
.svp__codebar a { color: #1d4ed8; text-decoration: underline; }
@media print { .svp__codebar { display: none; } }
/* Kurzanleitung für die Presse */
.svp__guide { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--p-line); border-radius: 10px; background: #fbfcfd; font-size: 13px; }
.svp__guide > summary { cursor: pointer; font-weight: 700; }
.svp__guide[open] { padding-bottom: 12px; }
.svp__guide section { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--p-line); }
.svp__guide section:first-of-type { border-top: 0; }
.svp__guide h4 { margin: 0 0 4px; font-size: 13px; letter-spacing: 0.02em; }
.svp__guide p { margin: 0 0 6px; line-height: 1.5; color: var(--p-text); }
.svp__guide dl { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 4px 14px; margin: 4px 0 0; }
.svp__guide dt { font-weight: 700; }
.svp__guide dd { margin: 0; line-height: 1.5; color: var(--p-text); }
@media (max-width: 720px) { .svp__guide dl { grid-template-columns: 1fr; gap: 1px 0; } .svp__guide dd { margin: 0 0 8px; } }
@media print { .svp__guide { display: none; } }
/* Positionsanzeige im Streckenprofil beim Blättern der Tabelle */
.svp__profmark { position: absolute; top: 4px; bottom: 0; width: 0; pointer-events: none; z-index: 2; }
.svp__profmark i { position: absolute; top: 12px; height: 96px; left: -1px; width: 2px; background: #b45309; opacity: 0.85; }
.svp__profmark span { position: absolute; top: 0; left: 0; transform: translateX(-50%); background: #b45309; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.5; padding: 0 5px; border-radius: 4px; white-space: nowrap; }
@media print { .svp__profmark { display: none; } }

/* Vergrößern / Verkleinern der Tabelle */
.svp__zoom { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.svp__zoom .svp__btn { padding: 6px 10px; min-width: 34px; font-size: 1rem; line-height: 1; }
.svp__zoomval { min-width: 46px; text-align: center; font-size: 0.85rem; color: var(--p-muted); font-variant-numeric: tabular-nums; }
/* Sichtbarer Ausschnitt im Streckenprofil */
.svp__profband { position: absolute; top: 16px; height: 96px; background: rgba(180, 83, 9, 0.13); border-left: 1px solid rgba(180, 83, 9, 0.45); border-right: 1px solid rgba(180, 83, 9, 0.45); pointer-events: none; z-index: 1; }
@media print { .svp__zoom, .svp__profband { display: none; } }

/* Textteile getrennt in der Größe regelbar (--t), unabhängig vom Raster-Zoom (--z).
   Alles Weitere darin ist in em angegeben und wächst dadurch automatisch mit. */
.svp__recinner { font-size: calc(1em * var(--t, 1)); }
.svp__table--hoch .svp__hmv, .svp__table--hoch .svp__hstreet, .svp__feedrow .svp__stchip { font-size: calc(0.9em * var(--t, 1)); }
.svp__zoom--text .svp__btn { font-size: 0.85rem; }
/* Auswahlfenster für einzelne Rekorde */
.svp__recsdlg { border: 0; border-radius: 12px; padding: 0; max-width: 760px; width: calc(100% - 32px); max-height: 82vh; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.svp__recsdlg::backdrop { background: rgba(0,0,0,0.45); }
.svp__recsdlg-in { display: flex; flex-direction: column; max-height: 82vh; }
.svp__recsdlg-head { padding: 14px 18px 8px; border-bottom: 1px solid var(--p-line); display: flex; flex-direction: column; gap: 4px; }
.svp__recsdlg-body { overflow: auto; padding: 8px 18px 14px; }
.svp__recsdlg-body section { margin: 10px 0 0; }
.svp__recsdlg-body h4 { margin: 0 0 4px; font-size: 12px; }
.svp__recsdlg-body ul { list-style: none; margin: 0; padding: 0 0 0 4px; }
.svp__recsdlg-body li { padding: 2px 0; border-bottom: 1px solid #f2f4f8; font-size: 12px; }
.svp__recsdlg-body label { display: flex; gap: 6px; align-items: baseline; cursor: pointer; }
.svp__recsdlg-body li b { min-width: 58px; font-variant-numeric: tabular-nums; }
.svp__recsdlg-foot { display: flex; gap: 8px; align-items: center; padding: 10px 18px 14px; border-top: 1px solid var(--p-line); }
.svp__recsstat { margin-left: auto; }

/* --- Filterleiste: zuklappbar mit Zusammenfassung --- */
.svp__fmain > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; list-style: none; padding: 2px 0; }
.svp__fmain > summary::-webkit-details-marker { display: none; }
.svp__fmain > summary::before { content: "▸"; color: var(--p-muted); font-size: 11px; }
.svp__fmain[open] > summary::before { content: "▾"; }
.svp__ftitle { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--p-muted); font-weight: 700; margin-right: 8px; }
.svp__fsummary { color: var(--p-text); font-size: 12px; margin-right: 6px; }
.svp__fbody { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; }
.svp__fsec { border: 1px solid var(--p-line); border-radius: 8px; background: #fff; padding: 4px 10px; }
.svp__fsec > summary { cursor: pointer; font-weight: 700; font-size: 11.5px; padding: 3px 0; list-style: none; }
.svp__fsec > summary::-webkit-details-marker { display: none; }
.svp__fsec > summary::before { content: "▸ "; color: var(--p-muted); }
.svp__fsec[open] > summary::before { content: "▾ "; }
.svp__fsec[open] { padding-bottom: 8px; }
.svp__fsec .svp__fgroup { margin-top: 6px; }
.svp__fapply { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--p-line); }
/* Auswahlbox und Startlisten zuklappbar */
.svp__selbox > summary, .svp__listswrap > summary { cursor: pointer; list-style: none; }
.svp__selbox > summary::-webkit-details-marker, .svp__listswrap > summary::-webkit-details-marker { display: none; }
.svp__selbox > summary::before, .svp__listswrap > summary::before { content: "▸ "; color: var(--p-muted); }
.svp__selbox[open] > summary::before, .svp__listswrap[open] > summary::before { content: "▾ "; }
.svp__listswrap { margin: 18px 0 0; padding: 8px 12px; border: 1px solid var(--p-line); border-radius: 10px; background: #fbfcfd; }
.svp__listswrap > summary { font-weight: 700; font-size: 1.02rem; padding: 2px 0; }
.svp__listswrap[open] > summary { margin-bottom: 4px; }
.svp__listswrap .svp__lists { margin-top: 8px; }
@media print { .svp__selbox, .svp__listswrap > summary { display: none; } .svp__listswrap { border: 0; padding: 0; background: none; } }
.svp__qg { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.svp__qg .svp__fopt { gap: 3px; }

/* --- Steckbrief einer Person --- */
.svp__pname { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.svp__pname:hover strong, .svp__recinner[data-person]:hover { text-decoration: underline dotted; }
.svp__recinner[data-person] { cursor: pointer; }
.svp__profdlg { border: 0; border-radius: 12px; padding: 0; max-width: 640px; width: calc(100% - 32px); max-height: 84vh; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.svp__profdlg::backdrop { background: rgba(0,0,0,0.45); }
.svp__profdlg-in { padding: 16px 20px 18px; overflow: auto; max-height: 84vh; font-size: 13px; }
.svp__profdlg h3 { margin: 0 0 2px; font-size: 1.15rem; }
.svp__profsub { color: var(--p-muted); margin: 0 0 10px; font-size: 12px; }
.svp__profdlg section { margin: 12px 0 0; padding-top: 8px; border-top: 1px solid var(--p-line); }
.svp__profdlg h4 { margin: 0 0 4px; font-size: 12px; }
.svp__proftab { width: 100%; border-collapse: collapse; font-size: 12px; }
.svp__proftab td { padding: 2px 6px 2px 0; border-bottom: 1px solid #f2f4f8; vertical-align: top; }
.svp__proftab td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.svp__proffoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media print { .svp__profdlg { display: none; } }
.svp__evalgroup td { background: #f1f4f9; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--p-muted); padding-top: 6px; }
a.svp__btn { text-decoration: none; display: inline-flex; align-items: center; }

/* --- Grafik in der Schnellauswertung --- */
.svp__evalchartbox { margin: 10px 0 12px; padding: 5px 8px 2px; border: 1px solid var(--p-line); border-radius: 8px; background: #fbfcfd; }
/* Beschriftung der Grafiken steht im normalen Textfluss – so kann sie nichts überlagern */
.svp__chartlabel { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--p-muted); margin: 0 0 2px; }
.svp__evalchart { display: block; width: 100%; height: 118px; }
.svp__gapbar { display: block; position: relative; height: 4px; margin-top: 3px; background: #eceff4; border-radius: 2px; }
.svp__gapbar::before { content: ""; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: #c3c9d4; }
.svp__gapbar i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
@media print { .svp__evalchart { height: 70pt; } .svp__evalchartbox { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* Karte und Zeitstrahl nebeneinander */
.svp__evalgrid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.4fr); gap: 10px; align-items: start; margin: 10px 0 12px; }
.svp__evalgrid .svp__evalchartbox { margin: 0; }
.svp__evalmapbox { padding: 5px 8px 2px; border: 1px solid var(--p-line); border-radius: 8px; background: #fbfcfd; }
.svp__evalmap { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .svp__evalgrid { grid-template-columns: 1fr; } }
@media print { .svp__evalgrid { grid-template-columns: 1fr 1fr; } .svp__evalmapbox { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
