/* Universal box-sizing for easier layout calculations */
* {
    box-sizing: border-box;
}

/* Allgemeine Stile für den Body */
body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f5f5f5; /* Hellgrauer Hintergrund */
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Oben ausrichten */
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative; /* Für absolute Positionierung des Sprachumschalters */
}

/* Hauptüberschrift */
.main-heading {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

/* Container für Boxen (Startseite) */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 40px;
    padding: 0 10px; /* Zusätzlicher horizontaler Padding für kleinere Bildschirme */
}

/* Allgemeine Box-Stile (Startseite) */
.box {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    color: white;
    flex: 1 1 calc(50% - 10px); /* Distribute space for two columns, accounting for gap */
    min-width: 280px; /* Slightly reduced min-width for better two-column fit on smaller desktops/tablets */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease-in-out;
}

.box:hover {
    transform: translateY(-5px);
}

.box h2 {
    margin-top: 0;
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.box li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.1em;
    box-sizing: border-box;
}

.box li i {
    margin-right: 12px;
    font-size: 1.3em;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.box p {
    font-size: 1em;
    text-align: center;
}

/* Allgemeine Link-Stile für die Boxen */
.box a {
    color: white;
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Dünnere Unterstreichung */
    text-underline-offset: 0.15em; /* Leichter Abstand zum Text */
    font-weight: bold;
    transition: color 0.3s ease, text-decoration-color 0.3s ease, text-decoration-thickness 0.3s ease, transform 0.3s ease; /* Übergang für Dicke und Transform */
}

.box a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration-color: rgba(255, 255, 255, 0.8); /* Etwas weniger transparent beim Hover */
    text-decoration-thickness: 2px; /* Dicker beim Hover */
    transform: translateY(-1px); /* Leichte Anhebung */
}

/* Spezifische Farben für Startseite Boxen */
.orange-box {
    background-color: #ff8c00;
}

.mint-box {
    background-color: #3cb371;
}

.blue-box {
    background-color: #add8e6;
    flex: 1 1 100%; /* Make it take full width on desktop */
    flex-direction: row; /* Keep row direction for desktop */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
}

.blue-box .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    padding: 0 20px;
    width: 100%; /* Ensure content takes full width within its padding */
}

.blue-box h2 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.blue-box p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Link-Stile für die blaue Box */
.blue-box a {
    color: #333;
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Dünnere Unterstreichung */
    text-underline-offset: 0.15em; /* Leichter Abstand zum Text */
    font-weight: bold;
    transition: color 0.3s ease, text-decoration-color 0.3s ease, text-decoration-thickness 0.3s ease, transform 0.3s ease; /* Übergang für Dicke und Transform */
}
.blue-box a:hover {
    color: #555;
    text-decoration-color: #555; /* Dunkler beim Hover */
    text-decoration-thickness: 2px; /* Dicker beim Hover */
    transform: translateY(-1px); /* Leichte Anhebung */
}

/* Spam-Schutz für E-Mail-Adresse (nur visuell, JS für Kopieren) */
.email-display {
    display: inline-block;
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Dünnere Unterstreichung */
    text-underline-offset: 0.15em; /* Leichter Abstand zum Text */
    transition: color 0.3s ease, text-decoration-color 0.3s ease, text-decoration-thickness 0.3s ease, transform 0.3s ease; /* Übergang für Dicke und Transform */
}
.email-display:hover {
    color: #555; /* Leichter Hover-Effekt */
    text-decoration-color: #555; /* Dunkler beim Hover */
    text-decoration-thickness: 2px; /* Dicker beim Hover */
    transform: translateY(-1px); /* Leichte Anhebung */
}

/* Trennlinie (Startseite) */
hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 15px 0;
    width: 80%;
    align-self: center;
}

/* Neuer Container für gruppierte Inhalte bei Björn (Startseite) */
.bjorn-more-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-left: 0;
    box-sizing: border-box;
}

.bjorn-more-info ul {
    width: 100%;
    margin-bottom: 10px;
}

.bjorn-more-info p {
    text-align: left;
    width: 100%;
    margin-top: 0;
}

