/* SmO2-Stufentest (/smo2-stufentest). Eigene Datei, stile.css bleibt unberührt.
   Mobil zuerst, Aufbau wie Kraul-Check und Zone-2-Check: flacher Kopf bis 768 px, eine Spalte mit 680 px. */

:root {
    --st-linie: #d9e3e8;
    --st-flaeche: #f2f7f8;
    --st-text-leise: #4a626f;
    --st-akzent: #3f8f8f;
    --st-warn: #8a5a12;
    --st-warn-flaeche: #fdf5e6;
    --st-fehler: #a4472f;
}

.st-main {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 18px;
    color: var(--color-navy);
}
.st-main [hidden] { display: none !important; }
.st-main button, .st-main a, .st-main label, .st-main input, .st-main select { touch-action: manipulation; }

.st-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---------- Kopf ---------- */
.hero.st-hero {
    background-color: var(--color-navy);
    background-image: url('../../bilder/STR_inline-1_nirs-muskeloxygenierung-smo2.jpg');
    background-image: -webkit-image-set(url('../../bilder/STR_inline-1_nirs-muskeloxygenierung-smo2.webp') type('image/webp'), url('../../bilder/STR_inline-1_nirs-muskeloxygenierung-smo2.jpg') type('image/jpeg'));
    background-image: image-set(url('../../bilder/STR_inline-1_nirs-muskeloxygenierung-smo2.webp') type('image/webp'), url('../../bilder/STR_inline-1_nirs-muskeloxygenierung-smo2.jpg') type('image/jpeg'));
    background-position: center 40%;
}
/* Gleichmäßiger Navy-Schleier: die türkise Kennzeile braucht 4,5:1 (docs/WEBSITE-BAU.md) */
.hero.st-hero::before { background: rgba(31, 46, 62, 0.8); }
.st-hero-inhalt { width: 100%; }
.st-hero .st-h1 { color: #fff; text-transform: none; }
.st-nobr { white-space: nowrap; }

@media (max-width: 768px) {
    .hero.st-hero { display: block; min-height: 0; padding: 16px 18px 14px; }
    .st-hero-inhalt { max-width: 644px; }
    .st-hero .st-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; margin: 0 0 4px; }
    .st-hero .st-h1 {
        font-size: clamp(1.5rem, 6.4vw, 2.4rem);
        line-height: 1.12; margin: 0 0 6px; letter-spacing: -0.01em; text-wrap: balance;
    }
    .st-hero .st-sub { font-size: 0.92rem; line-height: 1.4; color: rgba(255, 255, 255, 0.92); opacity: 1; margin: 0; }
}

/* ---------- Eingabe ---------- */
.st-tool { padding: 14px 0 20px; scroll-margin-top: 8px; }
.st-form { margin: 0; }
.st-einstellungen { display: grid; gap: 12px; margin: 0 0 14px; }
@media (min-width: 560px) { .st-einstellungen { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; } }

