/* global-styles.css */
/* Diese Datei enthält globale Stile für wiederverwendbare Komponenten wie die Barrierefreiheitsleiste,
   Header, Footer, Cookie-Banner, Navigations-Buttons und Formular-Layouts. */

/* Generische Fokus-Regel für die Kompatibilität mit älteren Browsern */
*:focus {
    outline: 3px solid var(--cor-foco-acessibilidade, yellow); /* Fallback zu Gelb */
    outline-offset: 2px;
}
.submenu {
  display: none;
}

.submenu.open {
  display: block;
}

.has-submenu > a::after {
  content: " ▾";
  float: right;
  font-size: 0.8rem;
}


/* CSS-Variablen für Barrierefreiheit */
:root {
    --cor-foco-acessibilidade: yellow; /* Standard-Fokusfarbe */
    --espacamento-linha: 1.5; /* Standard-Zeilenabstand */
    --espacamento-letra: 0em; /* Standard-Buchstabenabstand */
}

/* Schriftarten */
.font-nunito { font-family: 'Nunito Sans', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

/* Standard-Website-Farben - Angepasst an WCAG AAA (7:1 Kontrast) */
/* FÜGEN SIE DIESEN KORRIGIERTEN BLOCK ANSTELLE DES ALTEN EIN */
body {
    background-color: #f9fafb;
    color: #1F2937;
    line-height: var(--espacamento-linha);
    letter-spacing: var(--espacamento-letra); 
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 96px; /* Korrigierte Höhe: 36px (Leiste) + 60px (Header) */
}
.bg-white { background-color: #ffffff; }
.bg-blue-50 { background-color: #eff6ff; } /* Ähnlich wie Tailwind blue-50 */
.text-dark-blue { color: #1A3E74; } /* Dunkelblaue Identitätsfarbe - Kontrast OK auf hellem Hintergrund */
.text-dark-blue:hover { color: #1A3E74; }
.bg-dark-blue, .bg-blue-900 { background-color: #1A3E74; }
.hover\:bg-blue-900:hover { background-color: #122A50; } /* Ein dunklerer Blauton für den Hover-Effekt - Angepasst an AAA */
.border-gray-300 { border-color: #d1d5db; } /* Für dünne Linien */

/* Farbe der schwebenden Schaltflächen: BG-Blue-600 */
.bg-blue-600 { background-color: #2563eb; } /* Tailwind blue-600 */
.hover\:bg-blue-700:hover { background-color: #1d4ed8; } /* Tailwind blue-700 für Hover */

#barraAcessibilidade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1A3E74;
    color: #fff;
    z-index: 100000;
    padding: 4px 20px; /* Reduzierter vertikaler Padding */
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 36px; /* Feste Höhe für die Leiste */
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 8px;
}

#barraAcessibilidade button {
    padding: 4px 10px; /* Reduzierter Padding */
    height: 28px; /* Reduzierte Höhe der Schaltflächen */
    /* Der Rest der Schaltflächeneigenschaften bleibt gleich */
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

#barraAcessibilidade button:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Subtiler Hintergrund beim Überfahren */
    border-color: white; /* Sichtbarere Umrandung beim Überfahren */
}

/* Verbesserter sichtbarer Fokus für alle interaktiven Elemente */
#barraAcessibilidade button:focus-visible,
a:focus-visible,
button:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 3px solid var(--cor-foco-acessibilidade); /* Akzentfarbe für Barrierefreiheit, jetzt variabel */
    outline-offset: 2px; /* Verschiebt den Umriss vom Rand weg */
}

#barraAcessibilidade button svg {
    width: 16px; /* Symbolgröße */
    height: 16px; /* Symbolgröße */
    stroke: currentColor; /* Verwendet die Textfarbe der Schaltfläche */
    stroke-width: 2.5; /* Dicke der SVG-Linie */
}

/* Anpassung des Haupt-Headers */
header {
    position: fixed;
    top: 36px; /* Korrigierte Position: direkt unter der Barrierefreiheitsleiste */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    height: 60px; /* Reduzierte Header-Höhe */
    box-sizing: border-box;
}

/* Anpassung der Fokusschaltflächen in der Desktop-Barrierefreiheitsleiste */
#barraAcessibilidade .color-option {
    width: 32px; /* Angepasst, um quadratisch zu sein und eine ähnliche Höhe wie die anderen Schaltflächen zu haben */
    height: 32px; /* Angepasst, um quadratisch zu sein */
    border-radius: 5px; /* Quadratisches Format */
    border: 2px solid rgba(255, 255, 255, 0.5); /* Heller und dezenter Rand */
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box; /* Schließt den Rand in die Größe ein */
}

#barraAcessibilidade .color-option.selected {
    border-color: var(--cor-foco-acessibilidade); /* Hebt die ausgewählte Farbe hervor */
    transform: scale(1.1); /* Ein kleiner Skalierungseffekt */
}
#barraAcessibilidade .color-option:hover {
    transform: scale(1.1);
    border-color: white;
}

/* Hochkontrastmodus */
.contraste-alto {
    background-color: #000 !important;
    color: #ffff00 !important;
    /* Linkfarben umkehren für besseren Kontrast */
    --tw-text-opacity: 1 !important;
    color: rgba(255, 255, 0, var(--tw-text-opacity)) !important; /* Gelb für Haupttext */
}
.contraste-alto a {
    color: #00ffff !important; /* Cyan für Hochkontrast-Links */
}
.contraste-alto .bg-white,
.contraste-alto .bg-blue-50,
.contraste-alto .bg-gray-50,
.contraste-alto .response-area {
    background-color: #333 !important; /* Abschnittshintergründe in Dunkelgrau */
    color: #ffff00 !important;
}
.contraste-alto .text-gray-700,
.contraste-alto .text-gray-800,
.contraste-alto .text-gray-600,
.contraste-alto .text-dark-blue,
.contraste-alto .news-card h3,
.contraste-alto .news-card p,
.contraste-alto .gemini-actions .action-btn {
    color: #ffff00 !important; /* Gesamter Text in Gelb */
}
.contraste-alto .bg-blue-900,
.contraste-alto .bg-dark-blue {
    background-color: #000 !important; /* Footer und Hauptbuttons in Schwarz */
    color: #ffff00 !important;
}
.contraste-alto .hover\:bg-blue-900:hover,
.contraste-alto .ai-feature-button:hover {
    background-color: #111 !important; /* Hover in hellerem Schwarz */
}
.contraste-alto .border-gray-300,
.contraste-alto .gemini-actions {
    border-color: #ffff00 !important; /* Umrandungen in Gelb */
}

/* Dunkelmodus */
.dark-mode {
    background-color: #1a202c !important; /* Dunkle Hintergrundfarbe */
    color: #e2e8f0 !important; /* Helle Textfarbe */
}
.dark-mode .bg-white,
.dark-mode .bg-blue-50,
.dark-mode .bg-gray-50,
.dark-mode .response-area {
    background-color: #2d3748 !important; /* Abschnittshintergründe in dunklerem Grau */
    color: #e2e8f0 !important;
}
.dark-mode .text-gray-700,
.dark-mode .text-gray-800,
.dark-mode .text-gray-600,
.dark-mode .text-dark-blue,
.dark-mode .news-card h3,
.dark-mode .news-card p,
.dark-mode .gemini-actions .action-btn {
    color: #e2e8f0 !important; /* Gesamter Text in hellem Grau */
}
.dark-mode .bg-blue-900,
.dark-mode .bg-dark-blue {
    background-color: #1a202c !important; /* Footer und Hauptbuttons in Schwarz */
    color: #e2e8f0 !important;
}
.dark-mode .hover\:bg-blue-900:hover,
.dark-mode .ai-feature-button:hover {
    background-color: #4a5568 !important; /* Hover in hellerem Grau */
}
.dark-mode .border-gray-300,
.dark-mode .gemini-actions {
    border-color: #4a5568 !important; /* Umrandungen in Grau */
}

.fonte-dislexia {
    font-family: 'OpenDyslexic', Arial, sans-serif;
}

/* Spezifische Modal-Stile */
#customModal {
    transition: opacity 0.3s ease-in-out;
}
/* Modal-Overlay: Standardmäßig ausgeblendet, aber für Screenreader vorhanden */
#customModal.hidden {
    opacity: 0;
    pointer-events: none;
    /* Hinzugefügt für Barrierefreiheit: Verschiebt es aus dem Bildschirm, wenn es ausgeblendet ist */
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
}
/* Modal-Overlay: Sichtbar */
#customModal:not(.hidden) {
    opacity: 1;
    /* Stellt die Position und Größe wieder her, wenn es sichtbar ist */
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}
.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 700px; /* Maximale Breite für Video erhöht */
    text-align: center;
    position: relative;
}
.modal-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1F2937;
}
.modal-content p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}
.modal-content button {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.modal-content button:hover {
    background-color: #1d4ed8;
}
.modal-close-btn {
    position: absolute;
    top: 1rem; /* Angepasst */
    right: 1rem; /* Angepasst */
    background: none;
    border: none;
    font-size: 2rem; /* Vergrößert */
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem; /* Padding für leichteres Klicken hinzugefügt */
    border-radius: 50%; /* Abgerundet für besseres Berührungsziel */
    transition: background-color 0.2s ease;
}
.modal-close-btn:hover {
    background-color: #e5e7eb; /* Heller Hintergrund beim Überfahren */
}

/* --- Stil für den "Zurück zum Anfang"-Button --- */
#backToTopBtn {
    position: fixed;
    bottom: 20px; /* Über dem Footer positioniert */
    right: 20px;
    background-color: rgba(26, 62, 116, 0.8); /* Institutionelle Farbe mit Transparenz */
    color: white;
    font-size: 0.875rem; /* Entspricht text-sm */
    padding: 0.5rem 1rem; /* Entspricht px-4 py-2 */
    border-radius: 9999px; /* Entspricht rounded-full */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); /* Schatten */
    transition: background-color 0.2s ease; /* Übergang */
    z-index: 99990; /* Über normalem Inhalt, unter der Barrierefreiheitsleiste */
    display: none; /* Standardmäßig ausgeblendet, wird mit JS angezeigt */
    cursor: pointer; /* Zeigt an, dass es anklickbar ist */
    font-family: 'Inter', sans-serif; /* Sorgt für die Inter-Schriftart */
}
#backToTopBtn:hover {
    background-color: rgba(18, 42, 80, 0.9); /* Dunklerer Ton beim Überfahren mit mehr Deckkraft */
}

