/* ==========================================================================
   THEME & GLOBAL STYLES (Neumünsteraner Adventskalender)
   Harmonized Winter Night & Warm Touch Color Palette:
   - Cold Winter Night: #1d3557, #0f1c2e, #435c7a, #a8dadc, #adb7da
   - Warm Touch & Accents: #e63946, #caa5b6, #e7d3de, #fcf3f6, #f1faee
   ========================================================================== */

:root {
    /* Primary Festive Accents (Warm Touch) */
    --primary-color: #e63946;          /* Warm festive winter crimson */
    --primary-hover: #c92a37;          /* Deep crimson hover */
    --primary-light: #fcf3f6;          /* Soft rose snow tint */
    --primary-subtle: #fbebf0;         /* Warm subtle snow highlight */

    /* Winter Night & Slate Blues (Kalter Winternacht Himmel) */
    --night-blue-deep: #0f1c2e;        /* Deepest winter midnight */
    --night-blue: #1d3557;             /* Cold Prussian winter navy */
    --night-slate: #435c7a;            /* Twilight slate blue */
    --night-mist: #2b4560;             /* Atmospheric night blue */

    /* Frost & Ice Accents (Eis & Frost) */
    --accent-ice: #a8dadc;             /* Crisp ice blue */
    --accent-frost: #adb7da;           /* Periwinkle frost blue */
    --accent-mauve: #e7d3de;           /* Frosted winter rose / mauve */
    --accent-berry: #caa5b6;           /* Soft dusty winter berry */
    --accent-gold: #f59e0b;            /* Warm candlelight gold */
    --accent-gold-glow: #d4af37;

    /* Custom Tile Accent Palette */
    --accent-natural-rose: #CB1F42;    /* Natural Rose */
    --accent-prune: #1F1E32;           /* Prune */
    --accent-arab-green: #00572E;      /* Arab Green */
    --accent-dusky-peach: #D0AD99;     /* Dusky Peach */
    --accent-orange-roughy: #CE5521;   /* Orange Roughy */
    --accent-dark-indian-red: #B41B1E; /* Dark Indian Red */

    /* Snow & Light Shades */
    --snow-white: #ffffff;
    --snow-light: #f1faee;             /* Honeydew soft snow */
    --snow-warm: #fcf3f6;              /* Warm rose snow */
    --bg-light: #f1faee;
    --bg-card: #ffffff;

    /* Text Colors */
    --text-dark: #1d3557;              /* Deep winter navy text */
    --text-muted: #435c7a;             /* Slate muted text */
    --text-light: #f1faee;             /* Bright snow text */

    /* UI Borders & Radii */
    --border-color: #d1dfe4;           /* Soft icy border */
    --border-frost: rgba(168, 218, 220, 0.4);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-md: 0 4px 16px rgba(15, 28, 46, 0.18);
    --shadow-lg: 0 10px 32px rgba(15, 28, 46, 0.28);
}

