.imagebsp-container {
    margin: 0;
    padding: 0;
    max-width: 100%;
    height: auto;
}

img {
    width: 100%;
    height: auto;
}

/* ===== Auswertungsseite (Happen 9) ===== */

.auswertung-container {
    margin: 0 auto 50px;
}

.auswertung-container h2 {
    margin-top: 40px;
}

.auswertung-hinweis {
    background-color: #FFFFFF;
    border-left: 4px solid #667A66;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.auswertung-hinweis-fehler {
    border-left-color: #a94442;
}

.auswertung-hinweis-erfolg {
    border-left-color: #2f5d34;
}

.auswertung-hinweis-gate {
    border-left-color: #E4B50A;
}

/* "Was noch fehlt" (08.10.2026): ruhige Karte im Stil der Säulen-Karten
   statt Warnkasten - eine To-do-Liste, jeder Eintrag springt direkt zur
   Frage im Fragebogen. */
.aufklapp-karte {
    background-color: #fff;
    border: 1px solid #dcdfdc;
    border-radius: 14px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden;
}

/* Kopf als Akkordeon (toggleAuswertungAcc wie bei „Indikatoren im Detail“) */
.aufklapp-kopf {
    padding: 16px 24px;
    background-color: #fff;
    color: #353535;
    font-size: 17px;
}

.aufklapp-titel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-weight: 700;
}

.aufklapp-bereiche {
    font-weight: 400;
    font-size: 15px;
    color: #5f665f;
}

/* Aufgeklappt: Kopf in Projektgrün hervorheben (wie die Score-Kacheln),
   damit klar ist, wozu die Liste darunter gehört */
.aufklapp-kopf[aria-expanded="true"] {
    background-color: #E7F1E5;
    border-bottom: 1px solid #cddccb;
    font-size: 18px;
}

.aufklapp-kopf[aria-expanded="true"] .aufklapp-titel {
    color: #2f4a2f;
}

.aufklapp-inhalt {
    padding: 14px 24px 16px;
}

.aufklapp-inhalt > p:first-child {
    margin-top: 0;
}

/* Auswertung veraltet (09.10.2026): Antworten nach dem Abschicken nur
   gespeichert - deutlich in Gelb (Farbe wie .auswertung-hinweis-gate) und
   mit Button zum Neuberechnen */
.veraltet-hinweis {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 0 0 30px;
    padding: 18px 22px;
    background-color: #FEF6D8;
    border: 2px solid #E4B50A;
    border-radius: 14px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);
}

.veraltet-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #E4B50A;
    color: #353535;
    font-size: 20px;
    font-weight: 700;
}

.veraltet-text {
    flex: 1 1 320px;
    font-size: 15px;
    line-height: 1.5;
}

.veraltet-titel {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.veraltet-text p {
    margin: 0;
}

.veraltet-form {
    flex: none;
}

/* Im PDF/Druck hat der Button keinen Sinn - der Hinweis selbst bleibt */
@media print {
    .veraltet-form { display: none; }
}

@media (max-width: 599px) {
    .veraltet-form,
    .veraltet-form .auswertung-aktion-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Einmaliger Hinweis über dem Gesamtscore, wenn Compliance und/oder Impact
   wegen fehlender Angaben auf 0 stehen - Info-Kreis wie die ⓘ-Erklärungen */
.score-luecke {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 680px;
    margin: 0 auto 20px;
    padding: 10px 16px;
    background-color: #fff;
    border: 1px solid #dcdfdc;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.score-luecke-icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background-color: #667A66;
    color: #fff;
    font-family: "Calisto MT", serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
}

.score-luecke a {
    color: #4d5f4d;
    font-weight: 600;
    white-space: nowrap;
}

@media print {
    .score-luecke a { display: none; }
}

.aufklapp-icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: #667A66;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Nachweisliste auf der Antragsseite (nachweis_liste.html) */
.nachweis-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nachweis-liste li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid #eef0ee;
}

.nachweis-bereich {
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #5f665f;
}

/* Nachweisliste als PDF (09.10.2026): Button unter der Liste, Kopf mit
   Haus und Berichtsjahr nur im Druck */
.nachweis-pdf-zeile {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.nachweis-druckkopf {
    display: none;
}

.nachweis-druckkopf h1 {
    margin: 0 0 4px;
    font-size: 22px;
}

.nachweis-druckkopf p {
    margin: 0 0 16px;
    color: #555;
}

@media print {
    .nachweis-pdf-zeile {
        display: none !important;
    }

    .nachweis-liste li {
        break-inside: avoid;
    }

    /* Nur die Liste drucken: alles andere auf der Seite ausblenden, die
       Liste ohne Kartenrahmen und Akkordeon-Kopf, dafür mit eigenem Kopf */
    body.druck-nachweise .auswertung-container > :not(#nachweise),
    body.druck-nachweise #nachweise .aufklapp-kopf {
        display: none !important;
    }

    body.druck-nachweise #nachweise {
        border: none;
        box-shadow: none;
    }

    body.druck-nachweise #nachweise .acc-body {
        max-height: none !important;
        overflow: visible !important;
    }

    body.druck-nachweise .nachweis-druckkopf {
        display: block;
    }
}

@media (max-width: 599px) {
    .nachweis-pdf-zeile .auswertung-aktion-btn {
        width: 100%;
        min-width: 0;
    }
}

.nachweis-antwort {
    font-size: 14px;
    color: #4d5f4d;
    overflow-wrap: anywhere;
}

.aufklapp-saeule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 4px;
    font-size: 16px;
}

/* Farbpunkt in der Säulenfarbe wie die Ränder der Säulen-Karten */
.aufklapp-saeule::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #667A66;
}