/* Klassen zur Sichtbarkeitskontrolle */
.desktop-only {
    display: none; /* Standardmäßig ausgeblendet, wird durch JS/Media Query angezeigt */
}

.pwa-only {
    display: none; /* Standardmäßig ausgeblendet, wird durch JS/Media Query angezeigt */
}

/* --- PWA/Mobile-spezifische Stile (max-width: 768px) --- */
@media (max-width: 768px) {
    body {
        /* Anpassung des padding-top für das neue Header- und Barrierefreiheitsleisten-Layout in PWA */
        padding-top: 90px; /* Beispiel: Anpassung basierend auf der neuen kompakten Header-Höhe */
    }

    /* Header-Anpassungen */
    header {
        top: 0; /* Header ist jetzt ganz oben */
        height: auto; /* Höhe anpassen lassen */
        padding-top: 10px; /* Etwas Padding hinzufügen */
        padding-bottom: 10px;
    }

    .desktop-only {
        display: none !important; /* Erzwingt das Ausblenden von Desktop-Elementen auf kleinen Bildschirmen */
    }

    .pwa-only {
        display: block !important; /* Erzwingt das Anzeigen von PWA-Elementen auf kleinen Bildschirmen */
    }

    header nav.desktop-nav {
        display: none; /* Versteckt die ursprüngliche Navigation auf kleinen Bildschirmen */
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .hamburger-button {
        display: block; /* Zeigt den Hamburger-Button auf kleinen Bildschirmen an */
        background: none;
        border: none;
        font-size: 1.5rem; /* Reduzierte Schriftgröße */
        color: #1A3E74;
        cursor: pointer;
        padding: 0.4rem; /* Padding angepasst, um es deutlich kleiner zu machen */
        margin-left: 1rem;
        order: -1; /* Vor dem Logo platzieren */
    }

    /* *** KORREKTUR HIER ANGEWENDET *** */
    .hamburger-button svg {
        display: block;
    }
    .hamburger-button .hidden {
        display: none;
    }


    .off-canvas-menu {
        position: fixed;
        top: 0; /* Vom oberen Rand des Viewports starten */
        left: -100%; /* Anfangs ausgeblendet */
        width: 65%; /* Auf 65% der Breite angepasst */
        height: 100vh; /* Volle Viewport-Höhe */
        background-color: #fff;
        transition: left 0.3s ease-in-out;
        z-index: 100000;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        padding-top: 20px;
    }

    .off-canvas-menu.is-open {
        left: 0;
    }

    .off-canvas-menu ul {
        flex-direction: column;
        padding: 20px 0; /* Angepasstes vertikales Padding */
        gap: 5px; /* Reduzierter Abstand zwischen den Hauptmenüpunkten */
    }

    .off-canvas-menu ul li a {
        display: block;
        padding: 12px 20px; /* Angepasstes Padding für größere Berührungsfläche */
        font-size: 1.15rem; /* Vergrößerte Schriftgröße */
        color: #1F2937;
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s ease;
    }

    .off-canvas-menu ul li a:hover {
        background-color: #f0f0f0; /* Hover-Effekt hinzugefügt */
    }

    .off-canvas-menu ul li:last-child a {
        border-bottom: none;
    }

    .off-canvas-menu ul ul { /* Untermenüs */
        padding: 0; /* Padding für Untermenüs zurücksetzen */
        margin-top: 0; /* Oberer Rand für Untermenüs zurücksetzen */
    }

    .off-canvas-menu ul ul li a { /* Untermenü-Elemente */
        padding: 10px 20px 10px 35px; /* Angepasstes Padding für Einrückung */
        font-size: 1rem; /* Etwas kleinere Schriftgröße für Unterpunkte */
        background-color: #f9f9f9; /* Leicht abweichender Hintergrund für Untermenüs */
        border-bottom: 1px solid #f0f0f0;
    }

    .off-canvas-menu ul ul li:last-child a {
        border-bottom: none;
    }


    #pwaAcessibilidadeBar {
        position: fixed;
        top: 0;
        left: -100%; /* Anfangs außerhalb des Bildschirms ausgeblendet */
        width: 85%; /* Auf 85% der Breite angepasst */
        height: 100vh;
        background-color: #1A3E74;
        color: #fff;
        z-index: 100000;
        padding: 20px;
        flex-direction: column; /* Schaltflächen vertikal stapeln */
        align-items: flex-start; /* Schaltflächen nach links ausrichten */
        gap: 15px; /* Mehr Abstand für den vertikalen Stapel */
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        justify-content: flex-start; /* Inhalt oben ausrichten */
        display: flex; /* Sicherstellen, dass es ein Flex-Container ist */
    }

    #pwaAcessibilidadeBar.is-open {
        left: 0;
    }

    /* Einzelne schwebende Schaltflächen für PWA */
    #accessibilityToggleButton,
    .vw-access-button, /* VLibras-Schaltfläche */
    #backToTopBtn {
        position: fixed;
        left: auto; /* Sicherstellen, dass links nicht standardmäßig eingestellt ist */
        transition: bottom 0.3s ease, background-color 0.2s ease, transform 0.2s ease, left 0.3s ease, top 0.3s ease; /* links und oben zum Übergang für sanftes Ziehen hinzufügen */
        z-index: 99990; /* Standard-z-index für schwebende Schaltflächen */
    }

    /* Spezifische Positionierung für jede Schaltfläche */
    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        display: block; /* Immer sichtbar für PWA */
        width: auto;
        height: auto;
        padding: 0.5rem 1rem;
        border-radius: 9999px;
    }

    .vw-access-button { /* VLibras-Schaltfläche */
        bottom: 80px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
        background-color: #1A3E74 !important;
        color: white !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 99992;
    }

    #accessibilityToggleButton {
        bottom: 20px !important;
        left: 20px !important;
        right: auto !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 99992 !important;
        background-color: #1A3E74 !important;
        color: white !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    }

    /* Anpassungen für den Newsletter-Formular-Container auf kleineren Bildschirmen */
    #newsletters-section {
        padding-left: 16px; /* Entspricht px-4 */
        padding-right: 16px; /* Entspricht px-4 */
    }

    /* Angepasst für neues Grid-Layout */
    .newsletter-form-container {
        display: grid;
        grid-template-columns: 1fr; /* Einzelne Spalte auf kleinen Bildschirmen */
        gap: 1rem;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .newsletter-email-input {
        max-width: 100%; /* Entfernt die maximale Breite für flüssiges Verhalten */
        width: 100%; /* Nimmt die volle Breite des Elternteils ein */
    }

    .newsletter-consent-checkbox-group {
        width: 100%;
        justify-content: flex-start; /* Links ausgerichtet */
    }

    .newsletter-subscribe-button {
        width: 100%; /* Nimmt die volle Breite ein */
    }

    /* Stile für PWA-Barrierefreiheitsleisten-Untermenüs */
    .pwa-submenu-header {
        width: 100%;
        background-color: #122A50; /* Etwas dunkleres Blau für Untermenü-Header */
        color: white;
        padding: 10px 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: bold;
    }

    .pwa-submenu-content {
        width: 100%;
        display: none; /* Standardmäßig ausgeblendet */
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px; /* Horizontaler Padding auf 20px angepasst */
        margin-bottom: 15px;
    }

    .pwa-submenu-content.is-open {
        display: flex; /* Anzeigen, wenn offen */
    }

    /* Sicherstellen, dass die Schaltflächen in den Untermenüs ihre Stile beibehalten */
    #pwaAcessibilidadeBar .pwa-submenu-content button {
        width: 100%; /* Volle Breite innerhalb des Untermenüs */
        padding: 10px 15px; /* Erhöhtes Padding für bessere Berührungsfläche und Optik */
        background-color: rgba(255, 255, 255, 0.15); /* Etwas deckenderer Hintergrund */
        border: 1px solid rgba(255, 255, 255, 0.4); /* Etwas sichtbarere Umrandung */
        border-radius: 5px;
        color: white;
        font-size: 1rem;
        justify-content: flex-start; /* Text am Anfang ausrichten */
        transition: background-color 0.2s ease, border-color 0.2s ease; /* Sanfter Übergang */
    }

    #pwaAcessibilidadeBar .pwa-submenu-content button:hover {
        background-color: rgba(255, 255, 255, 0.3); /* Stärkerer Hover-Effekt */
        border-color: white;
    }

    /* Anpassung der Größe der SVG-Symbole in den PWA-Untermenü-Schaltflächen */
    #pwaAcessibilidadeBar .pwa-submenu-content button svg {
        width: 18px; /* Etwas größeres Symbol */
        height: 18px; /* Etwas größeres Symbol */
        stroke: currentColor;
        stroke-width: 2.5;
    }

    #pwaAcessibilidadeBar .pwa-submenu-content .color-option {
        width: 38px; /* Etwas größere Farboption */
        height: 38px; /* Etwas größere Farboption */
        border-radius: 5px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        box-sizing: border-box;
        flex-shrink: 0;
    }

    #pwaAcessibilidadeBar .pwa-submenu-content .color-option:hover {
        transform: scale(1.1);
        border-color: white;
    }

    /* Die Reihe für die Farboptionen innerhalb des Untermenüs anpassen */
    #pwaAcessibilidadeBar .pwa-submenu-content .flex.space-x-1 {
        width: 100%;
        justify-content: flex-start; /* Farboptionen am Anfang ausrichten */
    }
}

