/* =========================================
   JANE AUSTEN EVENT STYLES (event.css)
   ========================================= */

/* =========================================
   1. DREITEILIGE EVENT-NAVIGATION
   ========================================= */
.event-nav {
    display: flex;
    width: 100%;
    max-width: 926px;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    height: 2.5rem;
}

.event-nav a {
    flex: 1; /* Spannt drei gleich große Boxen auf */
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 1.4rem;
    color: var(--accent-blue);
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 2.5rem;
    margin: 0;
    padding: 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Die exakte Ausrichtung: Links, Mitte, Rechts */
.event-nav a:first-child { text-align: left; }
.event-nav a:nth-child(2) { text-align: center; }
.event-nav a:last-child { text-align: right; }

.event-nav a:hover {
    color: var(--accent-orange);
}

.event-nav a.active-event {
    color: var(--accent-orange);
    cursor: default;
    pointer-events: none;
}

/* 2. EVENT-BLÖCKE (Verlinkte Kacheln) */
.event-block {
    display: block;
    margin: 2.5rem auto;
    text-decoration: none !important;
    color: inherit;
    text-align: center;
}

.event-block-spaced {
    margin-bottom: calc(var(--grid-triple) * 1.5);
}

/* Exaktes Rokoko-Hover-Verhalten: NUR die h3 und die hr ändern die Farbe */
.event-block h3 {
    transition: color 0.3s ease;
}

.event-block:hover h3 {
    color: var(--accent-orange);
}

.event-block:hover hr {
    border-top-color: var(--accent-orange);
}

/* Spezielle Abschlussklasse für den letzten Programmpunkt vor einer neuen Sektion */
.event-block-last {
    margin-bottom: calc(var(--grid-triple) * 1.33); /* Zieht den Abstand ordentlich auf das Doppelte! */
}

/* 3. JANE AUSTEN EMBLEM (Silhouette) */
.jane-emblem {
    display: block;
    margin: 0 auto;
    width: auto;
    max-height: 30px; 
    padding-bottom: 0.3rem;
}

/* 4. EXAKTE ROKOKO-TYPOGRAFIE FÜR SUBLINES */
.event-sub {
    font-size: 1.1rem;
    color: var(--accent-brown);
    margin-top: 0;
    margin-bottom: 0.2rem;
    text-transform: none; /* Verhindert Versalien */
}

.event-meta {
    font-size: 1rem; /* Gleiche Größe wie im Rokoko */
    color: var(--accent-brown);
    margin-top: 0;
    margin-bottom: var(--grid-half);
    text-transform: none; /* Keine Versalien mehr */
    letter-spacing: normal; /* Kein gesperrter Text mehr */
}

/* Die Bullets in der Akzentfarbe */
.bullet {
    color: var(--accent-orange);
    padding: 0 0.3rem;
}

/* =========================================
   LISTEN-ARCHITEKTUR (KREUZ ♣ & DELIGHT-LISTE)
   Klassischer hängender Einzug (Sicher für <span>)
   ========================================= */

/* 1. BON TON LISTEN (KARTEN-KREUZ ♣) */
.bonton-list, .bonton-list-last {
    list-style-type: none;
    padding: 0;
    max-width: 580px;
}

.bonton-list { margin: 0 auto var(--grid-half) auto; }
.bonton-list-last { margin: 0 auto calc(var(--grid-base) * 3) auto; }

/* Bulletproof hängender Einzug ohne Flexbox! */
.bonton-list li, .bonton-list-last li {
    position: relative;
    padding-left: 1.5rem; /* Exakter Abstand für das Kreuz */
    text-align: left;
    margin-bottom: var(--grid-half);
    line-height: var(--grid-base);
    display: block; 
}

/* Das Kreuz absolut in den Freiraum gesetzt */
.bonton-list li::before, .bonton-list-last li::before {
    content: "♣";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem; 
    color: var(--accent-brown); 
}

/* =========================================
   2. DELIGHT-LISTE (Et.webp Grafik)
   ========================================= */
.delight-list, .delight-list-last {
    list-style-type: none;
    padding: 0;
    max-width: 580px;
}

.delight-list { margin: 0 auto var(--grid-double) auto; }
.delight-list-last { margin: 0 auto calc(var(--grid-base) * 3) auto; }

.delight-list li, .delight-list-last li {
    position: relative;
    padding-left: 2.2rem; /* Platz für die 24px Grafik */
    text-align: left;
    margin-bottom: var(--grid-half);
    line-height: var(--grid-base);
    display: block;
}

.delight-list li::before, .delight-list-last li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px; /* Feinjustierung Y-Achse */
    width: 24px; 
    height: 24px; 
    background-image: url('../images/Et.webp'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
}

/* Typografie-Hilfsklassen */
.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.text-accent-rot { color: var(--accent-orange); transition: color 0.3s ease; }
.text-accent-rot:hover { color: var(--accent-blue); }

/* =========================================
   FLAIR CROSSFADE SLIDESHOW (Weicher Wechsel)
   ========================================= */
.flair-crossfade {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    line-height: 0;
    overflow: hidden;
}

.flair-crossfade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

/* Das aktive Bild gibt dem Container die physische Höhe! */
.flair-crossfade img.active-slide {
    position: relative; 
    opacity: 1;
    z-index: 2;
}

@media (max-width: 768px) {
    .event-nav {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0;
    }
    .event-nav a:first-child,
    .event-nav a:nth-child(2),
    .event-nav a:last-child {
        text-align: center; /* Überschreibt die Links/Rechts-Ausrichtung für Handys */
        padding: 0.3rem 0;
    }
}

/* =========================================
   BAROCKTANZ-PORTAL ELEMENTE (Highlights, Menü, Kalender)
   ========================================= */

/* 1. Die verlinkten Menü-Blöcke (Barocktanz-Kacheln) */
.menu-block { 
    display: block; 
    padding: 0; 
    transition: transform 0.2s ease, opacity 0.3s ease; 
}

.menu-block:hover { 
    transform: translateX(3px); 
    opacity: 0.8; 
}

/* 2. Highlights-Galerie (Flyer-Reihe) */
.balls-section { 
    margin: 0; 
    padding-bottom: var(--grid-double); 
}

.balls-section-last {
    padding-bottom: var(--grid-triple);
}

.thumbnails-row { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    gap: 0; 
    margin: 0; 
    flex-wrap: nowrap; 
}

.thumbnails-row a { 
    display: block; 
    flex: 1 1 0; 
    min-width: 0; 
    line-height: 0; 
}

.thumbnails-row img { 
    width: 100%; 
    height: auto; 
    display: block; 
    transition: transform 0.3s ease; 
}

/* Der sanfte Zoom-Effekt beim Überfahren der Flyer */
.thumbnails-row a:hover img { 
    transform: scale(1.03); 
    z-index: 2; 
    position: relative; 
}

/* 3. Kalender Promo (Ohne Transform-Sprünge!) */
.calendar-container {
    margin: 0;
    padding-bottom: var(--grid-double);
}

.calendar-container-last {
    padding-bottom: var(--grid-triple);
}

.calendar-promo-wrapper {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    display: block;
    padding-bottom: 2rem;
}

.calendar-promo-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: var(--grid-half);
    transition: opacity 0.3s ease;
    transform: none !important; /* Verbot von Sprüngen */
}

