/*
 * Startseite Styles
 * Ausgelagert aus template-startseite.php fuer bessere Wartbarkeit und Caching.
 */

/* --- 0. GLOBAL FIXES --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; width: 100%; max-width: 100%; }
body { font-family: 'Inter', sans-serif; color: #2d3748; line-height: 1.6; }

/* --- LOGO UPGRADE: STARTSEITE SPEZIFISCH --- */
.site-header .site-logo {
    position: relative;
    padding: 40px; /* Mehr Platz für den Watercolor-Rahmen */
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.site-header .site-logo:hover {
    transform: scale(1.08) rotate(-1deg);
}
.site-header .site-logo img {
    max-width: 350px !important; /* Logo deutlich vergrößert */
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
}

/* Der zerlaufende, knallige Watercolor-Rahmen */
.site-header .site-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    /* Knallige Farben: Pink, Neon-Türkis, Blau, Koralle */
    background: radial-gradient(circle at 20% 20%, #ff00cc, transparent 45%),
                radial-gradient(circle at 80% 80%, #00f2fe, transparent 45%),
                radial-gradient(circle at 50% 50%, #4facfe, transparent 55%),
                radial-gradient(circle at 80% 20%, #f5576c, transparent 50%),
                radial-gradient(circle at 20% 80%, #fdf497, transparent 40%);
    filter: blur(15px) url(#watercolor-melting);
    opacity: 0.8;
    z-index: 1;
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
    animation: watercolor-morph 12s ease-in-out infinite alternate;
}

@keyframes watercolor-morph {
    0% { border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    33% { border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; transform: translate(-50%, -50%) rotate(4deg) scale(1.05); }
    66% { border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%; transform: translate(-50%, -50%) rotate(-4deg) scale(0.95); }
    100% { border-radius: 45% 55% 55% 45% / 55% 45% 45% 55%; transform: translate(-50%, -50%) rotate(2deg) scale(1.02); }
}

/* --- 1. SETUP & BACKGROUND --- */
.startseite-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background: linear-gradient(135deg, #fff1eb 0%, #ace0f9 100%);
}

/* Floating Emojis CSS */
.bg-emoji {
    position: fixed;
    bottom: -10vh;
    z-index: 0; 
    opacity: 0;
    pointer-events: none;
    animation: riseUp linear forwards;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
    user-select: none;
}

@keyframes riseUp {
    0% { bottom: -10vh; transform: translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; } 
    80% { opacity: 0.4; }
    100% { bottom: 110vh; transform: translateX(50px) rotate(360deg); opacity: 0; }
}

.main-container {
    max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 6rem;
    position: relative; z-index: 1; width: 100%;
}

/* --- STARTSEITE: SHARED HELPERS (INLINE-STYLE REDUCTION) --- */
.start-filter-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.glass-section--highlight {
    border: 2px solid rgba(255, 99, 71, 0.4);
}

.hero-badge--warning {
    background: #fff5f5;
    color: #c53030;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 99, 71, 0.2);
}

.section-subtitle--lead {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: #2d3748;
}

.copy-lead-gap {
    margin-bottom: 12px;
}

.copy-highlight {
    color: #c53030;
}

.support-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: -1.1rem 0 1.5rem;
}

.support-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 999px;
    padding: 0.4rem 0.72rem;
}

.progress-bar-content {
    background: linear-gradient(90deg, #38ef7d, #11998e);
}

.progress-bar-vr {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.funding-note {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
}

.funding-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.funding-cta-note {
    margin: 0.75rem 0 0.45rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.funding-quick-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.quick-donate-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 172, 254, 0.35);
    background: rgba(79, 172, 254, 0.08);
    color: #2563eb;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quick-donate-chip:hover {
    transform: translateY(-1px);
    background: rgba(79, 172, 254, 0.15);
    border-color: rgba(79, 172, 254, 0.6);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.funding-card--stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fdfbfb, #ebedee);
}

.funding-card-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.funding-card-heading {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2d3748;
}

.funding-card-subtext {
    font-size: 0.9rem;
    color: #718096;
    margin: 0.5rem 0 1.5rem;
}

.funding-history {
    background: rgba(0, 0, 0, 0.03);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #718096;
}

.funding-how-link {
    margin-top: 1rem;
    display: block;
    color: #4facfe;
    font-weight: 700;
    text-decoration: none;
}

.funding-how-link:hover {
    text-decoration: underline;
}

.thumb-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.thumb-fallback--white {
    color: #fff;
}

.empty-state-inline {
    text-align: center;
    width: 100%;
}

.section-cta-center {
    text-align: center;
    margin-top: 2rem;
}

.ebook-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ebook-copy {
    color: #4a5568;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.ebook-copy--dark {
    color: #ddd;
    font-size: 0.95rem;
}

.ebook-links-row {
    display: flex;
    gap: 10px;
}

.service-item-label,
.social-label {
    font-weight: 700;
}

.service-item--all {
    background: #e0f2fe;
    color: #0284c7;
}

.cta-footer {
    text-align: center;
    margin-top: 4rem;
}

.cta-footer-title {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
}

.konami-emoji {
    font-size: 3rem;
}

/* --- 2. ANIMATIONS --- */
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes glowPulse { 0% { box-shadow: 0 0 5px rgba(79, 172, 254, 0.5); } 50% { box-shadow: 0 0 20px rgba(79, 172, 254, 0.8); } 100% { box-shadow: 0 0 5px rgba(79, 172, 254, 0.5); } }
@keyframes livePulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 239, 125, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 239, 125, 0); } }

/* Static Background Icons */
.bg-icon { position: absolute; opacity: 0.05; z-index: -1; pointer-events: none; animation: float 6s ease-in-out infinite; }
.icon-1 { top: 5%; left: 5%; width: 150px; color: #4facfe; }
.icon-2 { top: 20%; right: 10%; width: 100px; color: #ff6b6b; animation-delay: 2s; }
.icon-3 { bottom: 15%; left: 10%; width: 120px; color: #00f2fe; animation-delay: 4s; }

/* --- 3. SEARCH --- */
.hero-search-section { margin: 2rem 0 3rem; text-align: center; padding: 0 10px; }
.hero-search-wrapper {
    position: relative; max-width: 600px; width: 100%; margin: 0 auto;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
    border-radius: 50px; padding: 8px; border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.15); display: flex; transition: transform 0.3s;
}
.hero-search-wrapper:hover { transform: translateY(-2px); }
.hero-search-input { flex-grow: 1; border: none; background: transparent; padding: 12px 20px; font-size: 1.1rem; color: #2d3748; outline: none; min-width: 0; }
.hero-search-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; border: none;
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}

/* --- 4. SECTIONS --- */
.glass-section {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); border-radius: 24px;
    padding: 3rem 2rem; margin-bottom: 3rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6); position: relative; overflow: hidden;
}
.glass-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #4facfe, #00f2fe, #ff6b6b); background-size: 200% 100%;
    animation: shimmer 4s infinite linear;
}
.section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; text-align: center;
    background: linear-gradient(135deg, #4facfe, #ff6b6b); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-subtitle { text-align: center; color: #4a5568; max-width: 700px; margin: 0 auto 3rem; font-size: 1.1rem; }

/* --- FUNDING & VOTING --- */
.funding-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.funding-card { background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.funding-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 10px; }
.funding-title { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.funding-badge { background: #ebf8ff; color: #2b6cb0; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

.progress-track { height: 24px; background: #e2e8f0; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 0.8rem; }
.progress-bar { height: 100%; width: 0; transition: width 1.5s ease-out; position: relative; animation: glowPulse 3s infinite; border-radius: 12px; }
.progress-stripe {
    position: absolute; top:0; left:0; right:0; bottom:0;
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem; animation: shimmer 1s linear infinite;
}

/* VOTING STYLES */
.voting-container { margin-top: 1.5rem; background: #f7fafc; padding: 1rem; border-radius: 12px; max-height: 300px; overflow-y: auto; }
.voting-title { font-size: 0.85rem; text-transform: uppercase; color: #a0aec0; font-weight: 700; margin-bottom: 1rem; display: block; letter-spacing: 0.5px; }
.vote-item { margin-bottom: 0.8rem; }
.vote-label { display: block; font-size: 0.9rem; font-weight: 600; color: #4a5568; margin-bottom: 4px; }
.vote-track { height: 8px; background: #edf2f7; border-radius: 4px; overflow: hidden; width: 100%; }
.vote-bar { height: 100%; background: #4facfe; border-radius: 4px; width: 0%; transition: width 1s ease-out; }

.vote-btn {
    display: block; width: 100%; text-align: center; margin-top: 1rem;
    background: transparent; border: 1px dashed #cbd5e0; color: #718096;
    padding: 8px; border-radius: 8px; font-size: 0.85rem; cursor: pointer; text-decoration: none; transition: 0.3s;
}
.vote-btn:hover { background: #fff; border-color: #4facfe; color: #4facfe; }

/* --- CARDS & GRIDS --- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.article-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; position: relative; }
.article-card:hover { transform: translateY(-5px); }
.article-thumb { height: 180px; background: #e2e8f0; position: relative; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-excerpt { font-size: 0.95rem; color: #4a5568; flex-grow: 1; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-link { color: #4facfe; font-weight: 600; font-size: 0.9rem; }

.article-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.85rem; color: #a0aec0; }

/* Meta View Styles */
.view-count { display: flex; align-items: center; gap: 4px; color: #718096; font-weight: 600; }

/* LIVE INDICATOR STYLE */
.live-indicator {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0, 0, 0, 0.75); color: #fff;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    backdrop-filter: blur(4px); z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.live-dot {
    width: 8px; height: 8px; background: #38ef7d;
    border-radius: 50%; display: inline-block;
    animation: livePulse 2s infinite;
}

/* --- TAG CLOUD --- */
.tag-cloud-container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-pill {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(79, 172, 254, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tag-pill:hover {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

/* Tag Count Badge */
.tag-count {
    background: rgba(79, 172, 254, 0.15);
    color: #2b6cb0;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s;
}
.tag-pill:hover .tag-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* --- EBOOKS & SOCIAL --- */
.ebook-grid, .social-grid, .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.ebook-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.3s; }
.ebook-card:hover { transform: translateY(-5px); }
.ebook-head { padding: 2rem; background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; text-align: center; }
.ebook-head h3 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.ebook-btn { padding: 10px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; text-decoration: none; text-align: center; flex: 1; display:flex; align-items:center; justify-content:center; white-space: nowrap; }
.ebook-btn.pdf { background: #4facfe; color: white; }
.ebook-btn.epub { background: #e0f2fe; color: #0284c7; }

/* MATRIX STYLE */
.ebook-card.matrix-style { background-color: #080808; border: 2px solid #39ff14; box-shadow: 0 0 15px rgba(57, 255, 20, 0.2); font-family: 'Courier New', monospace; }
.ebook-card.matrix-style .ebook-head { background: transparent; color: #e0ffdb; border-bottom: 1px solid #39ff14; text-shadow: 0 0 10px rgba(57, 255, 20, 0.8); }
.ebook-card.matrix-style .ebook-btn { background: #39ff14; color: #000; border: 2px solid #39ff14; }

.social-card { background: rgba(255,255,255,0.8); padding: 2rem; border-radius: 20px; text-align: center; text-decoration: none; color: #2d3748; transition: transform 0.3s; border: 1px solid rgba(0,0,0,0.05); }
.social-card:hover { transform: translateY(-5px); background: #fff; }
.social-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* --- BUTTONS --- */
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.btn { padding: 14px 32px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-primary { background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(79, 172, 254, 0.4); }
.btn-secondary { background: white; color: #4facfe; border: 2px solid rgba(79, 172, 254, 0.2); }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-item { background: rgba(255,255,255,0.7); padding: 1.5rem; border-radius: 16px; text-align: center; transition: 0.3s; text-decoration: none; color: inherit; border: 1px solid rgba(0,0,0,0.05); }
.service-item:hover { background: #fff; transform: translateY(-5px); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* --- STARTSEITEN UPDATE-WARNUNG --- */
.site-update-alert {
    --alert-border: rgba(255, 76, 132, 0.4);
    --alert-bg:
        radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.65) 0, rgba(255, 255, 255, 0) 35%),
        linear-gradient(135deg, #fff7f1 0%, #ffe6f2 42%, #e6f2ff 100%);
    --alert-shadow: 0 16px 36px rgba(234, 88, 12, 0.17);
    --alert-bar: linear-gradient(180deg, #fb7185 0%, #f97316 100%);
    --badge-color: #7a0d35;
    --badge-bg: rgba(255, 255, 255, 0.88);
    --badge-border: rgba(251, 113, 133, 0.35);
    --badge-dot: #fb7185;
    --title-color: #7a0d35;
    --body-color: #3f1d3a;
    --console-bg: linear-gradient(150deg, rgba(17,24,39,0.95), rgba(49,15,58,0.92));
    --console-border: rgba(125, 211, 252, 0.35);
    --pill-color: #67e8f9;
    --pill-bg: rgba(103, 232, 249, 0.11);
    --pill-border: rgba(103, 232, 249, 0.3);
    --percent-color: #fbcfe8;
    --phase-color: #bae6fd;
    --feature-bg: rgba(255, 255, 255, 0.76);
    --feature-border: rgba(251, 113, 133, 0.23);
    --feature-color: #3f1d3a;
    --feature-title: #7a0d35;
    --progress-bg: linear-gradient(90deg, #22d3ee 0%, #60a5fa 36%, #f472b6 72%, #f97316 100%);

    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto 2rem;
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 22px;
    border: 2px solid var(--alert-border);
    background: var(--alert-bg);
    box-shadow: var(--alert-shadow);
    overflow: hidden;
    animation: update-alert-glow 3.2s ease-in-out infinite;
}
.site-update-alert::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: var(--alert-bar);
}
.site-update-alert::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-15deg);
    animation: update-scan 4.8s linear infinite;
}
.site-update-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.2rem;
    animation: update-icon-pulse 2s ease-in-out infinite;
}
.site-update-content {
    width: 100%;
    position: relative;
    z-index: 4;
}
.site-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    color: var(--badge-color);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    margin-bottom: 0.62rem;
}
.site-update-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--badge-dot);
    box-shadow: 0 0 0 rgba(251, 113, 133, 0.7);
    animation: update-dot-ping 1.4s infinite;
}
.site-update-content h3 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.22rem, 3.5vw, 1.9rem);
    font-weight: 900;
    color: var(--title-color);
    line-height: 1.2;
}
.site-update-lead {
    margin: 0 0 0.45rem;
    font-size: 1.01rem;
    font-weight: 700;
    color: var(--body-color);
    line-height: 1.5;
}
.site-update-text {
    margin: 0 0 0.85rem;
    color: var(--body-color);
    font-size: 0.95rem;
    line-height: 1.5;
}
.site-update-console {
    margin: 0 0 0.9rem;
    padding: 0.95rem;
    border-radius: 14px;
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 22px rgba(17, 24, 39, 0.28);
    color: #dbeafe;
    position: relative;
    overflow: hidden;
}
.update-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}
.update-status-pill {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pill-color);
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
}
.update-percent {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--percent-color);
    min-width: 46px;
    text-align: right;
}
.update-progress-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(148, 163, 184, 0.24);
    overflow: hidden;
}
.update-progress-bar {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    transition: width 0.26s ease;
    background: var(--progress-bg);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.6);
}
.update-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
    animation: update-bar-shine 1s linear infinite;
}
.site-update-phase {
    margin: 0.62rem 0 0;
    color: var(--phase-color);
    font-size: 0.87rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 1.3em;
}
.update-progress-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}
.update-progress-burst span {
    position: absolute;
    left: 50%;
    top: 57%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef08a, #fb7185);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
}
.update-progress-burst span:nth-child(1) { --dx: -135px; --dy: -18px; }
.update-progress-burst span:nth-child(2) { --dx: -118px; --dy: 42px; }
.update-progress-burst span:nth-child(3) { --dx: -72px; --dy: -80px; }
.update-progress-burst span:nth-child(4) { --dx: -32px; --dy: 92px; }
.update-progress-burst span:nth-child(5) { --dx: 22px; --dy: -102px; }
.update-progress-burst span:nth-child(6) { --dx: 88px; --dy: 84px; }
.update-progress-burst span:nth-child(7) { --dx: 126px; --dy: 24px; }
.update-progress-burst span:nth-child(8) { --dx: 108px; --dy: -68px; }
.update-progress-burst span:nth-child(9) { --dx: 52px; --dy: 106px; }
.update-progress-burst span:nth-child(10) { --dx: -6px; --dy: -116px; }
.site-update-alert.is-burst .update-progress-track {
    animation: update-track-shake 0.22s linear 4;
}
.site-update-alert.is-burst .update-progress-burst span {
    animation: update-spark 0.9s cubic-bezier(0.15, 0.8, 0.25, 1) forwards;
}
.site-update-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 0.55rem;
}
.site-update-feature {
    text-align: left;
    padding: 0.62rem 0.72rem;
    border-radius: 11px;
    border: 1px solid var(--feature-border);
    background: var(--feature-bg);
    color: var(--feature-color);
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 4px 16px rgba(244, 114, 182, 0.08);
}
.site-update-feature strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--feature-title);
    font-size: 0.84rem;
}
.site-update-flash {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.45) 24%, rgba(255, 255, 255, 0) 62%);
    mix-blend-mode: screen;
}
.site-update-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.site-update-particles span {
    position: absolute;
    left: var(--sx);
    top: var(--sy);
    width: var(--size, 6px);
    height: var(--size, 6px);
    border-radius: 50%;
    background: linear-gradient(140deg, rgba(255,255,255,0.95), rgba(56,189,248,0.85));
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
    opacity: 0.42;
    transform: translate3d(0, 0, 0);
    animation: update-particle-float var(--dur, 7s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
.site-update-particles span:nth-child(1) { --sx: 8%; --sy: 22%; --size: 5px; --px: 18px; --py: -24px; --dur: 8.4s; --delay: -1.1s; }
.site-update-particles span:nth-child(2) { --sx: 16%; --sy: 68%; --size: 6px; --px: -16px; --py: -28px; --dur: 7.2s; --delay: -2.6s; }
.site-update-particles span:nth-child(3) { --sx: 24%; --sy: 36%; --size: 4px; --px: 20px; --py: -22px; --dur: 6.8s; --delay: -3.2s; }
.site-update-particles span:nth-child(4) { --sx: 33%; --sy: 76%; --size: 5px; --px: 14px; --py: -30px; --dur: 8.1s; --delay: -0.7s; }
.site-update-particles span:nth-child(5) { --sx: 42%; --sy: 24%; --size: 6px; --px: -18px; --py: -26px; --dur: 7.6s; --delay: -1.9s; }
.site-update-particles span:nth-child(6) { --sx: 51%; --sy: 64%; --size: 5px; --px: 16px; --py: -24px; --dur: 6.9s; --delay: -2.3s; }
.site-update-particles span:nth-child(7) { --sx: 60%; --sy: 34%; --size: 4px; --px: -14px; --py: -20px; --dur: 7.8s; --delay: -3.1s; }
.site-update-particles span:nth-child(8) { --sx: 68%; --sy: 74%; --size: 6px; --px: 20px; --py: -32px; --dur: 8.7s; --delay: -1.5s; }
.site-update-particles span:nth-child(9) { --sx: 76%; --sy: 28%; --size: 5px; --px: -15px; --py: -21px; --dur: 7.1s; --delay: -2.2s; }
.site-update-particles span:nth-child(10) { --sx: 84%; --sy: 66%; --size: 4px; --px: 13px; --py: -23px; --dur: 6.6s; --delay: -0.9s; }
.site-update-particles span:nth-child(11) { --sx: 91%; --sy: 44%; --size: 6px; --px: -18px; --py: -28px; --dur: 8.9s; --delay: -2.7s; }
.site-update-particles span:nth-child(12) { --sx: 72%; --sy: 12%; --size: 5px; --px: 12px; --py: -18px; --dur: 7.3s; --delay: -1.3s; }
.site-update-alert.is-burst .site-update-flash {
    animation: update-flash 0.75s ease-out;
}
.site-update-alert.is-burst .site-update-particles span {
    opacity: 0.95;
    filter: saturate(1.3) brightness(1.15);
}
.site-update-alert.theme-cyber {
    --alert-border: rgba(34, 211, 238, 0.55);
    --alert-bg:
        radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.38) 0, rgba(34, 211, 238, 0) 32%),
        linear-gradient(140deg, #081326 0%, #12203a 42%, #2a103d 100%);
    --alert-shadow: 0 20px 44px rgba(8, 145, 178, 0.28);
    --alert-bar: linear-gradient(180deg, #22d3ee 0%, #60a5fa 100%);
    --badge-color: #e0f2fe;
    --badge-bg: rgba(15, 23, 42, 0.62);
    --badge-border: rgba(56, 189, 248, 0.45);
    --badge-dot: #22d3ee;
    --title-color: #e0f2fe;
    --body-color: #bae6fd;
    --console-bg: linear-gradient(150deg, rgba(6, 16, 32, 0.95), rgba(9, 29, 46, 0.92));
    --console-border: rgba(34, 211, 238, 0.4);
    --pill-color: #67e8f9;
    --pill-bg: rgba(103, 232, 249, 0.12);
    --pill-border: rgba(34, 211, 238, 0.36);
    --percent-color: #f0f9ff;
    --phase-color: #a5f3fc;
    --feature-bg: rgba(15, 23, 42, 0.52);
    --feature-border: rgba(34, 211, 238, 0.34);
    --feature-color: #dbeafe;
    --feature-title: #67e8f9;
    --progress-bg: linear-gradient(90deg, #22d3ee 0%, #38bdf8 38%, #818cf8 68%, #f472b6 100%);
}
.site-update-alert.theme-street {
    --alert-border: rgba(249, 115, 22, 0.55);
    --alert-bg:
        radial-gradient(circle at 92% 12%, rgba(254, 240, 138, 0.42) 0, rgba(254, 240, 138, 0) 36%),
        linear-gradient(138deg, #111827 0%, #3f2b12 45%, #5b1a1a 100%);
    --alert-shadow: 0 20px 45px rgba(249, 115, 22, 0.28);
    --alert-bar: linear-gradient(180deg, #f97316 0%, #ef4444 100%);
    --badge-color: #fff7ed;
    --badge-bg: rgba(17, 24, 39, 0.62);
    --badge-border: rgba(251, 146, 60, 0.5);
    --badge-dot: #f97316;
    --title-color: #fff7ed;
    --body-color: #fed7aa;
    --console-bg: linear-gradient(150deg, rgba(9, 9, 11, 0.95), rgba(41, 20, 11, 0.92));
    --console-border: rgba(251, 146, 60, 0.42);
    --pill-color: #fdba74;
    --pill-bg: rgba(249, 115, 22, 0.15);
    --pill-border: rgba(251, 146, 60, 0.38);
    --percent-color: #fef3c7;
    --phase-color: #fde68a;
    --feature-bg: rgba(17, 24, 39, 0.52);
    --feature-border: rgba(251, 146, 60, 0.3);
    --feature-color: #ffedd5;
    --feature-title: #fdba74;
    --progress-bg: linear-gradient(90deg, #f97316 0%, #fb7185 40%, #ef4444 70%, #f59e0b 100%);
}
.site-update-alert.theme-clean {
    --alert-border: rgba(59, 130, 246, 0.42);
    --alert-bg:
        radial-gradient(circle at 90% 10%, rgba(191, 219, 254, 0.62) 0, rgba(191, 219, 254, 0) 38%),
        linear-gradient(135deg, #f8fafc 0%, #e0f2fe 42%, #f3e8ff 100%);
    --alert-shadow: 0 18px 40px rgba(59, 130, 246, 0.2);
    --alert-bar: linear-gradient(180deg, #38bdf8 0%, #6366f1 100%);
    --badge-color: #1d4ed8;
    --badge-bg: rgba(255, 255, 255, 0.9);
    --badge-border: rgba(96, 165, 250, 0.4);
    --badge-dot: #38bdf8;
    --title-color: #1e3a8a;
    --body-color: #334155;
    --console-bg: linear-gradient(150deg, rgba(12, 26, 54, 0.95), rgba(34, 54, 92, 0.92));
    --console-border: rgba(96, 165, 250, 0.38);
    --pill-color: #bfdbfe;
    --pill-bg: rgba(191, 219, 254, 0.12);
    --pill-border: rgba(147, 197, 253, 0.34);
    --percent-color: #f1f5f9;
    --phase-color: #cbd5e1;
    --feature-bg: rgba(255, 255, 255, 0.8);
    --feature-border: rgba(148, 163, 184, 0.3);
    --feature-color: #1e293b;
    --feature-title: #1d4ed8;
    --progress-bg: linear-gradient(90deg, #38bdf8 0%, #60a5fa 38%, #818cf8 68%, #c084fc 100%);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .glass-section { padding: 2rem 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .ebook-actions { flex-direction: column; }
    .site-update-alert {
        flex-direction: column;
        gap: 0.9rem;
        padding: 1.2rem 1rem 1.1rem 1rem;
    }
    .site-update-icon { font-size: 2rem; }
    .site-update-console { padding: 0.8rem; }
    .site-update-feature-grid { grid-template-columns: 1fr; }
    .site-update-particles span:nth-child(n+9) { display: none; }
    .site-header .site-logo img { max-width: 250px !important; }
}
@media (max-width: 480px) {
    .funding-grid, .ebook-grid, .articles-grid, .social-grid { grid-template-columns: 1fr; }
}

@keyframes update-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
@keyframes update-dot-ping {
    0% { box-shadow: 0 0 0 0 rgba(240, 62, 62, 0.65); }
    70% { box-shadow: 0 0 0 8px rgba(240, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 62, 62, 0); }
}
@keyframes update-alert-glow {
    0%, 100% {
        transform: translateY(0);
        filter: saturate(1);
    }
    50% {
        transform: translateY(-2px);
        filter: saturate(1.15);
    }
}
@keyframes update-scan {
    0% { left: -40%; }
    100% { left: 140%; }
}
@keyframes update-bar-shine {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(180%); }
}
@keyframes update-track-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}
@keyframes update-spark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.7);
    }
}
@keyframes update-particle-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.9);
        opacity: 0.22;
    }
    50% {
        transform: translate3d(var(--px, 20px), var(--py, -26px), 0) scale(1.35);
        opacity: 0.88;
    }
}
@keyframes update-flash {
    0% { opacity: 0; transform: scale(0.78); }
    18% { opacity: 0.9; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* --- ACCESSIBILITY: STARK SICHTBARER KEYBOARD-FOCUS --- */
:where(
    .hero-search-input,
    .hero-search-btn,
    .btn,
    .quick-donate-chip,
    .ebook-btn,
    .vote-btn,
    .tag-pill,
    .service-item,
    .social-card,
    .article-card
):focus-visible {
    outline: 3px solid #0f172a;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 6px rgba(15, 23, 42, 0.35);
}

:where(.hero-search-wrapper):focus-within {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

#konamiModal {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    z-index: 12000;
    width: min(92vw, 360px);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    background: linear-gradient(140deg, rgba(2, 6, 23, 0.96), rgba(30, 58, 138, 0.9));
    color: #f8fafc;
    text-align: center;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(125, 211, 252, 0.35);
    transition: transform 0.35s ease, opacity 0.35s ease;
}
#konamiModal.visible {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}
#konamiModal h3 {
    margin: 0.4rem 0 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
@media (prefers-reduced-motion: reduce) {
    .site-update-alert,
    .site-update-alert::after,
    .site-update-icon,
    .site-update-badge::before,
    .update-progress-bar::after,
    .site-update-particles span {
        animation: none !important;
    }
    .update-progress-bar {
        transition: none;
    }
}
