/* Grundlegende Body-Styles für den Footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Styles für die Admin-Kopfleiste */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.main-content {
    flex-grow: 1;
}

/* Stile für Event-Beschreibungen */
.event-content h1, .event-content h2, .event-content h3 { margin-top: 1.5rem; margin-bottom: 1rem; font-weight: 500; }
.event-content p { margin-bottom: 1rem; line-height: 1.6; }
.event-content ul, .event-content ol { padding-left: 2rem; margin-bottom: 1rem; }
.event-content a { text-decoration: underline; }
.event-content blockquote { font-style: italic; color: #6c757d; border-left: 4px solid #dee2e6; padding-left: 1rem; }


/* ## Stile für den modernen Header (Mobile-First) ## */

.site-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease-in-out;
}

/* Standard-Stile (Mobile) */
.header-content {
    align-items: center;
    padding: 1rem 0;
    transition: padding 0.3s ease-in-out;
}

.header-content .logo {
    max-height: 50px;
    transition: max-height 0.3s ease-in-out;
}

.header-content .titles {
    transition: margin 0.3s ease-in-out;
}

.header-content .main-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    transition: font-size 0.3s ease-in-out;
}

.header-content .subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    transition: opacity 0.3s, font-size 0.3s;
}

/* "Scrolled"-Zustand, der per JavaScript hinzugefügt wird */
.site-header.scrolled .header-content {
    /* HIER IST DIE ÄNDERUNG: Zwingt die Anordnung nebeneinander */
    flex-direction: row !important;
    padding: 0.5rem 0;
}
.site-header.scrolled .titles {
    /* HIER IST DIE ÄNDERUNG: Stellt den Text wieder linksbündig und gibt Abstand */
    margin-left: 1.5rem !important;
    text-align: left !important;
}

.site-header.scrolled .logo {
    max-height: 40px;
    margin-bottom: 0 !important; /* Entfernt den mobilen Abstand */
}

.site-header.scrolled .subtitle {
    display: none !important; /* Blendet den Untertitel komplett aus */
}


/* Stile für größere Bildschirme (Tablets aufwärts) */
@media (min-width: 768px) {
    .header-content {
        padding: 1rem 0;
    }

    .header-content .logo {
        max-height: 50px;
    }

    .header-content .titles {
        margin-left: 1.5rem;
    }

    .header-content .main-title {
        font-size: 1.75rem;
    }

    .header-content .subtitle {
        font-size: 1rem;
    }
}