/* ============================================
   Usedomer Literaturtage – Glassmorphism Style
   ============================================ */

/* --- Custom Properties --- */
:root {
    --magenta-deep: #b3005e;
    --magenta-vivid: #e6007e;
    --magenta-light: #ff4da6;
    --magenta-glow: #ff80bf;
    --cream: #FFF8F0;
    --cream-warm: #FFF3E8;
    --cream-soft: #FFFBF6;
    --dark: #1A0A10;
    --dark-soft: #2A1520;
    --glass-bg: rgba(255, 248, 240, 0.55);
    --glass-border: rgba(212, 20, 90, 0.18);
    --glass-shadow: rgba(139, 10, 80, 0.08);
    --text: #1A0A10;
    --text-muted: #5A3A4A;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--magenta-vivid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--magenta-deep); }

/* --- Accessibility: Focus Visible --- */
:focus-visible {
    outline: 2px solid var(--magenta-vivid);
    outline-offset: 3px;
    border-radius: 4px;
}
/* Light outline for dark backgrounds */
.hero :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--magenta-glow);
}

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

/* --- Skip to Content (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--magenta-vivid);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    color: white;
}

/* --- Glass Utility --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

/* Lighter glass for navbar */
.navbar.glass {
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 2rem;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.nav-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.8; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--magenta-vivid);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--magenta-deep);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--magenta-deep); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--magenta-deep); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Nav left section with countdown - positioned absolute */
.nav-left {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
}

/* Nav right section with language switcher - positioned absolute */
.nav-right {
    position: absolute;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mini countdown in navbar */
.countdown-mini {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.countdown-mini-number {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--magenta-vivid);
    min-width: 1.5ch;
    text-align: center;
}

.countdown-mini-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.countdown-mini-sep {
    color: var(--magenta-light);
    font-weight: 300;
    margin: 0 0.1rem;
}

.countdown-mini.hidden {
    display: none;
}

/* Shrink on scroll */
.navbar {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.nav-logo-img {
    transition: height 0.3s ease, opacity 0.2s;
}
.navbar-scrolled {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    box-shadow: 0 4px 24px rgba(139, 10, 80, 0.12);
}
.navbar-scrolled .nav-logo-img {
    height: 50px;
}

/* --- Navigation Dropdown (Service submenu) --- */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-dropdown > .nav-link {
    cursor: pointer;
}
.nav-dropdown > .nav-link.active {
    color: var(--magenta-deep);
}
.nav-dropdown > .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--magenta-deep);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover > .nav-link::after,
.nav-dropdown:focus-within > .nav-link::after,
.nav-dropdown > .nav-link.active::after {
    transform: scaleX(1);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    flex-direction: column;
    padding-top: 12px;
    border-radius: var(--radius);
    z-index: 1000;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px var(--glass-shadow);
    z-index: -1;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}
.dropdown-item {
    position: relative;
    z-index: 1;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--magenta-vivid);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.dropdown-item:first-child {
    padding-top: 0.8rem;
}
.dropdown-item:last-child {
    padding-bottom: 0.8rem;
}
.dropdown-item:hover {
    background: rgba(212, 20, 90, 0.08);
    color: var(--magenta-deep);
}

/* Hamburger and mobile menu hidden on desktop */
.hamburger { display: none; }
.nav-mobile-menu { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--dark) url('/static/img/moewen.jpg') center/cover no-repeat;
}

