/* Datenschutz Popup */
#evaluation-popup {
    display: none; /* standardmäßig unsichtbar */
    flex-direction: column;
    position: fixed;
    max-height: 80vh; /* Gesamthöhe des Popups begrenzen */
    max-width: 800px;
    width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

/* Bereich mit scrollbarem Text */
.datenschutz-container-evaluation {
    overflow-y: auto; /* Scrollbalken einblenden, falls nötig */
    max-height: 60vh; /* Inhaltshöhe begrenzen */
    padding-right: 10px; /* Platz für Scrollbar */
    margin-bottom: 20px; /* Abstand zum Button */
}

/* Deaktivierter Button bis zum Ende gescrollt wurde */
#buttonevaluation:disabled {
    background: #BDBDBD;
    cursor: not-allowed;
    opacity: 0.9;
}

/* Popup für Navigations-Anleitung */
#navigation-anleitung-popup {
    display: none; /* <-- Popup ist initial versteckt */
    position: fixed; /* fixiert am Bildschirm, unabhängig vom Scrollen */
    top: 50%; /* vertikal zentriert */
    left: 50%; /* horizontal zentriert */
    transform: translate(-50%, -50%); /* exakte Zentrierung */
    background: #FFFFFF;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 600px; /* Begrenzte Breite */
    width: 80%; /* auf kleineren Screens flexibel */
    text-align: left; /* Inhalt zentrieren */
}

/* Info-Button */
#anleitung-info-button {
    position: absolute;
    top: 136px; /* auf Höhe der Überschrift: Navbar 100px + 16px Abstand + 20px Überschrift-Rand */
    right: var(--rand); /* bündig mit dem rechten Inhaltsrand */
    width: 30px;
    height: 30px;
    background: #667A66;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* Standard: Button ist versteckt (wird erst sichtbar wenn Popup bestätigt wurde) */
#anleitung-info-button.hide {
    display: none;
}

/* Überschriften */
.energie_ueberschrift {
    color: #626FA7 !important;
}

.umwelt_ueberschrift {
    color: #709775 !important;
}

.mensch_ueberschrift {
    color: #E4B50A !important;
}

.management_ueberschrift {
    color: #696363 !important;
}

/* Blockstatz und Silbentrennung bei Erklärtexten */
.erklärungen-wrapper p {
  text-align: justify;
  hyphens: auto;
}
/* Auswahlkarten (Evaluation, Auswertung, Empfehlungen): alle Karten in
   einer Reihe, auf dem Laptop höchstens 400px breit und als Gruppe mittig,
   auf dem Bildschirm über die volle Inhaltsbreite. Tablet 2 Spalten, Handy
   1 Spalte. */
.container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 400px);
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 40px 24px;
    background-color: #e0f0e0;
    border-radius: 36px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 14px;
}

/* Zeitangabe + Button stehen unabhängig von der Textlänge am Kartenende */
.card .dauer {
    margin-top: auto;
}

/* Kartentext bleibt auch in breiten Karten gut lesbar */
.card p, .cardempfehlungen p {
    max-width: 440px;
}

.card:nth-child(2) {
    background-color: #c8e6c8;
}

.card:nth-child(3) {
    background-color: #b0d0b0;
}

.card p {
    padding-bottom: 20px;
}

/* Feste Icongröße, unabhängig von der Kartenbreite */
.icon {
    display: inline-block;
    width: 110px;
}

.dauericon {
    width: 20px;
    height: 20px;
}

.dauer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: help;
}

.dauer-text {
    visibility: hidden; /* Text zuerst unsichtbar */
    opacity: 0; /* für sanfte Einblendung */
    position: absolute;
    bottom: 110%; /* oberhalb des Elements */
    left: 50%;
    transform: translateX(-50%);
    background: #353535;
    color: #FFFFFF;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    width: max-content;
    max-width: 220px; /* bricht um statt über den Seitenrand zu ragen */
    transition: opacity 0.2s ease;
    z-index: 10;
}

.dauer:hover .dauer-text {
    visibility: visible;
    opacity: 1;
}

.dauer:hover {
    color: #667A66;
}

/* h2 Überschrift */
.ueberschrift {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 20px;
    color: #353535;
}

/* Navigation Evaluation */
/* Haupt-Container: 6 Steps nebeneinander */
.category-stepper {
    position: relative; /* für die Pseudo-Line */
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Kreise bleiben auf einer Linie, auch bei zweizeiligen Labels */
    margin-bottom: 30px;
    padding: 0 25px; /* halb den Circle-Durchmesser als Abstand */
}

