/* --- Globale Stile & Variablen --- */
:root {
    --primary-color: #00a3e0;
    --secondary-color: #ffc107;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #555;
    --white: #fff;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background-color: var(--white);
    padding: 10px 0;
    border-top: 5px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; gap: 15px; }
.logo img { height: 40px; display: block; }
.brand-name { font-size: 20px; font-weight: 600; color: var(--dark-gray); white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 25px; }
.main-nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
.main-nav li { margin-left: 25px; }
.main-nav a { text-decoration: none; color: var(--dark-gray); font-weight: 500; transition: color 0.3s; }
.main-nav a:hover { color: var(--primary-color); }
.language-selector { display: flex; }
.language-selector .lang-flag { height: 20px; margin-left: 10px; cursor: pointer; display: block; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark-gray); }

/* --- Hero Section --- */
.hero {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-text {
    flex: 1.5;
    padding-left: 40px;
}
.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-text p {
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* KORREKTUR: CSS Regel, um den `gap` zu entfernen */
.hero-content.wide-form-active {
    gap: 0;
}

/* --- Inhalts-Sektionen (Destinations, Features, Testimonials) --- */
.bezahlung{
    margin-top:10px;
    text-align: right;
}
.bezahlung img{
    max-width:300px;
}

.popular-destinations, .features, .testimonials { padding: 60px 0; }
.popular-destinations { background-color: var(--white); }
.destination-grid, .testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.destination-card { background-color: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; }
.destination-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.destination-card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.card-content h3 { margin-bottom: 10px; }
.card-content p { color: var(--dark-gray); font-size: 14px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 60px; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; }
.feature-icon { font-size: 32px; color: var(--primary-color); }
.feature-text h4 { margin-bottom: 10px; font-size: 20px; }
.feature-text p { color: var(--dark-gray); }
.testimonials { background-color: var(--white); }
.testimonials h2 { text-align: center; font-size: 32px; margin-bottom: 40px; }
.testimonial-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; }
.rating { color: #f39c12; margin-bottom: 15px; }
.testimonial-card .date { font-size: 14px; color: #999; margin-bottom: 5px; }
.testimonial-card h5 { font-size: 18px; margin-bottom: 15px; }
.testimonial-card p { color: var(--dark-gray); margin-bottom: 20px; }
.testimonial-card .author { font-weight: bold; color: var(--text-color); margin-bottom: 0; }

/* --- Sektion für Zahlungsarten --- */
.payment-section {
    background-color: #f8f9fa; /* Ein sehr helles Grau */
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.payment-section h4 {
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 20px;
}
.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Wichtig für mobile Ansicht */
    gap: 20px;
}
.payment-methods img {
    height: 35px;
}

/* --- Haupt-Footer --- */
.main-footer {
    background-color: #343a40; /* Dunkler Hintergrund */
    color: #adb5bd; /* Helle Schriftfarbe */
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}
.footer-links {
    margin-bottom: 15px;
}
.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--secondary-color);
}
.footer-separator {
    color: #6c757d;
    margin: 0 5px;
}
.footer-copyright {
    font-size: 13px;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .header-right { gap: 15px; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text { padding-left: 0; margin-top: 40px; }
    .booking-engine-wrapper { max-width: 500px !important; width: 100%; }
    .hero-content.wide-form-active .hero-text { display: none; }
    .features-grid, .destination-grid, .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-right .main-nav, .header-right .language-selector { display: none; }
    .header-right .nav-toggle { display: block; }
    .main-nav.active { display: block; position: absolute; top: 65px; left: 0; width: 100%; background-color: var(--white); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    .main-nav.active ul { flex-direction: column; padding: 10px 0; }
    .main-nav.active li { margin: 0; text-align: center; }
    .main-nav.active a { display: block; padding: 15px; border-bottom: 1px solid #f0f0f0; }
    .main-nav.active li:last-child a { border-bottom: none; }
    .hero-text h1 { font-size: 36px; }
    .hero-text p { font-size: 18px; }
}

@media (max-width: 480px) {
    .hero{padding:0;padding-bottom:50px;}
    .header-left{gap:0;}
}



/* --- Modal / Overlay Stile (KORRIGIERT) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;   /* Vertikales Scrollen bei Bedarf beibehalten */
    overflow-x: hidden; /* NEU: Horizontales Scrollen immer verhindern */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-close-btn {
    position: absolute;
    top: 15px;   /* KORRIGIERT: Position ist jetzt innerhalb des Fensters */
    right: 15px; /* KORRIGIERT: Position ist jetzt innerhalb des Fensters */
    width: 35px;
    height: 35px;
    background-color: #e74c3c;
    color: white;
    border: none; /* KORRIGIERT: Keine Border mehr nötig */
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    line-height: 35px; /* Angepasst an die Höhe */
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease-in-out, background-color 0.2s;
    z-index: 10; /* Stellt sicher, dass der Button über dem Text liegt */
}

.modal-close-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        /* Rechts mehr Platz für den Button lassen */
        padding-right: 45px;
    }
    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
    }
}

/* --- Stile für rechtliche Texte im Modal --- */
.modal-content h3 {
    font-size: 1.25rem; /* 20px */
    color: var(--text-color);
    margin-top: 2.5rem; /* Großer Abstand nach oben */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color); /* Eine feine Trennlinie */
}

.modal-content h2 + h3 {
    margin-top: 1.5rem; /* Weniger Abstand, wenn h3 direkt auf h2 folgt */
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.7; /* Bessere Lesbarkeit durch mehr Zeilenabstand */
}

/* Spezifisches Styling für Definitionslisten (Begriffe, Rechte etc.) */
.modal-content dl {
    margin-bottom: 1rem;
}

.modal-content dt {
    font-weight: bold;
    color: var(--dark-gray);
    margin-top: 1rem;
}

.modal-content dd {
    margin-left: 1.5rem; /* Rücken den Erklärungstext ein */
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}

.modal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.modal-content a:hover {
    text-decoration: none;
}

/* Styling für den Quellenvermerk am Ende */
.modal-content .source-note {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--dark-gray);
}
