/*Version 02.06.2026 10:32*/
/*==========================================================================
 * SAVE THE DATE - JUBILÄUMSFEIER STYLE SHEET
 * ============================================================================
 * Dieses Stylesheet steuert das Design der Save-the-Date-Website für das
 * 25-jährige Jubiläum der HLW für Kommunikations- und Mediendesign.
 *
 * Struktur des Stylesheets:
 * 1. DESIGN-TOKENS & CSS-VARIABLEN (Farben, Schriftarten)
 * 2. SEITEN-RESET & GRUNDLAGEN
 * 3. HINTERGRUND-DEKORATION & WRAPPER
 * 4. KARTEN-GRID (Zweispaltiges Layout)
 * 5. LINKER BEREICH: VERTIKALE DATUMS-SPALTE
 * 6. RECHTER BEREICH: INHALTE & TEXT-HIERARCHIE
 * 7. MARKEN-BEREICH: SCHULLOGO & TITEL (SVG-Styles)
 * 8. INTERAKTIVE ELEMENTE: CTA-BUTTON & TEXT-LINKS
 * 9. ANIMATIONEN & EFFEKTE
 *==========================================================================*/

/* ============================================================================
 * 1. DESIGN-TOKENS & CSS-VARIABLEN
 * ============================================================================
 * Zentrale Definition aller Farben und Standard-Schriftarten. 
 * Ermöglicht eine einfache, konsistente Anpassung des Designs an einem Ort.
 */

@import url('https://fonts.googleapis.com/css2?family=Sue+Ellen+Francisco&display=swap');

:root {
    color-scheme: light dark; /* Ermöglicht helle und dunkle Schemata */

    /* Farbpalette (orientiert am offiziellen blauen Flyer der Schule) */
    --color-primary: #1b355a;        /* Tiefes Dunkelblau für Hauptüberschriften */
    --color-primary-light: #2b4c7e;  /* Mittleres Navyblau für Nebentexte und Akzente */
    --color-accent: #4a7bb0;         /* Stahlblau für feine Trennlinien und Hover-Effekte */
    --color-bg-start: #f4f7fa;       /* Hellgraues Blau für den oberen Hintergrundverlauf */
    --color-bg-end: #e1e8f2;         /* Muted Schieferblau-Grau für den unteren Verlauf */
    --color-white: #ffffff;          /* Reines Weiß für die Karte */
    --color-text: #1e293b;           /* Anthrazit für optimale Lesbarkeit des Fließtexts */
    --color-text-muted: #64748b;     /* Abgemildertes Grau-Blau für sekundäre Informationen */
    --color-border: #e2e8f0;         /* Hellgrauer Rahmen zur visuellen Strukturierung */

    /* Theme-spezifische Variablen */
    --color-card-bg: var(--color-white);
    --color-bg-muted: #fafbfc;       /* Hellgrauer Hintergrund für date-side und news-box */
    --color-header-overlay: rgba(255, 255, 255, 0); /* Kein Overlay im Light Mode */
    --filter-title-image: none;
    --color-logo-bg: transparent;
    --logo-shadow: none;
    --logo-padding: 0;
    --logo-radius: 0;
    --color-pulsing-shadow: #bcd3f3c8;

    /* Schriftarten-Definition (Standard-Webfonts ohne Google-Fonts-Abhängigkeit) */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", Times, serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Farbpalette (orientiert am offiziellen blauen Flyer der Schule) */
        --color-primary: #1b355a;        /* Tiefes Dunkelblau für Hauptüberschriften */
        --color-primary-light: #2b4c7e;  /* Mittleres Navyblau für Nebentexte und Akzente */
        --color-accent: #4a7bb0;         /* Stahlblau für feine Trennlinien und Hover-Effekte */
        --color-bg-start: #f4f7fa;       /* Hellgraues Blau für den oberen Hintergrundverlauf */
        --color-bg-end: #e1e8f2;         /* Muted Schieferblau-Grau für den unteren Verlauf */
        --color-white: #ffffff;          /* Reines Weiß für die Karte */
        --color-text: #1e293b;           /* Anthrazit für optimale Lesbarkeit des Fließtexts */
        --color-text-muted: #64748b;     /* Abgemildertes Grau-Blau für sekundäre Informationen */
        --color-border: #e2e8f0;         /* Hellgrauer Rahmen zur visuellen Strukturierung */

        /* Theme-spezifische Variablen */
        --color-card-bg: var(--color-white);
        --color-bg-muted: #fafbfc;       /* Hellgrauer Hintergrund für date-side und news-box */
        --color-header-overlay: rgba(255, 255, 255, 0); /* Kein Overlay im Light Mode */
        --filter-title-image: none;
        --color-logo-bg: transparent;
        --logo-shadow: none;
        --logo-padding: 0;
        --logo-radius: 0;
        --color-pulsing-shadow: #bcd3f3c8;
        }
}

