/* Globale Stile & Mobile First Ansatz */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #fafafa; /* Instagram-ähnlicher Hintergrund */
    color: #262626; /* Instagram-Textfarbe */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Stellt sicher, dass der Footer (falls vorhanden) unten bleibt */
}

.main-content {
    flex-grow: 1;
    padding-top: 54px; /* Höhe der festen Navbar */
}

/* Container für Login/Registrierung und andere zentrierte Inhalte */
.auth-container, .content-container {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    padding: 20px;
    margin: 20px auto;
    width: 90%; /* Responsive Breite */
    max-width: 350px; /* Maximale Breite für größere Bildschirme */
    text-align: center;
    border-radius: 3px;
}

.auth-container h1, .content-container h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-container p {
    color: #8e8e8e;
    font-size: 17px;
    font-weight: 600;
    line-height: 20px;
    margin: 0 40px 20px 40px;
}

/* Formular-Elemente */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: calc(100% - 22px); /* Berücksichtigt Padding und Border */
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    background-color: #fafafa;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #a8a8a8;
    outline: none;
}

button, .button {
    background-color: #0095f6;
    color: white;
    padding: 8px 0;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    line-height: 18px;
}

button:hover, .button:hover {
    background-color: #0077cc;
}

button:disabled, .button:disabled {
    background-color: #b2dffc;
    cursor: default;
}

/* Fehlermeldungen und Erfolgsmeldungen */
.errors {
    color: #ed4956; /* Instagram-Fehlerrot */
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 0.9em;
    text-align: left;
}

.errors li {
    margin-bottom: 5px;
}

.success {
    color: #28a745; /* Bootstrap Grün für Erfolg */
    background-color: #e6ffed;
    border: 1px solid #b2dfc1;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Links für Registrierung/Login auf den jeweiligen Seiten */
.auth-link {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    padding: 20px;
    margin: 10px auto 20px auto; /* Etwas Abstand zwischen den Boxen */
    width: 90%;
    max-width: 350px;
    text-align: center;
    border-radius: 3px;
    font-size: 14px;
}

.auth-link a {
    color: #0095f6;
    text-decoration: none;
    font-weight: 600;
}

/* Navigationsleiste */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #dbdbdb;
    padding: 0 15px; /* Angepasst für mobile Ansicht */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 30px); /* Volle Breite minus Padding */
    z-index: 1000;
}

.navbar .logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: #262626;
    font-family: "Grand Hotel", cursive;
    text-decoration: none;
}

/* Burger Menü Button */
.burger-menu-button {
    display: flex; /* Wird per Media Query für Desktop ausgeblendet */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Über den Links, falls sie überlappen */
    -webkit-tap-highlight-color: transparent; /* Entfernt den blauen Klick-Hintergrund auf mobilen Geräten */
}

.burger-icon-bar {
    width: 100%;
    height: 3px;
    background-color: #262626;
    border-radius: 2px;
    transition: all 0.3s linear;
}

/* Burger Animation zu X bei geöffnetem Menü */
.burger-menu-button.active .burger-icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.burger-menu-button.active .burger-icon-bar:nth-child(2) {
    opacity: 0;
}
.burger-menu-button.active .burger-icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Verhindert blauen Hintergrund beim Tippen auf den bereits aktiven Burger-Button */
.burger-menu-button.active:focus,
.burger-menu-button.active:active { /* Auch für den :active Zustand absichern */
    background-color: transparent !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important; /* Nochmal explizit für diesen Zustand */
}