.aufklapp-saeule.saeule-1::before { background-color: #626FA7; }
.aufklapp-saeule.saeule-2::before { background-color: #709775; }
.aufklapp-saeule.saeule-3::before { background-color: #E4B50A; }
.aufklapp-saeule.saeule-4::before { background-color: #696363; }

.was-fehlt-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.was-fehlt-liste a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 16px;
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid #eef0ee;
    color: inherit;
    text-decoration: none;
}

.was-fehlt-liste a:hover .was-fehlt-text,
.was-fehlt-liste a:focus-visible .was-fehlt-text {
    text-decoration: underline;
}

.was-fehlt-zusatz {
    color: #5f665f;
}

.was-fehlt-pfeil {
    color: #4d5f4d;
    font-weight: 600;
    white-space: nowrap;
}

@media print {
    .was-fehlt-pfeil { display: none; }
}

.auswertung-hinweis ul,
.auswertung-hinweis ol {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.auswertung-hinweis li {
    margin-bottom: 6px;
}

/* Gesamtscore: groß und zentriert vorangestellt */
.auswertung-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #C6D5C8;
    border-radius: 20px;
    padding: 26px 20px 22px;
    margin-bottom: 20px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero-wert {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #353535;
}

.hero-label {
    font-size: 15px;
    color: #555;
    margin-top: 6px;
}

/* Erklärungen (ⓘ) an Gesamtscore, Compliance, Impact und Vergleichswert:
   Mouse-Over oder Tastatur-Fokus zeigt den Text, Antippen schaltet .offen um
   (Touch-Geräte kennen kein Hover). Optik wie die Info-Icons der Evaluation.
   inline-flex statt inline-block: als inline-block erbt die Hülle die
   Zeilenhöhe des umgebenden Texts und der Kreis sitzt darin unten auf der
   Grundlinie - wirkt zu tief. So ist die Hülle genau so hoch wie der Kreis
   und wird als Ganzes auf die Zeilenmitte gesetzt. */
.erklaerung {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.erklaerung-icon {
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #667A66;
    color: #FFFFFF;
    font-family: "Calisto MT", serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 18px;
    cursor: pointer;
}

.erklaerung-text {
    display: none;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-width: 80vw;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #667A66;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.45;
    text-align: left;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.erklaerung:hover .erklaerung-text,
.erklaerung-icon:focus-visible + .erklaerung-text,
.erklaerung.offen .erklaerung-text {
    display: block;
}

/* Mouse-Over an den Kennzahlen: Wert des Hauses und wie er zu den Punkten
   führt. Steht in der ersten Tabellenspalte, deshalb linksbündig am Icon
   statt zentriert (sonst ragt es links aus der Seite). */
.erklaerung-kpi .erklaerung-text {
    left: -8px;
    transform: none;
    width: 300px;
}

.kpi-erkl-wert,
.kpi-erkl-zeile {
    display: block;
}

.kpi-erkl-wert {
    margin-bottom: 4px;
}

.kpi-erkl-zeile + .kpi-erkl-zeile {
    margin-top: 4px;
}

/* Handy: unter dem Icon zentriert würde der Text am Rand abgeschnitten
   (v. a. beim Gesamtscore) - stattdessen als Leiste am unteren Bildschirmrand */
@media (max-width: 599px) {
    .erklaerung-text {
        position: fixed;
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        margin-top: 0;
        transform: none;
        font-size: 13px;
    }

    /* auch die Kennzahlen-Erklärung als Leiste unten (schlägt die
       spezifischere Laptop-Regel .erklaerung-kpi oben) */
    .erklaerung-kpi .erklaerung-text {
        left: 16px;
        width: auto;
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Die KPI-Tabelle braucht keinen seitlichen Scroll-Container (.tabelle-scroll
   aus base.css): ab Tablet passt sie, auf dem Handy wird sie zu Karten (siehe
   unten). Ohne Container werden die Mouse-Over-Erklärungen nicht an seinem
   Rand abgeschnitten. */
.tabelle-scroll.kpi-tabelle-scroll {
    overflow: visible;
}

/* „von 5" hinter den Punkten nur auf dem Handy (dort fehlt der Spaltenkopf) */
.kpi-punkte-einheit {
    display: none;
}

/* Handy: KPI-Tabelle als Karten statt drei gequetschter Spalten - oben
   Name (mit ⓘ) und rechts die Punkte, darunter die Vergleichsbalken über
   die volle Breite. Säulen-Trennzeilen bleiben farbige Zwischenüberschriften. */
@media (max-width: 599px) {
    .kpi-tabelle thead {
        display: none;
    }

    .kpi-tabelle,
    .kpi-tabelle tbody,
    .kpi-tabelle tr,
    .kpi-tabelle td {
        display: block;
        width: auto;
    }

    .kpi-tabelle tr:not(.kpi-saeulen-trenner) {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 8px;
        padding: 12px 4px;
        border-bottom: 1px solid #ebebeb;
    }

    .kpi-tabelle tr:not(.kpi-saeulen-trenner) td {
        padding: 0;
        border-bottom: none;
    }

    .kpi-tabelle td.kpi-punkte {
        font-weight: 700;
        white-space: nowrap;
    }

    .kpi-punkte-einheit {
        display: inline;
        font-weight: 400;
        color: #777;
    }

    /* Vergleichsbalken: eigene Zeile über beide Spalten, volle Breite */
    .kpi-tabelle tr:not(.kpi-saeulen-trenner) td:last-child {
        grid-column: 1 / -1;
    }

    .kpi-tabelle .kpi-vergleich {
        min-width: 0;
        max-width: none;
    }

    .kpi-saeulen-trenner td {
        border-radius: 6px;
        margin-top: 10px;
    }
}

/* Compliance/Impact: zwei Spalten mit Vergleich zum Pilotstudien-Durchschnitt */
.vergleich-reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

.vergleich-spalte {
    flex: 1;
    min-width: 240px;
    background-color: #E7F1E5;
    border-radius: 14px;
    padding: 20px 24px 16px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);
}

.vergleich-wert {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #667A66;
}

.vergleich-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-top: 2px;
    margin-bottom: 16px;
}

.vergleich-meter {
    margin-bottom: 8px;
}

.vergleich-meter-track {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background-color: #C6D5C8;
}

.vergleich-meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: 100%;
    border-radius: 5px;
    background-color: #667A66;
}

.vergleich-meter-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
}

.vergleich-meter-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ebb65c;
    border: 2px solid #353535;
    transform: translate(-50%, -50%);
}

.vergleich-referenz {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.vergleich-referenz-wert {
    background-color: #ebb65c;
    color: #353535;
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid #353535;
}

.auswertung-klinik {
    font-size: 18px;
    font-weight: 600;
    color: #353535;
    margin: -6px 0 16px 0;
}

/* Kopfzeile: Überschrift links, Legende oben rechts (09.10.2026) */
.auswertung-kopfzeile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.legende {
    position: relative;
    flex: none;
    margin-top: 22px;
}

.legende-knopf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid #667A66;
    border-radius: 47px;
    background-color: #fff;
    color: #2f4a2f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.legende-knopf::-webkit-details-marker {
    display: none;
}

.legende-knopf:hover,
.legende[open] .legende-knopf {
    background-color: #E7F1E5;
}

/* Icon wie die bisherigen ⓘ-Erklärungen */
.legende-knopf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #667A66;
    color: #fff;
    font-family: "Calisto MT", serif;
    font-size: 13px;
    font-weight: bold;
}

.legende-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: min(420px, calc(100vw - 32px));
    padding: 16px 20px;
    background-color: #fff;
    border: 1px solid #dcdfdc;
    border-radius: 14px;
    box-shadow: 5px 5px 14px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.5;
}

.legende-liste {
    margin: 0;
}

.legende-liste dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #353535;
}

