/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #F4F4F4;
    color: #262626;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

/* Sprachwahl Dropdown */
.language-selector {
    position: absolute;
    top: 15px; /* Vergrößern des Abstands zum oberen Rand */
    right: 20px;
    font-size: 1rem;
    z-index: 100; /* Stellen Sie sicher, dass es immer oben bleibt */
}

.language-selector select {
    background-color: #262626; /* Dunkler Hintergrund */
    color: #FFDE18; /* Helle Schriftfarbe */
    border: 2px solid #FFDE18; /* Goldener Rahmen */
    border-radius: 25px; /* Abgerundete Ecken */
    padding: 8px 20px; /* Innenabstand */
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease; /* Sanfte Übergänge */
}

.language-selector select:focus {
    outline: none;
    border-color: #F7A515; /* Hellerer Goldton, wenn das Dropdown fokussiert ist */
    box-shadow: 0 0 10px rgba(247, 165, 21, 0.5); /* Sanfte Leuchten beim Fokus */
}

.language-selector select:hover {
    background-color: #FFDE18; /* Hintergrundfarbe ändert sich bei Hover */
    color: #262626; /* Schriftfarbe ändert sich zu dunkler */
    border-color: #F7A515; /* Rahmenfarbe ändert sich bei Hover */
}

/* Header */
header {
    background-color: #262626; /* Header Hintergrundfarbe */
    text-align: center;
    padding: 20px;
    margin-top: 0;
}

.logo img {
    width: 150px;
    height: auto;
    margin: 0;
}

/* Main Content (Inhalt in der neuen Hintergrundfarbe) */
main {
    flex: 1;
    background-color: #F4F4F4;
    color: #262626;
    padding: 40px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}
/* Info Box */
.info-box {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.info-box-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.info-box-header:hover {
    background-color: #f1f1f1;
}

.info-box-title {
    margin: 0;
    color: #262626;
    font-size: 1.2rem;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #262626;
    transition: transform 0.3s;
}

.info-box-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.info-box-description {
    margin: 0;
    padding: 15px 0;
    font-size: 1rem;
    color: #262626;
    line-height: 1.5;
}

.info-box.open .info-box-content {
    max-height: 500px; /* Adjust as needed */
    padding: 10px 20px;
}

.info-box.open .toggle-icon {
    transform: rotate(45deg);
}

/* Boxen hinter dem Hintergrund */
.portal-boxes {
    display: flex;
    flex-wrap: wrap; /* Boxen sollen sich je nach Bildschirmgröße umsortieren */
    gap: 20px;
    justify-content: center; /* Boxen werden horizontal zentriert */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken für den Bereich hinter den Boxen */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schlagschatten für den Hintergrundbereich */
}

/* Boxen */
.box {
    background-color: white; /* Hintergrund der Boxen */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px; /* Abstand zwischen den Boxen */
    max-width: 400px; /* Maximale Breite der Boxen */
    flex: 1 1 calc(33.33% - 20px); /* Drei Boxen in einer Reihe, mit Abständen */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Schlagschatten für die Boxen */
    overflow: hidden; /* Verhindert, dass der Text über die Boxen hinausgeht */
    word-wrap: break-word; /* Ermöglicht es, dass der Text innerhalb der Box umbrechen kann */
    box-sizing: border-box; /* Stellt sicher, dass Padding und Border in der Breite enthalten sind */

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Gleichmäßige Verteilung des Inhalts */
    height: 200px; /* Alle Boxen haben dieselbe Höhe */
}

/* Der Textbereich mit verringertem Abstand zum Button */
.box .box-description {
    margin-bottom: 8px; /* Reduziert den Abstand zwischen Text und Button */
    flex-grow: 0; /* Verhindert, dass der Textbereich unnötig wächst */
}

/* Button */
.portal-link {
    margin-top: 10px; /* Setzt den Abstand des Buttons zum Text */
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .box {
        flex: 1 1 calc(50% - 20px); /* Zwei Boxen pro Reihe bei mittleren Bildschirmgrößen */
        height: auto; /* Höhe automatisch anpassen bei kleinen Bildschirmen */
    }
}

@media (max-width: 480px) {
    .box {
        flex: 1 1 100%; /* Eine Box pro Reihe bei sehr kleinen Bildschirmgrößen */
        height: auto; /* Höhe automatisch anpassen bei kleinen Bildschirmen */
    }
}


.box h2 {
    margin-bottom: 10px;
    color: #262626;
}

.box p {
    font-size: 1rem;
    color: #262626;
    margin-bottom: 15px;
    line-height: 1.5; /* Verbesserte Lesbarkeit durch Zeilenabstand */
}

.portal-link {
    text-decoration: none;
    color: #262626;
    font-weight: bold;
    padding: 10px 20px;
    background-color: #FFDE18; /* Button Hintergrundfarbe */
    border-radius: 5px;
    transition: background-color 0.3s;
}

.portal-link:hover {
    background-color: #F7A515; /* Hover Hintergrundfarbe */
}

/* Footer */
footer {
    font-size: 0.9rem;
    background-color: #262626;
    padding: 20px;
    text-align: right;
    color: #FFDE18;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-links a {
    font-size: 0.9rem;
    color: #FFDE18; /* Standard Linkfarbe */
    text-decoration: none; /* Keine Unterstreichung im normalen Zustand */
    
    text-align: right;
    transition: color 0.3s ease; /* Sanfter Übergang der Farbe beim Hover */
}

.footer-links a:hover {
    font-size: 0.9rem;
    color: #F7A515; /* Neue Hover-Farbe für Links */
    text-decoration: none; /* Keine Unterstreichung beim Hover */
}
.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px; /* Abstand zu den Links */
    margin-bottom: 20px; /* Hier wird der Abstand hinzugefügt */
}

.footer-copyright {
    text-align: left;
    font-size: 0.9rem;
    color: #ffffff;
}

.footer-company-data {
    text-align: right;
    font-size: 0.9rem;
    color: #ffffff;
}


/* Divider im Footer */
.footer-links .divider {
    color: #ffffff; /* Weißer Divider */
    font-size: 0.9rem;
    margin: 0 2px; /* Etwas Abstand vor und nach dem Divider */
}

/* Link in der Info-Box */
.info-box-description a {
    color: #000000; /* Farbe an Button-Hintergrund anpassen */
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s;
}

.info-box-description a:hover {
    color: #F7A515; /* Farbe an Button-Hover anpassen */
}
/* Roter Warn-Banner */
#alert-banner {
    background-color: #cc0000; /* Kräftiges Rot */
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
}

#alert-banner p {
    margin: 0;
    line-height: 1.5;
}