/* Navigationslinks Container (Mobile Ansicht) */
.nav-links-container {
    display: none; /* Standardmäßig versteckt auf Mobile */
    flex-direction: column;
    position: absolute;
    top: 54px; /* Unter der Navbar */
    left: 0;
    background-color: #fff;
    width: 100%;
    border-top: 1px solid #dbdbdb; /* Trennlinie */
    padding-bottom: 15px; /* Etwas Platz unten */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links-container.active {
    display: flex; /* Sichtbar, wenn aktiv */
}

.nav-links-container a, .nav-links-container span {
    padding: 12px 20px;
    text-decoration: none;
    color: #262626;
    display: block; /* Nehmen volle Breite ein */
    border-bottom: 1px solid #f0f0f0; /* Trenner zwischen Links */
    position: relative; /* Wichtig für die Positionierung von Kind-Elementen wie dem Badge */
}
.nav-links-container a:last-child, .nav-links-container span:last-child {
    border-bottom: none;
}

.nav-links-container .nav-icon {
    font-size: 1.1em; /* Icons im Menü etwas kleiner */
}
.nav-links-container .nav-button {
    background-color: transparent;
    padding: 12px 20px;
    text-align: left;
    width: auto; /* Nicht volle Breite */
    font-weight: normal;
}
.nav-links-container .nav-button:hover {
    background-color: #f9f9f9;
}
.nav-links-container .logout-button {
    color: #ed4956;
}
.nav-links-container .nav-greeting {
    font-weight: 600;
    color: #555;
}

.navbar .nav-links a.nav-icon {
    /* Bestehende Styles für Desktop Icons bleiben, aber werden per Media Query angepasst */
    position: relative; 
    text-decoration: none;
    color: #262626;
    margin-left: 15px; /* Weniger Margin für Desktop */
    font-size: 1.3em; 
}

.navbar .nav-links a.nav-button {
    /* Bestehende Styles für Desktop Buttons bleiben, werden per Media Query angepasst */
    text-decoration: none;
    color: #262626;
    margin-left: 15px;
    font-size: 0.9em;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #efefef;
}

/* Media Queries für größere Bildschirme (Desktop-Navigation) */
@media (min-width: 768px) {
    .navbar {
        padding: 0 20px; /* Breiterer Padding auf Desktop */
    }
    .burger-menu-button {
        display: none; /* Burger-Button auf Desktop ausblenden */
    }
    .nav-links-container {
        display: flex; /* Links immer anzeigen */
        flex-direction: row; /* Horizontale Anordnung */
        position: static; /* Nicht absolut positioniert */
        width: auto; /* Automatische Breite */
        background-color: transparent;
        border-top: none;
        padding-bottom: 0;
        box-shadow: none;
        align-items: center; /* Vertikal zentrieren */
    }
    .nav-links-container a, .nav-links-container span {
        padding: 0; /* Desktop-Padding wird durch Margin der Elemente geregelt */
        border-bottom: none;
        margin-left: 20px; /* Abstand zwischen den Links */
    }
    .nav-links-container .nav-greeting {
        margin-right: 15px;
    }
    .nav-links-container .nav-button {
        background-color: #efefef;
        padding: 6px 12px;
        text-align: center;
        font-weight: 600;
    }
    .nav-links-container .nav-button:hover {
        background-color: #dbdbdb;
    }
    .nav-links-container .logout-button {
        color: white; /* Zurück zu weißem Text auf Button-Hintergrund */
        background-color: #0095f6; /* Blauer Button für Logout auf Desktop */
    }
    .nav-links-container .logout-button:hover {
        background-color: #0077cc;
    }
}

.notification-badge {
    position: absolute;
    top: -5px; /* Diese Werte werden unten für den mobilen Menü-Kontext überschrieben */
    right: -8px; /* Diese Werte werden unten für den mobilen Menü-Kontext überschrieben */
    background-color: #ed4956; /* Instagram-Rot */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1;
    min-width: 10px; /* Stellt sicher, dass auch einzelne Ziffern rund sind */
    text-align: center;
}

/* Spezifische Anpassung für den Badge im geöffneten mobilen Menü */
.nav-links-container.active .notification-badge {
    display: inline-block; /* Stellt sicher, dass der Hintergrund auf den Badge-Inhalt beschränkt ist */
    position: absolute; /* Muss beibehalten werden für die Positionierung */
    top: 50%;
    right: 20px; /* Innerhalb des rechten Paddings des Links */
    transform: translateY(-50%); /* Vertikal zentrieren */
    /* padding, color, background-color, border-radius etc. werden von der Haupt .notification-badge Regel geerbt */
}

/* Media Queries für größere Bildschirme (Desktop) */
@media (min-width: 768px) {
    .navbar {
        padding: 0 20%; /* Breiterer Padding auf Desktop */
        width: 60%; /* Inhalt zentrieren */
    }

    .main-content {
        padding-left: 20%;
        padding-right: 20%;
    }

     .auth-container, .content-container, .auth-link {
        margin-top: 30px;
    }
}

/* Spezifische Anpassungen, falls nötig */
#app-title {
    font-family: "Grand Hotel", cursive; /* Wenn Schrift importiert wurde */
    font-size: 38px; /* Größe für den Titel auf Login/Register */
    margin-bottom: 25px;
}

/* Footer Stile */
footer {
    background-color: #f0f0f0; /* Heller Hintergrund für den Footer */
    color: #555;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #dbdbdb;
    margin-top: auto; /* Wichtig, um den Footer nach unten zu schieben, wenn der Inhalt nicht ausreicht */
    width: 100%;
}

.footer-content {
    max-width: 960px; /* Maximale Breite, zentriert */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column; /* Standard für Mobile */
    align-items: center;
}

.footer-content p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.footer-nav a {
    color: #007bff; /* Standard-Linkfarbe oder deine Markenfarbe */
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Desktop-Anpassungen für Footer, falls nötig */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row; /* Nebeneinander auf Desktop */
        justify-content: space-between;
    }
    .footer-content p {
        margin-bottom: 0; /* Kein unterer Margin, wenn nebeneinander */
    }
} 