/* Organic wave at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 3;
    background: var(--cream);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,20 Q360,0 720,20 Q1080,40 1440,20 L1440,60 Z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,20 Q360,0 720,20 Q1080,40 1440,20 L1440,60 Z' fill='%23fff'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(180, 40, 100, 0.35);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 4rem;
}
.hero-video {
    will-change: opacity;
}

@keyframes wave-morph {
    0%, 100% {
        border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
    }
    25% {
        border-radius: 50% 60% 40% 50% / 40% 60% 50% 50%;
    }
    50% {
        border-radius: 40% 50% 60% 40% / 60% 40% 50% 50%;
    }
    75% {
        border-radius: 50% 40% 50% 60% / 50% 50% 60% 40%;
    }
}

/* Hero date block - container for date and event title */
.hero-date-block {
    margin-bottom: 2rem;
    text-align: center;
    display: inline-block;
    padding: 1rem 0;
    border-top: 1px solid var(--magenta-glow);
    border-bottom: 1px solid var(--magenta-glow);
}

.hero-date {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--magenta-glow);
    margin: 0;
    display: block;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-event-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 248, 240, 0.9);
    margin: 0.4rem 0 0;
    display: block;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 4px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 248, 240, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 600;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Hero Countdown - inline in hero, above the CTA button */
.hero-countdown {
    margin: 2rem 0 0.5rem;
}

.hero-countdown .countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-countdown .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.hero-countdown .countdown-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(139, 10, 80, 0.4);
}

.hero-countdown .countdown-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
}

.hero-countdown.hidden {
    display: none;
}

@media (max-width: 480px) {
    .hero-countdown .countdown-grid {
        gap: 0.75rem;
    }
    .hero-countdown .countdown-item {
        min-width: 50px;
    }
    .hero-countdown .countdown-label {
        font-size: 0.6rem;
    }
}

.scroll-indicator {
    display: inline-block;
    animation: bounce 2s ease infinite;
    font-size: 2rem;
    color: var(--magenta-light);
    margin-top: 2.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(12px); opacity: 1; }
}

/* ============================================
   BOOK ANIMATION
   ============================================ */
.book-section {
    position: relative;
    height: 600vh;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(212, 20, 90, 0.06) 0%, transparent 60%),
        var(--cream);
}

.book {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1800px;
}

.book-inner {
    position: relative;
    width: min(90vw, 1080px);
    height: min(72vh, 660px);
    transform-style: preserve-3d;
}

/* Book Cover */
.book-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--magenta-deep) 0%, var(--dark-soft) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(139, 10, 80, 0.3), inset 0 0 60px rgba(255, 128, 171, 0.1);
    transform-origin: left center;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    z-index: 10;
}

.book-cover-content {
    text-align: center;
    color: var(--cream);
}
.cover-logo {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
}
.cover-year {
    display: block;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--magenta-glow);
    margin-bottom: 1rem;
}
.cover-motto {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--magenta-light);
}

/* Book Pages */
.book-page {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.book-page.active {
    opacity: 1;
    pointer-events: auto;
}

.book-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px var(--glass-shadow);
    overflow: hidden;
}

.book-page-left {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) 0 0 var(--radius);
}

.book-author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-page-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.book-badge {
    display: inline-block;
    width: fit-content;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
}

.book-author-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
}

.book-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--magenta-deep);
}

.book-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.book-teaser {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.book-link-hint {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--magenta-vivid);
    transition: transform 0.3s ease;
    display: inline-block;
}
.book-page:hover .book-link-hint {
    transform: translateX(6px);
}

/* Book back cover */
.book-back-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark-soft) 0%, var(--magenta-deep) 100%);
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.6s ease;
    box-shadow: 0 20px 60px rgba(139, 10, 80, 0.2);
}

/* Book states */
.book-inner[data-state="closed"] .book-cover { transform: rotateY(0deg); }
.book-inner[data-state="open"] .book-cover { transform: rotateY(-180deg); opacity: 0; }
.book-inner[data-state="closing"] .book-back-cover { opacity: 1; }

/* Book progress indicator */
.book-progress {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}
.book-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--magenta-light);
    opacity: 0.3;
    transition: opacity 0.3s, transform 0.3s;
}
.book-dot.active {
    opacity: 1;
    transform: scale(1.3);
    background: var(--magenta-vivid);
}

