/* =========================================
   WISSENSDATENBANK SPEZIAL-KLASSEN (wissen.css)
   Zusatz-Styles für Kompendium & geschützte Bereiche
   ========================================= */

/* 1. SUBLINES FÜR SCHRITT-AUSWAHL */
.event-sub {
    font-size: 1rem;
    color: var(--text-base);
    font-style: italic;
    margin-top: 0;
    margin-bottom: 0;
    line-height: var(--grid-base);
}

/* Helper-Klasse für Textausrichtung */
.text-center {
    text-align: center;
}

/* =========================================
   2. KLASSISCHER BAROCKTANZ-FOOTER-BALKEN
   ========================================= */
.site-footer { 
    margin-top: calc(var(--grid-base) * 2); 
    padding-bottom: 2rem; 
}

/* Der Balken mit Mouseover-Bild */
.footer-graphic-nav {
    position: relative; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 926px; 
    height: 130px; 
    margin: 2rem auto 0 auto;
    background-image: url('../images/index-III.webp'); /* Pfad ggf. anpassen */
    background-size: 100% auto; 
    background-position: top center;
    background-repeat: no-repeat;
}

.footer-graphic-nav:hover { 
    background-image: url('../images/index-III-over.webp'); 
}

/* Das unsichtbare Overlay für die Startseite */
.bar-home-link {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    text-decoration: none !important; transform: none !important; 
}

.bar-home-link:hover { text-decoration: none !important; }

/* Container für die Text-Links */
.footer-link-group {
    display: flex; justify-content: center; align-items: center; width: 43%; 
    position: relative; z-index: 0; pointer-events: none; 
}

.footer-emblem-spacer { width: 14%; }

/* Menü-Punkte im Balken */
.footer-link-group a {
    pointer-events: auto; 
    flex: 1; 
    text-align: center; 
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-style: italic;
    font-size: 1.45rem; 
    color: var(--text-base);
    text-decoration: none !important; 
    transition: color 0.3s ease;
    transform: translateY(18px); /* Feinjustierung Höhe */
}

.footer-link-group a:hover {
    color: var(--accent-main);
    text-decoration: none !important; 
    transform: translateY(18px); 
}

/* =========================================
   SPEZIAL-KLASSEN FÜR DIE PARTITURENSAMMLUNG
   ========================================= */

/* Das A-Z Register */
.alpha-nav {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    line-height: 2.2rem;
}

.alpha-nav a {
    color: var(--text-base);
    padding: 0 0.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.alpha-nav a:hover {
    color: var(--accent-main);
}

/* =========================================
   3. LOGIN-MODAL & WARNHINWEISE
   ========================================= */
.login-error-msg {
    display: none;
    color: var(--accent-main);
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 1rem;
    margin-top: var(--grid-half);
    font-weight: bold;
}

.login-info-text {
    font-family: 'Libre Caslon Text', Georgia, serif;
    color: var(--text-base);
    font-size: 1.1rem;
    margin-top: calc(var(--grid-half) * 1.5);
    line-height: var(--grid-base);
}

.login-submit-btn {
    margin-top: calc(var(--grid-half) * 1.5);
    padding: 8px 30px;
    background-color: var(--accent-main);
    color: var(--linie-weiss);
    border: none;
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.login-submit-btn:hover {
    opacity: 0.8;
}

.warning-text {
    color: var(--accent-main);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.2rem;
}

/* Spezifische Mobile-Weiche für den Balken-Footer */
@media (max-width: 768px) {
    .footer-graphic-nav { 
        display: flex; flex-direction: column; height: auto; 
        background-position: top center; padding-top: 70px; margin-top: 2rem; 
    }
    
    .bar-home-link { display: none; } 
    .footer-link-group { display: flex; flex-direction: column; width: 100%; }
    .footer-emblem-spacer { display: none; }
    
    .footer-link-group a { 
        display: block; width: 100%; text-align: center; transform: translateY(0) !important; 
        font-style: normal; text-transform: uppercase; letter-spacing: 0.4em; margin-right: -0.4em; 
        font-size: 1.1rem; color: var(--text-base); padding: 1rem 0; 
        border-top: 1px solid var(--text-base); 
    }
    
    .footer-link-group:first-child a:first-child { border-top: none; }
}

/* =========================================
   LOGIN-MODAL (OVERLAY)
   ========================================= */
.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.modal-content { 
    position: relative; 
    max-width: 926px; 
    width: 100%; 
    text-align: center; 
    margin: 0 auto; 
}

.login-bg { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.login-form-container { 
    position: absolute; 
    bottom: 12%; 
    left: 0; 
    width: 100%; 
    text-align: center; 
}

.login-input { 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid var(--accent-main); 
    color: var(--text-base); 
    font-family: 'Libre Caslon Text', Georgia, serif; 
    font-size: 1.2rem; 
    text-align: center; 
    width: 300px; 
    padding: 5px; 
    outline: none; 
}

.close-modal { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    color: var(--accent-main); 
    font-size: 2rem; 
    font-weight: bold; 
    cursor: pointer; 
    z-index: 10; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

.close-modal:hover { 
    color: var(--text-base); 
}

/* Modal Mobil-Weiche */
@media (max-width: 768px) {
    .modal-content { 
        display: flex; 
        flex-direction: column; 
        background-color: var(--bg-base); 
        border: 2px solid var(--text-base); 
    }
    .login-bg { 
        position: relative; 
        width: 100%; 
        height: auto; 
        object-fit: contain; 
        z-index: 1; 
    }
    .login-form-container { 
        position: relative; 
        padding: 10px 20px 30px 20px; 
        z-index: 2; 
        bottom: auto; 
    }
    .close-modal { 
        z-index: 10; 
        background-color: var(--bg-base); 
        color: var(--accent-main); 
        border-radius: 50%; 
        width: 30px; 
        height: 30px; 
        line-height: 30px; 
        text-align: center; 
        top: 10px; 
        right: 10px; 
        box-shadow: 0 0 5px rgba(0,0,0,0.2); 
    }
}