/* =========================================
   1. SCHRIFTEN LOKAL LADEN (DSGVO-konform)
   ========================================= */

/* --- Montserrat (für Überschriften) --- */

/* Regular (400) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* SemiBold (600) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold (700) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Open Sans (für Fließtext) --- */

/* Regular (400) */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* SemiBold (600) */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   1. GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================= */
:root {
    --primary-color: #0a2342;    /* Deep Navy Blue (Luftfahrt Standard) */
    --accent-color: #e67e22;     /* Signal Orange (Buttons/Action) */
    --text-color: #333333;       /* Dunkelgrau für Text */
    --light-bg: #f4f6f8;         /* Helles Grau für Hintergründe */
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: 70px; /* Platzhalter für fixierte Navigation */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Hilfsklassen */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.section-padding { padding: 60px 0; }

/* =========================================
   2. NAVIGATION (Navbar)
   ========================================= */
.navbar {
    background-color: var(--primary-color);
    height: 70px;
    width: 100%;
    position: fixed; /* Bleibt beim Scrollen oben */
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ========================
   LOGO ANPASSUNGEN
   ======================== */

.logo {
    display: flex;          /* Flexbox: Macht Bild und Text nebeneinander */
    align-items: center;    /* Zentriert beide vertikal (Mitte-Mitte) */
    gap: 12px;              /* Abstand zwischen Bild und Text */
    
    /* Text-Design */
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;      /* Schriftgröße etwas angepasst */
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;  /* Unterstreichung entfernen */
}

/* Das Logo-Bild */
.logo-img {
    height: 55px;          /* WICHTIG: Damit das Menü nicht explodiert */
    width: auto;           /* Breite passt sich proportional an */
    display: block;
}

.logo .highlight {
    color: var(--accent-color);
}

/* Optional: Auf sehr kleinen Handys nur das Logo zeigen (falls Platz fehlt) */
@media screen and (max-width: 360px) {
    .logo-text {
        font-size: 1rem; /* Text kleiner auf Mini-Handys */
    }
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    border-bottom: 2px solid var(--accent-color);
}

/* Button im Menü (Webcam) */
.btn-nav {
    background-color: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-nav:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-bottom: none !important; /* Überschreibt den Standard-Hover */
}

/* Hamburger Menü (Mobile) - Standardmäßig ausgeblendet */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* =========================================
   3. HERO SECTION (Startbild)
   ========================================= */
.hero-section {
    height: 85vh; /* 85% der Bildschirmhöhe */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -70px; /* Zieht das Bild unter das transparente Menü wenn gewünscht */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1s ease-in;
}

.hero-content h1 {
    font-size: 3rem; /* Groß für Desktop */
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d35400; /* Dunkleres Orange */
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* =========================================
   4. WEBCAM & CONTENT
   ========================================= */
/* Ersetze den alten .webcam-card img Block hiermit: */

.webcam-card {
    /* ... die anderen Werte hier lassen (background, border-radius etc.) ... */
    background-color: #222; /* Dunkler Hintergrund sieht bei Cams besser aus */
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert den Inhalt horizontal */
}

.webcam-card img {
    width: auto;            /* Breite passt sich automatisch an */
    max-width: 100%;        /* Aber niemals breiter als der Container (Handy) */
    
    height: auto;           /* Höhe passt sich automatisch an */
    max-height: 70vh;       /* WICHTIG: Das Bild darf maximal 70% der Bildschirmhöhe einnehmen */
    
    object-fit: contain;    /* Garantiert, dass das ganze Bild sichtbar bleibt */
    display: block;
    margin: 0 auto;         /* Zentriert das Bild, falls es schmaler als die Box ist */
}
/* =========================================
   5. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--accent-color); margin-left: 5px; }

.status-indicator {
    display: inline-block;
    background: #27ae60; /* Grün */
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9em;
}

/* =========================================
   6. MOBILE RESPONSIVE (Handy-Ansicht)
   ========================================= */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Hamburger zeigen */
    }

    .nav-menu {
        display: none; /* Menü verstecken */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        display: flex; /* Menü zeigen wenn aktiv */
    }

    .nav-menu li {
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 2rem; /* Kleiner auf Handy */
    }

    .btn {
        width: 100%; /* Buttons volle Breite */
        margin: 5px 0;
    }
}

/* Animation für Einblenden */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================
   PILOTEN PAGE STYLES
   ======================== */

.page-title {
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

/* Warn-Box (PPR) */
.alert-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 5px solid #ffc107;
}

.alert-box h3 { margin-bottom: 10px; color: #856404; }
.alert-box a { color: #856404; text-decoration: underline; font-weight: bold; }

/* Grid Layout (2 Spalten) */
.pilot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei gleich große Spalten */
    gap: 50px;
}

/* Download Karten */
.download-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.download-card .icon {
    font-size: 2.5rem;
}

.download-card h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.download-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.info-badge {
    background: #eef2f5;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Daten Tabelle */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table tr {
    border-bottom: 1px solid #eee;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
}

.data-table th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    width: 40%;
}

/* Responsive: Auf Handy untereinander */
@media screen and (max-width: 768px) {
    .pilot-grid {
        grid-template-columns: 1fr; /* Nur eine Spalte */
        gap: 30px;
    }
}

/* ========================
   SPRITPREISE UPDATE
   ======================== */