/* Book navigation arrows */
.book-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--magenta-vivid);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 20;
    box-shadow: 0 4px 16px var(--glass-shadow);
}
.book-arrow.visible {
    pointer-events: auto;
}
.book-arrow:hover {
    background: var(--magenta-vivid);
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.book-arrow-prev {
    left: -60px;
}
.book-arrow-next {
    right: -60px;
}

/* On smaller screens, position arrows inside the book */
@media (max-width: 1200px) {
    .book-arrow-prev { left: 0.5rem; }
    .book-arrow-next { right: 0.5rem; }
}

/* ============================================
   PROGRAM SECTION
   ============================================ */
.program-section {
    padding: 6rem 2rem;
    background: var(--cream);
    position: relative;
}

.program-content {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    text-align: center;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.event-card {
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--glass-shadow);
}

/* Card Image - top, landscape format */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-img-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Portrait-Modus: mehrere Autorenbilder */
.card-img-portraits {
    overflow: hidden;
}
.card-portraits {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 2px;
}
.card-portrait {
    flex: 1;
    object-fit: cover;
    object-position: center top;
}

/* Animation nur auf der Programm-Seite (grid-cards) */
.program-grid .card-portraits {
    width: 200%;
    gap: 0;
    animation: slide-portraits 5s ease-in-out infinite alternate;
}
.program-grid .card-portrait {
    min-width: 50%;
}
@keyframes slide-portraits {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.event-card:hover .card-img {
    transform: scale(1.05);
}

/* Card Content - below image */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

/* Badge inline in content area */
.card-content .event-badge {
    align-self: flex-start;
}

/* Card without image - full width content */
.event-card:not(:has(.card-img-wrapper)) {
    grid-template-columns: 1fr;
}

.event-card:not(:has(.card-img-wrapper)) .card-content {
    padding: 2rem;
}

.event-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.card-date {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}
.card-day {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--magenta-vivid);
    line-height: 1;
}
.card-month {
    font-size: 1rem;
    font-weight: 500;
    color: var(--magenta-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-author {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--magenta-deep);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   DETAIL PAGE (Lesungsseite)
   ============================================ */
.detail-section { padding-top: 0; }

.detail-hero {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    max-width: calc(100vw - 3rem);
    margin: 140px auto 0;
    padding: 0 1.5rem;
    justify-content: center;
}

.detail-hero-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.detail-hero-item .img-wrapper {
    position: relative;
    line-height: 0;
    max-width: 100%;
}

.detail-hero-img {
    height: clamp(120px, 18vw, 400px);
    width: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.detail-hero-overlay {
    position: absolute;
    bottom: 16px;
    right: 10px;
    padding: 0.1rem 0.3rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    line-height: 1;
}

.photo-credit {
    font-size: 0.55rem;
    color: white;
    white-space: nowrap;
}

.detail-content {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.detail-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.detail-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    font-style: italic;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.detail-author {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--magenta-deep);
    margin-bottom: 2rem;
}

.detail-info-wrapper {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.detail-info {
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-info-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.detail-icon { font-size: 1.2rem; flex-shrink: 0; }
.detail-venue { font-weight: 500; }
.detail-address { font-size: 0.9rem; color: var(--text-muted); }

/* Date display like cards */
.detail-date-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}
.detail-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.detail-day {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--magenta-vivid);
    line-height: 1;
}
.detail-weekday-month {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.detail-weekday {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--magenta-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-month {
    font-size: 1rem;
    font-weight: 500;
    color: var(--magenta-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-time-wrapper {
    display: flex;
    align-items: center;
}
.detail-time {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

/* Person list with icons */
.person-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.person-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.person-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.role-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--magenta-vivid);
}

.person-names {
    font-weight: 500;
    color: var(--dark);
}

.location-info {
    display: flex;
    flex-direction: column;
}

.detail-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2.5rem;
}
.detail-body p { margin-bottom: 1rem; }

/* Map in info box */
.detail-map {
    margin-top: 0.75rem;
    border-radius: 8px;
}

/* Buttons row: ticket + calendar */
.detail-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}
.detail-price-free {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--magenta-vivid);
}

.btn-ticket-small {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(212, 20, 90, 0.2);
}
.btn-ticket-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 20, 90, 0.3);
    color: white;
}

.btn-ticket {
    display: inline-block;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 3rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(212, 20, 90, 0.3);
}
.btn-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 20, 90, 0.4);
    color: white;
}

