/* =====================================================================
   seeyou Theme – gemeinsames Layout für alle Sites.

   Diese Datei enthält bewusst KEINE Markenfarben und KEINE Content-IDs.
   Farben kommen als CSS Custom Properties aus den Site-Settings
   (siehe Configuration/Sets/Base/TypoScript/Brand.typoscript):

     --theme-dark          Dunkelfläche (Content-Box, Footer, Teaser)
     --theme-accent        Akzentfarbe (CTA, Submenü, Marker)
     --theme-accent-hover  Akzentfarbe im Hover
     --theme-deep          Tiefe Fläche (Newsletter, Accordion-Icon aktiv)
     --theme-on-dark       Textfarbe auf dunklen Flächen
     --theme-muted         Gedämpfte Textfarbe

   Der :root-Block wird auf jeder Seite ausgegeben, Fallbacks sind daher
   nicht nötig.
   ===================================================================== */


/* --- GRUNDLAGEN ---------------------------------------------------- */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    background-color: #fff;
    /* background-image kommt aus theme.background.file (Brand.typoscript) */
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;
}

header {
    background-color: #fff;
}

main {
    padding-top: 2rem;
}

#sidebar {
    gap: 2.6rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

footer {
    background-color: var(--theme-dark);
    color: var(--theme-on-dark);
}

/* Die Linkfarbe (Bootstrap) gilt für den Inhaltskasten; auf dunklen
   Flächen bleiben Links hell. */
footer a,
#navi1 a {
    color: var(--theme-on-dark);
}

/* Links in Inhaltselementen färbt Bootstrap Package über diese Variablen
   (.frame a), die Regel oben greift dort nicht. */
footer {
    --frame-link-color: var(--theme-on-dark);
    --frame-link-hover-color: color-mix(in srgb, var(--theme-on-dark) 80%, #000);
}


/* --- TYPOGRAFIE ---------------------------------------------------- */

h1 span,
h2 span,
h3 span {
    font-size: inherit;
    font-weight: bold;
}


/* --- NAVIGATION ---------------------------------------------------- */

.nav-link {
    color: white;
}

.main-navigation {
    text-align: center;
    border-bottom: 2px solid white;
}

.navbar {
    padding: 0;
}

.navbar-nav a {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    text-align: center;
}

#navi1 .active a {
    color: var(--theme-on-dark);
    border-bottom: 2px solid var(--theme-on-dark);
}

#navi2 a,
#navi2 .active a {
    color: var(--theme-on-submenu);
}

#navi2 .active a {
    border-bottom: 2px solid var(--theme-on-submenu);
}

#navi1 a {
    padding-block: 1rem;
}

#navi1 a:hover {
    color: color-mix(in srgb, var(--theme-on-dark) 70%, transparent);
}

#navi2 a:hover {
    color: color-mix(in srgb, var(--theme-on-submenu) 70%, transparent);
}

#navi2 a {
    font-size: 0.9rem;
}

/* Mobile Navigation */
#navi3 ul {
    list-style: none;
}

#navi3 ul li {
    border-bottom: 1px solid white;
}

.submenu {
    background-color: var(--theme-submenu);
    padding-left: 0 !important;
}

/* Dropdown-Icons entfernen */
.nav-item .dropdown-toggle::after {
    display: none;
}


/* --- KOPFBEREICH --------------------------------------------------- */

.logo img {
    max-width: 100px;
}

.signet-50 {
    margin-left: 35px;
    width: 60px;
    height: 60px;
}

#barrierefrei-content a {
    text-decoration: none;
}

#barrierefrei-content span {
    color: var(--theme-muted);
    font-size: 1rem;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    #logobereich {
        justify-content: center !important;
    }

    #barrierefrei-box ul {
        justify-content: center !important;
    }

    /* Die Suche bleibt auf allen Geräten rechtsbündig */
    #search {
        text-align: center !important;
    }
}


/* --- INHALTSBEREICH ------------------------------------------------ */

#maincontent {
    --bs-heading-color: var(--theme-content-heading);
    background-color: var(--theme-content);
    color: var(--theme-on-content);
    padding: 30px;
}

#maincontent > div:first-of-type {
    padding-top: 0;
}


/* --- FUSSBEREICH --------------------------------------------------- */

footer ul {
    list-style: none;
    padding: 0;
}

footer .frame-header {
    margin: 0;
}

footer span {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1rem;
    margin: 0;
}

footer a {
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    line-height: 2.5rem;
    text-transform: uppercase;
}


/* --- SIDEBAR ------------------------------------------------------- */

#sidebar .cta-button {
    display: block;
    color: var(--theme-on-dark);
    padding: 1rem 0.6rem;
    border: 2px solid white;
    background: var(--theme-accent);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
    line-height: 150%;
}

#sidebar a {
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#sidebar p {
    padding: 0;
}

/* Helle Kästen (Rahmen-Hintergrund "light"): Die Linkfarbe ist für den
   dunklen Inhaltskasten weiß und wäre hier unsichtbar. */
#sidebar .frame-background-light a:not(.cta-button) {
    color: var(--theme-dark);
}

.texticon-inner-icon {
    border: 2px solid white;
}

.texticon-content {
    padding-top: 5px;
}

