/* ==========================================================================
   LOOT FÜR DIE WELT - OFFICIAL CI DESIGN SYSTEM (V3.3 - REFINED BALANCE)
   Corporate Colors:
   - #FFFFFF (White)
   - #000000 (Black)
   - #103b47 (Dark Teal / Petrol)
   - #00485B (Petrol Blue)
   - #FFD34E (LFDW Gold / Warm Yellow)
   - #BD4932 (LFDW Red / Brick Red)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

@font-face {
    font-family: 'Troika';
    src: url('/fonts/Troika.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* OFFICIAL CI PALETTE */
    --ci-white: #ffffff;
    --ci-black: #000000;
    --ci-dark-teal: #103b47;
    --ci-petrol: #00485B;
    --ci-gold: #FFD34E;
    --ci-red: #BD4932;

    /* SURFACES & THEME (Darker, richer petrol base - 20% darker) */
    --bg-base: #061116;
    --bg-surface: #0e2832;
    --bg-card: rgba(14, 40, 50, 0.82);
    --bg-card-hover: rgba(0, 72, 91, 0.75);
    --border-subtle: rgba(0, 72, 91, 0.65);
    --border-red: rgba(189, 73, 50, 0.55);

    /* ACCENTS & GLOWS */
    --accent-red: #BD4932;
    --accent-gold: #FFD34E;
    --gold-glow-soft: rgba(255, 211, 78, 0.15);

    /* TYPOGRAPHY */
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-dim: #799ba6;
    --success: #10b981;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --max-w: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(ellipse at 50% -5%, rgba(255, 211, 78, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(0, 72, 91, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 15% 42%, rgba(189, 73, 50, 0.06) 0%, transparent 40%),
        linear-gradient(rgba(6, 17, 22, 0.78), rgba(10, 31, 39, 0.84)), 
        url('/img/background.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.lfdw-title {
    font-family: 'Troika', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-wrap: balance;
}

.mono-num {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* --- PREVIEW BANNER --- */
.preview-banner {
    background: linear-gradient(90deg, #0a1f27, #00485B);
    border-bottom: 1px solid rgba(0, 72, 91, 0.7);
    padding: 8px 16px;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.preview-banner .banner-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
}

.preview-banner .banner-tag {
    background: var(--ci-red);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- TOP BAR (3-ZONE CONTRACT) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 27, 34, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 72, 91, 0.65);
    transition: background 0.3s, border-color 0.3s;
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Zone 1: Brand Wordmark */
.brand-wordmark {
    font-family: 'Troika', sans-serif;
    font-size: 1.5rem;
    color: var(--ci-white);
    text-decoration: none;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.brand-wordmark:hover {
    transform: scale(1.02);
}

/* Clean red '13' without yellow glow */
.brand-wordmark .accent-dot {
    color: var(--ci-red);
    text-shadow: none;
    font-weight: normal;
}

/* Zone 2: Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--ci-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ci-red);
    box-shadow: 0 0 6px rgba(189, 73, 50, 0.4);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-disabled {
    opacity: 0.35 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.nav-link.nav-disabled:hover {
    color: #64748b !important;
}

.nav-link.nav-disabled::after {
    display: none !important;
}

/* Zone 3: Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Header total pill - matching subtle dark ground color without yellow border */
.header-total-pill {
    background: rgba(6, 17, 22, 0.75);
    border: 1px solid rgba(0, 72, 91, 0.65);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
}

.header-total-pill .pill-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-total-pill .pill-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ci-gold);
}

/* BUTTONS */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

/* Primary Button - pure Red without yellow border */
.btn-cta-primary {
    background: var(--ci-red);
    color: #ffffff;
    border: 1px solid #9c3b28;
    box-shadow: 0 4px 14px rgba(189, 73, 50, 0.35);
}

.btn-cta-primary:hover {
    background: #d4533a;
    border-color: #BD4932;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(189, 73, 50, 0.5);
}

/* Secondary Button - dark petrol ground without yellow border */
.btn-cta-secondary {
    background: rgba(0, 72, 91, 0.5);
    color: var(--ci-white);
    border: 1px solid rgba(0, 72, 91, 0.85);
}

.btn-cta-secondary:hover {
    background: rgba(0, 72, 91, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px;
}

/* --- MAIN CONTAINER --- */
.main-wrapper {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    line-height: 1.05;
    margin-bottom: 1.2rem;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.hero-amount-display {
    margin: 2rem 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.hero-amount-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hero-amount-number {
    font-family: 'Troika', sans-serif;
    font-size: clamp(3.4rem, 9.5vw, 6.4rem);
    line-height: 1;
    letter-spacing: 2px;
    color: var(--ci-gold);
    background: linear-gradient(180deg, #FFFFFF 15%, #FFD34E 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(255, 211, 78, 0.35)) drop-shadow(0 0 40px rgba(255, 211, 78, 0.15));
}

/* --- NEXT MILESTONE PROGRESS VAULT --- */
.vault-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 72, 91, 0.85);
    border-top: 3px solid var(--ci-red);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    padding: 1.8rem 2.2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 3.5rem 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.vault-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 12px;
}

.vault-target-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vault-target-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ci-gold);
}

.vault-progress-track {
    width: 100%;
    height: 18px;
    background: rgba(6, 17, 22, 0.9);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 72, 91, 0.8);
}