/* Strikt 60% Deckkraft beim Hover */
.calendar-promo-wrapper:hover img {
    opacity: 0.6; 
}

.calendar-promo-wrapper .promo-title {
    font-size: 2.5rem; 
    line-height: 1;
    color: var(--accent-blue);
    text-transform: none; 
    font-style: italic;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.calendar-promo-wrapper .promo-sub {
    font-size: 1.3rem;
    letter-spacing: 0.4em;
    margin-right: -0.4em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* Farbwechsel des Textes beim Hover */
.calendar-promo-wrapper:hover .promo-title,
.calendar-promo-wrapper:hover .promo-sub {
    color: var(--accent-orange);
}

/* 4. Gewandung / Newsletter Section */
.newsletter-section {
    margin: 0;
    padding-bottom: var(--grid-double);
}

.content-image-wrapper {
    max-width: 580px;
    margin: 0 auto;
    line-height: 0;
    display: block;
}

/* =========================================
   FIGUREN BILDWECHSLER (CROSSFADE)
   ========================================= */
.figure-showcase {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.figure-showcase img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

/* Erstes Bild oder aktiver Slide spannt die Höhe auf */
.figure-showcase img:first-child {
    position: relative;
}

.figure-showcase img.is-active {
    opacity: 1;
    z-index: 2;
}

/* =========================================
   MOBILE WEICHE FÜR HIGHLIGHTS & KALENDER
   ========================================= */
@media (max-width: 768px) {
    .thumbnails-row { 
        flex-wrap: wrap; 
    }
    .thumbnails-row a { 
        flex: 1 1 50%; 
    }
    .calendar-promo-wrapper .promo-title { 
        font-size: 2rem; 
    }
}