/* ==========================================================================
   MISSION PAGE STYLES - GOTHIC ROYAL HOUSE / ASGARD-ARCHAEA
   ========================================================================== */

/* Haupt-Container der Mission-Sektion */
.mission-card {
    background: #ffffff;
    border: 1px solid #dcd6cd;
    border-radius: 6px;
    padding: 45px 50px;
	margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.mission-title-group {
    text-align: center;
    margin-bottom: 35px;
}

.mission-title-group h2 {
    font-family: 'Cinzel', 'Georgia', serif;
    color: #1a1a1a;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.mission-subtitle {
    font-family: 'Cinzel', 'Georgia', serif;
    color: #8c734b;
    font-size: 1.1em;
    font-style: italic;
    margin: 0;
}

.gold-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c5a059, transparent);
    width: 120px;
    margin: 25px auto 35px auto;
}

/* Fließtext-Gestaltung */
.mission-text-body p {
    font-size: 1.05em;
    line-height: 1.85;
    color: #2c2c2c;
    text-align: justify;
    margin-bottom: 22px;
    hyphens: auto;
}

.mission-text-body strong {
    color: #111111;
}

/* Edler Hervorhebungsblock für die Schlussfolgerung */
.mission-conclusion-box {
    background: #fcfbf9;
    border-left: 4px solid #c5a059;
    border-top: 1px solid #f0eae1;
    border-right: 1px solid #f0eae1;
    border-bottom: 1px solid #f0eae1;
    border-radius: 0 6px 6px 0;
    padding: 30px;
    margin-top: 40px;
	margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.06);
}

.mission-conclusion-box h3 {
    font-family: 'Cinzel', 'Georgia', serif;
    color: #8c734b;
    margin: 0 0 12px 0;
    font-size: 1.3em;
    letter-spacing: 0.5px;
}

.mission-conclusion-box p {
    font-style: italic;
    color: #333333;
    margin-bottom: 0;
    line-height: 1.8;
}

/* ==========================================================================
   BUCH-SHOWCASE (BILDER)
   ========================================================================== */
.book-showcase-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    justify-content: center;
}