/* Durchgehende Linie hinter den Circles */
.category-stepper::before {
    content: "";
    position: absolute;
    top: 48px; /* 10px Link-Padding + halber 80px-Kreis - halbe Linienstärke */
    left: calc(25px + (100% - 50px) / 12); /* Mitte des ersten bzw. letzten von 6 Steps */
    right: calc(25px + (100% - 50px) / 12);
    height: 3px;
    background-color: #353535;
    z-index: 0;
}

/* Einzelne Steps: Kreis über Label zentrieren */
.category-stepper .step {
    position: relative;
    z-index: 1; /* über der Linie */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #353535;
    width: 100%;
}

/* Der Kreis */
.category-stepper .step .circle {
    width: 80px;
    height: 80px;
    border: 3px solid #353535;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.category-stepper .step .circle img {
    max-width: 60%;
    max-height: 60%;
}

/* Pfeile und Positionsanzeige gibt es nur auf dem Handy (siehe unten) */
.stepper-pfeil, .stepper-position {
    display: none;
}

/* Label direkt unter dem Kreis. Reserviert immer zwei Zeilen, damit die
   Prozentzahlen darunter auf einer Linie stehen, auch wenn ein langes
   Label wie "Energie & Infrastruktur" umbricht. */
.category-stepper .step .label {
    min-height: 40px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

/* Aktiver Zustand */
.category-stepper .step.active .circle {
    background-color: #667A66;
    border-color: #667A66;
}

.category-stepper .step.active .label {
    color: #353535;
    font-weight: bold;
}

.category-stepper .step.active .circle img {
    filter: brightness(0) invert(1); /* weiße Icons */
}

.category-stepper .step .subprogress {
    display: block;
    font-size: 14px;
    margin-top: 0;
    opacity: 0.8;
}

/* Untermenü der aktiven Säule (Einleitung, E1, E2 …): Pillen wie die Buttons,
   aktive Unterkategorie im Grün des aktiven Stepper-Kreises */
.unterkategorie-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: -10px 0 25px;
}

.unterkategorie-menu .unterkategorie {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 47px;
    background-color: #E7F1E5;
    color: #353535;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.unterkategorie-menu .unterkategorie:hover {
    background-color: #fcd28d;
}

.unterkategorie-menu .unterkategorie.active {
    background-color: #667A66;
    color: #FFFFFF;
    font-weight: bold;
}

.unterkategorie-menu .unterkategorie-code {
    font-weight: bold;
    opacity: 0.7;
}

.unterkategorie-menu .unterkategorie.active .unterkategorie-code {
    opacity: 1;
}

/* Positionsanzeige ("2 / 5") gibt es nur auf dem Handy (siehe unten) */
.unterkategorie-position {
    display: none;
}

/* Pflichtfelder Hinweis */
.pflichtfelder_hinweis {
    color: #b00020;
    display: flex;
    justify-content: right;
    font-size: 14px;
    font-style: italic;
    font-weight: bold;
    text-align: right;
}

.pflichtfelder_hinweis p {
    margin: 0;
    padding: 0;
}

/* Speichern-Leiste über den Fragen (rechtsbündig, Status links daneben) */
.speichern-leiste {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

/* Status-Kärtchen: gleiche Pillenform wie die Buttons */
.speichern-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 47px;
    font-size: 13px;
    line-height: 1.3;
}

.speichern-bestaetigung {
    background-color: #E7F1E5;
    color: #4a5d4a;
    animation: speichern-einblenden 0.4s ease;
}

.speichern-bestaetigung svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Hinweis auf ungespeicherte Änderungen: erst sichtbar, wenn das JS die
   Leiste als ungespeichert markiert; ersetzt dann die Bestätigung */
.speichern-ungespeichert {
    display: none;
    background-color: #fdf1dc;
    color: #7a5a1e;
}

.speichern-ungespeichert::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e0a030;
}

.speichern-leiste.ist-ungespeichert .speichern-ungespeichert {
    display: inline-flex;
}

.speichern-leiste.ist-ungespeichert .speichern-bestaetigung {
    display: none;
}

/* Speichern-Button: Farben wie Weiter (button[type="submit"] in base.css),
   ohne dessen großen Abstand nach unten, mit Icon */
.speichern-leiste button.button-speichern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

/* Icon aus media/icons/Speichern.svg als Maske: die Form kommt aus der Datei,
   die Farbe aus der Textfarbe des Buttons (wechselt so beim Hover mit) */