/* NEUES CSS FÜR NEWSLETTER-ABSCHNITT */
#newsletters-section {
    background-color: #fcfdff; /* blue-50 angepasst an AAA */
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-lg */
    margin: 2rem auto; /* Abschnitt zentrieren */
    text-align: left; /* Auf Linksbündigkeit angepasst */
}

.newsletter-heading {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    color: #001f3f; /* text-[#1A3E74] angepasst an AAA */
    margin-bottom: 1rem;
    text-align: center; /* ZENTRIERT */
}

.newsletter-description {
    font-size: 1.125rem; /* text-lg */
    color: #2d3748; /* text-gray-700 angepasst an AAA */
    margin-bottom: 1.5rem;
    text-align: center; /* ZENTRIERT */
}

.newsletter-form-container {
    display: grid; /* Auf Raster geändert */
    grid-template-columns: 1fr; /* Standardmäßig eine Spalte für Mobilgeräte */
    gap: 1rem; /* space-y-4 */
    align-items: flex-start; /* Elemente am Anfang (links) ausrichten */
}

@media (min-width: 768px) { /* Für Desktop, zwei Spalten */
    .newsletter-form-container {
        grid-template-columns: auto 1fr; /* Spalte für Label, dann Spalte für Eingabe/Schaltfläche */
        align-items: center; /* Elemente im Raster vertikal ausrichten */
    }
    .newsletter-form-container label {
        grid-column: 1; /* Label immer in der ersten Spalte */
    }
    .newsletter-form-container .newsletter-email-input-wrapper {
        grid-column: 2; /* Eingabe in der zweiten Spalte */
    }
    .newsletter-form-container .newsletter-consent-and-button-group {
        grid-column: 2; /* Gruppe für Zustimmung und Schaltfläche in der zweiten Spalte */
        justify-content: flex-end; /* Innerhalb der zweiten Spalte rechts ausrichten */
    }
}