/* ============================================================================
 * 2. SEITEN-RESET & GRUNDLAGEN
 * ============================================================================
 * Vereinheitlicht das Rendering in unterschiedlichen Browsern.
 */
* {
    box-sizing: border-box; /* Padding und Border werden in die Breitenberechnung einbezogen */
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden; /* Verhindert horizontales Scrollen/Wackeln auf Smartphones durch absolute Blobs */
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at top left, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

@media (max-width: 767px) {
    body {
        align-items: flex-start; /* Verhindert das vertikale Abschneiden und Verschieben des Headers auf Smartphones */
        padding: 15px 10px; /* Mehr Platz für die Karte auf schmalen Bildschirmen */
    }
}

/* ============================================================================
 * 3. HINTERGRUND-DEKORATION & WRAPPER
 * ============================================================================
 * Blurry-Hintergrundkreise für einen modernen, räumlichen Look (Glassmorphism-Effekt).
 */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Weichzeichner erzeugt fließende Farbverläufe */
    z-index: -1;        /* Deko-Blobs liegen hinter dem gesamten Inhalt */
    opacity: 0.35;      /* Sehr dezenter Kontrast */
}

/* Oberer linker Lichtpunkt (Stahlblau) */
body::before {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
}

/* Unterer rechter Lichtpunkt (Navyblau) */
body::after {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
}

/* Zentraler Container für Karte und Seiten-Footer */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 850px;
    gap: 25px;
    margin: 0 auto; /* Garantiert horizontale Zentrierung */
    opacity: 0; /* Für den weichen Einblende-Effekt beim Laden der Seite */
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================================
 * 4. KARTEN-GRID (Zweispaltiges Layout)
 * ============================================================================
 * Die Hauptkarte wechselt responsiv zwischen Einspaltigkeit (Mobile)
 * und Zweispaltigkeit (Desktop).
 */
.card {
    background: var(--color-card-bg);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(27, 53, 90, 0.08), 
                0 4px 12px rgba(27, 53, 90, 0.03);
    border: 1px solid rgba(27, 53, 90, 0.05);
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Deko-Streifen an der linken Kante der Karte */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}

/* Layout-Grid: Standardmäßig einspaltig für mobile Endgeräte */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
}

/* Ab 768px Breite (Tablets und Desktop): Aufteilung in Datum und Inhalt */
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: 250px 1fr;
    }
}

/* ============================================================================
 * 5. LINKER BEREICH: VERTIKALE DATUMS-SPALTE
 * ============================================================================
 * Stellt die markante Datums-Spalte (16 10 26) des Flyers dar.
 */
