:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
    --background-color: #f4f7f9;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* KORREKTUR 1: Body ist nur noch für grundlegende Stile zuständig */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

/* KORREKTUR 2: Neuer Container zur Zentrierung des Hauptinhalts */
#main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
}

h2, h3 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
}

p {
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Formular-Styling */
form p {
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="time"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: var(--primary-hover);
}

.form-link {
    text-align: center;
    margin-top: 15px;
    display: block;
}

/* Ergebnis-Container */
.result-container {
    background-color: var(--secondary-color);
    padding: 20px;
    margin-top: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.result-container p {
    text-align: center;
    font-size: 18px;
    margin: 10px 0;
}

/* Dashboard-spezifisches Styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.vehicle-list {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.vehicle-item {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.vehicle-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.vehicle-item p {
    margin: 4px 0;
    font-size: 14px;
}

.vehicle-item-link {
    word-break: break-all;
}

/* Fehlermeldungen */
.error {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}

/* Ergänzung für die Bearbeiten/Löschen-Knöpfe */
.vehicle-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.action-button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.edit-button {
    background-color: #28a745;
}
.edit-button:hover {
    background-color: #218838;
}

.delete-button {
    background-color: #dc3545;
}
.delete-button:hover {
    background-color: #c82333;
}

/* Ergänzung für den Anleitungs-Block */
.instructions {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.instructions h3 {
    margin-top: 0;
    text-align: left;
}

.instructions p {
    text-align: left;
}

.instructions ol {
    padding-left: 20px;
    text-align: left;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.instructions ul {
    margin-top: 8px;
    padding-left: 20px;
}

/* Ergänzungen für Header und Einstellungsseite */
.header-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.settings-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Stil für Erfolgs- und Benachrichtigungsfenster */
.success, .message {
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    max-width: 630px;
    width: 90%;
    margin: 0 auto 25px auto;
    box-shadow: var(--box-shadow);
}

/* ======================================== */
/* Ergänzungen für die neue Startseite   */
/* ======================================== */

.welcome-container {
    position: relative; /* WICHTIG: Macht diesen Container zum Bezugspunkt */
    background-color: #fff;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.hero-section {
    padding: 60px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.hero-section h1 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: #fff;
}

.hero-section .subtitle {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.info-section, .cta-section {
    padding: 40px 30px;
    border-bottom: 1px solid var(--border-color);
}

.info-section h2, .cta-section h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.info-section p, .info-section li {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
    line-height: 1.7;
    text-align: left;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    margin-bottom: 15px;
}

.how-it-works {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
}

.step h3 {
    color: #333;
}

.story-section {
    background-color: var(--secondary-color);
}

.privacy-section ul {
    text-align: left;
}

.cta-section {
    background-color: var(--secondary-color);
    border-bottom: none;
    padding-bottom: 50px;
}

.cta-section .button {
    padding: 15px 30px;
    font-size: 1.1em;
}

.welcome-container > *:last-child {
    border-bottom: none;
}

.footer-legal {
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer-legal a {
    color: #6c757d;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Ergänzungen für das Kontaktformular */
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -5000px;
    visibility: hidden;
}

/* KORREKTUR 3: Login-Button wird korrekt positioniert und skaliert */
.top-right-login {
    position: absolute;
    top: 20px;   /* GEÄNDERT: von -50px zu 20px */
    right: 20px;
    padding: 10px 20px;
    font-size: 0.9em;
    z-index: 10;
    width: auto;
    border: 2px solid #fff;
}

/* Ergänzung für den Disclaimer im Rechner */
.disclaimer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: #6c757d; /* Ein neutrales Grau */
    text-align: left;
}

.disclaimer p {
    font-size: inherit; /* Übernimmt die Schriftgröße von .disclaimer */
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

/* Ergänzung für die Disclaimer-Checkbox bei der Registrierung */
.terms-box {
    display: flex;
    align-items: flex-start; /* Richtet Text und Box oben aus */
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
}

.terms-box input[type="checkbox"] {
    margin-top: 4px; /* Leichte Anpassung für perfekte vertikale Ausrichtung */
    flex-shrink: 0; /* Verhindert, dass die Checkbox schrumpft */
}

.terms-box label {
    font-weight: normal;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.checkbox-group label {
    font-weight: 600;
    margin: 0;
}

.option-box {
    border: 2px solid var(--primary-color);
    background-color: #fff;
}

.option-box h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.fee-note {
    font-size: 0.9em;
    padding: 8px;
    border-radius: 4px;
    text-align: center !important; /* Wichtig, um p-Style zu überschreiben */
    margin-top: 5px !important;
}

.fee-note.safe {
    background-color: #d4edda;
    color: #155724;
}

.fee-note.warning {
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
}

/* ======================================== */
/* Ergänzung für die Counter-Sektion      */
/* ======================================== */

.counter-section {
    background-color: var(--secondary-color); /* Helles Grau, passend zum Rest */
    padding: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* Für mobile Ansicht */
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
}

.counter-item {
    text-align: center;
    flex-basis: 200px; /* Gibt jedem Item eine Grundbreite */
    flex-grow: 1;
}

.counter-number {
    display: block;
    font-size: 2.5em; /* Schöne große Zahl */
    font-weight: 700;
    color: var(--primary-color); /* Deine Hauptfarbe (Blau) */
}

.counter-label {
    display: block;
    font-size: 1.1em;
    color: #555; /* Etwas dunklerer Text */
    margin-top: 5px;
}