.newsletter-email-input {
    width: 100%;
    padding: 0.75rem 1rem; /* py-3 px-4 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-md */
    font-size: 1rem; /* text-base */
    color: #1f2937; /* text-gray-900 */
    box-sizing: border-box; /* Padding in die Breite einbeziehen */
}

.newsletter-email-input:focus {
    outline: none;
    border-color: #2563eb; /* focus:border-blue-500 */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); /* focus:ring focus:ring-blue-200 */
}

.newsletter-consent-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
    width: 100%; /* Nimmt die volle Breite innerhalb seines Containers ein */
    justify-content: flex-start; /* Stellt die linke Ausrichtung auf kleineren Bildschirmen sicher */
}

.newsletter-consent-checkbox {
    height: 1.25rem; /* h-5 */
    width: 1.25rem; /* w-5 */
    color: #2563eb; /* text-blue-600 */
    border-color: #d1d5db; /* border-gray-300 */
    border-radius: 0.25rem; /* rounded */
    cursor: pointer;
    flex-shrink: 0; /* Verhindert, dass die Checkbox schrumpft */
}

.newsletter-consent-label {
    font-size: 0.875rem; /* text-sm */
    color: #2d3748; /* text-gray-700 angepasst an AAA */
    cursor: pointer;
    text-align: left; /* Stellt sicher, dass der Labeltext linksbündig ist */
    flex-grow: 1; /* Erlaubt dem Label, den verfügbaren Platz einzunehmen */
}

.newsletter-subscribe-button {
    width: 100%; /* Standardmäßig volle Breite für Mobilgeräte */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    background-color: #1A3E74; /* bg-[#1A3E74] */
    color: white;
    font-weight: 600; /* font-semibold */
    border-radius: 0.5rem; /* rounded-md */
    transition: background-color 0.2s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .newsletter-subscribe-button {
        width: auto; /* Automatische Breite auf dem Desktop, um sich dem Inhalt anzupassen */
        min-width: 150px; /* Stellt eine Mindestbreite sicher */
    }
}

.newsletter-subscribe-button:hover:not(:disabled) {
    background-color: #122A50; /* hover:bg-blue-900 */
}

.newsletter-subscribe-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-error-message {
    color: #8B0000; /* text-red-500 angepasst an AAA */
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.5rem;
    display: none; /* Standardmäßig ausgeblendet */
    text-align: left; /* Stellt sicher, dass die Fehlermeldung linksbündig ist */
}

/* Breadcrumb-Stile */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-700 angepasst an AAA */
    margin-bottom: 1rem;
    flex-wrap: wrap; /* Erlaubt Zeilenumbruch auf kleineren Bildschirmen */
    text-align: left; /* Stellt sicher, dass der Breadcrumb linksbündig ist */
    width: 100%; /* Nimmt die volle Breite ein, um das Padding des Elternteils zu respektieren */
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    color: #2d3748; /* text-gray-800 angepasst an AAA */
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb li a:hover {
    color: #1A3E74; /* hover:text-[#1A3E74] */
    text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #4b5563; /* text-gray-700 angepasst an AAA */
}

.breadcrumb li:last-child {
    color: #1A3E74; /* text-[#1A3E74] */
    font-weight: 600; /* font-semibold */
}

/* Styling für scrollbare Untermenüs */
.scrollable-submenu {
    max-height: 300px; /* Bei Bedarf anpassen */
    overflow-y: auto;
}

/* Basisstile für den Seitenkörper */
body {
    padding-top: 64px; /* Platz für die feste obere Leiste */
    min-height: 100vh; /* Stellt sicher, dass der Körper mindestens 100% der Viewport-Höhe einnimmt */
    display: flex;
    flex-direction: column; /* Ordnet die Kinder in einer Spalte an */
    background-color: #f9fafb; /* Hellere Haupt-Hintergrundfarbe */
    color: #1F2937; /* Standard-Textfarbe */
    font-family: 'Inter', sans-serif; /* Standard-Körperschriftart */
    margin: 0;
}

/* Anpassung des Hauptinhalts, um den Footer nach unten zu drücken */
main {
    flex-grow: 1; /* Ermöglicht dem Hauptinhalt, den gesamten verbleibenden Platz einzunehmen */
}

/* Versteckt den mobilen Menü-Button für die Seitenleiste, da er auf dieser Seite nicht existiert */
/* Beibehalten für die Kompatibilität mit topbar111.js, das diese Referenz möglicherweise hat */
#menuToggle {
    display: none !important;
}

