/* --- 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.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.hero-content {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 65px);
    padding:80px 0;
}
.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);
}




/* --- Styling für mobile Sprachauswahl --- */

/* Verstecke die Flaggen standardmäßig im Desktop-Menü (wenn es horizontal ist) */
.main-nav ul li.language-selector-mobile {
    display: none;
}

/* Zeige die Flaggen, wenn das mobile Menü aktiv ist (vertikal) */
.main-nav.active ul li.language-selector-mobile {
    display: flex; /* oder 'block' */
    justify-content: center; /* Zentriert die Flaggen */
    align-items: center;
    gap: 15px; /* Abstand zwischen den Flaggen */
    padding: 15px 0; /* Abstand nach oben/unten */
}

/* --- Anpassung für Desktop --- */
/* Wir brauchen einen separaten Flaggen-Container NUR für Desktop */
/* Dieser wird auf Mobilgeräten ausgeblendet */
.language-selector-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
}
.language-selector-desktop .lang-flag {
    height: 20px;
}

/* Sorge dafür, dass der Desktop-Container auf Mobilgeräten versteckt wird */
@media (max-width: 768px) {
    .language-selector-desktop {
        display: none;
    }
}






/* ================================================= */
/* === STILE FÜR DEN NEUEN BEWERTUNGS-SLIDER === */
/* ================================================= */

/* --- Header-Box für die Zusammenfassung --- */
.testimonial-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap; /* Für mobile Ansicht */
    gap: 20px;
}
.summary-left { display: flex; align-items: center; gap: 15px; }
.google-logo { width: 40px; height: 40px; }
.summary-title { font-weight: bold; margin: 0; font-size: 18px; }
.summary-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #5f6368; }
.btn-google-reviews {
    background-color: #4285F4;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn-google-reviews:hover { background-color: #3367D6; }

/* --- Stern-Bewertungen (wiederverwendbar) --- */
.stars-outer {
    position: relative;
    display: inline-block;
}
.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}
.stars-outer::before, .stars-inner::before {
    content: "\f005 \f005 \f005 \f005 \f005"; /* Font Awesome Stern-Icons */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.stars-outer::before { color: #ddd; }
.stars-inner::before { color: #f8ce0b; }

/* --- Slider-Mechanik --- */
.testimonial-slider-container {
    overflow: hidden;
    width: 100%;
}
.testimonial-slider-wrapper {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

/* --- Die eigentliche Bewertungs-Karte --- */
.testimonial-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 Karten pro Ansicht, mit Abstand */
    margin: 0 10px;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    box-sizing: border-box;
}
.card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.reviewer-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
/* Farben für Initialen, fügen Sie bei Bedarf mehr hinzu */
.reviewer-initial.p { background-color: #e67e22; }
.reviewer-initial.a { background-color: #2ecc71; }
.reviewer-initial.m { background-color: #9b59b6; }
.reviewer-initial.k { background-color: #e74c3c; }
.reviewer-initial.o { background-color: #1abc9c; }
.reviewer-initial.j { background-color: #3498db; }

.reviewer-info { flex-grow: 1; }
.reviewer-name { font-weight: bold; margin: 0; }
.review-date { font-size: 13px; color: #5f6368; margin: 0; }
.card-google-logo { width: 20px; height: 20px; }
.card-rating { margin-bottom: 15px; }
.review-text { color: #3c4043; font-size: 15px; line-height: 1.6; }

/* --- Responsive Anpassungen --- */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 20px); /* 2 Karten auf Tablets */
    }
}
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 20px); /* 1 Karte auf Handys */
    }
    .testimonial-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* ========================================= */
/* === STILE FÜR DIE FACEBOOK-BLASE === */
/* ========================================= */

.facebook-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #1877F2;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facebook-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ================================================== */
/* === NEU: ANPASSUNG FÜR MOBILE GERÄTE === */
/* ================================================== */
@media (max-width: 768px) {
    .facebook-bubble {
        /* Kleinere Größe für die Blase */
        width: 40px;
        height: 40px;

        /* Kleinere Schriftgröße für das Icon */
        font-size: 24px;

        /* Etwas weniger Abstand zum Rand */
        bottom: 10px;
        right: 10px;
    }
}