/* Language Switcher Styles */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100; /* Ensure it's above other content */
}
.lang-button {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 0.9em;
}
.lang-button:hover {
    background-color: #ddd;
}
.lang-button.active {
    background-color: #333;
    color: white;
    border-color: #333;
}

/* Stile für Impressum und Datenschutzerklärung */
.info-page-content { /* Neuer Wrapper für den Inhalt dieser Seiten */
    max-width: 900px; /* Angepasst an Footer-Breite */
    width: 100%;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    color: #333;
}

.info-page-content h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    display: flex; /* Für Icon und Text */
    align-items: center;
    justify-content: center;
    gap: 15px; /* Abstand zwischen Icon und Text */
}

.info-page-content h1 i {
    color: #007bff; /* Farbe für die Icons in Hauptüberschriften */
    font-size: 1.3em; /* Etwas größer als der Text */
}

.info-page-content h2 { /* Für Datenschutzerklärung Abschnitte */
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.6em;
    display: flex; /* Für Icon und Text */
    align-items: center;
    gap: 10px; /* Abstand zwischen Icon und Text */
}

.info-page-content h2 i {
    color: #007bff; /* Farbe für die Icons in Überschriften */
    font-size: 1.2em; /* Etwas größer als der Text */
}

.info-page-content h3 { /* Für Impressum Abschnitte */
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.4em;
    display: flex; /* Für Icon und Text */
    align-items: center;
    gap: 10px; /* Abstand zwischen Icon und Text */
}

.info-page-content h3 i {
    color: #007bff; /* Farbe für die Icons in Überschriften */
    font-size: 1.2em; /* Etwas größer als der Text */
}

.info-page-content p,
.info-page-content ul {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1em;
}

.info-page-content ul {
    padding-left: 20px;
}

.info-page-content li {
    margin-bottom: 8px;
}

/* Allgemeine Link-Stile */
a {
    color: #007bff; /* Standard-Linkfarbe */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Footer-Stile (global, da in allen Seiten eingebunden) */
footer {
    width: 100%;
    max-width: 900px;
    padding: 10px 0;
    font-size: 0.85em;
    color: #777; /* Standardfarbe, kann angepasst werden */
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px; /* Abstand zum Inhalt darüber */
}

footer .copyright {
    margin-right: auto;
}

footer .footer-links {
    display: flex;
    gap: 15px;
}

/* Link-Stile für den Footer */
footer a {
    color: #777;
    text-decoration: none; /* Standardmäßig keine Unterstreichung */
    transition: color 0.3s ease, text-decoration-color 0.3s ease, text-decoration-thickness 0.3s ease, text-underline-offset 0.3s ease, transform 0.3s ease; /* Übergang für alle Eigenschaften */
}

footer a:hover {
    color: #333;
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Dünnere Unterstreichung beim Hover */
    text-underline-offset: 0.15em; /* Leichter Abstand zum Text beim Hover */
    text-decoration-color: #555; /* Sanftere Farbe beim Hover */
    transform: translateY(-1px); /* Leichte Anhebung */
}


/* Responsive Anpassungen */
@media (max-width: 768px) {
    body {
        padding: 10px; /* Weniger Padding am Rand auf Mobilgeräten */
    }
    .main-heading {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .container {
        flex-direction: column;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .box {
        flex: 1 1 100%; /* Make all boxes take full width on mobile */
        min-width: unset; /* Remove min-width constraint on mobile */
    }

    .blue-box {
        flex-direction: column; /* Stack content vertically on mobile */
    }

    .blue-box .content {
        padding: 0 15px; /* Add some horizontal padding for content inside blue box on mobile */
    }

    .language-switcher {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    .lang-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    /* Responsive Anpassungen für Impressum/Datenschutz */
    .info-page-content {
        padding: 20px;
        margin: 10px auto;
    }
    .info-page-content h1 {
        font-size: 1.8em;
        gap: 10px;
    }
    .info-page-content h2 {
        font-size: 1.4em;
    }
    .info-page-content h3 {
        font-size: 1.2em;
    }

    /* Responsive Anpassungen für Footer */
    footer {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
        padding: 10px;
    }

    footer .copyright {
        margin-right: 0;
        margin-bottom: 10px;
    }

    footer .footer-links {
        gap: 8px;
    }

    footer a {
        display: inline-block;
    }
}