.date-side {
    background-color: var(--color-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 15px; /* Leicht reduziertes Padding auf Mobilgeräten */
    border-bottom: 1px solid var(--color-border);
}
.year-long {
        display:inline;
    }
    .year-short {
        display:none;
    }


@media (min-width: 768px) {
    .date-side {
        border-bottom: none;
        border-right: 1px solid var(--color-border);
        padding: 50px 20px;
    }
    .year-long {
        display:none;
    }
    .year-short {
        display:inline;
    }
}

/* Anordnung der Datums-Fragmente (Nebeneinander auf Mobil, Untereinander auf Desktop) */
.date-vertical {
    display: flex;
    flex-direction: row;
    gap: 10px; /* Reduzierter Abstand auf Mobilgeräten zur Vermeidung von Überlauf */
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .date-vertical {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
}

.date-part {
    font-size: 2.2rem; /* Reduzierte Schriftgröße auf Mobilgeräten zur Vermeidung von Überlauf */
    line-height: 1;
    letter-spacing: -1px;
}

@media (max-width: 360px) {
    .date-part {
        font-size: 1.8rem;
    }
    .date-splitter {
        font-size: 1rem;
    }
    .date-vertical {
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .date-part {
        font-size: 4.5rem;
        line-height: 0.95;
    }
    
    /* Feine Trennlinien zwischen den gestapelten Datums-Elementen */
    .date-part:not(:last-child)::after {
        content: '';
        display: block;
        width: 35px;
        height: 2px;
        background: var(--color-accent);
        margin: 12px auto;
        opacity: 0.35;
    }
}

/* Gestaltung der Trennzeichen im Datum (z.B. Bindestriche) */
.date-splitter {
    font-size: 1.2rem; /* Reduziert von 1.5rem */
    color: var(--color-accent);
    opacity: 0.55;
    align-self: center;
    line-height: 1;
}

@media (min-width: 768px) {
    .date-splitter {
        transform: rotate(90deg); /* Dreht den Trenner im Stapel-Layout vertikal */
        margin: 6px 0;
        font-size: 2rem;
    }
    .date-splitter{
        display:none;
    }
}

/* ============================================================================
 * 6. RECHTER BEREICH: INHALTE & TEXT-HIERARCHIE
 * ============================================================================
 * Hier werden alle Textelemente und Abstände für den Content geregelt.
 */
.header{
    background-image: linear-gradient(var(--color-header-overlay), var(--color-header-overlay)), url('Bilder/white_background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 35px 20px; /* Reduziertes horizontales Padding auf Mobilgeräten zur Vermeidung von Überlauf */
}

@media (max-width: 767px) {
    .header {
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 20px;
    }
}

.content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px 25px 20px; /* Add horizontal and bottom padding on mobile to avoid text clipping */
}

@media (min-width: 768px) {
    .content-side {
        padding: 50px 55px;
    }
}

.pre-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px; /* Weite Spationierung für edlen/luftigen Look */
    color: var(--color-accent);
    margin-bottom: 12px;
    text-align: right;
}

/* Große Headline mit Farbverlauf */
.main-title {
    font-family: var(--font-sans);
    font-size: 2.4rem; /* Reduziert auf Mobilgeräten für bessere Darstellung und Vermeidung von Überlauf */
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    /* Erzeugt den blauen Farbverlauf innerhalb der Buchstaben */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
}

.sub-title{
    font-family: "Sue Ellen Francisco", cursive;
    font-size: 26px;
    line-height: 1.3; /* Ensure vertical ascenders/descenders are not clipped */
    text-align: right;
    padding-bottom: 25px;
}

.sub-title span{
    display:block;
}
.sub-title span:last-child{
    padding-right:15px;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 3.8rem;
        letter-spacing: -2px;
    }

    .sub-title{
        font-size: 28px;
    }

    .sub-title span{
        display:inline;
    }
}

.title-image {
    display: block;
    margin-left: auto; /* Rechtsbündig ausrichten passend zur pre-title */
    width: 100%;
    max-width: 240px; /* Angenehme Desktop-Größe für das Hochformat */
    height: auto;
    margin-bottom: 25px;
    filter: var(--filter-title-image);
}

@media (max-width: 767px) {
    .title-image {
        max-width: 180px; /* Kompakter auf Smartphones */
    }
}

/* Zierlinie */
.divider-line {
    height: 1px;
    width: 60px;
    background-color: var(--color-accent);
    opacity: 0.5;
    margin-bottom: 25px;
}

/* Der Slogan aus dem Flyer (in klassischer Serifenschrift und kursiv) */
.tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--color-primary);
    margin-bottom: 25px;
    max-width: 520px;
}

.tagline-image {
    display: block;
    width: 100%;
    max-width: 440px; /* Passt harmonisch ins Layout */
    height: auto;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .tagline-image {
        max-width: 320px; /* Auf Smartphones etwas kleiner */
        margin-bottom: 25px;
    }
}

/* Event-Metadaten */
.event-meta {
    grid-area: meta;
    text-align: center;
}

.event-date-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 4px;
}