.st-seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.st-seg legend, .st-feld-label {
    display: block; font-weight: 700; font-size: 0.86rem; margin: 0 0 6px; padding: 0; color: var(--color-navy);
}
.st-seg-reihe { display: flex; border: 1.5px solid var(--st-linie); border-radius: 12px; overflow: hidden; }
.st-seg-reihe label { flex: 1 1 0; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st-seg-reihe input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.st-seg-reihe span {
    display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px;
    font-size: 0.9rem; text-align: center; line-height: 1.2;
}
.st-seg-reihe label + label span { border-left: 1.5px solid var(--st-linie); }
.st-seg-reihe input:checked + span { background: var(--color-navy); color: #fff; font-weight: 700; }
.st-seg-reihe input:focus-visible + span { outline: 3px solid var(--color-link); outline-offset: -3px; }

.st-feld input, .st-feld select, .st-tabelle input {
    width: 100%; min-height: 44px; border: 1.5px solid var(--st-linie); border-radius: 10px; background: #fff;
    font: inherit; font-size: 1rem; padding: 8px 10px; color: var(--color-navy); box-sizing: border-box;
}
.st-feld input:focus, .st-feld select:focus, .st-tabelle input:focus { outline: 3px solid var(--color-link); outline-offset: 1px; border-color: var(--color-navy); }
.st-tabelle input[aria-invalid="true"] { border-color: var(--st-fehler); background: #fff6f3; }

.st-tabelle-wrap { margin: 0 0 10px; }
.st-tabelle { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.st-tabelle caption { text-align: left; font-weight: 700; font-size: 0.86rem; padding: 0 0 2px; color: var(--color-navy); }
.st-tabelle th { font-size: 0.78rem; font-weight: 700; text-align: left; color: var(--st-text-leise); padding: 0 6px 0 0; }
.st-tabelle td { padding: 0 6px 0 0; }
.st-tabelle td:last-child, .st-tabelle th:last-child { padding-right: 0; }
.st-tabelle .st-nr { width: 2.2em; font-size: 0.86rem; color: var(--st-text-leise); text-align: center; }
.st-tabelle-hinweis { font-size: 0.82rem; color: var(--st-text-leise); margin: 0 0 12px; line-height: 1.45; }

.st-zeilen-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.st-btn-rand {
    flex: 1 1 auto; min-height: 44px; border: 1.5px solid var(--color-navy); border-radius: 40px; background: #fff;
    color: var(--color-navy); font: inherit; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; cursor: pointer;
}
.st-btn-rand:hover { background: var(--st-flaeche); }
.st-btn-rand:focus-visible { outline: 3px solid var(--color-link); outline-offset: 2px; }
.st-btn-rand:disabled { opacity: 0.45; cursor: default; }

.st-fehler { color: var(--st-fehler); font-size: 0.9rem; margin: 0 0 12px; padding: 0; list-style: none; line-height: 1.45; }
.st-fehler li { margin: 0 0 4px; }

.st-btn {
    display: block; width: 100%; text-align: center; border: 0; cursor: pointer;
    background: var(--color-turquoise-light); color: var(--color-navy);
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    padding: 14px 18px; border-radius: 40px; text-decoration: none; min-height: 48px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.st-btn:hover { background: var(--color-gray-blue-light); color: var(--color-navy); }
.st-btn:active { transform: scale(0.98); }
.st-btn:focus-visible { outline: 3px solid var(--color-link); outline-offset: 2px; }

.st-textlink {
    background: none; border: 0; padding: 10px 0; color: var(--color-link); text-decoration: underline;
    text-underline-offset: 3px; font: inherit; font-size: 0.92rem; cursor: pointer; min-height: 44px;
}
.st-textlink-hell { color: #fff; display: block; margin: 6px auto 0; }
.st-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.8rem; color: var(--st-text-leise); margin: 10px 0 0; }

/* ---------- Ergebnis ---------- */
.st-panel {
    border: 1.5px solid var(--st-linie); border-radius: 16px; background: #fff;
    padding: 18px; margin: 0 0 22px; scroll-margin-top: 12px;
}
.st-res-label {
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--st-akzent); margin: 0 0 4px;
}
.st-res-titel {
    font-family: var(--font-display); font-size: clamp(1.3rem, 5.2vw, 1.6rem); line-height: 1.2;
    margin: 0 0 12px; color: var(--color-navy); text-transform: none; letter-spacing: 0; text-wrap: balance;
}
.st-res-titel:focus { outline: none; }
.st-methoden { display: grid; gap: 10px; margin: 0 0 12px; }
@media (min-width: 520px) { .st-methoden { grid-template-columns: 1fr 1fr; } }
.st-methode { border: 1.5px solid var(--st-linie); border-radius: 12px; padding: 12px 14px; }
.st-methode-name { font-size: 0.82rem; font-weight: 700; color: var(--st-text-leise); margin: 0 0 2px; }
.st-methode-wert { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.15; margin: 0; color: var(--color-navy); }
.st-methode-wert small { font-size: 0.9rem; font-weight: 600; }
.st-methode-extra { font-size: 0.86rem; color: var(--st-text-leise); margin: 2px 0 0; line-height: 1.4; }
.st-methode--leer .st-methode-wert { font-size: 1.05rem; }
.st-differenz { font-size: 0.92rem; line-height: 1.5; margin: 0 0 12px; }

.st-hinweise { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.st-hinweise li {
    background: var(--st-warn-flaeche); border-left: 4px solid #d9a441; border-radius: 8px;
    padding: 10px 12px; font-size: 0.9rem; line-height: 1.5; color: #3d3216;
}
.st-hinweise:empty { display: none; }

.st-diagramm { margin: 0 0 8px; }
.st-diagramm svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.8rem; color: var(--st-text-leise); }
.st-legende li { display: flex; align-items: center; gap: 6px; }
.st-legende svg { flex: 0 0 auto; }

.st-kennzahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.st-kennzahl { background: var(--st-flaeche); border-radius: 10px; padding: 10px 12px; }
.st-kennzahl p { margin: 0; }
.st-kennzahl-name { font-size: 0.78rem; color: var(--st-text-leise); }
.st-kennzahl-wert { font-weight: 700; font-size: 1.05rem; }
.st-knick1 { font-size: 0.88rem; line-height: 1.5; color: var(--st-text-leise); margin: 0 0 14px; }

.st-einordnung { border-top: 1px solid var(--st-linie); padding-top: 12px; }
.st-einordnung h3 { font-size: 1rem; margin: 0 0 6px; text-transform: none; letter-spacing: 0; color: var(--color-navy); }
.st-einordnung p { font-size: 0.9rem; line-height: 1.55; margin: 0 0 8px; }

/* ---------- Coaching ---------- */
.st-coaching { background: var(--color-navy); color: #fff; border-radius: 16px; padding: 18px; margin: 0 0 22px; }
.st-co-titel { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; color: #fff; text-transform: none; letter-spacing: 0; text-wrap: balance; }
.st-coaching p { font-size: 0.9rem; line-height: 1.5; margin: 0 0 10px; opacity: 0.94; }
.st-co-vertrauen { font-size: 0.78rem !important; opacity: 0.8 !important; }

.st-newsletter { margin: 0 0 8px; }

/* ---------- Wissensteil ---------- */
.st-wissen { padding-left: 0; padding-right: 0; }
.st-artikel-box { background: var(--st-flaeche); border-left: 4px solid var(--color-turquoise-light); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; }
.st-artikel-box p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.st-info-tabelle-wrap { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.st-info-tabelle { width: 100%; border-collapse: collapse; font-size: 0.88rem; line-height: 1.45; }
.st-info-tabelle th, .st-info-tabelle td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--st-linie); }
.st-info-tabelle thead th { background: var(--color-navy); color: #fff; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.st-info-tabelle tbody th { font-weight: 700; background: var(--st-flaeche); min-width: 92px; }
.st-glossar-titel { font-weight: 700; margin: 0 0 4px; }

@media (prefers-reduced-motion: reduce) {
    .st-btn:active { transform: none; }
}