/* Biography section */
.bio-section {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bio-item {
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px var(--glass-shadow);
}

.bio-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.bio-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* Calendar download button */
.btn-calendar {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(212, 20, 90, 0.2);
}
.btn-calendar:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 20, 90, 0.3);
    color: white;
}
.btn-calendar .detail-icon {
    font-size: 0.85rem;
}

/* Laureate link button */
.detail-laureate-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}
.btn-laureate {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, #d4a843, #b8860b);
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}
.btn-laureate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
    color: white;
}
.btn-laureate .detail-icon {
    font-size: 0.85rem;
}

/* Event prev/next navigation — positioned outside content on each side */
.ev-nav {
    position: relative;
    height: 0;          /* no space in flow */
    overflow: visible;
}

.ev-nav-link {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: var(--glass-bg);
    max-width: 220px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    width: 180px;
}
.ev-nav-link:hover {
    background: rgba(212, 20, 90, 0.06);
    transform: translateY(-2px);
}

.ev-nav-prev {
    right: calc(100% + 1.5rem);
    align-items: flex-end;
    text-align: right;
}
.ev-nav-next {
    left: calc(100% + 1.5rem);
    align-items: flex-start;
    text-align: left;
}

.ev-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--magenta-vivid);
}

.ev-nav-day {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ev-nav-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* On narrower screens, fall back to inline layout */
@media (max-width: 1200px) {
    .ev-nav {
        position: static;
        height: auto;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .ev-nav-link {
        position: static;
        width: auto;
        max-width: 48%;
    }
    .ev-nav-prev { align-items: flex-start; text-align: left; }
}

.back-link {
    display: inline-block;
    font-weight: 500;
    color: var(--magenta-vivid);
    transition: transform 0.2s;
}
.back-link:hover { transform: translateX(-4px); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    background: var(--dark);
    color: var(--cream);
    padding: 0 0 2rem;
}

/* Sponsors */
.sponsors-section {
    position: relative;
    background: var(--cream);
    padding: 5rem 2rem;
    text-align: center;
}

/* Wave: cream-warm flows into cream */
.sponsors-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1;
    background: var(--cream-warm);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,30 Q240,55 480,30 Q720,5 960,30 Q1200,55 1440,30 L1440,0 Z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,30 Q240,55 480,30 Q720,5 960,30 Q1200,55 1440,30 L1440,0 Z' fill='%23fff'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    pointer-events: none;
}
.sponsors-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--dark);
    margin-bottom: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}
.sponsors-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 12px;
    background: linear-gradient(90deg, transparent 0%, var(--magenta-vivid) 20%, var(--magenta-vivid) 80%, transparent 100%);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M0,6 C25,0 50,12 75,6 S125,0 150,6 S200,12 225,6 S275,0 300,6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M0,6 C25,0 50,12 75,6 S125,0 150,6 S200,12 225,6 S275,0 300,6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}
.sponsors-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 2.5rem;
}
.sponsor-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-grid h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--magenta-glow);
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 248, 240, 0.7);
    margin-bottom: 0.3rem;
}
.footer-info a { color: var(--magenta-light); }
.footer-info a:hover { color: var(--magenta-glow); }

.social-links { display: flex; flex-direction: column; gap: 0.5rem; }
.social-link {
    font-size: 0.95rem;
    color: rgba(255, 248, 240, 0.7);
    transition: color 0.2s;
}
.social-link:hover { color: var(--magenta-glow); }