/* --- Cookie-Zustimmungs-Banner-Stile --- */
/* FÜGEN SIE DIESEN KORRIGIERTEN BLOCK ANSTELLE DES ALTEN EIN */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1A3E74;
    color: #fff;
    padding: 1rem;
    z-index: 100001; /* <-- WERT ERHÖHT, UM ES IN DEN VORDERGRUND ZU SETZEN */
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#cookieConsentBanner.show {
    display: flex; /* Zeigt das Banner an */
    opacity: 1; /* Einblenden */
    transform: translateY(0); /* Hochgleiten */
}

#cookieConsentBanner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#cookieConsentBanner .cookie-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap; /* Erlaubt Zeilenumbruch auf kleineren Bildschirmen */
}

#cookieConsentBanner button {
    background-color: #2563eb; /* Tailwind blue-600 */
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Verhindert Zeilenumbruch im Schaltflächentext */
}

#cookieConsentBanner button.secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#cookieConsentBanner button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive Anpassungen für das Cookie-Banner */
@media (min-width: 768px) {
    #cookieConsentBanner {
        flex-direction: row; /* Layout in einer Zeile für Desktop */
        justify-content: space-between;
        padding: 1rem 2rem;
    }
    #cookieConsentBanner .cookie-buttons {
        justify-content: flex-end;
    }
}