.speichern-leiste button.button-speichern .icon-speichern {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("media/icons/Speichern.e16340e04f69.svg") center / contain no-repeat;
    mask: url("media/icons/Speichern.e16340e04f69.svg") center / contain no-repeat;
}

.speichern-leiste button.button-speichern:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.speichern-leiste button.button-speichern:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@keyframes speichern-einblenden {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Allgemeiner Aufbau der Fragen */
.frage {
    margin-bottom: 50px;
    background-color: #ffffff; /* Hintergrundfarbe festlegen */
    padding: 20px; /* Innenabstand hinzufügen */
    border-radius: 5px; /* Abgerundete Ecken hinzufügen */
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Schatten hinzufügen */
}

.frage label {
    display: block;
    color: #353535; /* Textfarbe festlegen */
    padding: 10px 0;
}

.frage-nummer {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 12px;
    background-color: #e0f0e0;
    color: #4c5c4c;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.frage textarea, .frage input {
    width: 100%;
    height: 20px;
    resize: none;
    background-color: #FFFFFF;
    border: none;
    border-bottom: #353535 solid 1px;
    color: #353535;
    font-size: 16px;
}

/* "Wenn ja ..."-Frage */
.frage.dependent {
    display: none;
    margin-top: -60px;
}

/* Pflichtfelder (Sternchen) */
.required-asterisk {
    color: #c62828;
    margin-left: .25rem;
}

.form-error {
    color: #c62828;
    font-size: .9rem;
    margin: .25rem 0 .5rem;
}

/* Info-Felder */
.info-wrapper {
    position: relative;
    display: inline-block;
}

.info-icon {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    background: #667a66;
    text-align: center;
    font-family: "Calisto MT", serif;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 20px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: help;
}

.info-popup {
    display: none;
    position: absolute;
    top: 100%; /* Unter dem Icon */
    left: 50%; /* mittig unter dem Icon */
    transform: translateX(-50%); /* horizontal zentrieren */
    margin-top: 8px;
    padding: 5px;
    background-color: #667A66;
    line-height: 17px;
    font-size: 12px;
    font-weight: normal;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* weicher, dezenter Schatten */
    z-index: 10;

    /* Inhalt bestimmt die Breite, aber mit Grenzen */
    inline-size: fit-content; /* content-based width */
    min-inline-size: 38ch; /* breitere Mindestbreite (ca. 38 Zeichen) */
    max-inline-size: min(85ch, 95vw);
    max-block-size: min(70vh, 480px);
    overflow: auto; /* scrollen, wenn zu viel Inhalt */

    /* Umbrüche & lange Wörter */
    white-space: pre-wrap; /* \n bleiben, rest darf umbrechen */
    overflow-wrap: anywhere; /* lange Wörter dürfen umgebrochen werden */
}

/* Hover nur, wenn kein Klick aktiv war */
.info-icon:hover + .info-popup:not(.visible) {
    display: block;
}

/* Anzeige beim Klick */
.info-popup.visible {
    display: block;
}

/* Nachweis Infofeld; .nachweis-symbol ist dasselbe „N“ im Fließtext, ohne Popup */
.nachweis-icon,
.nachweis-symbol {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    background: #667A66;
    text-align: center;
    font-family: "Calisto MT", serif;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 20px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: help;
}

.nachweis-symbol {
    margin: 0 2px;
    cursor: default;
}

.nachweis-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 5px;
    background-color: #667A66;
    line-height: 17px;
    font-size: 12px;
    font-weight: normal;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;

    inline-size: fit-content;
    min-inline-size: 38ch;
    max-inline-size: min(85ch, 95vw);
    max-block-size: min(70vh, 480px);
    overflow: auto;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Hover-Verhalten wie bei Info */
.nachweis-icon:hover + .nachweis-popup:not(.visible) {
    display: block;
}

.nachweis-popup.visible {
    display: block;
}

/* Dropdown Auswahlfelder */
select {
    color: #353535;
    background-color: #f2f2f2;
    font-size: 16px;
    border-radius: 2px;
}

/* Ja/Nein-Fragen Styling */
.ja-nein-option input[type="radio"],
.ja-nein-alternative-option input[type="radio"],
.matrix-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0; /* bei langem Antworttext nicht zum Oval zusammendrücken */
    width: 20px;
    height: 20px;
    top: 5px; /* Feinabstimmung der vertikalen Position */
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid #667A66; /* Dunkelgrüne Farbe */
}