.vault-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ci-red) 0%, var(--ci-gold) 100%);
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 16px rgba(255, 211, 78, 0.4);
}

.vault-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* --- KEY FACTS (ALL 3 TOP BORDERS IN RED AS REQUESTED) --- */
.key-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.fact-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 72, 91, 0.7);
    border-top: 3px solid var(--ci-red);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fact-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.fact-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.fact-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(14, 40, 50, 0.9);
    border: 1px solid rgba(0, 72, 91, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.fact-lead-highlight {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.fact-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- SECTION TYPOGRAPHY --- */
.section-wrapper {
    padding: 3.5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-kicker {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ci-red);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- CHARITIES / SPENDENEMPFÄNGER --- */
.charities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.charity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Charity card hover - clean subtle white/teal border, NOT red */
.charity-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.charity-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #061116;
    position: relative;
}

/* Carrier tag - pure white text as requested */
.charity-carrier-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10, 27, 34, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.charity-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.charity-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.charity-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.5rem;
}

.charity-footer {
    display: flex;
    justify-content: flex-end;
}

/* --- PROGRAMMPLAN TIMELINE --- */
.schedule-timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(0, 72, 91, 0.8);
}

.schedule-row {
    position: relative;
    margin-bottom: 1.8rem;
    padding-left: 1.5rem;
}

.schedule-row::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ci-red);
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 8px rgba(189, 73, 50, 0.4);
}

.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.6rem;
}

.schedule-time-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ci-gold);
    display: inline-block;
    margin-bottom: 0.3rem;
}

.schedule-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

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

/* --- ABOUT STORY & ROTATING GALLERY --- */
.about-box {
    background: var(--bg-card);
    border: 1px solid rgba(0, 72, 91, 0.7);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    min-height: 520px;
}

.about-content-col {
    padding: 3.5rem 2rem 3.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-right: 0;
}

.about-heading {
    font-size: clamp(1.7rem, 2.2vw, 2.15rem);
    margin-bottom: 1.2rem;
    color: #ffffff;
    white-space: nowrap;
}

.about-text-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1;
    white-space: pre-wrap;
    margin-bottom: 2rem;
    max-width: 570px;
}

.about-gallery-col {
    position: relative;
    overflow: hidden;
    background: #061116;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-ambient-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
}

.gallery-ambient-img.active {
    opacity: 1;
}

.gallery-fallback-art {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(14, 40, 50, 0.95), rgba(0, 72, 91, 0.85));
    border-left: 1px solid rgba(0, 72, 91, 0.6);
    z-index: 0;
}

.gallery-deco-watermark {
    max-width: 220px;
    opacity: 0.35;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.gallery-quote-badge {
    background: rgba(6, 17, 22, 0.75);
    border: 1px solid rgba(0, 72, 91, 0.8);
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
}

.gallery-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 40, 50, 0.95) 0%, rgba(14, 40, 50, 0.5) 6%, transparent 16%, transparent 88%, rgba(6, 17, 22, 0.25) 100%);
    pointer-events: none;
    z-index: 2;
}

/* --- LIVE DONATION POPUP TOAST --- */
.live-donation-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: rgba(14, 40, 50, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid var(--ci-red);
    border-radius: var(--radius-md);
    padding: 1rem 1.4rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 16px rgba(189, 73, 50, 0.3);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    max-width: 420px;
}

.live-donation-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-heart {
    font-size: 1.6rem;
    animation: heartBeat 1.2s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid rgba(0, 72, 91, 0.6);
    padding: 2.2rem 0 2rem;
    margin-top: 4.5rem;
    background: #050d11;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--ci-red);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 960px) {
    .key-facts-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .header-total-pill {
        display: none;
    }
    .about-content-col {
        padding: 2.2rem 1.5rem;
        margin-right: 0;
    }
    .about-heading {
        white-space: normal;
    }
}