/* Globale Stile für Farben und Texte */
.text-dark-blue { color: #1A3E74; } /* Dunkelblau */
.text-light-blue { color: #004d99; } /* Hellblau, angepasst an AAA */
.text-gray-custom { color: #2d3748; } /* Grau, angepasst an AAA */
.text-success-green { color: #006400; } /* Grün, angepasst an AAA */
.text-black-custom { color: #1f2937; } /* Farbe für Standardtexte, angepasst an AAA */
.text-red-600 { color: #8B0000; } /* Tailwind red-600 für Fehlermeldungen, angepasst an AAA */

/* Schaltflächen-Muster (CSS-Komponenten zur Wiederverwendung) */
.btn-primary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background-color: #1A3E74; /* Primärfarbe Dunkelblau */
    color: #FFF;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-primary:hover { background-color: #122c54; } /* Dunklerer Ton beim Überfahren */
.btn-secondary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background-color: #003366; /* Sekundärfarbe Hellblau, angepasst an AAA */
    color: #FFF;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-secondary:hover { background-color: #002244; } /* Dunklerer Ton beim Überfahren */
.btn-success {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background-color: #006400; /* Grün, angepasst an AAA */
    color: #FFF;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-success:hover { background-color: #004d00; }

/* Stile für den Rechner-Ergebnisbereich (Spezifische Komponente) */
.resultado {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e0f2fe; /* Tailwind blue-50 */
    border-radius: 0.5rem;
    font-weight: 600;
    color: #000080; /* text-dark-blue angepasst an AAA */
    text-align: left;
    white-space: pre-wrap; /* Behält Zeilenumbrüche im Text bei */
    display: flex; /* Zum Ausrichten von Symbol und Text */
    align-items: flex-start; /* Richten Sie das Symbol oben im Text aus */
    flex-direction: column; /* Setzt Symbol und Text in Spalten */
    gap: 0.5rem; /* Abstand zwischen Symbol und Text */
}
.resultado.text-red-600 { /* Klasse für Fehlermeldungen (Hintergrund) */
    background-color: #fee2e2; /* Tailwind red-100 */
    color: #8B0000; /* Tailwind red-600 angepasst an AAA */
}
.resultado.text-success-green { /* Klasse für Erfolgsmeldungen (Hintergrund) */
    background-color: #d4edda; /* Helles Grün */
    color: #006400; /* Dunkelgrün */
}
.resultado strong {
    display: block; /* Stellt sicher, dass das strong eine eigene Zeile einnimmt */
    margin-bottom: 0.5rem; /* Abstand unter dem strong */
}

/* Ergebnis-Farben angepasst für APGAR */
.resultado.bg-apgar-normal { background-color: #D4EDDA; color: #006400; } /* Grün für Normal (angefasst AAA) */
.resultado.bg-apgar-moderate { background-color: #FFF3CD; color: #856404; } /* Gelb für Moderat (angefasst AAA) */
.resultado.bg-apgar-severe { background-color: #F8D7DA; color: #8B0000; } /* Rot für Schwer (angefasst AAA) */

/* Ergebnis-Farben angepasst für APACHE II */
.resultado.bg-apache-low { background-color: #D4EDDA; color: #006400; } /* Grün für niedriges Risiko (angefasst AAA) */
.resultado.bg-apache-medium { background-color: #FFF3CD; color: #856404; } /* Gelb für mittleres Risiko (angefasst AAA) */
.resultado.bg-apache-high { background-color: #F8D7DA; color: #8B0000; } /* Rot für hohes Risiko (angefasst AAA) */
.resultado.bg-info-orange-light { background-color: #ffeeba; border-color: #ffb366; color: #856404; } /* Für Warnungen (angefasst AAA) */


/* Stile für Referenz/Bibliographie (Spezifische Komponente) */
.ref {
    margin-top: 2rem;
    font-size: 14px;
    color: #2d3748; /* text-gray-custom angepasst an AAA */
    text-align: left;
}

/* Abstand für den Inhalt unter der festen oberen Leiste */
.main-content-wrapper {  
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 64px; /* Stellt sicher, dass der Inhalt unter der festen oberen Leiste beginnt (64px Höhe) */
    width: 100%;
    max-width: 1280px; /* max-w-screen-xl (Tailwind 7xl) */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem; /* p-8 px-4 */
}

/* Stile für das Sicherheits-/Ziel-Banner */
.meta-seguranca {
    font-size: 0.875rem; /* text-sm */
    color: #1f2937; /* text-black-custom angepasst an AAA */
    margin-top: 1.5rem; /* mt-6 */
    margin-bottom: 1.5rem; /* Für Abstand hinzugefügt */
    font-style: italic;
    border-top: 1px solid #e5e7eb; /* border-gray-200 */
    padding-top: 1rem; /* pt-4 */
    text-align: left; /* Links ausrichten */
}

/* Optimierung interaktiver Elemente (Touch Targets) für Labels */
label {
    padding-top: 0.5rem; /* Anpassung, um mehr Platz über dem Label zu schaffen */
    padding-bottom: 0.5rem; /* Anpassung, um mehr Platz unter dem Label zu schaffen */
    display: block; /* Stellt sicher, dass das Padding als Block funktioniert */
    cursor: pointer; /* Zeigt an, dass das Label anklickbar ist */
    text-align: left; /* Stellt sicher, dass die Labels linksbündig sind */
}

/* Stil für den Nachrichten-Modal */
.message-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Standardmäßig ausgeblendet */
    transition: opacity 0.3s ease-in-out; /* Übergang hinzugefügt */
    opacity: 0; /* Beginnt ausgeblendet für das Einblenden */
}
.message-modal-overlay.show {
    opacity: 1; /* Anzeigen für das Einblenden */
}
.message-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}
.message-modal-close {
    color: #aaa;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}
.message-modal-close:hover {
    color: #1F2937;
}

/* Spezifische Stile für das neue Insulin-Feld */
.insulina-info {
    font-size: 0.75rem; /* text-xs */
    line-height: 1.2; /* Reduzierter Zeilenabstand */
    margin-bottom: 0.5rem; /* Unterer Rand für kurzen Abstand */
    text-align: left; /* Stellt sicher, dass der Text linksbündig ist */
    color: #1f2937; /* text-black-custom angepasst an AAA */
    background-color: #f3f4f6; /* bg-gray-100 angepasst an AAA */
    margin-bottom: 1.5rem; /* Für Abstand hinzugefügt */
}
.insulina-info p {
    margin-bottom: 0.25rem; /* Abstand zwischen Absätzen weiter reduzieren */
}
.insulina-info strong {
    font-size: 0.875rem; /* text-sm */
}

/* Versteckt Pfeile (Spinner) in Zahlenfeldern */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Stil für die "separate Tabelle" der Eingaben */
.input-box-wrapper {
    border: 1px solid #e5e7eb; /* border-gray-200 */
    border-radius: 0.5rem; /* rounded-md */
    padding: 1rem; /* p-4 */
    margin-bottom: 1rem; /* mb-4 */
    background-color: #fff; /* bg-white */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

/* Stil für den Balken unter dem Titel */
.title-bar {
    width: 100%; /* Wird durch JS festgelegt */
    height: 3px;
    background-color: #1A3E74; /* Dunkelblaue Farbe */
    margin: 0.5rem auto 1.5rem auto; /* Oberer Rand, horizontal automatisch, unterer Rand */
    border-radius: 1.5px; /* Leicht abgerundete Ecken */
}

/* SR-Only-Anpassungen für Barrierefreiheit */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.focus-within\:not-sr-only:focus-within {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
}

/* Tooltip-Stil */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
}

.tooltip-icon-button { /* Geändert von .tooltip-icon zu .tooltip-icon-button */
    background: none;
    border: none;
    color: #1A3E74; /* Dunkelblau für das Info-Symbol */
    cursor: help;
    font-size: 0.9rem;
    padding: 0; /* Standard-Button-Padding entfernen */
    display: inline-flex; /* Symbol ausrichten und sicherstellen, dass es ein kleines Ziel ist */
    align-items: center;
    justify-content: center;
    width: 24px; /* Gut als Berührungsziel machen */
    height: 24px; /* Gut als Berührungsziel machen */
    border-radius: 50%; /* Rund machen */
    vertical-align: middle; /* Am Text ausrichten */
}

.tooltip-icon-button:hover,
.tooltip-icon-button:focus {
    background-color: rgba(0, 0, 0, 0.05); /* Heller Hover-/Fokus-Hintergrund */
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #ffffff; /* Geändert zu Weiß */
    color: #1F2937; /* Dunkler Text für Kontrast auf Weiß */
    text-align: center;
    border-radius: 6px;
    padding: 10px; /* Erhöhtes Padding */
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Positioniert den Tooltip über dem Symbol */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.75rem;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Schatten hinzugefügt */
    border: 1px solid #e0e0e0; /* Dezenter Rand */
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent; /* Geändert zu Weiß */
}

.tooltip-container:hover .tooltip-text,
.tooltip-container:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Stile für den granularen Cookie-Modal */
#granularCookieModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100002; /* Höher als customModal */
    display: none; /* Standardmäßig ausgeblendet */
    transition: opacity 0.3s ease-in-out; /* Übergang hinzugefügt */
    opacity: 0; /* Beginnt ausgeblendet für das Einblenden */
}
#granularCookieModal.show {
    display: flex;
    opacity: 1; /* Anzeigen für das Einblenden */
}
.granular-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: left;
}
.granular-modal-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1F2937;
}
.granular-modal-content p {
    margin-bottom: 1rem;
    color: #4b5563;
}
.granular-modal-content .checkbox-group {
    margin-bottom: 1rem;
}
.granular-modal-content .checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: #1F2937;
}
.granular-modal-content .checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    height: 1.25rem;
    width: 1.25rem;
    flex-shrink: 0;
    accent-color: #1A3E74; /* Benutzerdefinierte Farbe für die Checkbox */
}
.granular-modal-content .checkbox-group .description {
    font-size: 0.875rem;
    color: #4b5563;
    margin-left: 1.75rem; /* Am Checkbox-Text ausrichten */
    margin-top: -0.25rem; /* Abstand anpassen */
    display: block;
}
.granular-modal-content .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.granular-modal-content .modal-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}
.granular-modal-content .modal-buttons .btn-save {
    background-color: #1A3E74;
    color: white;
}
.granular-modal-content .modal-buttons .btn-save:hover {
    background-color: #122A50;
}
.granular-modal-content .modal-buttons .btn-cancel {
    background-color: #e5e7eb;
    color: #4b5563;
}
.granular-modal-content .modal-buttons .btn-cancel:hover {
    background-color: #d1d5db;
}

/* Stile für den Modal der Tastenkombinationen */
#keyboardShortcutsModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100003; /* Höher als granularCookieModal */
    display: none; /* Standardmäßig ausgeblendet */
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}
#keyboardShortcutsModal.show {
    opacity: 1;
}
.keyboard-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: left;
}
.keyboard-modal-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1F2937;
}
.keyboard-modal-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.keyboard-modal-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}
.keyboard-modal-content strong {
    color: #1F2937;
}

/* Stile für das Hauptnavigationsmenü (Desktop) */
.desktop-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem; /* space-x-6 */
}

.desktop-nav li {
    position: relative;
}

.desktop-nav li a,
.desktop-nav li button {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    text-decoration: none;
    font-weight: 500; /* font-medium */
    color: #4B5563; /* text-gray-700 */
    transition: color 0.2s ease;
    background: none; /* Standard-Button-Hintergrund entfernen */
    border: none; /* Standard-Button-Rahmen entfernen */
}

.desktop-nav li a:hover,
.desktop-nav li button:hover {
    color: #1A3E74; /* hover:text-[#1A3E74] */
}

/* Stile für Dropdowns (Untermenüs) auf dem Desktop */
.desktop-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-lg */
    border-radius: 0.375rem; /* rounded-md */
    padding: 0.5rem 0; /* py-2 */
    width: 14rem; /* w-56 */
    z-index: 30; /* z-30 */
    display: none; /* hidden */
    flex-direction: column;
    min-width: max-content; /* Stellt sicher, dass das Dropdown zum längsten Inhalt passt */
}