@font-face {
    font-family: "Asul";
    src: url('../fonts/Asul-Bold.woff2') format('woff2'),
    url('../fonts/Asul-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Asul";
    src: url('../fonts/Asul-Regular.woff2') format('woff2'),
    url('../fonts/Asul-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Asul', system-ui, -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    color: var(--text-dark);
    background-color: var(--night-blue-deep);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* === Thematic Blurred Background & Atmospheric Overlay === */
.site-bg-backdrop {
    position: fixed;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    z-index: -2;
    background-color: var(--night-blue-deep);
    background-image: url(../images/background.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(1) saturate(2);
    transform: scale(1.06);
    pointer-events: none;
    will-change: transform;
}

.site-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 20%, rgba(29, 53, 87, 0.25) 0%, rgba(15, 28, 46, 0.65) 100%),
        linear-gradient(180deg, rgba(29, 53, 87, 0.2) 0%, rgba(15, 28, 46, 0.7) 100%);
    pointer-events: none;
}

/* === Site Header === */
.site-header {
    background: linear-gradient(100deg, var(--night-blue) 0%, var(--night-slate) 100%);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.btn-menu-header {
    position:absolute;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    gap: 8px;
    color: var(--text-dark);
    padding: 7px 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
}

.btn-menu-header:hover {
    border: 1px solid var(--accent-ice);
    border-radius: var(--radius-sm);
}

.btn-menu-header:active {
    background: var(--accent-mauve);
}

@media (max-width: 480px) {
    .menu-btn-text {
        display: none;
    }
    .btn-menu-header {
        padding: 7px 9px;
    }
}

.header-brand {
    display: flex;
    align-items: center;
}

.header-brand:hover {
    color: var(--snow-white);
}

.header-nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.15s ease, color 0.15s ease;
}

.header-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.header-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
    border: 1px solid var(--border-frost);
}

@media (max-width: 768px) {
    .header-nav-desktop {
        display: none;
    }
}

.header-logo-badge {
    font-size: 1.4rem;
}

.btn-search-header, .btn-check-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: var(--snow-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-search-header:hover, .btn-check-number:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-search-header:active, .btn-check-number:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .search-btn-text {
        display: none;
    }
}

/* === Main Layout Container === */
.calendar-main {
    max-width: 1400px;
    width: 100%;
    margin: 20px auto;
    padding: 0 12px 40px;
    box-sizing: border-box;
}

/* === Tile Theme Styling & Visual Hierarchy === */
.tile {
    --tile-accent: var(--primary-color);
    --tile-accent-text: var(--text-dark);
    background-color: var(--bg-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--tile-accent) 25%, var(--border-frost));
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    position: relative;
}

/* Day-to-Color Mappings (Balanced Festive Grid Distribution of Accent Palette) */
.tile[data-day="1"],
.tile[data-day="6"],
.tile[data-day="11"],
.tile[data-day="18"],
.tile[data-day="23"] {
    --tile-accent: var(--accent-natural-rose);
    --tile-accent-text: #cb1f42;
}

.tile[data-day="2"],
.tile[data-day="8"],
.tile[data-day="13"],
.tile[data-day="19"] {
    --tile-accent: var(--accent-arab-green);
    --tile-accent-text: #00572e;
}

.tile[data-day="3"],
.tile[data-day="9"],
.tile[data-day="15"],
.tile[data-day="21"] {
    --tile-accent: var(--accent-orange-roughy);
    --tile-accent-text: #ce5521;
}

.tile[data-day="4"],
.tile[data-day="10"],
.tile[data-day="16"],
.tile[data-day="22"] {
    --tile-accent: var(--accent-dusky-peach);
    --tile-accent-text: #8e543b;
}

.tile[data-day="5"],
.tile[data-day="12"],
.tile[data-day="17"],
.tile[data-day="24"] {
    --tile-accent: var(--accent-dark-indian-red);
    --tile-accent-text: #b41b1e;
}

.tile[data-day="7"],
.tile[data-day="14"],
.tile[data-day="20"] {
    --tile-accent: var(--accent-prune);
    --tile-accent-text: #1f1e32;
}

/* Generic Accent Classes (for direct utility reuse) */
.tile.accent-natural-rose, [data-accent="natural-rose"] {
    --tile-accent: var(--accent-natural-rose);
    --tile-accent-text: #cb1f42;
}
.tile.accent-prune, [data-accent="prune"] {
    --tile-accent: var(--accent-prune);
    --tile-accent-text: #1f1e32;
}
.tile.accent-arab-green, [data-accent="arab-green"] {
    --tile-accent: var(--accent-arab-green);
    --tile-accent-text: #00572e;
}
.tile.accent-dusky-peach, [data-accent="dusky-peach"] {
    --tile-accent: var(--accent-dusky-peach);
    --tile-accent-text: #8e543b;
}
.tile.accent-orange-roughy, [data-accent="orange-roughy"] {
    --tile-accent: var(--accent-orange-roughy);
    --tile-accent-text: #ce5521;
}
.tile.accent-dark-indian-red, [data-accent="dark-indian-red"] {
    --tile-accent: var(--accent-dark-indian-red);
    --tile-accent-text: #b41b1e;
}