.legende-liste dd {
    margin: 2px 0 14px;
    color: #555;
}

.legende-liste dd:last-child {
    margin-bottom: 0;
}

/* Symbole wie in den Balken: grüner Balken, gelber Vergleichspunkt */
.legende-symbol {
    flex: none;
}

.legende-symbol-balken {
    width: 22px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #667A66 60%, #C6D5C8 60%);
}

.legende-symbol-punkt {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ebb65c;
    border: 2px solid #353535;
    box-sizing: border-box;
}

@media print {
    .legende {
        display: none;
    }
}

@media (max-width: 599px) {
    .auswertung-kopfzeile {
        flex-direction: column;
        gap: 0;
    }

    .legende {
        margin: 0 0 16px;
    }

    .legende-panel {
        left: 0;
        right: auto;
    }
}

.auswertung-metazeile {
    font-size: 13px;
    color: #777;
    margin: 10px 0 0 0;
}

.auswertung-aktionen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 14px 0 20px;
}

/* Antrag und PDF-Export gleich groß (Wunsch StMGP, 01.10.2026). Der Antrag
   ist ein Link, der Export ein <button> - deshalb Rahmen, Schrift und
   Zeilenhöhe des Browsers neutralisieren und eine gemeinsame Mindestbreite
   setzen, sonst bestimmt die Textlänge die Breite. */
.auswertung-aktion-btn {
    display: inline-block;
    box-sizing: border-box;
    min-width: 280px;
    padding: 12px 36px;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 10px rgba(102, 122, 102, 0.4);
}

.auswertung-pdf-btn {
    cursor: pointer;
}
/* Säulen im Überblick: 4er-Raster mit Vergleich je Säule zum Pilotstudien-
   Durchschnitt (gleiches Meter-Muster wie .vergleich-meter oben, Farben
   analog zu den Säulen-Akkordeons in empfehlungen.css: .saeule-1..4) */
.saeulen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.saeulen-karte {
    background-color: #fff;
    border-radius: 14px;
    padding: 18px 20px 16px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #667A66;
}