.fuel-list {
    margin: 10px 0;
    font-size: 0.9rem; /* Etwas kleiner, damit alles passt */
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.fuel-type {
    color: var(--primary-color);
    font-weight: 700;
    margin: 10px 0 5px 0;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Der erste Titel soll keinen Abstand nach oben haben */
.fuel-type:first-child {
    margin-top: 0;
}

.fuel-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dotted #e0e0e0; /* Nur leichte Linie */
}

.fuel-row .label {
    color: #555;
    font-size: 0.85rem;
}

.fuel-divider {
    border: 0;
    border-top: 1px solid #ccc; /* Stärkere Linie zwischen den Sorten */
    margin: 10px 0;
}

/* ========================
   AEROPS RECHNER (Optimiert)
   ======================== */
.aerops-wrapper1 {
    margin: 60px auto 0 auto;  /* 60px Abstand oben, "auto" zentriert die Box */
    width: 30%;                /* Deine Wunschgröße (55% der Seite) */
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    text-align: center;        /* Zentriert Überschrift und Text */
}

.aerops-wrapper {
    margin: 60px auto 0 auto;  /* 60px Abstand oben, "auto" zentriert die Box */
    width: 85%;                /* Deine Wunschgröße (55% der Seite) */
    min-width: 600px;          /* Sicherheits-Breite, damit es nicht zu schmal wird */
    
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    text-align: center;        /* Zentriert Überschrift und Text */
}

.aerops-wrapper h3 {
    /* Den Balken links entfernen wir, stattdessen Unterstreichung */
    border-left: none;
    padding-left: 0;
    
    display: inline-block;     /* Nötig für die Unterstreichung */
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.aerops-iframe {
    width: 100%;
    height: 330px;
    border: none;
    display: block;
    /* Optional: Leichter Innen-Schatten für den Iframe */
    border-radius: 4px;
    background: #fafafa; 
}

/* WICHTIG: Auf Handys muss es wieder breit sein! */
@media screen and (max-width: 900px) {
    .aerops-wrapper {
        width: 95%;      /* Auf dem Handy fast volle Breite nutzen */
        min-width: auto; /* Mindestbreite aufheben */
        padding: 15px;
    }
    .aerops-wrapper1 {
        width: 85%;      /* Auf dem Handy fast volle Breite nutzen */
        min-width: auto; /* Mindestbreite aufheben */
        padding: 15px;
    }
}

/* ========================
   FLYINN PAGE STYLES
   ======================== */

/* Container für den Iframe */
.booking-widget-wrapper {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.booking-widget-wrapper h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Der Iframe selbst */
.booking-iframe {
    width: 100%;
    height: 800px;  /* Genug Höhe für die Zimmerliste */
    border: none;
    border-radius: 4px;
    background-color: #fafafa;
    display: block;
}

/* Features (Icons) */
.room-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.feature-box {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: 0.3s;
}

.feature-box:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.f-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Bildergalerie */
.flyinn-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.flyinn-gallery img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Handy-Optimierung */
@media screen and (max-width: 600px) {
    .booking-widget-wrapper {
        padding: 10px; /* Mehr Platz für den Iframe auf kleinen Screens */
    }
    .booking-iframe {
        height: 900px; /* Etwas höher auf Handys */
    }
    .flyinn-gallery {
        grid-template-columns: 1fr; /* Bilder untereinander */
    }
}

/* KALENDER STYLES */
.event-list { display: flex; flex-direction: column; gap: 20px; }
.event-card { background: #fff; border: 1px solid #eee; border-radius: 8px; display: flex; box-shadow: 0 3px 10px rgba(0,0,0,0.05); transition: transform 0.2s; overflow: hidden; }
.event-card:hover { transform: translateX(5px); border-color: var(--accent-color); }
.event-date { background-color: var(--primary-color); color: #fff; width: 90px; min-width: 90px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; }
.event-date .day { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.9rem; text-transform: uppercase; margin-top: 5px; font-weight: 600; color: var(--accent-color); }
.event-content { padding: 20px; }
.event-time { display: block; font-size: 0.85rem; color: #888; margin-bottom: 5px; font-weight: 600; }
.event-content h3 { margin: 0 0 10px 0; font-size: 1.2rem; color: #333; }
.event-content p { margin: 0; color: #666; font-size: 0.95rem; }
@media screen and (max-width: 500px) { .event-card { flex-direction: row; } .event-date { width: 70px; min-width: 70px; } }


/* ========================
   VEREINE PAGE STYLES
   ======================== */

.club-grid {
    display: grid;
    /* Automatisch 3 Spalten, wenn Platz ist. Sonst weniger. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.club-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Schiebt den Button nach unten */
    height: 100%;
}

.club-card:hover {
    transform: translateY(-5px); /* Karte schwebt leicht nach oben */
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.club-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: #f4f6f8;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.club-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.club-card p {
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1; /* Füllt den Platz aus, damit Buttons auf gleicher Höhe sind */
}

.club-card .btn -w-100{
    width: 100%; /* Button über die ganze Breite */
}

/* =========================================
   GALERIE STYLES (EDBJ)
   ========================================= */

/* Header Bereich der Galerie */
.gallery-header {
    text-align: center;
    padding: 50px 20px;
    background-color: #333;
    color: white;
    margin-bottom: 30px;
}

.gallery-container {
    max-width: 1300px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

/* Das Grid-System (Responsive) */
.gallery-grid {
    display: grid;
    /* Automatisch füllen: min. 280px breit */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 15px;
}

/* Die einzelne Bild-Kachel */
.gallery-item {
    position: relative;
    height: 220px; /* Einheitliche Höhe */
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #ddd; /* Ladefarbe */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wichtig: Schneidet Bild zu statt zu verzerren */
    transition: transform 0.4s ease;
}

/* Zoom Effekt beim Drüberfahren */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- LIGHTBOX (Großansicht Overlay) --- */
.lightbox {
    display: none; /* Standard: unsichtbar */
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex; /* Sichtbar schalten */
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #dc3545; /* Rot beim Hover */
}