.footer-legal { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-legal-link {
    font-size: 0.9rem;
    color: rgba(255, 248, 240, 0.7);
}
.footer-legal-link:hover { color: var(--magenta-glow); }
.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 248, 240, 0.4);
}

/* ============================================
   ERROR
   ============================================ */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}
.error-content { text-align: center; }
.error-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--magenta-vivid);
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .navbar {
        padding: 0.75rem 1.5rem;
        justify-content: space-between;
    }
    .nav-logo-img { height: 64px; }
    .navbar-scrolled .nav-logo-img { height: 44px; }

    /* Hide desktop nav-links on mobile */
    .nav-links-left,
    .nav-links-right {
        display: none;
    }

    /* Mobile menu dropdown */
    .nav-mobile-menu {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 8px 32px var(--glass-shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        padding: 0;
        z-index: 999;
    }
    .nav-mobile-menu.menu-open {
        max-height: 400px;
        padding: 0.5rem 0;
    }
    .nav-mobile-menu .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        text-align: center;
        width: 100%;
    }
    .nav-mobile-menu .nav-link::after {
        display: none;
    }
    .nav-mobile-menu .nav-link:hover {
        background: rgba(230, 0, 126, 0.05);
    }

    /* Mobile service dropdown */
    .nav-mobile-dropdown {
        width: 100%;
        text-align: center;
    }
    .nav-mobile-parent {
        cursor: pointer;
    }
    .nav-mobile-subs {
        display: none;
        flex-direction: column;
        background: rgba(212, 20, 90, 0.03);
    }
    .nav-mobile-dropdown.open .nav-mobile-subs {
        display: flex;
    }
    .nav-mobile-sub {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        color: var(--magenta-vivid);
        text-decoration: none;
        padding: 0.75rem 2rem;
        transition: background 0.2s;
    }
    .nav-mobile-sub:hover {
        background: rgba(230, 0, 126, 0.08);
    }

    /* Hide desktop dropdown on mobile */
    .nav-dropdown-menu {
        display: none !important;
    }

    /* Increase mobile menu max-height for sub-items */
    .nav-mobile-menu.menu-open {
        max-height: 600px;
    }

    /* Nav right on mobile */
    .nav-right {
        position: static;
    }
    .nav-right .lang-switcher {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }

    /* Hamburger button – min 44x44 touch target */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        padding: 8px;
    }
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .hamburger.menu-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.menu-open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.menu-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero { padding: 5rem 1.5rem 3rem; }

    /* Hide countdown on mobile */
    .nav-left {
        display: none;
    }

    /* Book: vertical card layout on mobile */
    .book-inner {
        width: 90vw;
        height: auto;
        min-height: 70vh;
    }
    .book-spread {
        grid-template-columns: 1fr;
        grid-template-rows: 250px auto;
    }
    .book-page-left {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .book-page-right {
        padding: 1.5rem;
    }
    .book-cover-content .cover-logo { font-size: 2.5rem; }

    .event-grid { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-hero {
        margin-top: 110px;
        padding: 0 1rem;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    .detail-hero-img {
        height: auto;
        width: 100%;
        max-width: 400px;
    }
    .detail-hero-overlay {
        bottom: 10px;
        right: 6px;
        padding: 0.1rem 0.25rem;
    }
    .photo-credit {
        font-size: 0.5rem;
    }
    .detail-content { padding: 2rem 1.5rem 3rem; }
    .detail-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .detail-actions {
        justify-content: center;
    }
    .btn-calendar {
        align-self: center;
    }
    .btn-laureate {
        justify-content: center;
    }
    .bio-item {
        padding: 1.25rem 1.5rem;
    }
    .detail-info-wrapper {
        display: flex;
        flex-direction: column;
    }
    .detail-info-wrapper .ev-nav {
        order: 2;
        margin-bottom: 0;
        margin-top: 1.5rem;
    }
    .detail-info-wrapper .detail-info {
        order: 1;
    }
}

@media (max-width: 480px) {
    .detail-hero-overlay {
        bottom: 6px;
        right: 4px;
        padding: 0.05rem 0.15rem;
    }
    .photo-credit {
        font-size: 0.4rem;
    }
    .nav-links { display: none; }
    .book-page-right { padding: 1.2rem; }
    .book-author-name { font-size: 1.3rem; }
}

/* ============================================
   PROGRAM SLIDER
   ============================================ */
.program-slider-section {
    padding: 6rem 2rem;
    position: relative;
    background: var(--cream);
}

.program-slider-content {
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    margin: 0 -1rem;
}

.slider-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-card {
    flex: 0 0 calc(33.333% - 1rem);
    scroll-snap-align: start;
    min-width: 300px;
}

/* Slider cards: vertical layout (image on top) */
.slider-card .event-card {
    grid-template-columns: 1fr;
    height: 100%;
}
.slider-card .card-img-wrapper {
    aspect-ratio: 16 / 10;
}
.slider-card .card-content {
    padding: 1.25rem 1.5rem;
}
.slider-card .card-content .event-badge {
    position: static;
    margin-bottom: 0.5rem;
}
.slider-card .card-author {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.slider-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--magenta-vivid);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 16px var(--glass-shadow);
    font-size: 1.2rem;
}
.slider-arrow:hover {
    background: var(--magenta-vivid);
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.slider-arrow-prev { left: -24px; }
.slider-arrow-next { right: -24px; }

.slider-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-program {
    display: inline-block;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 3rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(212, 20, 90, 0.3);
}
.btn-program:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 20, 90, 0.4);
    color: white;
}