/* Sidebar Social-Icons (Facebook / Instagram / YouTube) */
.sidebar-social {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-social a {
    flex: 1 1 0;
    min-width: 0;
    line-height: 0;
}

.sidebar-social img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* War im Original als "#sidebar frame { @media ... }" notiert und hat wegen
   des ungültigen Selektors nie gegriffen. Bewusst deaktiviert gelassen, damit
   sich die Darstellung durch den Umbau nicht ändert. Zum Aktivieren
   einkommentieren – das verändert die Abstände in der Sidebar ab 1200px.
@media (min-width: 1200px) {
    #sidebar .frame {
        --frame-spacing: 1rem;
    }
}
*/


/* --- ACCORDION ----------------------------------------------------- */

/* Bootstrap legt das Chevron als background-image an. Damit die Farbe der
   Marke folgen kann, wird das SVG stattdessen als Maske genutzt und über
   background-color eingefärbt. */
.accordion-button::after {
    background-image: none;
    background-color: var(--theme-content-heading);
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.accordion-button:not(.collapsed)::after {
    background-color: var(--theme-deep);
}

.accordion-item {
    border-radius: 0 !important;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--theme-content-heading);
}

.accordion-button {
    border-radius: 0 !important;
    color: var(--theme-content-heading);
    background-color: transparent;
    font-size: 24px;
    font-weight: 600 !important;
    line-height: 150%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-block: 1.5rem;
}


/* --- NEWS / VERANSTALTUNGEN ---------------------------------------- */

/* Redaktionelles Format aller Veranstaltungsmedien. Steht hier statt in
   home.css, weil die Detailseite home.css nicht laedt. */
:root {
    --news-media-ratio: 908 / 500;
}

/* Detailseite: Videos stehen unter Text und Bildern. clear, weil die
   Bildergalerie in .ce-intext floatet und bei kurzem Text sonst ueber den
   Videoblock ragt. */
.news-detail-videos {
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Detailseite: das Video nimmt denselben Kasten ein wie die Bilder.
   Die Breite kommt aus dem width-Attribut, das Detail.html aus derselben
   Einstellung speist wie das Bild (settings.detail.media.image.maxWidth) –
   hier steht deshalb bewusst keine feste Breite. aspect-ratio und
   object-fit sorgen fuer den Zuschnitt, weil die angelieferten Videos
   hochkant sind. */
.news-detail-video video {
    display: block;
    max-width: 100%;
    height: auto;
    aspect-ratio: var(--news-media-ratio);
    object-fit: cover;
    object-position: center;
    background-color: #000;
}

.event-list p {
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-list-item-headline a {
    text-transform: uppercase;
}

#newsletter {
    background-color: var(--theme-deep);
    padding: 1rem;
    justify-content: center;
    place-items: center;
}

@media (max-width: 768px) {
    #maincontent .event-detail-description {
        max-width: 100%;
    }

    #newsletter img {
        max-width: 45px !important;
    }
}


/* --- LIGHTBOX ------------------------------------------------------ */

.pswp {
    --pswp-bg: rgba(0, 0, 0, .7);
}


/* =====================================================================
   RAHMEN-OPTIONEN

   Ersetzen die früheren Regeln auf Content-Element-IDs (#c262, #c10, ...),
   die naturgemäß nur auf einer einzigen Site funktionieren konnten.

   Die Werte werden im Backend im Feld "Rahmen-Optionen" (Reiter
   "Erscheinungsbild") ausgewählt – Mehrfachauswahl ist möglich – und von
   Bootstrap Package je Wert als .frame-option-<wert> ausgegeben.
   Registriert werden sie in Configuration/TCA/Overrides/tt_content.php.
   ===================================================================== */

/* Ohne Innenabstand */
.frame-option-flush {
    padding: 0;
}

/* Ohne Außenabstand (mit "flush" kombinierbar) */
.frame-option-no-margin {
    margin: 0;
}

/* Gleichmäßiger Innenabstand */
.frame-option-padded {
    padding: 1rem;
}

/* Schmaler Innenabstand */
.frame-option-compact {
    padding: 0.5rem 1rem;
}

/* Überschrift ohne eigene Abstände, Auszeichnung im Titel nicht fett */
.frame-option-headline-plain div {
    margin: 0;
    padding: 0;
}

.frame-option-headline-plain div h2 > a > span {
    font-weight: normal !important;
}

/* =====================================================================
   NEWSLETTER-CTA

   Hängt bewusst an der Klasse .newsletter-cta, die im Inhalt selbst steht
   (HTML-Element in der Sidebar). Damit greift die Gestaltung ohne jede
   redaktionelle Pflege und funktioniert auf jeder Site, die denselben
   Markup-Baustein verwendet.
   ===================================================================== */

.frame-inner:has(.newsletter-cta) {
    overflow: visible;
}

/* Farben des Inhaltskastens: Stadthalle dunkel, Eisarena weiß */
.newsletter-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--theme-content-heading);
    background: var(--theme-content);
    padding: 1rem;
}

.newsletter-cta img {
    flex: 0 0 75px;
    width: 53px;
    max-width: 53px;
    height: auto;
    display: block;
}

.newsletter-cta span {
    flex: 1 1 auto;
    color: var(--theme-content-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.newsletter-cta:hover,
.newsletter-cta:hover span {
    color: var(--theme-content-heading);
    text-decoration: underline;
}

/* Veranstaltungstitel sind h3 (Überschriftenfolge), sehen aber aus wie h4. */
.news-top-item-title h3 {
    line-height: 1.5;
}