.event-time-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    display: inline-block;
}

.event-location-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

@media (max-width: 767px) {
    .event-date-text {
        font-size: 1.05rem; /* Etwas kompakter auf Smartphones */
    }
    .event-time-text {
        font-size: 0.9rem;
        display: block;
        margin-left: 0;
        margin-top: 2px;
        margin-bottom: 4px;
    }
    .event-location-text {
        font-size: 0.85rem;
    }
}

/* ============================================================================
 * 7. MARKEN-BEREICH: SCHULLOGO & INFOS
 * ============================================================================
 * Steuert das Layout für das Jubiläumslogo, die Metadaten und den CTA-Button.
 */
.school-brand {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: auto 2fr;
    grid-template-rows: auto auto;
    grid-template-areas: 
        "logo meta"
        "cta cta";
    gap: 25px 70px; /* Spaltenabstand auf 40px für den PC, um meta + cta nach rechts zu verschieben */
    align-items: center;
}

.school-logo {
    grid-area: logo;
    width: 100%;
    max-width: 165px; /* Auf dem PC verkleinert (von 105px auf 85px) für ein feineres Layout */
    height: auto;
    flex-shrink: 0;
    background-color: var(--color-logo-bg);
    box-shadow: var(--logo-shadow);
    padding: var(--logo-padding);
    padding-left: 45px;
    border-radius: var(--logo-radius);
    transition: all 0.3s ease;
}

/* ============================================================================
 * 8. INTERAKTIVE ELEMENTE: CTA-BUTTON & TEXT-LINKS
 * ============================================================================
 * Deklariert die Buttons und Links sowie deren sanfte Hover-Übergänge.
 */
.cta-section {
    grid-area: cta;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .school-brand {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "logo meta"
            "logo cta";
        gap: 20px 15px; /* Belässt das Smartphone bei 15px Spaltenabstand */
        justify-content: center;
        justify-items: start;
    }
    
    .school-logo {
        max-width: 75px; /* Auf Smartphones proportional noch kompakter (75px) */
        padding-left: 0px;
    }
    
    .cta-section {
        justify-content: center; /* CTA zentriert auf Mobile */
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .school-brand {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "logo meta"
            "logo cta";
        gap: 15px;
        text-align: center;
        justify-items: center;
    }
    
    .event-meta {
        text-align: center;
    }
    
    .cta-section {
        justify-content: center;
        width: 100%;
    }
}

/* Haupt-Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 16px 29px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 10px 20px rgba(27, 53, 90, 0.12);
    /* Nutzt cubic-bezier für ein edles, dynamisches Gefühl beim Hovern */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulsing 3s infinite;
}

@keyframes pulsing {
    0% {box-shadow: 0px 0px 10px 3px var(--color-pulsing-shadow);}
    50% {transform: translateY(-1px); box-shadow: none;}
    100% {transform: translateY(0px);box-shadow: 0px 0px 10px 3px var(--color-pulsing-shadow);}
}

.cta-button:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px); /* Hebt den Button minimal an */
    box-shadow: 0 15px 30px rgba(27, 53, 90, 0.2);
    animation-play-state: paused;
}

.cta-button:active {
    transform: translateY(0);
}

/* Pfeil-Icon im CTA-Button */
.cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Schiebt den Pfeil leicht nach rechts, wenn man über den Button hovert */
.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Sekundärer Textlink */
.cta-link {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cta-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}




/* ============================================================================
 * 8b. AKTUELLE MELDUNGEN (NEWS SECTION)
 * ============================================================================
 * Gestaltung der Ankündigungen und Neuigkeiten unter der CTA-Sektion.
 */
.news-section {
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.new-news{
    box-shadow: 0px 0px 10px 0px color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.news-box {
    background-color: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 12px;
    padding: 16px 20px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    margin-bottom: 10px;
}

.news-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(27, 53, 90, 0.05);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.news-badge {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.news-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.news-content {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Fußzeile unterhalb der Karte */
.page-footer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 0 10px;
    line-height: 1.5;
}

/* ============================================================================
 * 9. ANIMATIONEN & EFFEKTE
 * ============================================================================
 * Definition aller Keyframe-Animationen.
 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}