.tile .n {
    font-size: clamp(1.2rem, 3.5cqw, 1.8rem);
    font-weight: 800;
    color: var(--snow-light);
    text-shadow: 0 1px 3px var(--night-blue-deep), 0 0 10px
    color-mix(in srgb, var(--tile-accent) 45%, transparent);
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tile.t-hero, .tile.is-hero {
    --tile-accent: var(--primary-color);
    --tile-accent-text: var(--primary-color);
    background: linear-gradient(135deg, var(--snow-white) 0%, var(--primary-light) 50%, var(--snow-light) 100%);
    border: 1px solid var(--primary-color);
    padding: clamp(10px, 2cqw, 20px);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(1.05rem, 2.6cqw, 1.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin: 6px 0 4px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-date {
    font-size: clamp(0.75rem, 1.6cqw, 0.9rem);
    color: var(--text-muted);
    margin: 0 0 10px;
}

.tile.is-unlocked {
    cursor: pointer;
    background: linear-gradient(150deg, var(--tile-accent) 0%, color-mix(in srgb, var(--snow-white) 6%, var(--tile-accent)) 60%, color-mix(in srgb, var(--snow-white) 12%, var(--tile-accent)) 100%);
    box-shadow: 0 4px 14px rgba(15, 28, 46, 0.12), 0 1px 3px color-mix(in srgb, var(--tile-accent) 15%, transparent);
}

.tile.is-unlocked:hover {
    box-shadow: 0 8px 22px color-mix(in srgb, var(--tile-accent) 28%, rgba(15, 28, 46, 0.2)), 0 2px 6px rgba(15, 28, 46, 0.1);
    border-color: var(--tile-accent);
}

.tile.is-unlocked:hover .n {
    transform: scale(1.05);
}

.tile.is-today {
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 16px var(--accent-gold), 0 4px 16px color-mix(in srgb, var(--tile-accent) 30%, transparent);
    animation: pulse-today 2s infinite ease-in-out;
}

@keyframes pulse-today {
    0%, 100% {
        box-shadow: 0 0 10px var(--accent-gold), 0 2px 8px color-mix(in srgb, var(--tile-accent) 25%, transparent);
    }
    50% {
        box-shadow: 0 0 22px var(--accent-gold), 0 6px 20px color-mix(in srgb, var(--tile-accent) 40%, transparent);
    }
}

.tile.is-locked {
    background: linear-gradient(145deg, color-mix(in srgb, var(--tile-accent) 18%, rgba(29, 53, 87, 0.65)) 0%, color-mix(in srgb, var(--tile-accent) 10%, rgba(15, 28, 46, 0.85)) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid color-mix(in srgb, var(--tile-accent) 32%, var(--border-frost));
    box-shadow: 0 4px 16px rgba(15, 28, 46, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tile.is-locked .n {
    color: var(--snow-light);
    text-shadow: 0 1px 3px var(--night-blue-deep), 0 0 10px color-mix(in srgb, var(--tile-accent) 45%, transparent);
}

.tile.is-locked:hover {
    border-color: color-mix(in srgb, var(--tile-accent) 65%, var(--accent-ice));
    box-shadow: 0 6px 20px color-mix(in srgb, var(--tile-accent) 25%, rgba(15, 28, 46, 0.35));
}

.tile-locked-badge {
    align-self: flex-end;
    color: color-mix(in srgb, var(--tile-accent) 60%, var(--snow-light));
    display: flex;
    align-items: center;
    filter: drop-shadow(0 1px 3px var(--night-blue-deep));
    transition: transform 0.2s ease, color 0.2s ease;
}

.tile.is-locked:hover .tile-locked-badge {
    transform: scale(1.1);
    color: var(--snow-white);
}

.tile-unlocked-badge {
    align-self: flex-end;
    text-align: right;
    max-width: 100%;
}

.tile-sponsor-name {
    display: inline-block;
    font-size: clamp(0.68rem, 1.6cqw, 0.8rem);
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    background: color-mix(in srgb, var(--tile-accent) 10%, var(--snow-white));
    border: 1px solid color-mix(in srgb, var(--tile-accent) 25%, var(--border-frost));
    padding: 2px 6px;
    border-radius: 4px;
}

.tile-open-label {
    font-size: clamp(0.68rem, 1.6cqw, 0.8rem);
    font-weight: 700;
    color: var(--tile-accent-text, var(--text-dark));
    background: color-mix(in srgb, var(--tile-accent) 10%, var(--snow-white));
    border: 1px solid color-mix(in srgb, var(--tile-accent) 25%, var(--border-frost));
    padding: 2px 6px;
    border-radius: 4px;
}

/* === Site Footer === */
.site-footer {
    border-top: 1px solid var(--border-frost);
    background: color-mix(in srgb, var(--night-blue) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 24px 16px;
    text-align: center;
    margin-top: auto;
}

.footer-copy {
    margin: 0;
    font-size: 0.88rem;
    color: var(--snow-light);
}

/* ==========================================================================
   SUBPAGE STYLES (History & Sponsors Pages)
   ========================================================================== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 8px 40px;
}

.page-header {
    background: color-mix(in srgb, var(--snow-white) 95%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.page-header--with-logo .page-header__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.page-header__content {
    flex: 1;
}

.page-header__brand-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    padding: 10px;
}

.page-brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .page-header--with-logo .page-header__body {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
    }
    .page-header__brand-logo {
        width: 72px;
        height: 72px;
        padding: 8px;
    }
}

.page-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    border: 1px solid var(--accent-mauve);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.25;
}

.page-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 16px;
}

.page-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.page-count-badge {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--snow-light);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* === History Page & Grid === */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.history-card {
    background: color-mix(in srgb, var(--snow-white) 96%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-ice);
}

.history-card--has-modal {
    border-color: color-mix(in srgb, var(--primary-color) 25%, var(--border-frost));
}

.history-card__image-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: var(--night-blue-deep);
    overflow: hidden;
}

.history-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.history-card:hover .history-card__image {
    transform: scale(1.04);
}

.history-card__year-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--snow-white);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 3px 9px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.history-card__image-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    z-index: 3;
}

.history-card:hover .history-card__image-btn,
.history-card__image-btn:focus-visible {
    opacity: 1;
    background: rgba(15, 28, 46, 0.4);
}

.history-card__image-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, var(--night-blue-deep) 85%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--snow-white);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.history-card__body,
.history-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.history-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.history-card__subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px;
    line-height: 1.35;
}

.history-card__desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.history-card__actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
}

.history-card__detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-light);
    border: 1px solid var(--accent-mauve);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-card__detail-btn:hover,
