/* ==========================================
   1. GRUNDLAYOUT & HINTERGRUND
   ========================================== */
body {
    margin: 0;
    padding: 40px 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #a0e0ff, #1a4a75);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
}

.page-container {
    width: 100%;
    max-width: 800px;
    min-width: 480px;
    box-sizing: border-box;
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 5;
    margin-bottom: 60px;
}

/* ==========================================
   2. TOP-BAR & SPRACH-BUTTONS
   ========================================== */
.top-bar {
    width: 100%;
    max-width: 800px;
    min-width: 480px;
    box-sizing: border-box;
    padding: 0 25px 10px 25px;
    display: flex;
    justify-content: space-between; /* Text links, Sprachen rechts */
    align-items: center;
}

.top-bar-text {
    color: #2b3138;
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.4);
}

.language-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    color: #2b3138;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-btn:hover, .lang-btn.active {
    background-color: #2b3138;
    color: #a0e0ff;
}

/* ==========================================
   3. HEADER & FLUGZEUG ANIMATION
   ========================================== */
header {
    height: 120px;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-sizing: border-box;
}

.header-title-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.header-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    margin: 0;
    white-space: nowrap;
}

.biplane-animated {
    width: 90px;
    height: 60px;
    position: absolute;
    z-index: 2;
    bottom: 0;
    transform: scaleX(-1); 
    animation: flyInAndLand 8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.propeller-blade {
    transform-origin: 22px 35px;
    animation: spinAndStop 8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes flyInAndLand {
    0% { left: -100px; bottom: 30px; }
    50% { left: 50%; transform: scaleX(-1) translateX(50%); bottom: 30px; }
    100% { left: calc(100% - 145px); transform: scaleX(-1) translateX(0); bottom: -4px; }
}

@keyframes spinAndStop {
    0% { transform: rotate(0deg); }
    70% { transform: rotate(2880deg); }
    100% { transform: rotate(3240deg); }
}

/* Hamburger Dropdown */
.hamburger-container { position: relative; margin-left: auto; z-index: 10; }
.hamburger-menu { width: 30px; height: 22px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; padding: 5px; margin-right: -5px; }
.hamburger-line { height: 4px; width: 100%; background-color: #ffffff; border-radius: 2px; }
.hamburger-dropdown { display: none; position: absolute; right: 0; top: 32px; background-color: #2a5298; border: 1px solid #ffffff; border-radius: 8px; padding: 8px 0; min-width: 150px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.hamburger-dropdown a { display: block; color: #ffffff; padding: 10px 20px; text-decoration: none; font-size: 14px; }
.hamburger-dropdown a:hover { background-color: #1e3c72; color: #87ceeb; }
.hamburger-container:hover .hamburger-dropdown { display: block; }

/* ==========================================
   4. INHALT & SPALTEN (WIDGET-SYSTEM)
   ========================================== */
main {
    padding: 40px 25px;
    box-sizing: border-box;
}

h1 { color: #1e3c72; margin-top: 0; font-size: 28px; }
p { color: #333333; line-height: 1.6; }

/* Das flexible Widget-Grid (Wechselt von 1 auf 2 Spalten) */
.widget-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

/* Einzelnes Text-/Bild-Widget (ca. 400px max bei 2 Spalten) */
.content-widget {
    flex: 1 1 360px; /* Wächst, schrumpft, Basisgröße 360px */
    box-sizing: border-box;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

/* Bild-Container innerhalb der Widgets */
.widget-image-container {
    margin: 15px 0;
    width: 100%;
}

.widget-image-container img {
    width: 100%;
    height: auto; /* Erlaubt unterschiedliche Bildhöhen ohne Verzerrung */
    display: block;
    border-radius: 6px;
}

.image-caption {
    text-align: center;
    color: #555555; /* Dunkelgrau */
    font-size: 13px; /* Schmale, kleinere Schrift */
    margin-top: 8px;
    font-style: italic;
}

/* ==========================================
   5. MENÜ UNTEN & FUSSZEILE
   ========================================== */
.slate-menu { background-color: #3d464f; border-radius: 12px; padding: 20px; margin-top: 40px; color: #ffffff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.menu-buttons { display: flex; gap: 12px; }
.menu-btn { background-color: #2b3138; color: #b0b8c0; border: none; padding: 10px 22px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 14px; transition: all 0.2s; }
.menu-btn:hover { background-color: #4a5560; color: #87ceeb; }
.menu-divider { height: 1px; background-color: #515d69; margin: 20px 0; }
.menu-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.menu-column-list { list-style: none; padding: 0; margin: 0; }
.menu-column-list li { margin-bottom: 10px; }
.menu-column-list a { color: #d1d5db; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.menu-column-list a:hover { color: #87ceeb; }

footer { background-color: #222222; color: #aaaaaa; padding: 18px 25px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; box-sizing: border-box; }
footer a { color: #ffffff; text-decoration: none; }
footer a:hover { color: #87ceeb; }
.footer-center { text-align: center; }

/* Hügelketten im Hintergrund */
.meadow-back { position: absolute; bottom: 0; left: -10%; width: 120%; height: 160px; background: linear-gradient(to bottom, #3b8d40, #2e6f32); border-top-left-radius: 60% 45px; border-top-right-radius: 40% 35px; z-index: 1; pointer-events: none; opacity: 0.8; }
.meadow-front { position: absolute; bottom: 0; left: -5%; width: 110%; height: 130px; background: linear-gradient(to bottom, #a2e048, #4caf50); border-top-left-radius: 45% 35px; border-top-right-radius: 55% 45px; z-index: 2; pointer-events: none; box-shadow: inset 0 10px 20px rgba(255,255,255,0.2); }

/* ==========================================
   6. LOGIN & GUTSCHEIN WIDGET
   ========================================== */
.login-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
    border: 1px solid #515d69;
    border-radius: 6px;
    background-color: #2b3138;
    color: #ffffff;
    font-size: 14px;
}

.login-input::placeholder {
    color: #888888;
}

/* Interne Sprachumstellung nur für das Widget */
.widget-lang-switch {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 10px;
    font-size: 12px;
}

.widget-lang-link {
    color: #b0b8c0;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.widget-lang-link.active, .widget-lang-link:hover {
    color: #87ceeb;
}

/* Hinweis-Text unter dem Feld */
.widget-hint-text {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.4;
    margin-top: 12px;
    font-style: italic;
}

/* Hilfsklassen zum Ein-/Ausblenden via JavaScript */
.hidden {
    display: none !important;
}

/* 6. Ende Gutscheinanmeldung */

/* ==========================================
   8. ERWEITERTES GUTSCHEIN- & MARKETING-WIDGET
   ========================================== */
.widget-flex-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.widget-select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #515d69;
    border-radius: 6px;
    background-color: #2b3138;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.widget-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    text-align: left;
}

.widget-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.widget-cb {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.widget-cb-label {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.4;
    cursor: pointer;
}

.widget-cb-label a {
    color: #87ceeb;
    text-decoration: none;
}

.widget-cb-label a:hover {
    text-decoration: underline;
}

/* Status-Meldungen für den Gutschein-Check */
.widget-status {
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
}
.status-success { background-color: #1b4d22; color: #a2e048; border: 1px solid #a2e048; }
.status-error { background-color: #611a1a; color: #ff8888; border: 1px solid #ff8888; }
/* Ende 8. Newsletter Erweiterung */

/* ==========================================
   CSS-SCHABLONE FÜR DAS HEADER-FLUGZEUG
   ========================================== */

/* Aktiviert die Animation und skaliert das Flugzeug passend */
.biplane-animated {
    width: 90px;
    height: 60px;
    position: absolute;
    z-index: 2;
    bottom: 0;
    transform: scaleX(-1); 
    animation: flyInAndLand 8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Lässt das kleine Propellerblatt im Vektor rotieren */
.propeller-blade-rotate {
    transform-origin: 22px 35px;
    animation: spinAndStop 8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
/* Ende CSS-SCHABLONE FÜR DAS HEADER-FLUGZEUG */

/* ==========================================
   ISOLIERTE SCHABLONE FÜR HISTORISCHE DATEN
   ========================================== */

/* Spricht das table-Element mit der Klasse airdata an */
table.airdata {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 15px;
    table-layout: fixed; /* Starr berechnete Spaltenbreiten */
    border-radius: 6px;
    overflow: hidden;
}

/* Formatierung aller Zellen innerhalb dieser spezifischen Tabelle */
table.airdata td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #515d69 !important; /* Haardünner Trennstrich im Schiefergrau */
    text-decoration: none !important; /* Tilgt alle Unterstreichungen */
}

/* Die reinweißen Wechsel-Zeilen */
table.airdata tr:nth-child(odd) td {
    background-color: #ffffff !important;
    color: #2b3138 !important; /* Dunkle, gut lesbare Schrift */
}

/* Die hellgrau-blauen Wechsel-Zeilen für den optimalen Kontrast */
table.airdata tr:nth-child(even) td {
    background-color: #ebf0f5 !important; 
    color: #2b3138 !important;
}

/* Die rechte Spalte fluchtet fett und elegant im Header-Blau */
table.airdata td:last-child {
    text-align: right;
    font-weight: bold !important;
    color: #1e3c72 !important;
}

/* Ende Air Data - Formatierung aller Zellen innerhalb dieser spezifischen Tabelle */

/* ==========================================
   EXKLUSIVES PREMIUM-MENÜ (Für den Login-Bereich)
   ========================================== */
.premium-menu-box {
    background-color: #2b3138; /* Etwas dunkleres, edles Anthrazit */
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 2px solid #87ceeb; /* Das helle Blau aus dem Header als exklusiver Rahmen */
    box-sizing: border-box;
    width: 100%;
}

/* Die Premium-Buttons (Behalten deine bewährten Maße) */
.premium-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* Zukunftssicher für Handys */
}

.premium-btn {
    background-color: #1e3c72; /* Nutzt das markante Dunkelblau aus dem Header */
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
    flex: 1 1 auto;
    text-align: center;
}

.premium-btn:hover {
    background-color: #2a5298;
    color: #87ceeb;
}
/* Ende EXKLUSIVES PREMIUM-MENÜ (Für den Login-Bereich)  */

/* DAS NEUE ARCHIV-MENÜ (Für den Login-Bereich) */
.archiv-menu-box {
    background-color: #3d464f; /* Dein schiefergrauer Grundton */
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #515d69; /* Sauberer Rahmen */
    box-sizing: border-box;
    width: 100%;
}

/* Die schmale, hellgraue Schriftzeile oberhalb der Buttons */
.archiv-status-text {
    color: #cbd5e1; /* Hellgrau */
    font-size: 13px; /* Schmale, kleinere Schrift */
    margin: 0 0 15px 0;
    font-style: italic;
    letter-spacing: 0.5px;
    border-left: 3px solid #87ceeb; /* Feiner hellblauer Akzentstrich links */
    padding-left: 8px;
}

/* Button-Leiste im Archiv-Menü */
.archiv-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.archiv-btn {
    background-color: #2b3138; /* Dunklerer Knopfton */
    color: #b0b8c0;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
    flex: 1 1 auto;
    text-align: center;
}

.archiv-btn:hover {
    background-color: #4a5560;
    color: #87ceeb; /* Leuchtet beim Hover hellblau auf */
}
/* ENDE NEUES ARCHIV-MENÜ (Für den Login-Bereich) */


/* GOLDEN-VIP-MENU (Radikaler Kontrast zum Standard) */
.vip-menu-box {
    background: linear-gradient(135deg, #111111 0%, #1c1f26 100%); /* Tiefschwarzer Edel-Verlauf */
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid #d4af37; /* Echtes, edles Metallic-Gold als Rahmen */
    box-sizing: border-box;
    width: 100%;
}

/* Überschrift im VIP-Kasten */
.vip-menu-box strong {
    color: #d4af37 !important; /* Goldener Titel */
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}

/* Die VIP-Buttons im gold-glänzenden Look */
.vip-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.vip-btn {
    background: linear-gradient(to bottom, #d4af37 0%, #aa7c11 100%); /* Gold-Metallic Verlauf */
    color: #000000 !important; /* Schwarze, gestochen scharfe Schrift auf Gold */
    border: 1px solid #8a640f;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    transition: transform 0.1s, box-shadow 0.2s;
    flex: 1 1 auto;
    text-align: center;
}

.vip-btn:hover {
    transform: translateY(-2px); /* Knopf hebt sich edel an beim Hover */
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    background: linear-gradient(to bottom, #f3e5ab 0%, #d4af37 100%); /* Helles Aufglänzen */
}

/* Goldener Trennstrich */
.vip-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d4af37, transparent); /* Auslaufender Goldstrich */
    margin: 20px 0;
}

/* Die VIP-Textlinks */
.vip-column-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vip-column-list li {
    margin-bottom: 10px;
}
.vip-column-list a {
    color: #b0b8c0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.vip-column-list a:hover {
    color: #f3e5ab; /* Links leuchten beim Hover in hellem Champagner-Gold */
    text-shadow: 0 0 4px rgba(243, 229, 171, 0.4);
}

/* Ende GOLDEN-VIP-MENU (Radikaler Kontrast zum Standard) */