.saeulen-karte.saeule-1 { border-top-color: #626FA7; }
.saeulen-karte.saeule-2 { border-top-color: #709775; }
.saeulen-karte.saeule-3 { border-top-color: #E4B50A; }
.saeulen-karte.saeule-4 { border-top-color: #696363; }

/* Spinnennetz der Säulen (Ihr Haus gegen Ø) vor den Säulen-Karten. Farben
   wie die Vergleichsbalken: Haus #667A66, Vergleichswert #ebb65c. */
/* Eigene Karte im Stil der Säulen-Karten: links das Netz, rechts die
   Lesehilfe; unter 700px untereinander. */
.spinnennetz {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px 32px;
    margin: 0 0 24px;
    padding: 20px 28px;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);
}

.spinnennetz-grafik {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.spinnennetz-lesehilfe {
    font-size: 15px;
    line-height: 1.6;
    color: #5a5a5a;
}

.spinnennetz-lesehilfe p {
    margin: 0 0 8px;
}

.spinnennetz-titel {
    margin: 0 0 12px;
    color: #333;
}

@media (max-width: 699px) {
    .spinnennetz {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}


.netz-ring {
    fill: none;
    stroke: #d9d9d9;
    stroke-width: 1;
}

.netz-ring-text {
    fill: #777;
    font-size: 12px;
    /* weißer Rand, damit die Zahl über Fläche und Achse lesbar bleibt */
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 3px;
}

.netz-achse {
    stroke: #c4c4c4;
    stroke-width: 1;
}

.netz-flaeche-vergleich {
    fill: none;
    stroke: #ebb65c;
    stroke-width: 2;
    stroke-dasharray: 6 4;
}

.netz-flaeche-haus {
    fill: none;
    stroke: #667A66;
    stroke-width: 2.5;
}

.netz-punkt-haus {
    fill: #667A66;
}

.netz-beschriftung {
    fill: #333;
    font-size: 14px;
    font-weight: 600;
}

/* Werte zur Grafik in der Lesehilfe statt am Netz (Wunsch 06.10.2026) */
.spinnennetz-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
    font-size: 14px;
    color: #333;
}

.spinnennetz-tabelle th,
.spinnennetz-tabelle td {
    padding: 5px 6px;
    border-bottom: 1px solid #e3e3e3;
    text-align: right;
}

.spinnennetz-tabelle th:first-child,
.spinnennetz-tabelle td:first-child {
    padding-left: 0;
    text-align: left;
}

.spinnennetz-tabelle th {
    font-weight: 600;
    color: #5a5a5a;
}

.netz-tabelle-haus {
    font-weight: 700;
}

/* Zeilen leicht transparent in der Säulenfarbe hinterlegt, mit weißem
   Abstand dazwischen statt Trennlinie */
.spinnennetz-tabelle tbody td {
    border-bottom: 2px solid #fff;
}

.spinnennetz-tabelle tbody td:first-child {
    padding-left: 8px;
}

.spinnennetz-tabelle tr.saeule-1 td { background-color: rgba(98, 111, 167, 0.15); }
.spinnennetz-tabelle tr.saeule-2 td { background-color: rgba(112, 151, 117, 0.15); }
.spinnennetz-tabelle tr.saeule-3 td { background-color: rgba(228, 181, 10, 0.15); }
.spinnennetz-tabelle tr.saeule-4 td { background-color: rgba(105, 99, 99, 0.15); }

/* Säulennamen am Netz in der Säulenfarbe - dunklere Textvarianten wie bei
   den Kennzahl-Tags, das helle Gelb wäre als Schrift zu blass */
.netz-beschriftung .saeule-1 { fill: #4c5687; }
.netz-beschriftung .saeule-2 { fill: #52735a; }
.netz-beschriftung .saeule-3 { fill: #7a6106; }
.netz-beschriftung .saeule-4 { fill: #555050; }

.spinnennetz-legende {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    color: #333;
}

.spinnennetz-legende li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.netz-legende-symbol {
    display: inline-block;
    width: 22px;
    height: 0;
}

.netz-legende-haus {
    border-top: 3px solid #667A66;
}

.netz-legende-vergleich {
    border-top: 2px dashed #ebb65c;
}

/* Innovative Maßnahmen: eine Karte je Säule über die volle Breite (Freitexte
   können lang sein), Rahmenfarbe wie die Säulenkarten */
.innovation-liste {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.innovation-karte {
    background-color: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667A66;
}

.innovation-karte.saeule-1 { border-left-color: #626FA7; }
.innovation-karte.saeule-2 { border-left-color: #709775; }
.innovation-karte.saeule-3 { border-left-color: #E4B50A; }
.innovation-karte.saeule-4 { border-left-color: #696363; }

.innovation-karte .saeulen-karte-titel {
    margin-bottom: 8px;
}

.innovation-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.innovation-text-leer {
    color: #888;
    font-style: italic;
}

.saeulen-karte-titel {
    margin: 0 0 14px;
    font-size: 16px;
    color: #353535;
}

.saeulen-karte-metrik {
    margin-bottom: 14px;
}

/* Säulen-Gesamtwert oben in der Karte, analog zum Gesamtscore der Seite */
.saeulen-karte-gesamt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e3e3e3;
}

.saeulen-gesamt-wert {
    font-size: 30px;
    font-weight: 700;
    color: #353535;
    line-height: 1.1;
}

.saeulen-gesamt-label {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.saeulen-karte-gesamt .vergleich-referenz {
    margin: 4px 0 0;
}

.saeulen-karte-metrik:last-child {
    margin-bottom: 0;
}

.saeulen-karte-metrik-kopf {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.saeulen-karte-label {
    font-size: 12px;
    color: #666;
}

.saeulen-karte-wert {
    font-size: 15px;
    font-weight: 700;
    color: #667A66;
    white-space: nowrap;
}

/* Tabellen (KPIs) */
.auswertung-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.auswertung-tabelle th,
.auswertung-tabelle td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #ebebeb;
}

.auswertung-tabelle th {
    background-color: #f0f4f0;
    color: #353535;
    font-weight: 700;
}

/* Säulen-Trennzeile innerhalb der durchgehenden KPI-Tabelle - eine Tabelle
   statt einer Tabelle je Säule, damit Punkte- und Vergleichsspalte über alle
   Säulen hinweg exakt untereinanderstehen (gemeinsame Spaltenbreiten).
   Farben wie die Säulen-Akkordeons in empfehlungen.css: .saeule-1..4. */
.kpi-saeulen-trenner td {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #353535;
    border-bottom: 1px solid #ebebeb;
}

.kpi-saeulen-trenner.saeule-1 td { background-color: #C0C5DC; }
.kpi-saeulen-trenner.saeule-2 td { background-color: #C6D5C8; }
.kpi-saeulen-trenner.saeule-3 td { background-color: #FBE599; }
.kpi-saeulen-trenner.saeule-4 td { background-color: #C4C0C0; }

/* KPI-Vergleich: je Kennzahl zwei schmale Balken übereinander (Krankenhaus /
   Pilotstudien-Durchschnitt), gleiche Farbgebung wie die übrigen Vergleiche
   auf der Seite (Krankenhaus = Grün, Vergleichswert = Amber) */
.kpi-vergleich {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 160px;
    max-width: 260px;
}

.kpi-vergleich-zeile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi-vergleich-label {
    flex-shrink: 0;
    width: 16px;
    font-size: 11px;
    font-weight: 700;
    color: #777;
}

.kpi-balken-track {
    position: relative;
    flex-grow: 1;
    height: 8px;
    border-radius: 4px;
    background-color: #ececec;
}

.kpi-balken-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: 100%;
    border-radius: 4px;
}

.kpi-balken-fill-kh {
    background-color: #667A66;
}

.kpi-balken-fill-vergleich {
    background-color: #ebb65c;
}

/* Indikatorliste (Akkordeon je Säule) */
/* Überfrage einer Matrixfrage: graue Akzentleiste + Hintergrund, damit auf
   den ersten Blick klar ist, dass die Unterfragen darunter zu ihr gehören -
   unterscheidet sie von eigenständigen Fragen, die ohne Titel direkt (ohne
   Einzug) in der Liste stehen. Bewusst neutrales Grau statt Säulenfarbe:
   die Säulenidentität steckt schon in Akkordeon-Kopf und Werte-Badges,
   hier soll nur die Hierarchie sichtbar werden. */
.indikator-frage-titel {
    margin: 22px 0 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #353535;
    background-color: #ececec;
    border-left: 3px solid #9b9b9b;
    border-radius: 4px 4px 0 0;
}

.acc-saeule-body > .indikator-frage-titel:first-child {
    margin-top: 12px;
}

.indikator-liste {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

/* Unterfragen (Antwortoptionen) einer Matrixfrage: eingerückt, mit
   durchgehender (hellerer) grauer Akzentleiste als optische Fortsetzung
   des Fragetitels darüber und leicht abgesetztem Hintergrund. */
.indikator-liste-optionen {
    margin: 0 0 4px;
    padding: 2px 0 2px 22px;
    background-color: #f7f7f7;
    border-left: 3px solid #d6d6d6;
    border-radius: 0 0 4px 4px;
}

.indikator-liste-optionen .indikator-label {
    color: #5a5a5a;
    font-size: 12.5px;
}

.indikator-liste li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 10px 0;
    border-bottom: 1px solid #ebebeb;
    font-size: 13px;
}

.indikator-liste li:last-child {
    border-bottom: none;
}

.indikator-label {
    color: #353535;
}

/* Indikatoren im Detail: alle Fragen mit Antworten (seit 29.09.2026) */
.detail-einleitung {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #5a5a5a;
}

/* Unterkategorie (E1 Energie …) als Zwischenüberschrift im Säulen-Akkordeon */
.detail-kategorie-titel {
    margin: 26px 0 4px;
    padding-bottom: 6px;
    font-size: 14px;
    border-bottom: 2px solid #d6d6d6;
}

.acc-saeule-body > .detail-kategorie-titel:first-child {
    margin-top: 14px;
}

/* Fragetext links, darunter die Markierung */
.detail-frage {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* Antwort des Krankenhauses: feste Spalte rechts, damit die Antworten
   untereinanderstehen; lange Freitexte dürfen umbrechen. Bewusst neutral -
   die Säulenfarbe markiert, was einfließt (Schilder darunter), nicht die
   Antwort selbst. */
.antwort-wert {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 180px;
    padding: 3px 10px;
    border-radius: 10px;
    background-color: #f2f2f2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Ja/Nein wie in der früheren Indikatorliste hervorgehoben: "Ja" gefüllt,
   "Nein" als Kontur in der Säulenfarbe (unterscheidbar ohne Rot), "keine
   Angabe" neutral grau. Übrige Antworten (Zahlen, Freitext) bleiben neutral. */
.antwort-wert-ja {
    background-color: #667A66;
    color: #fff;
}

.antwort-wert-nein {
    background-color: transparent;
    border: 1.5px solid #667A66;
    color: #667A66;
}

/* Freitext-Antworten: unter der Frage über die volle Breite, linksbündig
   und in normaler Schrift, Zeilenumbrüche aus dem Textfeld bleiben erhalten */
.indikator-liste li.frage-freitext {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.antwort-wert.antwort-wert-freitext {  /* doppelte Klasse schlägt die Spaltenbreiten der Media Queries */
    width: auto;
    padding: 8px 12px;
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
    white-space: pre-line;
}

.antwort-wert-fehlend {
    background-color: #ececec;
    font-weight: 400;
    font-style: italic;
    color: #666;
}

.acc-saeule.saeule-1 .antwort-wert-ja { background-color: #626FA7; }
.acc-saeule.saeule-1 .antwort-wert-nein { border-color: #626FA7; color: #626FA7; }

.acc-saeule.saeule-2 .antwort-wert-ja { background-color: #709775; }
.acc-saeule.saeule-2 .antwort-wert-nein { border-color: #709775; color: #709775; }

.acc-saeule.saeule-3 .antwort-wert-ja { background-color: #E4B50A; color: #353535; }
.acc-saeule.saeule-3 .antwort-wert-nein { border-color: #E4B50A; color: #92750a; }

.acc-saeule.saeule-4 .antwort-wert-ja { background-color: #696363; }
.acc-saeule.saeule-4 .antwort-wert-nein { border-color: #696363; color: #696363; }

/* Markierung: in welche Indikatoren die Antwort einfließt */
.zuordnung {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.zuordnung-tag {
    padding: 1px 9px;
    border-radius: 10px;
    border: 1.5px solid #667A66;
    color: #4a5d4a;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
}

/* Überschrift „Indikatoren im Detail" mit Legende des Symbols rechts daneben */
.detail-kopf {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    column-gap: 20px;
    row-gap: 4px;
    margin-top: 40px;
}

.detail-kopf h2 {
    margin: 0.83em 0;
}

.detail-legende {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #666;
}

/* Symbol „fließt nicht in die Auswertung ein" (Kreis mit Schrägstrich):
   dezent grau, in Textgröße direkt hinter dem Fragetext */
.symbol-nicht-einfliessend {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 3px;
    vertical-align: -2px;
    color: #9a9a9a;
}

.detail-legende .symbol-nicht-einfliessend {
    width: 14px;
    height: 14px;
    margin-left: 0;
}

/* Fragetitel einer Matrixfrage: Markierung mit etwas Abstand darunter */
.indikator-frage-titel .zuordnung {
    margin-top: 5px;
    font-weight: 400;
}

/* Schilder in der jeweiligen Säulenfarbe (wie die Säulen-Überschriften) */
.acc-saeule.saeule-1 .zuordnung-tag { border-color: #626FA7; color: #4c5687; background-color: #eef0f8; }
.acc-saeule.saeule-2 .zuordnung-tag { border-color: #709775; color: #52735a; background-color: #eef4ef; }
.acc-saeule.saeule-3 .zuordnung-tag { border-color: #E4B50A; color: #7a6106; background-color: #fcf6e0; }
.acc-saeule.saeule-4 .zuordnung-tag { border-color: #696363; color: #555050; background-color: #f1f0f0; }
/* ===== Quick-Check-Report (03.08.2026) =====
   Konzept: docs/zertifizierung/KONZEPT_QuickCheck_Report.md
   Farben aus der Projektpalette: Grün #667A66/#bae0ba, Gelb #fcd28d,
   Rot #a94442 (schon für Fehlerhinweise oben verwendet). */

.quick-container {
    margin: 0 auto 50px;
}

.quick-container h2 {
    margin-top: 40px;
}

/* --- Gesamtampel --- */

.quick-ampel {
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: #FFFFFF;
    border-radius: 6px;
    border-left: 8px solid #667A66;
    padding: 25px 30px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.quick-ampel-licht {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d9d9d9;
}

.quick-ampel-aussage {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.quick-ampel-wert {
    margin: 0;
    font-size: 15px;
}.quick-ampel-gruen { border-left-color: #4a7c4a; }
.quick-ampel-gruen .quick-ampel-licht { background-color: #7cb87c; }

.quick-ampel-gelb { border-left-color: #d99a2b; }
.quick-ampel-gelb .quick-ampel-licht { background-color: #fcd28d; }

.quick-ampel-rot { border-left-color: #a94442; }
.quick-ampel-rot .quick-ampel-licht { background-color: #d68682; }

/* --- Hinweise --- */

.quick-hinweis {
    background-color: #FFFFFF;
    border-left: 4px solid #667A66;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.quick-hinweis p {
    margin: 0 0 8px 0;
}

.quick-hinweis p:last-child {
    margin-bottom: 0;
}

.quick-hinweis-warnung { border-left-color: #d99a2b; }
.quick-hinweis-grundlagen { border-left-color: #a94442; }

/* --- Säulen --- */

.quick-saeulen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-saeule {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 6px;
    border-top: 10px solid #d9d9d9;
    padding: 20px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.2);
}

.quick-saeule.quick-ampel-gruen { border-top-color: #7cb87c; }
.quick-saeule.quick-ampel-gelb { border-top-color: #fcd28d; }
.quick-saeule.quick-ampel-rot { border-top-color: #d68682; }
.quick-saeule.quick-ampel-offen { border-top-color: #d9d9d9; }

.quick-saeule-name {
    font-weight: 700;
    font-size: 15px;
}

.quick-saeule-wert {
    font-size: 30px;
    font-weight: 700;
    margin: 8px 0 4px 0;
}

.quick-saeule-offen {
    font-size: 16px;
    font-weight: 400;
    color: #667A66;
}

.quick-saeule-basis {
    font-size: 13px;
    color: #667A66;
}

/* Empfehlungskasten: die Empfehlung trägt den Block, die Einordnung darunter
   ist bewusst zurückgenommen. */

.quick-empfehlung {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.quick-einordnung-fussnote {
    font-size: 13px;
    line-height: 1.5;
    color: #667A66;
    margin: 0;
}

/* --- Kennzahlen --- */

.quick-kennzahlen {
    background-color: #FFFFFF;
    border-radius: 6px;
    padding: 20px 25px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.2);
}

.quick-kennzahl-tabelle {
    width: 100%;
    border-collapse: collapse;
}

.quick-kennzahl-tabelle th,
.quick-kennzahl-tabelle td {
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 15px;
}

.quick-kennzahl-tabelle th {
    font-weight: 400;
}

.quick-kennzahl-tabelle td {
    text-align: right;
    white-space: nowrap;
}

/* Zahl kräftig, Einheit zurückhaltend - macht die langen kWh-Werte lesbar */
.quick-kennzahl-wert {
    font-weight: 700;
    font-size: 17px;
}

.quick-kennzahl-einheit {
    color: #667A66;
    font-size: 14px;
    margin-left: 4px;
}

.quick-kennzahl-fussnote {
    font-size: 13px;
    color: #667A66;
    margin: 15px 0 0 0;
}

/* --- Einordnung und Weiterführung --- */

.quick-einordnung {
    background-color: #E7F1E5;
    border-radius: 6px;
    padding: 20px 25px;
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.6;
}


/* Auswahlkarten wie auf der Evaluations- und Empfehlungsseite: heller
   Grünverlauf, runde Ecken, darin ein buttondark aus base.css. */

.quick-weiter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.quick-weiter-karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #e0f0e0;
    border-radius: 36px;
    padding: 35px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.quick-weiter-karte:nth-child(2) { background-color: #c8e6c8; }
.quick-weiter-karte:nth-child(3) { background-color: #b0d0b0; }

.quick-weiter-karte h3 {
    margin: 0 0 12px 0;
}

.quick-weiter-karte p {
    line-height: 1.5;
    margin: 0 0 25px 0;
}

/* Schiebt den Button ans Kartenende, damit die Buttons aller Karten
   unabhängig von der Textlänge auf einer Höhe stehen. */
.quick-weiter-karte .buttondark {
    margin-top: auto;
    display: inline-block;
    text-decoration: none;
}

/* ===== Tablet (bis 1023px) ===== */
@media (max-width: 1023px) {
    /* Die vier Säulen-Karten als 2x2 statt 3+1 */
    .saeulen-grid, .quick-saeulen {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-wert {
        font-size: 42px;
    }

    /* Antwort bleibt rechts, der Fragetext bricht davor um */
    .indikator-liste li {
        gap: 16px;
    }

    .antwort-wert {
        width: 140px;
    }

    .quick-ampel {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* ===== Handy (bis 599px) ===== */
@media (max-width: 599px) {
    .saeulen-grid, .quick-saeulen {
        grid-template-columns: 1fr;
    }

    /* Antwort unter den Fragetext statt daneben, damit beide Platz haben */
    .indikator-liste li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .antwort-wert {
        width: auto;
        max-width: 100%;
        text-align: left;
    }

    .auswertung-hero {
        padding: 20px 14px 18px;
    }

    .hero-wert {
        font-size: 34px;
    }

    .auswertung-aktionen {
        flex-direction: column;
        align-items: stretch;
    }
    .auswertung-aktion-btn {
        text-align: center;
    }

    .quick-ampel-licht {
        width: 44px;
        height: 44px;
    }
}

/* ===== PDF-Export der Auswertungsseite (Browser-Druck, 25.08.2026) =====
   Kein serverseitiges PDF - der "Als PDF exportieren"-Button ruft nur
   window.print() auf, das Krankenhaus speichert im Druckdialog als PDF.
   Universelles Hintergrundfarben-Erzwingen (print-color-adjust) und das
   Ausblenden von Navigation/Footer stehen zentral im @media-print-Block in
   base.css. Hier nur das, was spezifisch zur Auswertungsseite gehört:
   Aktionsflächen ausblenden und die per JS eingeklappten Indikatoren-
   Akkordeons für den Ausdruck erzwungen aufklappen, damit wirklich alles
   auf der Druckdatei zu sehen ist (beide Klassen des Akkordeon-Bodys -
   .acc-body aus base.css/empfehlungen.css UND das spezifischere
   .acc-saeule-body - müssen überschrieben werden, plus .acc-saeule selbst,
   das per Standard overflow: hidden trägt). */
@media print {
    /* Auswertung beim Drucken auf 65 % verkleinern (wie „Skalierung 65" im
       Druckdialog, den eine Seite selbst nicht einstellen kann) - spart gut
       ein Drittel der Seiten. Nur die Comprehensive-Auswertung, nicht die
       Zertifizierungsseite mit demselben Container. Im Druckdialog die
       Skalierung deshalb auf Standard lassen, sonst wird doppelt verkleinert. */
    .auswertung-druck-verkleinert {
        zoom: 0.65;
    }

    .auswertung-aktionen,
    .acc-icon,
    .druck-kurzfassung .auswertung-langfassung {
        display: none !important;
    }

    .acc-saeule,
    .acc-body,
    .acc-saeule-body {
        max-height: none !important;
        overflow: visible !important;
    }

    /* .acc-saeule bewusst NICHT break-inside: avoid - bei "Indikatoren im
       Detail" ist eine Säule oft länger als eine Seite; würde man sie als
       Ganzes vor einem Seitenumbruch schützen, springt sie komplett auf die
       nächste Seite und reißt eine große Lücke. Stattdessen bleiben nur die
       einzelnen Zeilen/Fragen zusammenhängend (dort stört ein Umbruch
       wirklich), der Rest fließt frei über Seiten hinweg durch. */
    .auswertung-hinweis,
    .saeulen-karte,
    .innovation-karte,
    .indikator-frage-titel,
    .detail-kategorie-titel,
    .indikator-liste li,
    tr {
        break-inside: avoid;
    }

    /* Überschriften sollen nicht allein am Seitenende stehen: Abschnitts-
       überschrift samt Einleitung, Säulen-Kopf, Unterkategorie und der
       Fragetitel einer Matrixfrage (sonst stehen seine Optionen erst auf
       der nächsten Seite). */
    .auswertung-container h2,
    .detail-kopf,
    .detail-einleitung,
    .acc-saeule-header,
    .detail-kategorie-titel,
    .indikator-frage-titel {
        break-after: avoid;
    }

    /* Gleicher Firefox-Trick wie unten, aber über Innenabstand statt
       Pseudo-Element - der Kopf ist eine Flexbox, dort würde das Pseudo-
       Element nebeneinander statt darunter liegen. */
    .detail-kopf {
        break-inside: avoid;
        padding-bottom: 80px;
        margin-bottom: -80px;
    }

    /* Firefox kennt break-after: avoid nicht. Deshalb reservieren diese
       Überschriften unsichtbar Platz für die erste Zeile darunter (Pseudo-
       Element mit gleich großem negativem Rand, verschiebt also nichts): Ist
       der am Seitenende nicht mehr frei, wandert die Überschrift als Ganzes
       (break-inside: avoid) auf die nächste Seite. */
    .auswertung-container h2,
    .detail-kategorie-titel,
    .indikator-frage-titel {
        break-inside: avoid;
    }

    .auswertung-container h2::after,
    .detail-kategorie-titel::after,
    .indikator-frage-titel::after {
        content: "";
        display: block;
        height: 60px;
        margin-bottom: -60px;
    }

    /* Kompakter: weniger Weißraum zwischen/innerhalb der Indikatorblöcke,
       damit "Indikatoren im Detail" auf spürbar weniger Seiten passt und
       die Fragen dichter aneinander wirken statt zerrissen über viele
       Seiten verteilt. */
    .auswertung-container h2,
    .detail-kopf {
        margin-top: 16px;
    }

    .detail-kopf h2 {
        margin-top: 0;
    }

    .acc-saeule {
        margin-bottom: 4px;
    }

    .acc-saeule-header {
        padding: 8px 16px;
    }

    .acc-saeule-body {
        padding: 0 16px;
    }

    .indikator-frage-titel {
        margin-top: 10px;
        padding: 5px 12px;
    }

    .acc-saeule-body > .indikator-frage-titel:first-child {
        margin-top: 6px;
    }

    .indikator-liste {
        padding: 2px 0;
    }

    /* .indikator-liste-optionen trägt normalerweise den linken Einzug
       (22px) der Unterfragen einer Matrixfrage - die generische
       .indikator-liste-Regel direkt darüber hat im Druck-Block aber
       dieselbe Spezifität und steht später in der Kaskade, würde den
       Einzug also sonst auf 0 zurücksetzen ("an den Rand gequetscht"). */
    .indikator-liste-optionen {
        padding: 2px 0 2px 22px;
    }

    .indikator-liste li {
        padding: 4px 0;
    }
}

/* ===== Antragsseite „Auszeichnung beantragen“ (Umbau 09.10.2026) =====
   Vier klar unterschiedliche Blöcke statt gleich aussehender Hinweis-
   kästen: Ergebnis-Karte, Stufen-Karten, Schritt-Leiste, Antrag-Block. */

/* Ergebnis-Karte: wie .auswertung-hero, dazu Stufe und Sprung-Button */
.antrag-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #C6D5C8;
    border-radius: 20px;
    padding: 24px 20px 26px;
    margin-bottom: 10px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.antrag-hero-kopf {
    font-size: 14px;
    color: #4a5a4a;
    margin-bottom: 6px;
}

.antrag-hero-stufe {
    font-size: 17px;
    margin: 16px 0 18px;
}

.antrag-hero-stufe strong {
    color: #2f4a2f;
}

/* Stufen-Karten: erreichte mit Haken, die eigene Stufe hervorgehoben,
   nicht erreichte zurückgenommen */
.stufen-karten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stufe-karte {
    background-color: #f4f5f4;
    border: 2px solid #e0e3e0;
    border-radius: 14px;
    padding: 16px 20px;
    color: #6b706b;
}

.stufe-karte.stufe-erreicht {
    background-color: #fff;
    border-color: #C6D5C8;
    color: #353535;
}

.stufe-karte.stufe-ihre {
    border-color: #667A66;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);
}

.stufe-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stufe-erreicht .stufe-status {
    color: #2f5d34;
}

.stufe-haken {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    border-radius: 50%;
    background-color: #667A66;
    color: #fff;
    font-size: 11px;
}

.stufe-name {
    margin: 8px 0 6px;
    font-size: 18px;
}

.stufe-bedingung {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.stufen-fussnote {
    font-size: 13px;
    color: #666;
    margin: 12px 0 0;
}

/* Schritt-Leiste: nummerierte Kreise, verbunden durch eine Linie. Spalten
   automatisch, weil es vor dem ersten Check fünf statt vier Schritte sind. */
.antrag-schritte {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.antrag-schritt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

/* Verbindungslinie zum nächsten Schritt (Mitte Kreis bis Mitte Kreis) */
.antrag-schritt:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(50% + 28px);
    width: calc(100% - 40px);
    height: 2px;
    background-color: #C6D5C8;
}

.schritt-nummer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #667A66;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.schritt-titel {
    font-size: 15px;
    margin-bottom: 4px;
}

.schritt-text {
    color: #555;
}

/* Antrag-Block: abgesetzt, Button mittig */
.antrag-abschluss {
    background-color: #E7F1E5;
    border-radius: 20px;
    padding: 6px 24px 28px;
    text-align: center;
    scroll-margin-top: 20px;
}

.antrag-abschluss h2 {
    margin-top: 20px;
}

.antrag-gesperrt {
    max-width: 560px;
    margin: 0 auto 18px;
}

/* Ergebnis-Karte ohne Punktzahl (noch kein Check) und als Bestätigung
   nach dem Einreichen */
.antrag-hero-titel {
    font-size: 20px;
    font-weight: 700;
    color: #2f4a2f;
    margin: 0 0 8px;
}

.antrag-hero-text {
    max-width: 640px;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.antrag-hero-erfolg {
    background-color: #E7F1E5;
    border: 2px solid #667A66;
}

.antrag-hero-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #667A66;
    color: #fff;
    font-size: 26px;
    margin-bottom: 12px;
}

/* Stufen-Karte ohne Ergebnis: weder erreicht noch ausgegraut */
.stufe-karte.stufe-neutral {
    background-color: #fff;
    color: #353535;
}

/* Erledigte Schritte: Haken statt Nummer, Linie in Projektgrün */
.schritt-erledigt .schritt-nummer {
    background-color: #2f5d34;
}

.antrag-schritt.schritt-erledigt:not(:last-child)::after {
    background-color: #667A66;
}

.antrag-aktionen {
    justify-content: center;
}

/* Handy: Schritte untereinander, Kreis links, Linie senkrecht */
@media (max-width: 699px) {
    .antrag-schritte {
        grid-auto-flow: row;
        gap: 18px;
    }

    .antrag-schritt {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 14px;
        align-items: start;
        text-align: left;
    }

    .schritt-nummer {
        grid-row: span 2;
        margin-bottom: 0;
    }

    .antrag-schritt:not(:last-child)::after {
        top: 46px;
        left: 19px;
        width: 2px;
        height: calc(100% - 34px);
    }

    .antrag-hero .auswertung-aktion-btn,
    .antrag-abschluss .auswertung-aktion-btn,
    .antrag-aktionen .auswertung-aktion-btn {
        min-width: 0;
        width: 100%;
    }
}