.book-card {
    flex: 1;
    min-width: 320px;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.book-card-img-wrapper {
    overflow: hidden;
    border-radius: 4px;
    background: #f7f7f7;
}

/* HIER SIND DIE FEHLENDEN REGELN FÜR POINTER & INTERAKTION: */
.book-card-img-wrapper img,
.mission-lightbox-trigger {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer !important;       /* FEHLTE: Zeigt das Händchen an */
    pointer-events: auto !important;  /* FEHLTE: Klicks an JavaScript freischalten */
    transition: transform 0.4s ease, filter 0.3s ease;
}

.book-card-img-wrapper:hover img,
.mission-lightbox-trigger:hover {
    transform: scale(1.03);
    filter: brightness(1.06);         /* FEHLTE: Leichtes Aufhellen als Klick-Anreiz */
}

.book-card-caption {
    padding-top: 18px;
    text-align: center;
}

.book-card-caption h4 {
    font-family: 'Cinzel', 'Georgia', serif;
    color: #1a1a1a;
    font-size: 1.1em;
    margin: 0 0 8px 0;
}

.book-card-caption p {
    font-size: 0.92em;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   VIDEO PLAYER BEREICH
   ========================================================================== */
.video-section-card {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 35px 30px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Hohe Spezifität für die Überschrift, analog zur Asgard-Lösung */
html body #content .video-section-card h3,
.video-section-card h3 {
    font-family: 'Cinzel', 'Georgia', serif;
    color: #c5a059 !important;
    -webkit-text-fill-color: #c5a059 !important; /* Verhindert das Abblättern der Farbe auf iOS/Safari */
    font-size: 1.4em;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Hohe Spezifität für den Beschreibungstext */
html body #content .video-section-card .video-desc,
.video-section-card .video-desc {
    color: #aaaaaa !important;
    -webkit-text-fill-color: #aaaaaa !important; /* Erzwingt helles Grau auf Smartphones */
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Plyr Wrapper & Custom Gold Theme */
.player-wrapper {
    background: #050505;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

:root {
    --plyr-color-main: #c5a059; /* Passend zu Ihrem Cinzel/Gold-Farbton */
    --plyr-video-background: #050505;
    --plyr-control-radius: 4px;
}

.plyr__control--overlaid {
    background: rgba(197, 160, 89, 0.85) !important;
    color: #000000 !important;
}

.plyr__control--overlaid:hover {
    background: #d4ae63 !important;
}

/* Aktionleiste & Facebook Share Button */
.video-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Container für das Video & Poster */
.plyr,
.video-wrapper {
    width: 100%;
    max-width: 960px; /* Oder deine gewünschte maximale Breite */
    aspect-ratio: 16 / 9; /* Erzwingt das feste 16:9 Format */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000000;
}

/* Erzwingt, dass das Poster-Bild die Dimensionen exakt ausfüllt */
.plyr__poster,
.plyr video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* 'cover' füllt den Rahmen ohne Verzerrung, 'contain' zeigt das ganze Bild mit schwarzen Rändern */
    object-position: center;
}

.share-btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #c5a059;
    color: #050505 !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.share-btn-facebook:hover {
    background-color: #DBCDA2;
    transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN VIDEO-RECORDER STUDIO STYLING
   ========================================================================== */
.admin-recorder-panel {
    background: #111111;
    border: 1px solid rgba(217, 175, 98, 0.4);
    border-radius: 8px;
    padding: 25px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.admin-recorder-panel h4 {
    font-family: 'Cinzel', 'Georgia', serif;
    color: #D9AF62;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admin-recorder-desc {
    color: #A67437;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.admin-camera-container {
    max-width: 1060px;
    margin: 0 auto 20px auto;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.recorder-preview-video {
    width: 100%;
    display: block;
    max-height: 718px;
    object-fit: cover;
}

/* Das gesamte Admin-Studio im Vollbild anzeigen */
.admin-recorder-panel:fullscreen {
    background: #121216;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Das Live-Video im Vollbild-Modus optimal skalieren */
.admin-recorder-panel:fullscreen #adminCameraPreview {
    max-height: 80vh;
    object-fit: contain;
    width: 100%;
}

.admin-controls-flex {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.admin-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.admin-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    opacity: 0.9;
}

.admin-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.admin-btn-start {
    background-color: #BB853B;
    color: #111;
}

.admin-btn-pause {
    background-color: #ffc107;
    color: #111;
}

.admin-btn-stop {
    background-color: #dc3545;
    color: #fff;
}

.admin-save-section {
    background: #181818;
    border: 1px dashed rgba(217, 175, 98, 0.5);
    padding: 20px;
    border-radius: 6px;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.admin-label {
    color: #D9AF62;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.admin-input-group {
    display: flex;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.admin-text-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px 0;
    flex-grow: 1;
    outline: none;
}

.admin-file-ext {
    color: #888;
    font-size: 0.9rem;
    font-family: monospace;
}

.admin-save-actions {
    display: flex;
    gap: 10px;
}

.admin-btn-save {
    background-color: #D9AF62;
    color: #111;
    flex-grow: 1;
}

.admin-btn-discard {
    background-color: #555;
    color: #fff;
}

.admin-upload-status {
    margin-top: 15px;
    color: #D9AF62;
    font-weight: bold;
    font-size: 0.95em;
}

.admin-btn-logout {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    transition: background 0.2s;
}

.admin-btn-logout:hover {
    background-color: #c82333;
}

.uploadProgressContainer {
	width: 100%; 
	background: #222; 
	border-radius: 4px; 
	margin-top: 10px; 
	overflow: hidden; 
	display: none;
}

.uploadProgressBar {
	width: 0%; 
	height: 6px; 
	background: #D9AF62; 
	transition: width 0.1s;
}

/* ==========================================================================
   MISSION LIGHTBOX STYLES (GESICHERT GEGEN MOBILE OVERRIDES)
   ========================================================================== */

.mission-lightbox {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.92); 
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.mission-lightbox.show {
    display: flex !important;
}

.mission-lightbox-body {
    display: flex;
    flex-direction: column;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    background: #18181c;
    border: 1px solid #33333d;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    margin: 20px;
}

.mission-lightbox-content {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    background: #000;
}

.mission-lightbox-text-container {
    padding: 20px 24px;
    color: #e0e0e0 !important;
}

/* Titel explizit für alle Mobilgeräte erzwingen */
html body .mission-lightbox .mission-lightbox-title,
html body .mission-lightbox-text-container .mission-lightbox-title,
html body .mission-lightbox-text-container h1,
html body .mission-lightbox-text-container h2,
html body .mission-lightbox-text-container h3,
html body .mission-lightbox-text-container h4,
html body .mission-lightbox-text-container p.mission-lightbox-title,
html body .mission-lightbox-text-container div.mission-lightbox-title {
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    -webkit-text-fill-color: #ffffff !important; /* Verhindert Safari Mobile Color-Overrides */
}

.mission-lightbox-caption {
    font-size: 0.9rem !important;
    color: #a0a0b0 !important;
    font-style: italic !important;
}

.mission-lightbox-divider {
    border: 0;
    height: 1px;
    background: #33333d !important;
    margin: 14px 0 !important;
}

.mission-lightbox-detailed-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #d1d1d6 !important;
    margin-bottom: 16px !important;
}

.mission-lightbox-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.mission-lightbox-btn:hover {
    background-color: #d4af37;
    color: #111111;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Schließen-Button mit höchster Spezifität & WebKit-Fix */
html body .mission-lightbox-close,
html body .mission-lightbox .mission-lightbox-close,
html body #content .mission-lightbox-close {
    position: fixed !important;
    top: 20px !important;
    right: 30px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important; /* Erzwingt Weiß auf iOS Safari */
    font-size: 36px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 100000 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

html body .mission-lightbox-close:hover,
html body .mission-lightbox .mission-lightbox-close:hover {
    color: #d4af37 !important;
    -webkit-text-fill-color: #d4af37 !important;
}

/* ==========================================================================
   ADMIN LOGIN STYLES
   ========================================================================== */
.admin-login-body {
    background-color: #0b0b0e;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.admin-login-card {
    background: #18181c;
    border: 1px solid rgba(217, 175, 98, 0.4);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.admin-login-card h2 {
    font-family: 'Cinzel', serif;
    color: #D9AF62;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.admin-login-input {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
    outline: none;
}

.admin-login-input:focus {
    border-color: #D9AF62;
}

.admin-login-btn {
    background-color: #D9AF62;
    color: #111;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.admin-login-btn:hover {
    background-color: #e6c278;
}

.admin-login-error {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Responsives Verhalten für mobile Geräte */
@media (max-width: 768px) {
    .mission-card {
        padding: 25px 20px;
    }
    
    .mission-title-group h1 {
        font-size: 1.7em;
    }
    
    .book-showcase-grid {
        flex-direction: column;
    }

    /* VORBEUGUNG GEGEN DUNKLE TEXTE AUF MOBILE-GERÄTEN (Analog zu Asgard-Archaea Fix) */
    .video-section-card {
        padding: 20px 15px; /* Etwas kompakteres Padding auf Handys */
    }

    html body #content .video-section-card h3,
    .video-section-card h3 {
        color: #c5a059 !important;
        -webkit-text-fill-color: #c5a059 !important; /* Erzwingt den Goldton auf iOS/Safari */
        font-size: 1.15rem !important; /* Skaliert die Überschrift sauber auf kleinen Bildschirmen */
        line-height: 1.3;
    }

    html body #content .video-section-card .video-desc,
    .video-section-card .video-desc {
        color: #aaaaaa !important;
        -webkit-text-fill-color: #aaaaaa !important; /* Erzwingt helles Grau auf Smartphones */
        font-size: 0.88rem !important;
        line-height: 1.5;
    }
	
	/* Abstände des Players im Container reduzieren */
    .player-wrapper {
        padding: 0 !important;
    }

    /* Plyr Steuerungskomponenten kompakter gestalten */
    .plyr__controls {
        padding: 5px 8px !important; /* Kompakterer Innenabstand */
        gap: 4px !important;        /* Weniger Lücke zwischen den Buttons */
    }

    /* Buttons und Icons leicht verkleinern */
    .plyr__controls .plyr__control {
        padding: 4px 6px !important;
    }

    .plyr__controls .plyr__control svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Auf sehr schmalen Displays (z.B. unter 480px) weniger kritische Buttons verbergen */
    @media (max-width: 480px) {
        /* Blendet die Vor-/Zurückspultasten (10s Vor/Zurück) auf Handys aus, damit Play frei liegt */
        .plyr__controls [data-plyr="fast-forward"],
        .plyr__controls [data-plyr="rewind"] {
            display: none !important;
        }

        /* Zeit-Anzeige kompakter halten */
        .plyr__time {
            font-size: 0.75rem !important;
            padding: 0 2px !important;
        }

        /* Lautstärkeregler (Schieberegler) ausblenden, Stummschalt-Icon behalten */
        .plyr__volume input[type="range"] {
            display: none !important;
        }
    }
}

/* RTL Anpassungen für Arabisch */
.rtl-layout {
    direction: rtl;
    text-align: right;
}

.rtl-layout .mission-title-group,
.rtl-layout .mission-text-body,
.rtl-layout .book-card-caption,
.rtl-layout .video-section-card {
    text-align: right;
}

.rtl-layout .mission-conclusion-box {
    border-left: none;
    border-right: 4px solid #d9af62; /* Kehrt den goldenen Akzentstreifen der Box um */
}