.history-card__detail-btn:focus-visible {
    background: var(--primary-color);
    color: var(--snow-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* === History Navigation & Sections === */
.history-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.history-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: color-mix(in srgb, var(--snow-white) 90%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-frost);
    border-radius: 9999px;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.history-nav-pill:hover,
.history-nav-pill:focus-visible {
    background: var(--primary-color);
    color: var(--snow-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.history-section {
    margin-bottom: 44px;
    scroll-margin-top: 24px;
}

.history-section__header {
    margin-bottom: 22px;
}

.history-section__badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--accent-mauve);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.history-section__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--snow-white);
    text-shadow: 0 2px 4px var(--night-blue-deep);
    margin: 0 0 6px;
}

.history-section__desc {
    font-size: 0.94rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
    text-shadow: 0 1px 2px var(--night-blue-deep);
    max-width: 800px;
}

/* === History Reports Archive === */
.history-reports-section {
    margin-top: 50px;
    padding-top: 36px;
    border-top: 1px solid color-mix(in srgb, var(--border-frost) 40%, transparent);
}

.history-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

@media (max-width: 640px) {
    .history-reports-grid {
        grid-template-columns: 1fr;
    }
}

.history-report-card {
    background: color-mix(in srgb, var(--snow-white) 96%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.history-report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-ice);
}

.history-report-header {
    margin-bottom: 12px;
}

.history-report-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.history-report-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--snow-white);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.history-report-highlight {
    display: inline-block;
    background: color-mix(in srgb, var(--accent-frost) 25%, var(--snow-white));
    border: 1px solid var(--accent-frost);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
}