/* Slider responsive */
@media (max-width: 1024px) {
    .slider-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
    .slider-arrow-prev { left: 0.5rem; }
    .slider-arrow-next { right: 0.5rem; }
}

@media (max-width: 600px) {
    .slider-card {
        flex: 0 0 calc(100% - 1rem);
    }
}

/* ============================================
   COUNTDOWN SECTION (in Hero)
   ============================================ */
.countdown-section {
    margin: 2.5rem 0;
    padding: 0;
}

.countdown-content {
    text-align: center;
}

.countdown-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--magenta-glow);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(139, 10, 80, 0.4);
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--magenta-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Hidden state (when not in countdown window) */
.countdown-section.hidden {
    display: none;
}

@media (max-width: 480px) {
    .countdown-grid {
        gap: 0.75rem;
    }
    .countdown-item {
        min-width: 60px;
    }
    .countdown-label {
        font-size: 0.65rem;
    }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    padding: 7rem 2rem 5rem;
    position: relative;
    background: var(--cream-warm);
}

/* Wave: cream flows into cream-warm */
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1;
    background: var(--cream);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,30 Q240,55 480,30 Q720,5 960,30 Q1200,55 1440,30 L1440,0 Z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,30 Q240,55 480,30 Q720,5 960,30 Q1200,55 1440,30 L1440,0 Z' fill='%23fff'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    pointer-events: none;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--glass-border);
    border-radius: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-input::placeholder {
    color: var(--text-muted);
}
.newsletter-input:focus {
    outline: none;
    border-color: var(--magenta-vivid);
    box-shadow: 0 0 0 3px rgba(212, 20, 90, 0.15);
}

.btn-newsletter {
    display: inline-block;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(212, 20, 90, 0.3);
}
.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 20, 90, 0.4);
}

.newsletter-form-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-privacy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}
.newsletter-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--magenta-vivid);
    cursor: pointer;
}
.newsletter-privacy-text a {
    color: var(--magenta-vivid);
    text-decoration: underline;
}
.newsletter-privacy-text a:hover {
    color: var(--magenta-deep);
}