.ja-nein-option input[type="radio"]:checked,
.ja-nein-alternative-option input[type="radio"]:checked,
.matrix-option input[type="radio"]:checked {
    /* Punkt als Teil des Kreises statt als eigenes ::before-Element (09.10.2026):
       grüne Füllung, weißer Innenring als Abstand zum Rand. Rand und Punkt
       werden gemeinsam gezeichnet und können bei Windows-Skalierung oder
       Browser-Zoom nicht mehr gegeneinander verrutschen. */
    background-color: #667A66; /* Dunkelgrüne Farbe */
    box-shadow: inset 0 0 0 2px #FFFFFF;
}

.ja-nein-option label, .ja-nein-alternative-option label, .matrix-option label {
    display: flex;
    align-items: center;
    margin: 0; /* Entfernen Sie alle Standardränder */
    cursor: pointer;
    color: #353535; /* Textfarbe */
    line-height: 1.5; /* Sicherstellen, dass das Label auf gleicher Höhe wie der Radio-Button ist */
}

.ja-nein-container, .ja-nein-alternative-container {
    display: flex;
    font-weight: normal;
}

.ja-nein-container {
    gap: 20px;
}

.ja-nein-alternative-container {
    flex-direction: column;
}

/* Ja-Nein Matrix Styling */
.matrix-option input {
    margin-bottom: 15px;
}

.matrix-label {
    display: flex;
    font-weight: normal;
}

.matrix-label label {
    padding-right: 10px;
    padding-bottom: 20px !important;
}

.matrix-beschriftung {
    padding-bottom: 10px !important;
    font-weight: bold;
}

.matrix-option {
    border-bottom: 2px solid rgba(0, 0, 0, .1);
    margin-bottom: 20px;
}

/* Skala-Fragen Styling */
.skala-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
}

/* Slider soll die volle Breite einnehmen */
.skala-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0; /* Falls Browser-Defaults abweichen */
    background: transparent;
    border: none;
}

/* Slider-Track etwas anpassen (Webkit) */
.skala-container input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

/* Slider-Track für Firefox */
.skala-container input[type="range"]::-moz-range-track {
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

/* Stil für den Slider-Knopf */
.skala-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -6px; /* passt den Thumb vertikal auf den Track an */
    background: #fff;
    border-radius: 50%;
    border: 2px solid #667A66;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.skala-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #667A66;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Skala-Beschriftungen als Grid anordnen */
.skala-labels {
    position: absolute;
    display: flex;
    justify-content: space-between;
    left: 10px;
    right: 7px;
    top: 40px; /* Passe diesen Wert an, je nachdem wie weit unten die Labels erscheinen sollen */
    font-size: 14px;
    font-weight: bold;
}

/* Stil für den Checkbox-Bereich (Skala, Stern) */
.checkbox-container {
    margin-top: 70px;
}

.checkbox-container2 {
    margin-top: 20px;
}

.checkbox-container label, .checkbox-container2 label {
    display: flex;
    align-items: center;
    padding-bottom: 0;
}

/* Standard-Checkbox-Styling entfernen und Basisstil definieren */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    flex-shrink: 0; /* bei langem Antworttext nicht zusammendrücken */
    width: 20px;
    height: 20px;
    position: relative;
    margin-right: 20px;
    background-color: #fff;
    border: 2px solid #667A66;
    border-radius: 4px; /* Optional: abgerundete Ecken */
    cursor: pointer;
}

/* Styling, wenn die Checkbox ausgewählt ist */
input[type="checkbox"]:checked {
    background-color: #667A66; /* Hier deine gewünschte Farbe */
    border-color: #667A66;
}

