/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* --- GRUNDDESIGN --- */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #cffafe 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0f172a;
    padding: 20px;
    box-sizing: border-box;
}

h1, h2 {
    color: #1e293b;
    margin-bottom: 5px;
}

.subtitle {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 14px;
}

/* --- HAUPT-CONTAINER (Glassmorphism) --- */
.glass-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    /* Schiebt den Container leicht nach rechts, um Platz für die Sidebar zu machen */
    margin-left: 180px; 
}

/* --- NAVIGATION & LEXIKON (Schwebendes Menü) --- */
.top-nav {
    position: fixed;          
    top: 40px;                
    left: 40px;               
    display: flex;
    flex-direction: column;   
    gap: 15px;
    z-index: 9999;            
}

.nav-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px);           
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: left;                      
    border: 1px solid rgba(255,255,255,0.6);
}

.nav-btn:hover {
    background: #ffffff;
    transform: translateX(5px); 
}

.nav-btn.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    border-color: #2563eb;
}

/* --- BILDSCHIRM-WECHSEL --- */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FORMULARE & EINGABEFELDER --- */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}

input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.person-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.person-row label span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: normal;
}

.person-input {
    width: 80px !important;
    text-align: center;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: normal;
    cursor: pointer;
}

.budget-group {
    display: flex;
    gap: 15px;
}

/* --- BUTTONS --- */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

/* --- LADE-BILDSCHIRM --- */
#loading-screen {
    text-align: center;
    padding: 40px 0;
}

.plane-animation {
    font-size: 60px;
    margin-top: 20px;
    animation: fly 2s infinite ease-in-out alternate;
}

@keyframes fly {
    from { transform: translateY(0) rotate(5deg); }
    to { transform: translateY(-20px) rotate(-5deg); }
}

/* --- ERGEBNISSE & ROUTE --- */
.global-warning {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    color: #7f1d1d;
}

.result-card {
    background: white;
    border-left: 5px solid;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-header h3 {
    margin: 0;
    font-size: 22px;
}

.card-icon {
    font-size: 24px;
}

.arrival-info {
    padding: 12px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
    border: 1px solid;
}

.itinerary-timeline {
    margin: 25px 0;
    border-left: 3px solid #e2e8f0;
    padding-left: 20px;
}

.itinerary-stop {
    position: relative;
    margin-bottom: 25px;
}

.itinerary-stop::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid white;
}

.location-link {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 2px solid #93c5fd;
    transition: color 0.2s;
}

.location-link:hover {
    color: #2563eb;
}

.weather-row {
    display: flex;
    gap: 15px;
    margin: 8px 0;
    font-size: 14px;
    color: #64748b;
}

.detail-row {
    margin: 5px 0;
    font-size: 15px;
    color: #334155;
    line-height: 1.5;
}

.detail-icon {
    margin-right: 8px;
}

.cost-breakdown {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #475569;
}

.cost-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #cbd5e1;
    font-weight: 600;
    font-size: 18px;
}

/* --- LEXIKON (Suche & Raster) --- */
.search-bar {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    margin-bottom: 25px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.search-bar:focus {
    outline: none;
    border-color: #2563eb;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.country-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
    border: 2px solid transparent;
    text-align: left;
}

.country-card:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
}

.country-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.country-card p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- LEXIKON MODAL (Pop-up Fenster) --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Muss über der Navigation liegen! */
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    border: none;
    background: none;
    color: #94a3b8;
    transition: color 0.2s;
}

.close-btn:hover { color: #0f172a; }

.modal-section { margin-bottom: 20px; }
.modal-section h4 { 
    margin: 0 0 8px 0; 
    color: #2563eb; 
    font-size: 16px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}
.modal-section p, .modal-section ul { margin: 0; color: #334155; line-height: 1.6; }
.modal-section ul { padding-left: 20px; }


/* --- MOBILE ANPASSUNG (Für Smartphones & kleine Tablets) --- */
@media (max-width: 1050px) {
    /* Container wieder mittig zentrieren auf kleinen Bildschirmen */
    .glass-container {
        margin-left: 0;
        margin-bottom: 80px; /* Platz für die untere Navigation lassen */
        padding: 30px 20px;
    }

    /* Schwebende Navigation nach unten anschnallen */
    .top-nav {
        top: auto;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row; 
        width: 90%;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-btn {
        padding: 12px 10px;
        font-size: 14px;
        flex: 1;
        text-align: center;
    }

    .nav-btn:hover {
        transform: translateY(-3px); 
    }
}
/* --- NEU: Experten-Link ins Lexikon im Ergebnis --- */
.lexicon-details-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #eff6ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.lexicon-text-col p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.lexicon-text-col strong {
    color: #0f172a;
    font-weight: 600;
}

.lexicon-details-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #e0f2fe;
    color: #0284c7;
    border: 2px solid #0284c7;
    white-space: nowrap; /* Kein Zeilenumbruch im Button */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lexicon-details-btn:hover {
    background: #0284c7;
    color: white;
    transform: none; /* Kein Wackeln */
    opacity: 1;
}

@media (max-width: 600px) {
    .lexicon-details-box {
        flex-direction: column;
        text-align: center;
    }
}
/* --- NEU: Fehlermeldungen für Dropdowns --- */
.error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ef4444;
    animation: fadeIn 0.3s ease;
}
/* --- NEU: Dynamisches Reisebild im Resultat --- */
.result-image-container {
    width: 100%;
    height: 250px; /* Höhe des Titelbildes */
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* Nur oben abgerundet */
    margin: -25px -25px 25px -25px; /* Zieht das Bild nahtlos an die Ränder der Karte */
    width: calc(100% + 50px);
}

.result-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* Weicher Zoom-Effekt */
}

.result-card:hover .result-image-container img {
    transform: scale(1.05); /* Zoomt leicht rein, wenn die Maus auf der Karte ist */
}
/* --- NEU: Lokale DACH Affiliate-Buttons (Awin) --- */
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.aff-btn {
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aff-btn:hover {
    transform: translateY(-2px);
}

/* HolidayCheck (Blau) */
.btn-hc { 
    background-color: #005ea8; 
    color: white !important; 
    box-shadow: 0 4px 10px rgba(0, 94, 168, 0.2); 
}

/* Fluege.de (Gelb mit dunkler Schrift) */
.btn-fluege { 
    background-color: #ffb700; 
    color: #102054 !important; 
    box-shadow: 0 4px 10px rgba(255, 183, 0, 0.3); 
}

/* Sixt (Orange) */
.btn-sixt { 
    background-color: #ff5f00; 
    color: white !important; 
    box-shadow: 0 4px 10px rgba(255, 95, 0, 0.2); 
}

/* GetYourGuide (Rot) */
.btn-gyg { 
    background-color: #ff5533; 
    color: white !important; 
    box-shadow: 0 4px 10px rgba(255, 85, 51, 0.2); 
}