/* ================= GLOBAL RESETS & THEME ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Verhindert, dass Padding Elemente ungewollt vergrößert */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #121214; /* Dunkles Cockpit-Grau */
    color: #F5F5F5;
    line-height: 1.6;
}

/* Zwingt Formularelemente, die globale Schriftart zu übernehmen */
input, button, select, textarea {
    font-family: inherit;
}

/* Sportliche, fette Überschriften im BMW-Orange */
h1, h2, h3 {
    font-weight: 900; 
    color: #FF8800;   
    letter-spacing: -0.02em; /* Leicht gestaucht für den aggressiven Racing-Look */
}


/* ================= HEADER & NAVIGATION ================= */
header {
    background: rgba(26, 26, 26, 0.85); /* Edler, leicht transparenter Hintergrund */
    backdrop-filter: blur(10px);        /* iOS-artiger Glas-Effekt */
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 136, 0, 0.1); /* Ganz dezente orange Trennlinie unten */
}

/* Logo-Bild im Header */
.img_h {
    width: auto;
    height: 70px; /* Leicht herabgesetzt für eine elegantere Leiste */
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px; /* Mehr Platz zwischen den Links */
    margin: 0;
    padding: 0;
}

nav a {
    color: #A0A0A5; /* Standardmäßig leicht gedimmtes iOS-Grau */
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease-in-out; /* Weicher Übergang beim Hovern */
}

nav a:hover {
    color: #FF8800; /* Wechselt geschmeidig zum BMW-Orange */
}


/* ================= HARDWARE / PERFORMANCE STYLING (Vorschlag) ================= */
/* Falls du später Buttons oder Cards (wie das Grid in Flutter) einbaust: */

.btn-primary {
    background-color: #FF8800;
    color: #121214;
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.2s;
}

.btn-primary:hover {
    background-color: #e07700;
}

.btn-primary:active {
    transform: scale(0.98); /* Kleiner Klick-Effekt */
}

.dashboard-card {
    background: #1C1C1E; /* Das exakte Apple-Dark-Mode Grau aus deinem Dashboard */
    border: 1px solid rgba(255, 136, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
}

/* ================= HERO CONTENT SECTION ================= */

.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
}

/* Der Text-Bereich */
.content_text {
    flex: 1;
}

.content_text h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #FF8800; /* Dein BMW-Orange */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(255, 136, 0, 0.2); /* Subtiler Glow-Effekt */
}

.content_text p {
    font-size: 1.1rem;
    color: #A0A0A5; /* iOS-artiges, edles Grau für bessere Lesbarkeit */
    line-height: 1.7;
}

/* Das neu designte Hero-Bild (Dashboard / Lenkrad) */
.content_img {
    flex: 1;
    width: 100%;
    /* Da es ein Handy-Screenshot ist, begrenzen wir die Breite auf ein typisches Smartphone-Maß */
    max-width: 320px; 
    height: auto;
    display: block;
    margin: 0 auto;
    
    /* Perfekter Smartphone-Look */
    border-radius: 32px; /* Stärkere Rundung für den modernen Display-Look */
    border: 4px solid #1A1A1A; /* Simuliert den schwarzen Gehäuserahmen des Handys */
    
    /* Schatten & Edler BMW-Orange-Glow im Hintergrund */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(255, 136, 0, 0.1); 
    
    /* Weicher Übergang für den Hover-Effekt */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

/* Cooler interaktiver Effekt, wenn man mit der Maus drüberfährt */
.content_img:hover {
    transform: translateY(-8px) rotate(1deg); /* Leichtes Anheben und minimales Kippen */
    border-color: #2c2c2c;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.8), 
                0 0 45px rgba(255, 136, 0, 0.2); /* Der orangefarbene Leuchteffekt wird stärker */
}

.bt_register-index{
    margin-top: 20px;
    background-color: #FF8800;
    color: #F5F5F5;
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.2s;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.8), 
                0 0 45px rgba(255, 136, 0, 0.2);
}

.bt_register-index:hover{
    transform: scale(1.05);
    background-color: #e07700;
    border-color: #2c2c2c;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.8), 
                0 0 45px rgba(255, 136, 0, 0.2);
}

.register-card{
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 400px; /* Verhindert, dass die Card zu riesig wird */
    
    /* Die Höhe passt sich durch das Padding automatisch an den Inhalt an */
    padding: 40px; 
    
    /* Zentriert die Card auf der Seite (falls gewünscht) */
    margin: 40px auto; 
    
    /* Dein gewohnter Dark-Mode-Style */
    background-color: #1C1C1E;
    border-radius: 16px;
    border: 1px solid rgba(255, 136, 0, 0.15);
    border-radius: 16px;
    border: 2px solid #FF8800;
}

.register-card h1{
    display: flex;
    justify-self: center;
}

/* Container für ein Eingabefeld inkl. Label */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px; /* Optionale Breitenbegrenzung */
}

/* Das Text-Label über dem Input */
.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #A0A0A5; /* Edles iOS-Grau */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Das eigentliche Input-Feld */
.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: #F5F5F5;
    background-color: #1C1C1E; /* Das exakte Apple-Dark-Mode Grau aus deinem Dashboard */
    
    /* Rahmen & Ecken */
    border: 1px solid rgba(255, 136, 0, 0.15); /* Minimaler oranger Rahmen im Ruhezustand */
    border-radius: 10px; /* Abgerundet passend zu den Dashboard-Cards */
    
    /* Verhindert den hässlichen Standard-Browser-Rahmen */
    outline: none; 
    
    /* Flüssiger Übergang für den Fokus-Effekt */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

/* Platzhalter-Text (z.B. "E-Mail eingeben") */
.input-group input::placeholder {
    color: #55555A;
}

/* ================= INTERAKTIVE ZUSTÄNDE ================= */

/* 1. Hover-Zustand (Maus zieht drüber) */
.input-group input:hover {
    background-color: #222224; /* Wird dezent heller */
    border-color: rgba(255, 136, 0, 0.4);
}

/* 2. Fokus-Zustand (User klickt rein/schreibt) */
.input-group input:focus {
    background-color: #121214; /* Wird tiefdunkel wie der Body-Hintergrund */
    border-color: #FF8800; /* Knalliges BMW-Orange */
    
    /* Subtiler oranger Leuchteffekt (Glow) nach außen */
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.15); 
}

/* 3. Fehler-Zustand (Falls eine Validierung fehlschlägt) */
.input-group input.error {
    border-color: #FF3B30; /* Sportliches Racing-Rot */
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.bt_register{
    display: flex;
    justify-self: center;
    background-color: #FF8800;
    color: #F5F5F5;
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.2s;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.8), 
                0 0 45px rgba(255, 136, 0, 0.2);
}

.bt_register:hover{
    transform: scale(1.05);
    background-color: #e07700;
    border-color: #2c2c2c;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.8), 
                0 0 45px rgba(255, 136, 0, 0.2);
}

/* ================= RESPONSIVE DESIGN ================= */
/* Sorgt dafür, dass auf Handys das Bild über dem Text steht */
@media (max-width: 900px) {
    .content {
        flex-direction: column-reverse; /* Bild oben, Text unten */
        text-align: center;
        margin: 40px auto;
        gap: 30px;
    }

    .content_text h1 {
        font-size: 2.2rem;
    }
    
    .content_img {
        max-width: 100%;
    }
}