/* Optional: Ein Häkchen hinzufügen, wenn ausgewählt */
input[type="checkbox"]:checked::after {
    content: "";
    /* Haken prozentual zentriert; -60 % statt -50 % gleicht aus, dass der
       gedrehte Haken optisch tiefer wirkt als sein Rahmen (09.10.2026) */
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Sterne-Bewertung-Frage Styling */
.sterne-bewertung {
    display: flex;
    font-size: 35px;
    cursor: pointer;
}

/* Stil für inaktive Sterne */
.stern {
    color: #f2f2f2;
    transition: color 0.3s;
    padding: 15px;
}

/* Stil für aktive (ausgewählte) Sterne */
.stern.aktiv {
    color: #fcd28d;
}

.stern:hover {
    color: #fcd28d;
}

/* Mehrere Antworten (Kennzahlen) */
.kennzahl-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.kennzahl-box {
    display: flex;
    align-items: center;
}

/* Diese Breite wird dynamisch durch JS gesetzt */
.kennzahl-box label {
    font-weight: normal;
    margin-right: 1em; /* Abstand zum Input-Feld */
    display: block; /* nimmt die ganze Zeile ein */
    word-wrap: break-word; /* bricht sehr lange Wörter */
    max-width: 700px; /* sorgt für Umbruch, wenn der Bildschirm kleiner ist */
    overflow-wrap: break-word; /* moderner Standard */
    white-space: normal; /* stellt sicher, dass normale Zeilenumbrüche erlaubt sind */
}

/* Einheitliche Breite der Input-Felder */
.frage .kennzahl-box input {
    width: 200px !important;
}

/* Eine Antwort (Kennzahl) */
.kennzahl-box1 {
    display: flex;
    gap: 30px;
}

.kennzahl-box1 input {
    width: 10%;
    height: auto;
}

.kennzahl-box1 label {
    font-weight: normal;
}

/* Fragetyp C */
.checkbox-multi-container .checkbox-multi-option {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-multi-container {
    display: grid;
}

/* Vielen Dank für Ihre Teilnahme */
.bestaetigung_block {
    display: flex;
    justify-content: center;
    margin: 120px 0;
    padding: 0 20px;
}

.bestaetigung_karte {
    max-width: 560px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.15);
    padding: 45px 40px 40px;
    text-align: center;
}

.bestaetigung_haken {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background-color: #667A66;
}

.bestaetigung_ueberschrift {
    margin: 0 0 20px;
}

.bestaetigung_karte p {
    line-height: 1.6;
    margin: 0 0 16px;
}

.bestaetigung_button {
    display: inline-block;
    text-decoration: none;
    margin: 10px 0 25px;
}

.bestaetigung_countdown_track {
    height: 6px;
    border-radius: 3px;
    background-color: #ececec;
    overflow: hidden;
    margin-bottom: 10px;
}

.bestaetigung_countdown_fill {
    height: 100%;
    width: 100%;
    background-color: #667A66;
    transition: width 1s linear;
}

#countdown-text {
    font-size: 14px;
    color: #667A66;
    margin: 0;
}

/* Nachfrage vor dem Abschicken der Evaluation */
.abschicken_block {
    display: grid;
    justify-content: center;
    text-align: center;
    margin: 200px 0;
}

.nachfrage-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: space-evenly;
}

.abschicken-confirm, .abschicken-cancel {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    border: none;
    border-radius: 47px;
    padding: 8px 30px;
    cursor: pointer;
    text-decoration: none;
}

.nachfrage-buttons .abschicken-cancel {
    background-color: #353535;
    color: #FFFFFF;
}

.nachfrage-buttons .abschicken-confirm {
    background-color: #667A66; /* deine Green-Hospital Farbe */
    color: #FFFFFF;
}

.abschicken-cancel:hover, .abschicken-confirm:hover {
    background-color: #b0d0b0;
    color: #353535;
}

/* Quick und Normal Check ausgrauen */
.card.is-disabled {
    filter: grayscale(1);
    opacity: 0.55;
    position: relative;
}

.card.is-disabled a,
.card.is-disabled .evaluation-button {
    pointer-events: none; /* Klicks deaktivieren */
    cursor: not-allowed;
    background-color: #BDBDBD; /* Button grau */
    color: #ffffff;
}

/* Optional: Badge "Deaktiviert" */
.card.is-disabled::after {
    content: "In Vorbereitung";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #667A66;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Falsche Eingabe */
.input-error {
    border: 2px solid #c62828;
    background-color: #fff5f5;
}

.form-error {
    color: #c62828;
    margin-top: 6px;
    font-size: 0.9rem;
}

/* ===== Bildschirm (ab 1600px) ===== */
@media (min-width: 1600px) {
    #anleitung-info-button {
        top: 152px; /* 32px Abstand statt 16px */
    }

    .container {
        grid-auto-columns: 1fr;
        gap: 48px;
    }

    .card {
        padding: 50px 30px;
    }

    .icon {
        width: 150px;
    }
}