.desktop-nav li.group:hover > ul {
    display: flex; /* group-hover:block, aber mit flex, um die Spalte beizubehalten */
}

.desktop-nav ul ul li a,
.desktop-nav ul ul li button {
    padding: 0.5rem 1rem; /* px-4 py-2 */
    color: #4B5563; /* text-gray-700 */
    white-space: nowrap; /* Verhindert Zeilenumbruch */
    transition: background-color 0.2s ease;
    background: none;
    border: none;
    text-align: left; /* Stellt die linke Ausrichtung für Menüpunkte sicher */
}

.desktop-nav ul ul li a:hover,
.desktop-nav ul ul li button:hover {
    background-color: #F3F4F6; /* hover:bg-gray-100 */
}

/* Stile für verschachtelte Untermenüs (verschachtelte Dropdowns) auf dem Desktop */
.desktop-nav ul ul ul {
    left: 100%; /* Positioniert das verschachtelte Untermenü rechts vom Elternteil */
    top: 0;
    width: 16rem; /* w-64 */
    z-index: 40; /* z-40 */
}

.desktop-nav li.group/sub:hover > ul {
    display: flex; /* group-hover/sub:block */
}

/* Stile für das Off-Canvas-Menü (Mobile) */
.off-canvas-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Anfangs ausgeblendet */
    width: 65%; /* Auf 65% der Breite angepasst */
    height: 100vh;
    background-color: #fff;
    transition: left 0.3s ease-in-out;
    z-index: 100000;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding-top: 20px;
}

.off-canvas-menu.is-open {
    left: 0;
}

.off-canvas-menu ul {
    list-style: none;
    flex-direction: column;
    padding: 20px 0;
    gap: 5px;
}

.off-canvas-menu ul li button,
.off-canvas-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 1.15rem;
    color: #1F2937;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    width: 100%; /* Stellt sicher, dass die Schaltfläche/der Link die volle Breite einnimmt */
    text-align: left; /* Text linksbündig ausrichten */
    background: none; /* Standard-Button-Hintergrund entfernen */
    border: none; /* Standard-Button-Rahmen entfernen */
}

.off-canvas-menu ul li button:hover,
.off-canvas-menu ul li a:hover {
    background-color: #f0f0f0;
}

.off-canvas-menu ul li:last-child button,
.off-canvas-menu ul li:last-child a {
    border-bottom: none;
}

.off-canvas-menu ul ul { /* Untermenüs auf Mobilgeräten */
    padding: 0;
    margin-top: 0;
}

.off-canvas-menu ul ul li a { /* Untermenü-Elemente auf Mobilgeräten */
    padding: 10px 20px 10px 35px; /* Einrückung */
    font-size: 1rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.off-canvas-menu ul ul li:last-child a {
    border-bottom: none;
}

/* Overlay für das Off-Canvas-Menü (Mobile) */
.menu-overlay {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99998; /* Unter dem Menü, über dem Inhalt */
}

.menu-overlay.is-open {
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background-color: #1A3E74; /* bg-[#1A3E74] */
    color: white;
    padding: 1rem 0; /* KORREKTUR: Weiter reduziert für einen kompakteren Footer */
    font-family: 'Inter', sans-serif;
}

footer .max-w-7xl {
    max-width: 1280px; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

footer .border-b {
    border-bottom: 1px solid;
    border-color: white;
    padding-bottom: 0.75rem; /* KORREKTUR: Reduziert, um den Abstand zu verringern */
    margin-bottom: 0.75rem; /* KORREKTUR: Reduziert, um den Abstand zu verringern */
}

footer img {
    height: auto;
    width: auto;
    max-width: 80px; /* max-w-[80px] */
    max-height: 80px; /* max-h-[80px] */
}

footer h5 {
    font-weight: 700; /* font-bold */
    margin-bottom: 0.5rem; /* mb-2 */
    font-size: 1rem; /* Schriftgröße für Hierarchie beibehalten */
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.5; /* space-y-1 */
}

/* KORREKTUR: Verringert die Schriftgröße der Footer-Links */
footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.875rem; /* Entspricht text-sm von Tailwind */
}

/* KORREKTUR: Verringert die Schriftgröße des Absatzes "Unser Engagement" */
footer p {
    font-size: 0.875rem;
}

footer ul li a:hover {
    text-decoration: underline;
}

footer .flex.space-x-4 {
    gap: 1rem; /* space-x-4 */
}

footer .footer-social-icon {
    color: white;
    font-size: 1.25rem; /* text-xl - Symbolgröße beibehalten */
    transition: color 0.2s ease;
}

footer .footer-social-icon:hover {
    color: #E5E7EB; /* Helleres Weiß beim Überfahren */
}

footer .vertical-divider-footer-stretched {
    width: 1px;
    background-color: white;
    margin: 0 2rem; /* mx-8 */
    align-self: stretch; /* Vertikal strecken lassen */
}

/* Anpassungen für das Footer-Layout auf größeren Bildschirmen (Desktop) */
@media (min-width: 768px) { /* md breakpoint in Tailwind ist 768px */
    footer .md\:flex {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* Stellt sicher, dass alle Spalten oben ausgerichtet sind */
        gap: 2rem; /* space-x-8 in Tailwind ist 2rem */
    }

    footer .flex-1.flex-col.md\:flex-row {
        flex-direction: row;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 1rem;
    }

    footer .mb-6 {
        margin-bottom: 0 !important;
    }

    footer .vertical-divider-footer-stretched {
        display: block;
    }
}

/* Mobile-Anpassungen für Footer (max-width: 767px) */
@media (max-width: 768px) {
    footer .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    footer .footer-socials {
        justify-content: center;
    }

    footer .flex-1.flex-col.md\:flex-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    footer .mb-6 {
        margin-bottom: 1.5rem;
    }
}

/* Stil für das menuOverlay auf Mobilgeräten */
#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); /* transparenter dunkler Hintergrund */
  z-index: 50; /* muss KLEINER sein als das Seitenmenü (offCanvas) */
  display: none; /* beginnt unsichtbar */
}
/* --- STILE FÜR DIE BARRIEREFREIHEIT (MOBIL) --- */
#accessibilityToggleButton {
    display: none; /* Standardmäßig ausgeblendet, wird durch Media Query angezeigt */
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #1A3E74; /* Dunkelblauer Hintergrund */
    color: white; /* Weißes Symbol */
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 99990;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem; /* Symbolgröße */
}