.newsletter-message {
    margin-top: 1rem;
    text-align: center;
}
.newsletter-success {
    color: #2e7d32;
    font-weight: 500;
}
.newsletter-error {
    color: #c62828;
    font-weight: 500;
}

/* Honeypot (hidden from real users, bots fill it) */
.newsletter-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* Newsletter follow / social media */
.newsletter-follow {
    margin-top: 1.5rem;
    text-align: center;
}
.newsletter-follow-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.newsletter-social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}
.newsletter-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.newsletter-social-link:hover {
    transform: translateY(-2px);
    background: rgba(212, 20, 90, 0.1);
    box-shadow: 0 4px 12px rgba(212, 20, 90, 0.2);
}
.newsletter-social-icon {
    width: 22px;
    height: 22px;
    color: var(--magenta-vivid);
    filter: brightness(0) saturate(100%) invert(15%) sepia(80%) saturate(5000%) hue-rotate(330deg) brightness(95%) contrast(105%);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    display: flex;
    gap: 1rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--glass-border);
}

.lang-link {
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.lang-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.lang-link.active {
    opacity: 1;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    padding: 6rem 2rem;
    background: var(--cream);
    position: relative;
}

.about-content {
    max-width: 780px;
    margin: 0 auto;
}
.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.about-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--magenta-deep);
    margin-bottom: 2.5rem;
    line-height: 1.4;
}
.about-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--dark);
}
.about-body p {
    margin-bottom: 1.5rem;
}
.about-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--dark);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--magenta-light);
}
.about-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--magenta-deep);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* ============================================
   AWARD PAGES
   ============================================ */

/* --- Award Overview (Two-Column) --- */
.award-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--cream);
    position: relative;
}

.award-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 2.5rem;
}
.awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.award-column {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 24px var(--glass-shadow);
}
.award-column-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}
.award-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.award-intro-text p {
    margin-bottom: 0.75rem;
}
.award-jury-text {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.award-jury-text h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.award-jury-text p {
    margin-bottom: 0.5rem;
}
.btn-outline {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--magenta-vivid);
    border-radius: var(--radius-sm);
    color: var(--magenta-deep);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
    background: var(--magenta-vivid);
    color: #fff;
}

/* Timeline */
.award-timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}
.award-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-entry {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--magenta-vivid);
    border: 2px solid var(--cream);
    z-index: 1;
}
.timeline-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--magenta-deep);
    min-width: 4ch;
    flex-shrink: 0;
}
.timeline-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.timeline-portraits {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    overflow: visible;
}
.timeline-portrait {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cream);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* --- Laureate Detail --- */
.laureate-section {
    padding: 6rem 2rem;
    background: var(--cream);
    position: relative;
}

.laureate-content {
    max-width: 750px;
    margin: 0 auto;
}
.laureate-year {
    display: block;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--magenta-deep);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    opacity: 0.85;
}
.laureate-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}
.laureate-portrait-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.laureate-portrait-item {
    position: relative;
    max-width: 300px;
}
.laureate-portrait {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
}
.laureate-portrait-item .photo-credit {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-style: italic;
}
.laureate-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 2rem;
}
.laureate-body blockquote {
    border-left: 3px solid var(--magenta-vivid);
    padding: 1.5rem 2rem;
    margin: 0 0 1.5rem 0;
    background: var(--glass-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--dark);
    font-style: italic;
}
.laureate-body blockquote p {
    margin-bottom: 0;
}
.laureate-body p {
    margin-bottom: 1rem;
}
.laureate-body strong {
    font-weight: 700;
}
.laureate-body em {
    font-style: italic;
}

/* Award pages responsive */
@media (max-width: 768px) {
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .award-column {
        padding: 1.5rem;
    }
    .award-timeline {
        padding-left: 2rem;
    }
    .award-timeline::before {
        left: 0.5rem;
    }
    .timeline-entry {
        gap: 0.75rem;
        padding: 1rem;
    }
    .timeline-entry::before {
        left: -1.6rem;
        top: 1.5rem;
        transform: none;
        width: 10px;
        height: 10px;
    }
    .timeline-portrait {
        width: 36px;
        height: 36px;
    }
}