.history-report-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 4px;
    line-height: 1.35;
}

.history-report-subtitle {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.history-report-summary {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 16px;
    flex: 1;
}

.history-report-details {
    margin-top: auto;
    background: color-mix(in srgb, var(--accent-frost) 20%, var(--snow-white));
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.history-report-details:hover {
    background: color-mix(in srgb, var(--accent-frost) 28%, var(--snow-white));
    border-color: var(--accent-frost);
}

.history-report-details[open] {
    border-color: var(--accent-frost);
    background: color-mix(in srgb, var(--accent-frost) 24%, var(--snow-white));
}

.history-report-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.15s ease;
}

.history-report-toggle::-webkit-details-marker {
    display: none;
}

.history-report-toggle svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.history-report-details[open] .history-report-toggle svg {
    transform: rotate(180deg);
}

.history-report-body {
    padding: 14px 16px 18px;
    border-top: 1px solid var(--border-frost);
}

.history-report-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.history-report-text p {
    margin: 0 0 12px;
}

.history-report-text p:last-child {
    margin-bottom: 0;
}

/* === Sponsors Page & Grid === */
.sponsors-section {
    margin-bottom: 36px;
}

.sponsors-section__header {
    margin-bottom: 20px;
    text-align: left;
}

.sponsors-section__badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--accent-mauve);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.sponsors-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--snow-white);
    text-shadow: 0 2px 4px var(--night-blue-deep);
    margin: 0 0 6px;
}

.sponsors-section__desc {
    font-size: 0.92rem;
    color: var(--text-light);
    margin: 0;
    text-shadow: 0 1px 2px var(--night-blue-deep);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.sponsors-grid--main {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.sponsors-card {
    position: relative;
    background: color-mix(in srgb, var(--snow-white) 96%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sponsors-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-ice);
}

.sponsors-card--main {
    background: color-mix(in srgb, var(--snow-white) 98%, transparent);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-gold) 25%, transparent);
}

.sponsors-card--main:hover {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-gold) 35%, transparent);
    border-color: var(--accent-gold);
}

.sponsors-card__badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-gold);
    color: var(--snow-white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    box-shadow: 0 2px 4px var(--night-blue-deep);
    letter-spacing: 0.02em;
}

.sponsors-card__logo-wrap {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px;
    box-sizing: border-box;
    background: var(--snow-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.sponsors-card__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.sponsors-card__logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--snow-light);
}

.sponsors-card__placeholder-icon {
    font-size: 1.5rem;
}

.sponsors-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
}

.sponsors-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.sponsors-card__city {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.sponsors-card__desc {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.sponsors-card__website {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--accent-mauve);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sponsors-card__website:hover {
    background: var(--primary-color);
    color: var(--snow-white);
    border-color: var(--primary-color);
}

.sponsors-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--snow-white);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}

/* === General Content & Club Subpages (Inner Wheel, Lions Club, Über uns, Kontakt) === */
.page-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--accent-mauve);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-back-home:hover {
    background: var(--primary-color);
    color: var(--snow-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.content-card {
    background: color-mix(in srgb, var(--snow-white) 96%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-ice);
}

.content-card--full {
    width: 100%;
    margin-bottom: 28px;
    padding: 28px 24px;
}

.content-card__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 14px;
}

.content-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
    line-height: 1.3;
}

