/* --- style.css --- */
@import url('https://fonts.googleapis.com/css2?family=Marcellus+SC&family=Lato:wght@300;400;700&display=swap');

:root {
    --color-bg-dark: #0d001a;
    --color-gold: #c6a87c;
    --color-gold-hover: #e0c59b;
    --color-text: #ffffff;
    --color-input-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    color: var(--color-text);
    
    /* Hintergrundbild (Sternenhimmel) */
    background: url('assets/bg-stars.png') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--color-bg-dark);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Marcellus SC', serif;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.logo-img {
    width: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(198, 168, 124, 0.5));
}

/* --- Standard Karte (Login/Register) --- */
.glass-card {
    position: relative;     /* WICHTIG für Sprach-Umschalter Position */
    background: rgba(13, 0, 26, 0.75);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
}

input {
    background: var(--color-input-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, #a68b5b 100%);
    color: #0d001a;
    padding: 15px;
    border: none;
    width: 100%;
    border-radius: 5px;
    font-size: 18px;
    font-family: 'Marcellus SC', serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(198, 168, 124, 0.4);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

a:hover {
    color: white;
    text-decoration: underline;
}

#message {
    margin-top: 20px;
    font-size: 0.95em;
    min-height: 20px;
}

/* --- NEU: Split-Layout für die Startseite (index.html) --- */

.glass-hero {
    display: flex;          
    background: rgba(13, 0, 26, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 1000px;      
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;       
    position: relative;     
    margin: 20px;
}

.hero-content {
    flex: 1;                
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    text-align: left;
    z-index: 2;
}

.hero-image {
    flex: 1;                
    /* Hier wird die neue Frau mit Sonnenbrille geladen */
    background: url('assets/woman2.png') no-repeat top center;
    background-size: cover;
    min-height: 500px;      
}

/* --- style.css Ergänzung --- */

/* Spezielle Variante für die Registrierungsseite (lädt woman.png statt woman2.png) */
.hero-image.register-variant {
    background-image: url('assets/woman.png');
    /* Zentriert dieses Bild etwas anders, damit es gut aussieht */
    background-position: center center; 
}

/* --- Sprach-Umschalter Style --- */
.lang-switch {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10;
    font-size: 0.85em;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 15px;
}

.lang-switch span {
    cursor: pointer;
    margin: 0 5px;
    opacity: 0.5;
    transition: all 0.3s;
    text-transform: uppercase;
}

.lang-switch span:hover, .lang-switch span.active {
    opacity: 1;
    color: var(--color-gold);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(198, 168, 124, 0.5);
}

/* --- MOBILE VERSION (Handy) --- */
@media (max-width: 768px) {
    .glass-hero {
        flex-direction: column; 
        max-width: 400px;
    }
    
    .hero-image {
        display: none;      /* Frau auf Handy ausblenden */
    }
    
    .hero-content {
        padding: 40px 30px;
        align-items: center; 
        text-align: center;
    }

    .hero-content button {
        width: 100%;
    }
    
    .lang-switch {
        top: 15px;
        right: 50%;
        transform: translateX(50%);
        width: max-content;
    }
}