/* GRUNDLAGEN */
:root {
    --primary: #000000;
    --secondary: #333333;
    --accent: #d4af37; 
    --light: #f9f9f9;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.6; color: var(--secondary); background: var(--white); }

/* Navigation - Schlank & Edel */
nav {
    padding: 0.6rem 5%; /* Schmalere Leiste */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.logo a {
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: baseline; /* Sorgt dafür, dass die 2 auf der richtigen Höhe ist */
    font-size: 1.2rem;     /* Logo-Schrift etwas kleiner */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Spezielle Regel für die tiefgestellte 2 im Logo */
.logo a sub {
    font-size: 0.7rem;
    margin-left: 1px;
    margin-right: 1px;
    vertical-align: baseline;
    position: relative;
    bottom: -0.2em;
}

.nav-links a { 
    margin-left: 20px; 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 500; 
    font-size: 0.9rem; 
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white); 
    padding: 160px 5% 140px; /* Leicht angepasstes Padding oben/unten */
    text-align: center; 
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 25px; 
    letter-spacing: -1px; 
    line-height: 1.1;
}

.hero p { 
    font-size: 1.2rem; 
    opacity: 0.9; 
    max-width: 700px; 
    margin: 0 auto 50px; 
}

.btn { 
    background: var(--white); 
    color: var(--primary); 
    padding: 16px 40px; /* Button minimal kompakter */
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 8px; 
    transition: 0.3s; 
    display: inline-block; 
}

.btn:hover { 
    background: var(--accent); 
    color: var(--white); 
    transform: scale(1.05); 
}
/* ALLGEMEINE ÜBERSCHRIFTEN-ZENTRIERUNG */
section { padding: 100px 5%; }
h2 { 
    text-align: center; 
    font-size: 2.2rem; 
    margin-bottom: 60px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    width: 100%; /* Stellt sicher, dass die Zentrierung über die volle Breite geht */
}

/* FAHRZEUG KARTEN */
.results-grid, .vehicle-grid { 
    display: grid; 
    /* auto-fill sorgt dafür, dass die Karten ihre Größe behalten, auch wenn sie alleine sind */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 35px; 
    padding: 40px 5%;
    max-width: 1400px; /* Verhindert, dass das Grid auf riesigen Monitoren zu breit wird */
    margin: 0 auto;    /* Zentriert das gesamte Grid auf der Seite */
}

/* Falls die Karte bei einem einzelnen Treffer immer noch zu breit wirkt, 
   können wir ihr eine maximale Breite geben: */
.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    max-width: 450px; /* Damit eine einzelne Karte nicht "explodiert" */
    width: 100%;
    cursor: pointer;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.vehicle-img { width: 100%; height: 250px; object-fit: cover; display: block; }
.vehicle-info { padding: 25px; }
.vehicle-info h3 { margin-bottom: 10px; font-size: 1.4rem; }

/* MIETKAUF RECHNER - KOMPAKT & EDEL */
#rechner { padding: 60px 5%; background: #f0f2f5; }

.calculator-card { 
    background: var(--white); 
    padding: 2rem;           /* Kompakterer Innenabstand */
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    width: 100%; 
    max-width: 550px;        /* Schmaler für einen edleren Look */
    margin: 0 auto; 
}

.input-group { margin-bottom: 1.2rem; }

.input-group label { 
    display: block;
    font-weight: 700; 
    margin-bottom: 8px; 
    font-size: 0.75rem; 
    color: #666; 
    text-transform: uppercase;
}

input[type="number"] { 
    width: 100%; 
    padding: 12px 15px; 
    border: 2px solid #f4f4f4; 
    border-radius: 10px; 
    font-size: 1.2rem; 
    font-weight: 700; 
    outline: none;
    transition: border-color 0.3s;
}
input[type="number"]:focus { border-color: var(--accent); }

input[type="range"] { 
    width: 100%; 
    margin-top: 10px; 
    accent-color: var(--primary); 
    cursor: pointer; 
}

.slider-val { color: var(--accent); font-weight: 800; }

.result-container { 
    background: var(--primary); 
    color: white; 
    padding: 1.5rem; 
    border-radius: 15px; 
    margin: 1.5rem 0; 
    text-align: center; 
}

.result-label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; margin-bottom: 5px; }

.monthly-rate { 
    font-size: 2.8rem;       /* Rate ist jetzt dezenter */
    font-weight: 900; 
    line-height: 1; 
}

.summary-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    border-top: 1px solid #eee; 
    padding-top: 1.5rem; 
}

.summary-item { font-size: 0.8rem; color: #777; }
.summary-item b { display: block; color: var(--primary); font-size: 1.1rem; margin-top: 4px; }

/* FILTER LEISTE (fahrzeuge.html) */
.filter-section {
    padding: 140px 5% 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid #eee;
}

/* Die Suchleiste - Groß und Modern */
.search-container {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.1rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #f9f9f9;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Die Dropdown-Gruppe */
.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.filter-select {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    min-width: 180px;
    outline: none;
    transition: border-color 0.3s;
}

.filter-select:hover {
    border-color: var(--accent);
}
/* FAQ SEKTION */
#faq { background: #ffffff; }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover { color: var(--accent); }

/* Das Plus/Minus Zeichen */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
}

.faq-item.active .faq-question::after { content: '−'; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-out;
    background: #f9f9f9;
    border-radius: 8px;
}

.faq-answer p {
    padding: 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Groß genug für den Text */
    margin-bottom: 20px;
}
/* FOOTER */
footer { background: var(--primary); color: var(--white); text-align: center; padding: 80px 5%; }
.footer-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 25px; display: block; letter-spacing: 2px; }

/* ============================================================
   MOBILE OPTIMIERUNG (RESPONSIVE DESIGN)
   ============================================================ */

@media (max-width: 768px) {
    /* 1. NAVIGATION: Übereinander statt nebeneinander */
    nav {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        text-align: center;
    }

    .logo a {
        justify-content: center;
    }

    .logo a span {
        font-size: 1.2rem !important; /* Etwas kleiner für schmale Handy-Displays */
    }

    .nav-links {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
        margin-left: 0 !important; /* Desktop-Abstand entfernen */
        margin: 5px 10px; /* Saubere Abstände zwischen den Links */
    }

    /* 2. HERO SEKTION: Kompakter & Performance-Fix */
    .hero {
        padding: 100px 5%; 
        background-attachment: scroll; /* Verhindert Ruckeln auf Mobilgeräten */
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 20px;
        margin-bottom: 35px;
    }

    /* 3. FAHRZEUG-GRID & FILTER (fahrzeuge.html) */
    .vehicle-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }

    .filter-section {
        padding: 120px 5% 30px;
    }

    .filter-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .filter-select {
        width: 100%; /* Volle Breite für Dropdowns */
        min-width: unset;
    }

    /* 4. MIETKAUF RECHNER: Optimierte Proportionen */
    .calculator-card {
        width: 95%;
        padding: 1.5rem;
        margin: 0 auto;
    }

    .monthly-rate {
        font-size: 2.2rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 5. PROZESS-SCHRITTE & ALLGEMEINES */
    #prozess > div {
        grid-template-columns: 1fr !important;
    }

    #faq, #prozess, #fahrzeuge {
        padding: 40px 15px !important;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* FAQ Anpassung */
    .faq-question {
        font-size: 1rem;
    }
}