.content-card__text {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.content-card__text strong {
    color: var(--text-dark);
}

.content-card__text a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.content-card__text a:hover {
    color: var(--primary-hover);
}

.content-card__list {
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.content-card__list li {
    margin-bottom: 6px;
}

.content-card__subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.45;
}

.content-card__action {
    margin-top: auto;
    padding-top: 12px;
}

.btn-content-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--accent-mauve);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-content-action:hover {
    background: var(--primary-color);
    color: var(--snow-white);
    border-color: var(--primary-color);
}

/* === Contact Specific Styling === */
.contact-highlight-box {
    background: var(--snow-light);
    border: 1px solid var(--accent-mauve);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 12px 0;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.15s ease;
}

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

/* === Über uns (About Page) Specialized Components === */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.about-stat-card {
    background: color-mix(in srgb, var(--snow-white) 94%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-ice);
}

.about-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.about-stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.about-stat-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.about-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

@media (max-width: 860px) {
    .about-split-section {
        grid-template-columns: 1fr;
    }
}

.about-panel {
    background: color-mix(in srgb, var(--snow-white) 96%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.about-panel--full {
    margin-bottom: 28px;
}

.about-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.about-panel__icon {
    font-size: 1.8rem;
    line-height: 1;
}

.about-panel__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.about-panel__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.about-panel__text strong {
    color: var(--text-dark);
}

.about-quote-box {
    margin: 16px 0;
    padding: 16px 18px;
    background: color-mix(in srgb, var(--accent-frost) 20%, var(--snow-white));
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.93rem;
    line-height: 1.6;
}

.about-purpose-pills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.about-purpose-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--accent-frost) 20%, var(--snow-white));
    border: 1px solid var(--accent-frost);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
}

.about-purpose-pill__icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.about-feature-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-light) 60%, var(--snow-white)) 0%, var(--snow-white) 100%);
    border: 1px solid var(--accent-mauve);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature-card__content {
    max-width: 900px;
}

.about-feature-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section-container {
    background: color-mix(in srgb, var(--snow-white) 96%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
}

.about-section-header {
    margin-bottom: 20px;
}

.about-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.about-section-desc strong {
    color: var(--text-dark);
}

.about-outlets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.about-outlet-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: color-mix(in srgb, var(--accent-frost) 20%, var(--snow-white));
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.about-outlet-item:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--accent-frost) 30%, var(--snow-white));
    border-color: var(--accent-frost);
}

.about-outlet-pin {
    font-size: 1.1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.about-outlet-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
}

.about-outlet-address {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.about-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.about-step-card {
    background: color-mix(in srgb, var(--accent-frost) 20%, var(--snow-white));
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-sm);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.about-step-card:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--accent-frost) 30%, var(--snow-white));
    border-color: var(--accent-frost);
}

.about-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--snow-white);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.about-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.about-step-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

.about-step-text strong {
    color: var(--text-dark);
}

.about-legal-note {
    background: color-mix(in srgb, var(--primary-light) 40%, var(--snow-white));
    border: 1px solid var(--accent-mauve);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.about-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-faq-item {
    background: color-mix(in srgb, var(--accent-frost) 20%, var(--snow-white));
    border: 1px solid var(--border-frost);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.about-faq-item:hover {
    background: color-mix(in srgb, var(--accent-frost) 26%, var(--snow-white));
    border-color: var(--accent-frost);
}

.about-faq-item[open] {
    border-color: var(--accent-frost);
    background: color-mix(in srgb, var(--accent-frost) 24%, var(--snow-white));
}

.about-faq-question {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.about-faq-question::-webkit-details-marker {
    display: none;
}

.about-faq-question::after {
    content: "＋";
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.about-faq-item[open] .about-faq-question::after {
    content: "−";
}

.about-faq-answer {
    padding: 0 18px 16px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.about-faq-answer strong {
    color: var(--text-dark);
}

.about-sponsors-banner {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-light) 60%, var(--snow-white)) 0%, color-mix(in srgb, var(--accent-frost) 20%, var(--snow-white)) 100%);
    border: 1px solid var(--accent-mauve);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.about-sponsors-banner__content {
    flex: 1;
    min-width: 280px;
}

.about-sponsors-banner__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-sponsors-banner__text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}
