* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(#003d507e, #003d507e), url(../img/car.jpeg);
    background-size: cover;
    background-position: center;
}

.container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
}

.container .title {
    background-color: #2aa3b39e;
    padding: 20px 15px;
    border-radius: 4px 4px 0 0;
    text-align: center;
}

.container .title h1 {
    color: #fff;
    font-size: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

form {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Etwas mehr Abstand zwischen den Feldern */
}


form .field {
    display: flex;
    position: relative;
    flex: 90%;
    margin-bottom: 30px; /* Wichtig: Abstand zwischen den Feldern */
}
form button {
    background-color: #22434c;
    border: 2px solid #22434c;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}
form button:hover {
    background-color: transparent;

}
form label {
    color: #ffffffff;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 200;
    position: absolute;
    top: 12px; /* Feste Startposition */
    left: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* Verhindert, dass das Label Klicks blockiert */
}

form input {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #ffffffa1;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    width: 100%; /* Auf 100% setzen für bessere Responsiveness */
    padding: 12px 0 5px; /* Angepasstes Padding (oben, rechts/unten, links) */
    margin-bottom: 0; /* Margin entfernt, da .field den Abstand regelt */
}

/* Label-Effekt beim Fokus oder ausgefülltem Feld */
form .field input:focus + label,
form .field input:not(:placeholder-shown) + label {
    top: -15px;
    font-size: 10px;
}

/* Media Query für Mobile */
@media (max-width: 610px) {
    form .field {
        margin-bottom: 25px; /* Kleinerer Abstand auf Mobile */
    }
    
    form input {
        font-size: 14px;
        padding: 10px 0 3px; /* Angepasstes Padding für Mobile */
    }
    
    form .field input:focus + label,
    form .field input:not(:placeholder-shown) + label {
        top: -12px;
        font-size: 9px;
    }
    
    form label {
        font-size: 11px; /* Etwas kleinere Schrift auf Mobile */
        top: 10px;
    }
}