/* Stellt sicher, dass die Seite immer den gesamten Bildschirm füllt */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: "Poppins", sans-serif; /* Modernere, elegantere Schrift */
    color: white; /* Weiße Schrift für Kontrast */
}

/* Hintergrundbild unverzerrt, füllt den gesamten Bildschirm */
body {
    background-image: url("../images/IMG_2728.jpeg"); /* Passe den Pfad an */
    background-size: cover; /* Sorgt für eine schöne Anpassung */
    background-position: center; /* Hält das Bild zentriert */
    background-repeat: no-repeat; /* Kein Wiederholen */
    background-attachment: fixed; /* Fixiertes Bild für den Parallax-Effekt */
}

/* Abstand für die fixierte Navbar */
body {
    padding-top: 70px;
}

#weather-info {
    position: fixed;
    bottom: 20px; /* Abstand vom unteren Rand */
    left: 12px; /* Gleicher linker Abstand wie .container */
    font-size: 1.1rem; /* Gleiche Schriftgröße wie Navigation */
    color: rgba(255, 255, 255, 0.6); /* Gleiche Farbe wie Navigation (leicht transparent) */
    font-family: "Poppins", sans-serif; /* Einheitliche moderne Schrift */
    font-weight: 400;
    text-align: left;
    transition: color 0.3s ease-in-out;
}

/* Beim Hover - volle Deckkraft für besseren Fokus */
#weather-info:hover {
    color: rgba(255, 255, 255, 1);
}

/* Dynamische Anpassung für größere Bildschirme */
@media (min-width: 768px) {
    #weather-info {
        left: calc(50% - 660px + 12px); /* 50% Mitte der Seite - Hälfte der max. Containerbreite + padding */
    }
}

/* Header-Text elegant oben rechts platzieren */
.header-text {
    position: absolute;
    top: 20px;
    right: 30px; /* Leicht eingerückt für bessere Balance */
    text-align: right;
    font-weight: 300; /* Dünnere Schrift für elegantes Design */
}

/* Punkt.-Schriftzug ästhetisch anpassen */
.header-text h1 {
    font-size: 2rem; /* Harmonische Größe */
    font-weight: 600; /* Kräftigere Schrift für "Punkt." */
    margin: 0;
}

/* Wetter-Info dezenter, aber gut lesbar */
.header-text p {
    font-size: 1.2rem; /* Dezente, aber klare Größe */
    font-weight: 400;
    margin: 5px 0 0;
}

/* Anpassungen für kleinere Bildschirme */
@media (max-width: 991px) {
    .header-text {
        top: 15px;
        right: 15px;
    }

    .header-text h1 {
        font-size: 1.6rem; /* Kleinere Schrift auf mobilen Geräten */
    }

    .header-text p {
        font-size: 1rem;
    }
}

/* Stil für die Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.2) !important; /* Halbtransparenter Hintergrund */
    backdrop-filter: blur(5px); /* Weicher Blur für ein modernes Design */
    padding: 10px 20px;
    transition: background 0.3s ease-in-out; /* Sanfte Hintergrundänderung */
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8); /* Navbar wird dunkler beim Scrollen */
}

/* Branding-Stil */
.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Navigationselemente - leicht transparent im Normalzustand */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6) !important; /* 60% Transparenz */
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
    font-weight: 400;
}

/* Beim Hover - Vollständig weiß */
.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important; /* 100% Weiß */
}

/* Basis-Design des Burger-Menüs */
.custom-toggler {
    border: none;
    background: transparent;
    padding: 10px;
    outline: none;
}

/* Die drei Linien des Burger-Menüs */
.menu-icon {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animation: Burger wird zum "X" */
.navbar-toggler[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}