/* Award pages - Smartphone (kleine Bildschirme) */
@media (max-width: 480px) {
    .award-section {
        padding: 4rem 1rem;
    }
    .award-column {
        padding: 1rem;
        border-radius: var(--radius);
    }
    .award-column-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .award-intro-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    .award-jury-text {
        margin-top: 1rem;
        padding-top: 1rem;
        font-size: 0.9rem;
    }
    .award-timeline {
        padding-left: 1.5rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    .award-timeline::before {
        left: 0.35rem;
    }
    .timeline-entry {
        gap: 0.5rem;
        padding: 0.75rem;
        flex-wrap: wrap;
    }
    .timeline-entry::before {
        left: -1.25rem;
        width: 8px;
        height: 8px;
    }
    .timeline-year {
        font-size: 1.4rem;
        min-width: 3.5ch;
    }
    .timeline-name {
        font-size: 1rem;
        flex: 1;
        min-width: 0;
    }
    .timeline-portraits {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: flex-start;
    }
    .timeline-portrait {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    .btn-outline {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   SECTION WAVE DIVIDERS
   ============================================ */

/* Reusable wave at the top of a section.
   The wave shows the PREVIOUS section's color flowing into the current one.
   Apply via ::before on the section that receives the wave. */

/* Cream → Dark transition (Sponsors → Footer dark area).
   Wave sits at bottom of sponsors, cream flows into dark. */
.sponsors-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1;
    background: var(--cream);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,30 Q240,5 480,30 Q720,55 960,30 Q1200,5 1440,30 L1440,60 Z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,30 Q240,5 480,30 Q720,55 960,30 Q1200,5 1440,30 L1440,60 Z' fill='%23fff'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    pointer-events: none;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO BUTTON
   ============================================ */
.btn-hero {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--magenta-vivid), var(--magenta-deep));
    border: none;
    border-radius: 3rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 24px rgba(212, 20, 90, 0.4);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 20, 90, 0.55);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.hero-buttons .btn-hero {
    margin-top: 0;
}
.btn-hero-secondary {
    background: transparent;
    border: 2px solid white;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
}

/* ============================================
   SPECIAL EVENT SECTION
   ============================================ */
.special-event-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 100%);
}
.special-event-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.special-event-content .section-title {
    margin-bottom: 2rem;
}
.special-event-card {
    display: flex;
    justify-content: center;
}
.special-event-card .event-card-link {
    width: 100%;
    max-width: 700px;
}
.special-event-card .event-card {
    grid-template-columns: 1fr 1.5fr;
}
.special-event-card .card-img-wrapper {
    aspect-ratio: 3 / 4;
}
.special-event-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
}
.special-event-card .card-author {
    font-size: 1.5rem;
}
.special-event-card .card-title {
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .special-event-card .event-card {
        grid-template-columns: 1fr;
    }
    .special-event-card .card-img-wrapper {
        aspect-ratio: 16 / 9;
    }
}

/* ============================================
   AWARDS SECTION (Literaturpreis & Übersetzerpreis)
   ============================================ */
.awards-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--cream) 100%);
}
.awards-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.awards-content .section-title {
    margin-bottom: 2rem;
}
.awards-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}
.awards-cards .event-card-link {
    width: 100%;
    height: 100%;
}
.awards-cards .event-card {
    grid-template-columns: 1fr;
    height: 100%;
}
.awards-cards .card-img-wrapper {
    aspect-ratio: 16 / 10;
}
.awards-cards .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .awards-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   REDUCED MOTION (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-video {
        display: none; /* Show fallback image instead */
    }
    .hero-content {
        animation: none !important;
    }
}