#pwaAcessibilidadeBar {
    position: fixed;
    top: 0;
    left: -100%; /* Beginnt außerhalb des Bildschirms */
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background-color: #1A3E74;
    color: #fff;
    z-index: 100001;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    overflow-y: auto;
}

#pwaAcessibilidadeBar.is-open {
    left: 0;
}

#pwaAcessibilidadeBar .pwa-acessibilidade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

#pwaAcessibilidadeBar .pwa-acessibilidade-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
}

#pwaAcessibilidadeBar .pwa-acessibilidade-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

#pwaAcessibilidadeBar button {
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    text-align: left;
}
#pwaAcessibilidadeBar button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
#pwaAcessibilidadeBar .color-options-pwa {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}
#pwaAcessibilidadeBar .color-options-pwa .color-option {
    width: 38px;
    height: 38px;
    padding: 0;
}

/* Media Query zur Aktivierung der mobilen Ansicht */
@media (max-width: 768px) {
    #barraAcessibilidade {
        display: none; /* Versteckt die Desktop-Leiste */
    }
    #accessibilityToggleButton {
        display: flex; /* Zeigt den schwebenden Button an */
    }
    body {
        padding-top: 90; /* Entfernt den Abstand oben auf Mobilgeräten */
    }
}
#offCanvasMenu.is-open {
  transform: translateX(0);
}

.submenu {
  display: none;
}

.submenu.open {
  display: block !important;
}
/* ==========================================================================
   Spezifische Stilanpassung für die Impfstoff-Seite
   ========================================================================== */
/* Diese Regel überschreibt den globalen Stil der Klasse .resultado NUR auf der 
  Impfstoff-Seite (die die Klasse .pagina-vacinas im body hat). 
  Dies stellt sicher, dass das vom JavaScript generierte Ergebnis seine 
  ursprüngliche Formatierung beibehält, ohne vom Standardstil der Website 
  beeinflusst zu werden.
*/
.pagina-vacinas .resultado {
    padding: 0;
    border: none;
    background: none;
    margin-top: 1.5rem; /* Stellt den vertikalen Abstand wieder her */
    display: block; /* Stellt sicher, dass es kein Flex-Container ist */
    font-weight: normal; /* Stellt die Standardschriftstärke wieder her */
    color: inherit; /* Erbt die Textfarbe des übergeordneten Elements */
    white-space: normal; /* Stellt das Standard-Zeilenumbruch-Verhalten wieder her */
}

/* --- Anpassungen von Größe und Schriftart für den Ergebnisinhalt auf der Impfstoff-Seite --- */
/* Reduziert die Schriftgröße und den Abstand für ein kompakteres Aussehen. */

.pagina-vacinas .resultado .bg-blue-50 {
    padding: 1rem; /* Reduziert den allgemeinen Abstand des Ergebnis-Containers */
}

.pagina-vacinas .resultado h3 {
    font-size: 1.125rem; /* Reduziert den Haupttitel (war text-xl) */
    margin-bottom: 0.75rem;
}

.pagina-vacinas .resultado .mb-4.p-4 {
    padding: 0.75rem; /* Reduziert das Padding der einzelnen Kästchen */
    margin-bottom: 0.75rem; /* Reduziert den Abstand zwischen den Kästchen */
}

.pagina-vacinas .resultado h4 {
    font-size: 1rem; /* Reduziert den Namen des Impfstoffs (war font-bold) */
    margin-bottom: 0.25rem;
}

.pagina-vacinas .resultado p {
    font-size: 0.875rem; /* Reduziert den Text der Impfstoffdetails */
    line-height: 1.4; /* Verbessert die Lesbarkeit */
}
.goog-te-banner-frame.skiptranslate { display: none !important; } 
body { top: 0 !important; }
#google_translate_element .goog-te-gadget-simple { border: none; background-color: transparent; }

/* --- Anpassungen für das Globale Menü (Desktop) --- */
/* 1. Logo links, Menü rechts ausrichten */
header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

header .header-content > div:first-child {
    flex-grow: 0;
    flex-shrink: 0;
}

header .header-content > nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

/* 2. Stellt die Schriftgröße für alle Menüelemente sicher */
.desktop-nav > ul > li > a,
.desktop-nav > ul > li > button {
    font-size: 12px !important;
    text-align: right !important; /* Erzwingt die Ausrichtung nach rechts */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Richtet den Inhalt nach rechts aus */
    gap: 5px;
}

/* 2 und 5. Ausrichtung von Namen und Symbolen */
.desktop-nav > ul > li > button > svg,
.desktop-nav > ul > li > a > svg {
    order: -1; /* Verschiebt das Symbol nach links vom Text */
    margin-left: 0 !important;
    margin-right: 5px;
}

/* 3 und 4. Korrigiert das seitliche Öffnen von Untermenüs und die Ausrichtung von Unterelementen */
.desktop-nav ul ul {
    position: absolute;
    top: 100% !important; /* Erzwingt das Öffnen des Untermenüs nach unten */
    left: 0 !important; /* Richtet das Untermenü links vom Elternelement aus */
    right: auto !important; /* Deaktiviert die rechte Ausrichtung, die den Fehler verursacht */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    padding: 5px 0;
}

/* Korrigiert die Ausrichtung von verschachtelten Untermenüs (für "Digitale Barrierefreiheit", "Digitale Nachhaltigkeit", etc.) */
.desktop-nav ul ul ul {
    position: absolute;
    top: 0 !important; /* Richtet das Untermenü oben am Elternelement aus */
    left: 100% !important; /* Öffnet das Untermenü nach rechts */
    right: auto !important;
    z-index: 1001;
}

.desktop-nav ul li:hover > ul,
.desktop-nav ul ul.open {
    display: flex;
}

/* 3. Stellt sicher, dass die Namen der Unterelemente umbrechen, um in das Feld zu passen */
.desktop-nav ul ul li a {
    font-size: 12px !important;
    padding: 8px 15px;
    text-align: left !important;
    border-bottom: 1px solid #eee;
    white-space: normal;
    word-wrap: break-word;
}

.desktop-nav ul ul li:last-child a {
    border-bottom: none;
}
/* --- Anpassungen für die Schaltfläche "Cookie-Einstellungen verwalten" im Footer --- */
.cookies-footer .btn-manage-cookies {
    /* Verringert das Padding, um die Größe der Schaltfläche zu reduzieren */
    padding: 0.25rem 0.75rem; 
    /* Reduziert die Schriftgröße, damit der Text in eine Zeile passt */
    font-size: 0.75rem; 
    /* Stellt sicher, dass der Text nicht umbricht */
    white-space: nowrap; 
    /* Weitere Stilkorrekturen bei Bedarf */
    min-width: unset;
    height: auto;
    line-height: normal;
}

}