/* Grundlegende Stile */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: #f0f2f5;
}

body::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    will-change: transform;
    filter: brightness(0.8);
}

/* Text- und Box-Schattierung und Kontur */
* {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.info-box {
    background-color: rgba(244, 244, 244, 0.7); /* Hintergrundfarbe geändert, um besseren Kontrast zu schaffen */
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-shadow: none; /* Text-Schatten entfernt für bessere Lesbarkeit */
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Entferne Schattierung und Box-Styling vom Container */
.info-block {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: none; /* Schattierung entfernt */
    background: none; /* Kein Hintergrund */
}

/* Logo Responsive Styles */
.logo-welcome {
    width: 100%;
    height: auto;
    max-width: 800px; /* Auf Desktop-Geräten groß darstellen */
    max-height: 80vh; /* Maximal 80% der Bildschirmhöhe */
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-welcome {
        max-width: 100%;
        max-height: 50vh; /* Auf Mobilgeräten entsprechend skalieren */
    }
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    position: fixed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    font-weight: 600;
}

.header-toggle-container {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    cursor: pointer;
}

.header-toggle {
    font-size: 20px;
    color: #333;
    transition: transform 0.3s ease;
}

.header-toggle:hover {
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    color: #fff !important;
    margin: 0 10px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
}

.navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: #555 !important;
}

.navbar-nav .nav-link:hover::after {
    width: 50%;
}

.navbar-brand img {
    max-width: 60px;
    height: auto;
}

.navbar-collapse {
    display: none;
}

.navbar-collapse.show {
    display: block;
}

.lang-switch img {
    width: 24px;
    margin-left: 10px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.lang-switch img:hover {
    opacity: 0.7;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 12px 20px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    text-decoration: none; /* Keine Unterstreichung */
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    min-width: 150px; /* Mindestens so breit, dass der Text "Schlaf-Analyse" hineinpasst */
    max-width: 100%; /* Maximale Breite, die der Bildschirm bzw. der Container erlaubt */
    width: 100%; /* Standardbreite */
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff; /* Textfarbe beim Hover beibehalten */
    text-decoration: none; /* Keine Unterstreichung beim Hover */
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button Container */
.button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Zwei Spalten für 4x2 Raster */
    grid-template-rows: auto;
    gap: 20px;
    justify-items: center;
    max-width: 600px; /* Maximalbreite des Containers */
    margin: 0 auto;
}

/* Page Links */
.page-links {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.page-links a {
    width: 100%;
}

/* Welcome Message */
.welcome-message {
    color: #fff;
    padding-top: 15vh;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.welcome-message h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.welcome-message p {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Divider */
.divider {
    margin: 30px 0;
    height: 2px;
    width: 60%;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* Information Section */
.information-section {
    color: #fff;
    margin-top: 50px;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.information-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

footer .nav-link {
    color: #333 !important;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.3s;
    text-decoration: none;
}

footer .nav-link:hover {
    color: #555 !important;
}

footer .lang-switch {
    margin-left: 20px;
}

footer .lang-switch img {
    width: 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: opacity 0.3s;
}

footer .lang-switch img:hover {
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .welcome-message h1 {
        font-size: 36px;
    }

    .welcome-message p {
        font-size: 20px;
    }

    .info-box {
        width: 80%;
    }

    .navbar-brand img {
        max-width: 50px;
    }

    .header-toggle {
        font-size: 18px;
    }

    .navbar-nav .nav-link {
        margin: 0 5px;
        font-size: 14px;
    }
}
