/* ==========================================================================
   EPICA: LANDING & ACCESSIBILITY STYLES (landing.css)
   ========================================================================== */

/* --- BARRIEREFREIHEIT (A11Y) MENÜ --- */
.a11y-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.a11y-btn {
    background: #3498db;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.a11y-btn:hover {
    transform: scale(1.1);
}

.a11y-options {
    position: absolute;
    top: 55px;
    right: 0;
    background: #111;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.a11y-options button {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
}

.a11y-options button:hover,
.a11y-options button[aria-pressed="true"] {
    background: #3498db;
    color: #111;
    font-weight: bold;
}

/* A11Y KLASSEN (Werden per JS aktiviert) */
body.a11y-large-text {
    font-size: 120%; /* Vergrößert globale Basis-Schriftart */
}

body.a11y-large-text .landing-text p,
body.a11y-large-text .faq-answer,
body.a11y-large-text .form-group input {
    font-size: 18px;
    line-height: 1.8;
}

body.a11y-high-contrast {
    --primary: #ffff00 !important; /* Knallgelb */
    --primary-hover: #ffffff !important;
    --bg-dark: #000000 !important; /* Reines Schwarz */
    --text-main: #ffffff !important; /* Reines Weiß */
}

body.a11y-high-contrast .landing-modal,
body.a11y-high-contrast .auth-form {
    background: #000 !important;
    border: 3px solid #fff !important;
}

body.a11y-high-contrast .landing-text h2,
body.a11y-high-contrast .faq-question {
    color: #ffff00 !important;
    text-decoration: underline;
}

/* --- DAS IST EPICA MODAL --- */
.landing-modal {
    background: #111;
    position: relative;
    max-width: 900px;
    width: 90%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
}

.landing-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.landing-close-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.landing-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-top: 10px;
    overflow-x: auto; /* Auf kleinen Bildschirmen scrollbar */
}

.landing-tab {
    background: #222;
    color: #aaa;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
}

.landing-tab.active {
    background: var(--primary);
    color: #111;
    border-color: var(--primary-hover);
}

.landing-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.landing-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
}

.landing-text {
    flex: 1;
}

.landing-text h2 {
    color: var(--primary);
    margin-top: 0;
}

.landing-media {
    flex: 1;
    display: flex;
    justify-content: center;
}

.landing-media img, 
.landing-media video {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* FAQ TAB */
.faq-toc {
    margin-bottom: 30px;
    background: #111;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.faq-toc h2 {
    margin-top: 0;
    font-size: 18px;
    color: #ddd;
}

.faq-toc ul {
    list-style-type: none;
    padding-left: 0;
}

.faq-toc a {
    color: #3498db; 
    text-decoration: none;
    line-height: 1.8;
}

.faq-toc a:hover {
    text-decoration: underline;
}

.faq-item {
    background: #1a1a1a;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #333;
}

.faq-question {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #3498db; 
    font-size: 18px;
    list-style: none; 
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 15px 15px 15px;
    line-height: 1.6;
    color: #ccc;
    border-top: 1px solid #333;
    margin-top: 10px;
    padding-top: 15px;
}

/* ==========================================================================
   MOBILE RESPONSIVE DESIGN (Smartphone Optimierung)
   ========================================================================== */
@media (max-width: 768px) {
    .main-content-split {
        flex-direction: column;
    }
    
    .landing-block {
        /* Hebt das abwechselnde Layout auf Smartphones auf, damit Bild immer über/unter Text ist */
        flex-direction: column !important; 
        padding: 15px;
    }

    .landing-modal {
        width: 95%;
        height: 90vh;
        padding: 15px;
    }

    .landing-close-btn {
        top: -10px;
        right: -10px;
    }

    .a11y-menu {
        top: 10px;
        right: 10px;
    }
}