/* ===== Tablet (bis 1023px) ===== */
@media (max-width: 1023px) {
    /* Karten bleiben nebeneinander, nur kompakter */
    .container {
        gap: 20px;
    }

    .card, .cardempfehlungen {
        padding: 30px 16px;
    }

    .card h3, .cardempfehlungen h3 {
        font-size: 15px;
    }

    .icon {
        width: 90px;
    }

    /* Stepper: alle Steps gleich breit mit Verbindungslinie, Kreise kleiner */
    .category-stepper {
        padding: 0;
    }

    .category-stepper::before {
        top: 40px; /* 10px Link-Padding + halber 64px-Kreis */
        left: calc(100% / 12);
        right: calc(100% / 12);
    }

    .category-stepper .step {
        flex: 1 1 0;
        min-width: 0;
    }

    .category-stepper .step .circle {
        width: 64px;
        height: 64px;
    }

    .category-stepper .step .label {
        min-height: 36px;
        font-size: 12px;
        line-height: 18px;
    }

    /* Auf Höhe der Überschrift (Navbar 100px + 24px Abstand + Überschrift) */
    #anleitung-info-button {
        top: 144px;
    }

    .kennzahl-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .kennzahl-box label {
        max-width: 100%;
    }

    .frage .kennzahl-box input {
        width: 100% !important;
    }

    .kennzahl-box1 {
        flex-direction: column;
        gap: 10px;
    }

    .kennzahl-box1 input {
        width: 100%;
    }

    .bestaetigung_block {
        margin: 60px 0;
    }

    .abschicken_block {
        margin: 80px 0;
    }
}

/* ===== Handy (bis 599px) ===== */
@media (max-width: 599px) {
    .container {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    /* Stepper: nur die aktuelle Kategorie, links und rechts ein Pfeil zum
       Durchklicken */
    .category-stepper {
        align-items: center;
        padding: 0;
    }

    .category-stepper::before {
        display: none;
    }

    .category-stepper .step:not(.active) {
        display: none;
    }

    .category-stepper .step.active {
        flex: 1 1 auto;
    }

    .category-stepper .step .label {
        min-height: 0;
    }

    /* Untermenü wie der Stepper: nur die aktuelle Unterkategorie, links und
       rechts ein Pfeil (.stepper-pfeil) zum Durchklicken */
    .unterkategorie-menu {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        margin: 0 0 32px; /* etwas Luft zur Speichern-Leiste darunter */
    }

    .unterkategorie-menu .unterkategorie:not(.active) {
        display: none;
    }

    /* Kleinere Schrift und schmalere Pfeile, damit auch lange Namen
       („Zertifizierungen und Transparenz") ab ca. 360px Breite in eine Zeile
       passen; nur auf noch schmaleren Geräten bricht der Name notfalls um,
       statt über den Rand zu ragen. Als Block statt Flex, damit Name und
       Positionsanzeige per text-align sicher mittig stehen, auch umgebrochen */
    .unterkategorie-menu .unterkategorie.active {
        display: block;
        flex: 0 1 auto;
        padding: 7px 18px;
        font-size: 12px;
        line-height: 16px; /* statt der geerbten 30px aus base.css: sonst steht über dem Namen viel mehr Luft als unter der Position */
        font-weight: normal; /* fette Schrift ist deutlich breiter; aktiv ist sie hier ohnehin als einzige */
        white-space: normal;
        text-align: center;
    }

    .unterkategorie-menu .stepper-pfeil {
        width: 36px;
        height: 36px;
    }

    .unterkategorie-menu .stepper-pfeil img {
        width: 15px;
        height: 15px;
    }

    .unterkategorie-position {
        display: block;
        font-size: 11px;
        font-weight: normal;
        line-height: 14px;
        opacity: 0.85;
    }

    .stepper-position {
        display: block;
        font-size: 12px;
        line-height: 16px;
        color: #667A66;
    }

    .stepper-pfeil {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background-color: #E7F1E5;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .stepper-pfeil:hover {
        background-color: #fcd28d;
    }

    .stepper-pfeil:disabled {
        opacity: 0.35;
        cursor: default;
        background-color: #E7F1E5;
    }

    .stepper-pfeil img {
        width: 18px;
        height: 18px;
    }

    .ja-nein-container {
        flex-direction: column;
        gap: 10px;
    }

    .matrix-label {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .nachfrage-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .bestaetigung_karte {
        padding: 30px 22px 28px;
    }

    #evaluation-popup,
    #navigation-anleitung-popup {
        width: 90%;
        padding: 25px;
    }

    /* Info-Popups an Fragen: nicht breiter als das Handy-Display */
    .info-popup, .nachweis-popup {
        min-inline-size: min(38ch, calc(100vw - 32px));
        max-inline-size: calc(100vw - 32px);
    }

    .frage {
        padding: 16px;
    }
}
