/* Icons: Font Awesome Free 6.4.0 (Lizenz: fontawesome.com/license/free), nur die genutzten Symbole, selbst gehostet */

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('assets/fonts/fa-solid-subset.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('assets/fonts/fa-brands-subset.woff2') format('woff2');
}

.fa-solid,
.fa-brands {
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-solid {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.fa-brands {
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
}

.fa-align-left::before { content: "\f036"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-bars::before { content: "\f0c9"; }
.fa-bullhorn::before { content: "\f0a1"; }
.fa-calendar-check::before { content: "\f274"; }
.fa-calendar-days::before { content: "\f073"; }
.fa-calendar-plus::before { content: "\f271"; }
.fa-chart-column::before { content: "\e0e3"; }
.fa-chart-simple::before { content: "\e473"; }
.fa-chevron-down::before { content: "\f078"; }
.fa-chevron-left::before { content: "\f053"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-chevron-up::before { content: "\f077"; }
.fa-circle-play::before { content: "\f144"; }
.fa-clock::before { content: "\f017"; }
.fa-cloud::before { content: "\f0c2"; }
.fa-discord::before { content: "\f392"; }
.fa-eye::before { content: "\f06e"; }
.fa-film::before { content: "\f008"; }
.fa-fire::before { content: "\f06d"; }
.fa-flag::before { content: "\f024"; }
.fa-forward::before { content: "\f04e"; }
.fa-gamepad::before { content: "\f11b"; }
.fa-globe::before { content: "\f0ac"; }
.fa-hand-holding-dollar::before { content: "\f4c0"; }
.fa-heart::before { content: "\f004"; }
.fa-hourglass-half::before { content: "\f252"; }
.fa-house::before { content: "\f015"; }
.fa-lightbulb::before { content: "\f0eb"; }
.fa-link::before { content: "\f0c1"; }
.fa-paw::before { content: "\f1b0"; }
.fa-play::before { content: "\f04b"; }
.fa-rocket::before { content: "\f135"; }
.fa-rotate-right::before { content: "\f2f9"; }
.fa-scale-balanced::before { content: "\f24e"; }
.fa-seedling::before { content: "\f4d8"; }
.fa-star::before { content: "\f005"; }
.fa-stopwatch::before { content: "\f2f2"; }
.fa-tower-broadcast::before { content: "\f519"; }
.fa-trophy::before { content: "\f091"; }
.fa-twitch::before { content: "\f1e8"; }
.fa-user::before { content: "\f007"; }
.fa-user-shield::before { content: "\f505"; }
.fa-users::before { content: "\f0c0"; }
.fa-video::before { content: "\f03d"; }
.fa-xmark::before { content: "\f00d"; }
.fa-youtube::before { content: "\f167"; }

:root {
    --bg-main: #141416;
    --bg-card: #202028;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #8a8af5;
}

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

[hidden] {
    display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

header {
    position: relative;
    background: linear-gradient(to bottom, #1d4ed8, #b91c1c);
    padding: 60px 20px;
    text-align: center;
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

header p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
}

.card h2 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.2s, filter 0.2s;
    flex: 0 1 calc((100% - 30px) / 3);
    min-width: 200px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.btn-youtube { background-color: #a80000; }
.btn-twitch { background-color: #9146ff; }
.btn-discord { background-color: #5865f2; }
.btn-donation { background-color: #198754; }
.btn-taiga { background: linear-gradient(45deg, #ff6fa5, #ff3d81); }
.btn-schedule { background-color: #0f766e; }

.badge-live {
    display: inline-block;
    background: #e03131;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badge-live-pulse 1.5s infinite;
}

@keyframes badge-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.news-item {
    border-left: 3px solid var(--text-muted);
    padding-left: 15px;
}

.news-item .date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-item h3 {
    margin: 10px 0;
    font-size: 1.1rem;
}

.news-item p {
    margin: 0;
    line-height: 1.5;
    color: #cccccc;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 30px;
}

.back-link:hover {
    color: var(--text-main);
}

.subpage-hero {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px 20px 0;
}

.subpage-hero .hero-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.subpage-hero h1 {
    margin: 0 0 8px 0;
    font-size: 1.7rem;
}

.subpage-hero p {
    color: var(--text-muted);
    margin: 0;
}

.icon-youtube { color: #a80000; }
.icon-twitch { color: #9146ff; }
.icon-discord { color: #5865f2; }
.icon-donation { color: #43b581; }

.embed-wrap {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.embed-wrap iframe {
    width: 100%;
    border: 0;
    display: block;
}

.embed-video iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

.cta-final {
    margin-top: 10px;
    display: inline-flex;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
}

.post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post h3 {
    margin: 8px 0;
    font-size: 1.1rem;
}

.post p {
    margin: 8px 0 0;
    line-height: 1.5;
    color: #cccccc;
}

.post-image {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
    object-fit: cover;
}

.posts-empty,
.posts-loading {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 8px 13px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
}

.page-btn:hover:not(:disabled) {
    background: var(--accent-color);
    color: #141416;
}

.page-btn.active {
    background: var(--accent-color);
    color: #141416;
    font-weight: bold;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.calendar-nav .btn {
    flex: none;
    min-width: 0;
    padding: 8px 14px;
}

.calendar-nav h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent-color);
    text-align: center;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: bold;
}

.calendar-day {
    position: relative;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    aspect-ratio: 1;
    background: var(--bg-main);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.08);
}

.calendar-day-empty {
    background: transparent;
    cursor: default;
}

.calendar-day-empty:hover {
    background: transparent;
}

.calendar-day-number {
    font-size: 0.9rem;
}

.calendar-day.has-entry {
    background: rgba(138, 138, 245, 0.25);
    border: 1px solid var(--accent-color);
}

.calendar-day-dot {
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.calendar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.calendar-modal {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
}

.calendar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.calendar-modal-header h3 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.calendar-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.calendar-modal-close:hover {
    color: var(--text-main);
}

.legal-text h3 {
    color: var(--accent-color);
    font-size: 1.05rem;
    margin: 25px 0 10px;
}

.legal-text h3:first-child {
    margin-top: 0;
}

.legal-text p {
    margin: 0 0 12px;
    line-height: 1.6;
    color: #cccccc;
}

.legal-text ul {
    margin: 0 0 12px;
    padding-left: 20px;
    line-height: 1.6;
    color: #cccccc;
}

.legal-text a {
    color: var(--accent-color);
}

.calendar-day.is-today {
    box-shadow: inset 0 0 0 2px var(--text-main);
}

body.modal-open {
    overflow: hidden;
}

.sub-count {
    margin: 0 0 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sub-count strong {
    color: var(--text-main);
}

.embed-consent-box {
    min-height: 240px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    background: var(--bg-main);
}

.embed-consent-box p {
    margin: 0;
    max-width: 460px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.embed-consent-icon {
    font-size: 2rem;
}

.embed-consent-btn {
    flex: none;
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    .badge-live {
        animation: none;
    }

    .btn,
    .calendar-day {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 15px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 15px;
        margin: 25px auto;
    }

    .card {
        padding: 20px;
    }

    .subpage-hero {
        padding: 5px 10px 0;
    }

    .subpage-hero h1 {
        font-size: 1.4rem;
    }

    .profile-pic {
        width: 130px;
        height: 130px;
    }

    .btn {
        flex-basis: 100%;
    }

    .embed-wrap:not(.embed-video) iframe {
        height: 320px;
    }
}

/* ==========================================================
   Animationen: verspielt und wolkig
   Blau (Cloudless) und Rot (Taiga) ziehen sich als Leitmotiv durch.
   ========================================================== */

/* Hintergrund: ein blauer und ein roter Lichtschein wandern langsam */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -220px;
    left: -220px;
    background: radial-gradient(closest-side, rgba(29, 78, 216, 0.16), transparent);
    animation: glow-drift-blue 26s ease-in-out infinite alternate;
}

body::after {
    bottom: -240px;
    right: -220px;
    background: radial-gradient(closest-side, rgba(185, 28, 28, 0.13), transparent);
    animation: glow-drift-red 30s ease-in-out infinite alternate;
}

/* Header: ziehende Wolken */
header {
    overflow: hidden;
    isolation: isolate;
}

header .profile-container {
    position: relative;
    z-index: 1;
}

.header-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    --s: 1;
    position: absolute;
    left: -260px;
    width: 180px;
    height: 54px;
    background: #ffffff;
    border-radius: 999px;
    opacity: 0.09;
    animation: cloud-drift 60s linear infinite;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
}

.cloud::before {
    width: 78px;
    height: 78px;
    top: -38px;
    left: 26px;
}

.cloud::after {
    width: 104px;
    height: 104px;
    top: -56px;
    right: 20px;
}

.cloud-1 { top: 22%; --s: 1; animation-duration: 58s; animation-delay: -6s; }
.cloud-2 { top: 68%; --s: 0.7; opacity: 0.07; animation-duration: 78s; animation-delay: -44s; }
.cloud-3 { top: 40%; --s: 1.3; opacity: 0.06; animation-duration: 96s; animation-delay: -70s; }
.cloud-4 { top: 86%; --s: 0.9; animation-duration: 66s; animation-delay: -28s; }
.cloud-5 { top: 10%; --s: 0.6; opacity: 0.08; animation-duration: 84s; animation-delay: -60s; }

/* Profilbild: Einblenden, Schweben, Glow in Blau und Rot, Wackeln beim Hover */
.profile-pic-wrap {
    display: inline-block;
    margin-bottom: 15px;
    animation: intro-pop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.2) backwards;
}

.profile-float {
    position: relative;
    animation: float-y 6s ease-in-out infinite;
}

.profile-float::before,
.profile-float::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    filter: blur(22px);
    z-index: 0;
}

.profile-float::before {
    background: rgba(96, 165, 250, 0.75);
    animation: glow-swap 8s ease-in-out infinite;
}

.profile-float::after {
    background: rgba(248, 113, 113, 0.7);
    animation: glow-swap 8s ease-in-out -4s infinite;
}

.profile-float .profile-pic {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
}

.profile-pic:hover {
    animation: wiggle 0.7s ease-in-out;
}

header h1 {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
    animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s backwards;
}

header p {
    animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards;
}

/* Unterseiten: Lichtschein und kleine Wolke hinter dem Hero, schwebendes Icon */
.subpage-hero {
    position: relative;
    isolation: isolate;
}

.subpage-hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    width: min(520px, 100%);
    height: 170px;
    background:
        radial-gradient(closest-side at 35% 50%, rgba(29, 78, 216, 0.3), transparent),
        radial-gradient(closest-side at 65% 50%, rgba(185, 28, 28, 0.24), transparent);
    z-index: -1;
    pointer-events: none;
    animation: aura-breathe 9s ease-in-out infinite alternate;
}

.hero-clouds {
    position: absolute;
    top: -40px;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 230px;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.hero-clouds .cloud {
    opacity: 0.05;
}

.hero-clouds .cloud-1 { top: 30%; --s: 0.8; }
.hero-clouds .cloud-2 { top: 62%; --s: 0.55; opacity: 0.04; }

.subpage-hero .hero-icon {
    filter: drop-shadow(0 0 14px currentColor);
    animation:
        fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
        float-y 5s ease-in-out 0.7s infinite;
}

.subpage-hero h1 {
    animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s backwards;
}

.subpage-hero p {
    animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards;
}

/* Karten: Einblenden beim Scrollen (js/animations.js) und Glow beim Hover */
.card {
    transition: box-shadow 0.35s ease;
}

.card:hover {
    box-shadow:
        0 0 0 1px rgba(138, 138, 245, 0.28),
        0 14px 34px -14px rgba(138, 138, 245, 0.35);
}

.anim .card {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
        box-shadow 0.35s ease;
}

.anim .card.is-visible {
    opacity: 1;
    transform: none;
}

/* Sicherheitsnetz: Falls js/animations.js nicht lädt, werden die Karten nach 3 s trotzdem sichtbar */
.anim:not(.anim-ready) .card {
    animation: reveal-fallback 0s linear 3s forwards;
}

/* Buttons: anheben, Glanz-Streifen, hüpfendes Icon */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.3), filter 0.2s, box-shadow 0.25s;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-180%);
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.6);
}

.btn:hover::after {
    transform: translateX(260%);
    transition: transform 0.75s ease;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn:hover > i {
    animation: icon-hop 0.55s ease;
}

.btn-taiga > .fa-heart,
.card h2 .fa-heart {
    animation: heartbeat 1.6s ease-in-out infinite;
}

.page-btn {
    transition: transform 0.2s ease, background 0.2s, color 0.2s;
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

/* Updates: Posts blenden nacheinander ein */
.post {
    animation: fade-up 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.post:nth-child(2) { animation-delay: 0.1s; }
.post:nth-child(3) { animation-delay: 0.2s; }

/* Kalender: Tage ploppen auf, Punkte pulsieren, Popup zoomt */
.calendar-grid > .calendar-day {
    animation: day-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.3) backwards;
    animation-delay: calc(var(--i, 0) * 14ms);
}

.calendar-day {
    transition: background 0.15s, transform 0.2s ease;
}

.calendar-day:not(.calendar-day-empty):hover {
    transform: translateY(-2px);
}

.calendar-day-dot {
    animation: dot-pulse 2s ease-in-out infinite;
}

.calendar-modal-overlay {
    animation: overlay-in 0.25s ease backwards;
}

.calendar-modal {
    animation: modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2) backwards;
}

/* Kleinigkeiten */
.back-link i {
    display: inline-block;
}

.back-link:hover i {
    animation: nudge-left 0.8s ease-in-out infinite;
}

.embed-consent-icon {
    animation: float-y 4s ease-in-out infinite;
}

footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: var(--text-main);
}

/* Keyframes */
@keyframes glow-drift-blue {
    from { transform: translate(0, 0); }
    to { transform: translate(38vw, 30vh); }
}

@keyframes glow-drift-red {
    from { transform: translate(0, 0); }
    to { transform: translate(-36vw, -34vh); }
}

@keyframes cloud-drift {
    from { transform: translateX(0) scale(var(--s)); }
    to { transform: translateX(calc(100vw + 520px)) scale(var(--s)); }
}

@keyframes intro-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: none; }
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes glow-swap {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.1; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(7deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(3deg); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes aura-breathe {
    from { transform: translateX(-50%) scale(0.92); opacity: 0.7; }
    to { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

@keyframes reveal-fallback {
    to { opacity: 1; transform: none; }
}

@keyframes icon-hop {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-4px) scale(1.15); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
    60% { transform: scale(1); }
}

@keyframes day-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: none; }
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

@keyframes overlay-in {
    from { opacity: 0; }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.94); }
}

@keyframes nudge-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}

/* ==========================================================
   Redesign: Himmel-Startbereich, Wir zwei, Chips, Bento-Kacheln,
   Timeline, Bild-Popup, Unterseiten-Himmel, Easter Eggs
   ========================================================== */

@font-face {
    font-family: 'Fredoka';
    src: url('assets/fonts/fredoka-latin-wght-normal.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-fun: 'Fredoka', 'Trebuchet MS', sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

h1,
h2,
h3,
.btn,
.chip,
.hero-status,
.duo-name,
.tile-title,
.calendar-nav h3 {
    font-family: var(--font-fun);
    font-weight: 600;
}

/* Karten mit Blau-Rot-Verlaufsrand und Verlaufs-Überschriften */
.card {
    border: 1px solid transparent;
    border-radius: 16px;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.05) 65%, rgba(239, 68, 68, 0.4)) border-box;
}

.card h2 {
    width: fit-content;
    font-size: 1.35rem;
    background: linear-gradient(90deg, #a5b4fc, #c4b5fd 50%, #f9a8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card h2 > i,
.card h2 .h2-emoji {
    color: #a5b4fc;
}

/* Himmel-Startbereich */
.hero {
    min-height: min(92vh, 780px);
    min-height: min(92svh, 780px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 20px 130px;
    -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 89px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,52 C40,22 110,20 150,48 C185,14 265,8 305,44 C345,18 410,18 445,50 C490,12 575,6 620,46 C660,20 725,22 760,52 C805,14 890,10 935,46 C975,18 1040,20 1075,50 C1120,14 1205,8 1250,46 C1290,22 1350,22 1385,50 C1405,40 1425,38 1440,42 L1440,0 Z' fill='%23000'/%3E%3C/svg%3E") bottom / 100% 90px no-repeat;
    mask: linear-gradient(#000, #000) top / 100% calc(100% - 89px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,52 C40,22 110,20 150,48 C185,14 265,8 305,44 C345,18 410,18 445,50 C490,12 575,6 620,46 C660,20 725,22 760,52 C805,14 890,10 935,46 C975,18 1040,20 1075,50 C1120,14 1205,8 1250,46 C1290,22 1350,22 1385,50 C1405,40 1425,38 1440,42 L1440,0 Z' fill='%23000'/%3E%3C/svg%3E") bottom / 100% 90px no-repeat;
}

.hero .profile-pic {
    width: 170px;
    height: 170px;
}

.hero .hero-kicker {
    margin: 6px 0 0;
    font-family: var(--font-fun);
    font-size: 1.05rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s backwards;
}

.hero h1 {
    margin: 4px 0 14px;
    font-size: clamp(3.4rem, 12vw, 6.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #ffffff 35%, #dbe4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.25));
    animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards;
}

.hero .hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s backwards;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, background 0.25s ease;
    animation: fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero-status:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.status-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #93c5fd;
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: status-ping 1.6s ease-out infinite;
}

.hero-status.is-live .status-dot {
    background: #ff4d4d;
}

.hero-scroll {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 96px;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    text-decoration: none;
    z-index: 2;
    animation: bounce-y 2s ease-in-out infinite;
}

.hero-scroll:hover {
    color: #ffffff;
}

/* Wolken anklickbar machen (Regen) */
.header-clouds .cloud {
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.header-clouds .cloud.is-raining {
    opacity: 0.4;
}

.rain-drop {
    position: absolute;
    top: 30px;
    width: 3px;
    height: 14px;
    border-radius: 3px;
    background: #ffffff;
    animation: rain-fall 0.7s linear infinite backwards;
}

/* Wir zwei */
.duo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 26px;
}

.duo-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.duo-avatar {
    position: relative;
    width: 112px;
    height: 112px;
    padding: 4px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.3);
}

.duo-avatar:hover {
    transform: scale(1.06) rotate(-3deg);
}

.duo-blue .duo-avatar {
    background: linear-gradient(135deg, #60a5fa, #1d4ed8);
    box-shadow: 0 0 28px rgba(59, 130, 246, 0.45);
}

.duo-red .duo-avatar {
    background: linear-gradient(135deg, #f87171, #b91c1c);
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.45);
}

.duo-avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-card);
    display: block;
}

.duo-avatar-icon {
    position: absolute;
    font-size: 2.6rem;
    color: #ffffff;
    animation: heartbeat 1.6s ease-in-out infinite;
}

.duo-name {
    font-size: 1.1rem;
}

.duo-blue .duo-name { color: #93c5fd; }
.duo-red .duo-name { color: #fca5a5; }

.duo-link {
    position: relative;
    width: 130px;
    height: 44px;
    margin-bottom: 34px;
    display: grid;
    place-items: center;
}

.duo-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #3b82f6, #a855f7, #ef4444, #a855f7, #3b82f6);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(90deg, #000 32%, transparent 32% 68%, #000 68%);
    mask: linear-gradient(90deg, #000 32%, transparent 32% 68%, #000 68%);
    animation: line-flow 3s linear infinite;
}

.duo-heart {
    position: relative;
    padding: 0 10px;
    font-size: 1.9rem;
    color: #f43f5e;
    filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.7));
    animation: heartbeat 1.6s ease-in-out infinite;
}

/* Über mich mit Chips */
.about h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.about p {
    margin: 0;
    line-height: 1.65;
    color: #cccccc;
}

.chips {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(138, 138, 245, 0.1);
    border: 1px solid rgba(138, 138, 245, 0.28);
    font-size: 0.98rem;
    font-weight: 500;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.4), background 0.25s;
}

.chip:hover {
    transform: translateY(-3px) rotate(-3deg);
    background: rgba(138, 138, 245, 0.2);
}

.card.is-visible .chip {
    animation: day-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.3) backwards;
}

.card.is-visible .chip:nth-child(1) { animation-delay: 0.3s; }
.card.is-visible .chip:nth-child(2) { animation-delay: 0.4s; }
.card.is-visible .chip:nth-child(3) { animation-delay: 0.5s; }
.card.is-visible .chip:nth-child(4) { animation-delay: 0.6s; }

/* Bento-Kacheln */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(132px, auto);
    gap: 14px;
}

.tile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    min-height: 132px;
    padding: 64px 20px 20px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2), box-shadow 0.3s ease;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 55%);
    z-index: -1;
}

.tile-twitch {
    grid-row: span 2;
    background: linear-gradient(140deg, #a970ff, #6d28d9 55%, #3b0764);
}

.tile-youtube { background: linear-gradient(140deg, #e11d1d, #991b1b 60%, #450a0a); }
.tile-schedule { background: linear-gradient(140deg, #14b8a6, #0f766e 55%, #134e4a); }
.tile-discord { background: linear-gradient(140deg, #7983f5, #5865f2 50%, #2f3699); }
.tile-donation { background: linear-gradient(140deg, #22c55e, #198754 55%, #0b4d31); }

.tile-icon {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 1.8rem;
}

.tile-twitch .tile-icon {
    font-size: 2.6rem;
}

.tile-watermark {
    position: absolute;
    right: -18px;
    bottom: -26px;
    z-index: -1;
    font-size: 7.5rem;
    opacity: 0.14;
    transform: rotate(-12deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2), opacity 0.3s;
}

.tile-twitch .tile-watermark {
    font-size: 12rem;
}

.tile-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
}

.tile-twitch .tile-title {
    font-size: 2rem;
}

.tile-meta {
    padding-right: 26px;
    font-size: 0.93rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.6;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.7);
}

.tile:hover .tile-watermark {
    transform: rotate(0deg) scale(1.12);
    opacity: 0.22;
}

.tile:hover .tile-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.tile:hover .tile-icon {
    animation: icon-hop 0.55s ease;
}

.card.is-visible .tile {
    animation: fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.card.is-visible .tile:nth-child(1) { animation-delay: 0.1s; }
.card.is-visible .tile:nth-child(2) { animation-delay: 0.18s; }
.card.is-visible .tile:nth-child(3) { animation-delay: 0.26s; }
.card.is-visible .tile:nth-child(4) { animation-delay: 0.34s; }
.card.is-visible .tile:nth-child(5) { animation-delay: 0.42s; }

/* Fließtext in Karten (Unterseiten) etwas luftiger */
.card > p:not(.sub-count) {
    line-height: 1.65;
    color: #d4d4d8;
}

/* Updates als Timeline */
.post .date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline {
    position: relative;
    padding-left: 30px;
    gap: 18px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #3b82f6, #a855f7, #ef4444);
    opacity: 0.7;
}

.timeline:not(:has(.post)) {
    padding-left: 0;
}

.timeline:not(:has(.post))::before {
    display: none;
}

.timeline .post,
.timeline .post:last-child {
    position: relative;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline .post::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(138, 138, 245, 0.18), 0 0 14px rgba(138, 138, 245, 0.7);
}

.timeline .post:first-child::before {
    animation: dot-pulse 2s ease-in-out infinite;
}

.timeline .post:hover {
    transform: translateX(4px);
    border-color: rgba(138, 138, 245, 0.3);
}

.post-image-btn {
    display: block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: zoom-in;
}

.post-image-btn .post-image {
    margin-top: 0;
    transition: transform 0.4s ease;
}

.post-image-btn:hover .post-image {
    transform: scale(1.03);
}

/* Bild-Popup */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(5, 5, 10, 0.88);
    cursor: zoom-out;
    animation: overlay-in 0.25s ease backwards;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    cursor: default;
    animation: modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2) backwards;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 20px;
    padding: 0;
    border: 0;
    background: none;
    color: #ffffff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

/* Unterseiten: eigener kleiner Himmel in der Markenfarbe */
.subpage-hero {
    --sky-a: #1d4ed8;
    --sky-b: #b91c1c;
    margin-bottom: 25px;
    padding: 40px 20px 34px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--sky-a), var(--sky-b));
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}

.subpage-hero:has(.icon-twitch) { --sky-a: #a970ff; --sky-b: #3b0764; }
.subpage-hero:has(.icon-youtube) { --sky-a: #e11d1d; --sky-b: #450a0a; }
.subpage-hero:has(.icon-discord) { --sky-a: #7983f5; --sky-b: #2f3699; }
.subpage-hero:has(.icon-donation) { --sky-a: #22c55e; --sky-b: #0b4d31; }
.subpage-hero:has(.fa-calendar-days) { --sky-a: #14b8a6; --sky-b: #134e4a; }

.subpage-hero::before {
    display: none;
}

.subpage-hero .hero-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.55));
}

.subpage-hero h1 {
    font-size: 2.3rem;
}

.subpage-hero p {
    color: rgba(255, 255, 255, 0.85);
}

.subpage-hero .hero-clouds {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.subpage-hero .hero-clouds .cloud-1 { opacity: 0.12; }
.subpage-hero .hero-clouds .cloud-2 { opacity: 0.09; }

/* Pfotenspuren */
.paw-print {
    position: fixed;
    z-index: 2000;
    font-size: 14px;
    color: rgba(165, 180, 252, 0.6);
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(var(--paw-rotate, 0deg));
    animation: paw-fade 1.1s ease-out forwards;
}

/* Handy */
@media (max-width: 600px) {
    .hero {
        padding: 50px 16px 120px;
    }

    .hero .profile-pic {
        width: 130px;
        height: 130px;
    }

    .bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tile-twitch {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 170px;
    }

    .tile-discord,
    .tile-donation {
        grid-column: span 1;
    }

    .tile-discord .tile-meta,
    .tile-donation .tile-meta {
        padding-right: 0;
    }

    .duo-avatar {
        width: 88px;
        height: 88px;
    }

    .duo-link {
        width: 70px;
    }

    .duo-heart {
        font-size: 1.5rem;
        padding: 0 6px;
    }

    .subpage-hero {
        padding: 30px 16px 26px;
    }

    .subpage-hero h1 {
        font-size: 1.8rem;
    }
}

@keyframes status-ping {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(2.6); opacity: 0; }
}

@keyframes bounce-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes line-flow {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

@keyframes rain-fall {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(110px); opacity: 0; }
}

@keyframes paw-fade {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==========================================================
   Navigation, Hauptaktionen oben, nächste Termine, Seitenübergänge
   ========================================================== */

@view-transition {
    navigation: auto;
}

.site-nav {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 900;
    width: min(1000px, calc(100% - 24px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 8px 8px 14px;
    border-radius: 28px;
    background: rgba(20, 20, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    view-transition-name: site-nav;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    animation: fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.site-nav.is-scrolled {
    background: rgba(20, 20, 26, 0.82);
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.85);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-fun);
    font-size: 1.15rem;
    font-weight: 600;
}

.nav-brand img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.4);
}

.nav-brand:hover img {
    transform: rotate(-12deg) scale(1.1);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: var(--font-fun);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a i {
    color: var(--c, var(--accent-color));
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-links a:hover i {
    transform: scale(1.15);
}

.nav-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.nav-toggle {
    display: none;
}

/* Platz für die Navigation */
body > .site-nav + main.container {
    margin-top: 92px;
}

.hero {
    padding-top: 110px;
}

#inhalt {
    scroll-margin-top: 90px;
}

/* Hauptaktionen direkt im Kopf der Unterseiten */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards;
}

.btn-hero {
    flex: none;
    min-width: 0;
    padding: 13px 24px;
    border-radius: 999px;
    background: #ffffff;
    color: #16161a;
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.7);
}

.btn-hero i {
    color: var(--sky-a);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.btn-hero-ghost i {
    color: #ffffff;
}

.subpage-hero .hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.subpage-hero .hero-meta[hidden] {
    display: none;
}

.subpage-hero .sub-count strong {
    color: #ffffff;
}

/* Stream-Zeiten: nächste Termine */
.upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.upcoming-btn:hover {
    transform: translateX(4px);
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.06);
}

.upcoming-date {
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #14b8a6, #134e4a);
    box-shadow: 0 8px 18px -10px rgba(20, 184, 166, 0.8);
}

.upcoming-day {
    font-family: var(--font-fun);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.upcoming-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.upcoming-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.upcoming-weekday {
    font-family: var(--font-fun);
    font-weight: 600;
    font-size: 1.05rem;
}

.upcoming-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-arrow {
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.upcoming-btn:hover .upcoming-arrow {
    transform: translateX(3px);
    color: #2dd4bf;
}

.card.is-visible .upcoming-list li {
    animation: fade-up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.card.is-visible .upcoming-list li:nth-child(2) { animation-delay: 0.1s; }
.card.is-visible .upcoming-list li:nth-child(3) { animation-delay: 0.2s; }

/* Kalender in der Farbe der Stream-Zeiten-Seite */
.calendar-nav h3 {
    color: #2dd4bf;
}

.calendar-day.has-entry {
    background: rgba(20, 184, 166, 0.2);
    border: 1px solid #2dd4bf;
}

.calendar-day-dot {
    background: #2dd4bf;
}

.calendar-modal-header h3 {
    color: #2dd4bf;
}

/* Navigation auf dem Handy */
@media (max-width: 1020px) {
    .nav-toggle {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 4px 0 2px;
    }

    .site-nav.is-open {
        background: rgba(20, 20, 26, 0.95);
    }

    .site-nav.is-open .nav-links {
        display: flex;
        animation: fade-up 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    }

    .nav-links a {
        padding: 12px 14px;
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 90px;
    }

    body > .site-nav + main.container {
        margin-top: 80px;
    }
}

/* ==========================================================
   Stats: Kanal in Zahlen, Wolkenkarte, Uploads pro Jahr, Fakten,
   beliebteste Videos
   ========================================================== */

.hero .hero-kicker {
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 1.2rem;
}

.section-note {
    margin: -12px 0 22px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.section-note-end {
    margin: 20px 0 0;
}

.section-note a {
    color: #a5b4fc;
}

.data-empty {
    list-style: none;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.data-note {
    margin: 0 0 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Kanal in Zahlen */
.figures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
}

.figure {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    padding: 2px 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.figure:first-child {
    padding-left: 0;
    border-left: 0;
}

.figure dd {
    margin: 0;
    font-family: var(--font-fun);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.figure dt {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.figure dd.is-empty {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.figures-card {
    padding-top: 26px;
    padding-bottom: 26px;
}

.figures-twitch {
    grid-template-columns: 1fr 1fr 2fr;
}

.figures-twitch .figure-wide dd {
    font-size: clamp(1.4rem, 3.4vw, 2rem);
}

.twitch-last {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(145, 70, 255, 0.08);
    border: 1px solid rgba(145, 70, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.twitch-last-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.twitch-last-title {
    font-size: 1.05rem;
    line-height: 1.45;
}

.twitch-last-title.is-empty {
    color: var(--text-muted);
}

/* Wolkenkarte der Top-Spiele */
.cloud-sky {
    position: relative;
    overflow: hidden;
    padding: 54px 24px 46px;
    border-radius: 16px;
    background: linear-gradient(170deg, #1d4ed8 0%, #6d3fb5 55%, #b91c1c 100%);
}

.cloud-sky .data-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.cloud-map {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px 18px;
}

.game-cloud {
    --base: 280px;
    position: relative;
    width: calc(var(--base) * var(--scale, 1));
    aspect-ratio: 10 / 7;
    display: flex;
    align-items: flex-end;
    animation: float-y 7s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.1s);
}

.game-cloud:nth-child(even) {
    margin-top: 34px;
}

/* Die meistgesehene Wolke schwebt allein oben in der Mitte */
.game-cloud:first-child {
    --side: calc((100% - var(--base) * var(--scale, 1)) / 2);
    margin-left: var(--side);
    margin-right: var(--side);
}

.game-cloud::before,
.game-cloud::after {
    content: "";
    position: absolute;
    z-index: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffffff;
}

.game-cloud::before {
    width: 40%;
    left: 15%;
    bottom: 38%;
}

.game-cloud::after {
    width: 52%;
    right: 12%;
    bottom: 30%;
}

.game-cloud-body {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 64%;
    padding: 0 12%;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 16px 30px -16px rgba(10, 10, 40, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-align: center;
    color: #1e1b4b;
}

.game-cloud-name {
    font-family: var(--font-fun);
    font-weight: 600;
    font-size: calc(0.7rem + 0.65rem * var(--scale, 1));
    line-height: 1.15;
}

.game-cloud-views {
    font-weight: 700;
    font-size: 0.86rem;
    color: #4338ca;
    font-variant-numeric: tabular-nums;
}

.game-cloud-videos {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Uploads pro Jahr */
.year-chart {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 230px;
}

.year-chart > .data-empty {
    align-self: center;
}

.year-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.year-bar-value {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.year-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.year-bar-fill {
    width: 100%;
    max-width: 46px;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    background: rgba(138, 138, 245, 0.45);
    transform-origin: bottom;
    transition: background 0.2s ease;
}

.year-bar:hover .year-bar-fill {
    background: rgba(138, 138, 245, 0.75);
}

.year-bar.is-peak .year-bar-fill {
    background: linear-gradient(180deg, #60a5fa, #a855f7 55%, #ef4444);
}

.year-bar.is-peak .year-bar-value {
    color: #ffffff;
    font-weight: 700;
}

.year-bar-year {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.card.is-visible .year-bar-fill {
    animation: bar-grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

/* Fakten */
.facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 28px;
}

.fact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.5;
    color: #d4d4d8;
}

.fact i {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(138, 138, 245, 0.12);
    color: #a5b4fc;
}

.fact span {
    padding-top: 8px;
}

/* Beliebteste Videos */
.top-videos {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rank;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-video {
    counter-increment: rank;
}

.top-video-link {
    display: grid;
    grid-template-columns: 34px 160px 1fr;
    align-items: center;
    gap: 16px;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.top-video-link::before {
    content: counter(rank);
    text-align: center;
    font-family: var(--font-fun);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
}

.top-video:first-child .top-video-link::before {
    color: #fbbf24;
}

.top-video-link:hover {
    transform: translateX(3px);
    border-color: rgba(255, 77, 77, 0.4);
}

.top-video-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #2a2a33;
}

.top-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.top-video-link:hover .top-video-thumb img {
    transform: scale(1.05);
}

.top-video-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top-video-title {
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.top-video-meta strong {
    color: #ffffff;
}

.top-video-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.top-video-bar span {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: 4px;
    background: #ff4d4d;
}

/* Stats-Kachel auf der Startseite */
.tile-stats {
    grid-column: span 4;
    min-height: 112px;
    background: linear-gradient(140deg, #3b82f6, #6d3fb5 50%, #b91c1c);
}

.card.is-visible .tile:nth-child(6) { animation-delay: 0.5s; }

@keyframes bar-grow {
    from { transform: scaleY(0); }
}

@media (max-width: 1100px) and (min-width: 1021px) {
    .nav-links a {
        padding: 8px 9px;
        font-size: 0.9rem;
    }
}

@media (max-width: 700px) {
    .figures {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 22px;
    }

    .figure:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .figures-twitch {
        grid-template-columns: 1fr 1fr;
    }

    .figures-twitch .figure-wide {
        grid-column: span 2;
        padding-left: 0;
        border-left: 0;
    }

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

    .cloud-map {
        gap: 18px 8px;
    }

    .game-cloud {
        --base: 168px;
        width: calc(var(--base) * max(var(--scale, 1), 0.8));
    }

    .game-cloud:first-child {
        --base: 210px;
        --side: calc((100% - var(--base) * max(var(--scale, 1), 0.8)) / 2);
    }

    .game-cloud-name {
        font-size: calc(0.72rem + 0.35rem * var(--scale, 1));
    }

    .game-cloud-views {
        font-size: 0.78rem;
    }

    .game-cloud-videos {
        display: none;
    }

    .game-cloud:first-child .game-cloud-videos {
        display: block;
    }

    .game-cloud:nth-child(even) {
        margin-top: 0;
    }

    .cloud-sky {
        padding: 40px 12px 34px;
    }

    .top-video-link {
        grid-template-columns: 22px 104px 1fr;
        gap: 10px;
        padding: 8px 10px 8px 6px;
    }

    .top-video-link::before {
        font-size: 1.2rem;
    }

    .year-chart {
        gap: 5px;
        height: 200px;
    }

    .year-bar-year {
        font-size: 0.68rem;
    }
}

@media (max-width: 600px) {
    .tile-stats {
        grid-column: span 2;
    }
}

/* ==========================================================
   Live-Modus, Countdown, Kalender-Export
   ========================================================== */

.hero-countdown {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.hero-live {
    --sky-a: #9146ff;
    margin-top: 24px;
    max-width: 520px;
    margin-inline: auto;
    padding: 20px 24px 22px;
    border-radius: 20px;
    background: rgba(10, 6, 30, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: modal-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2) backwards;
}

.hero-live[hidden] {
    display: none;
}

.hero .hero-live p {
    margin: 0;
    color: #ffffff;
}

.hero .hero-live .hero-live-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero .hero-live .hero-live-title {
    margin-top: 10px;
    font-family: var(--font-fun);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero .hero-live .hero-live-game {
    margin-top: 6px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-live .btn-hero {
    margin-top: 16px;
    display: inline-flex;
}

.hero.is-live .hero-scroll {
    display: none;
}

/* Beim Streamen leuchtet das Logo rot */
.hero.is-live .profile-float::before {
    background: rgba(239, 68, 68, 0.85);
    animation: live-glow 1.6s ease-in-out infinite;
}

.hero.is-live .profile-float::after {
    background: rgba(239, 68, 68, 0.6);
    animation: live-glow 1.6s ease-in-out -0.8s infinite;
}

@keyframes live-glow {
    0%, 100% { opacity: 0.95; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.12); }
}

.upcoming-item {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.upcoming-item .upcoming-btn {
    flex: 1;
    min-width: 0;
}

.upcoming-ics {
    flex: none;
    width: 52px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.upcoming-ics:hover {
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.06);
}

.upcoming-countdown {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.15);
    color: #5eead4;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Discord: Mitglieder online */
.badge-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-online::before,
.discord-online::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ba55d;
    box-shadow: 0 0 0 3px rgba(59, 165, 93, 0.25);
}

.badge-online[hidden],
.discord-online[hidden] {
    display: none;
}

/* ==========================================================
   Meine Geschichte (Stats) und Wolken-Spiel (404)
   ========================================================== */

.milestones {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.milestones::before {
    content: "";
    position: absolute;
    left: 150px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6, #a855f7, #ef4444);
    opacity: 0.6;
}

.milestone {
    position: relative;
    display: grid;
    grid-template-columns: 132px 38px 1fr;
    align-items: center;
    gap: 0 14px;
    padding: 10px 0;
}

.milestone-date {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.milestone-dot {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg-card);
    border: 2px solid rgba(138, 138, 245, 0.55);
    color: #c4b5fd;
    font-size: 0.9rem;
}

.milestone-text {
    line-height: 1.45;
}

.milestone:last-child .milestone-dot {
    border-color: #ef4444;
    color: #fca5a5;
}

.card.is-visible .milestone {
    animation: fade-up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.card.is-visible .milestone:nth-child(2) { animation-delay: 0.08s; }
.card.is-visible .milestone:nth-child(3) { animation-delay: 0.16s; }
.card.is-visible .milestone:nth-child(4) { animation-delay: 0.24s; }
.card.is-visible .milestone:nth-child(5) { animation-delay: 0.32s; }
.card.is-visible .milestone:nth-child(6) { animation-delay: 0.4s; }
.card.is-visible .milestone:nth-child(7) { animation-delay: 0.48s; }
.card.is-visible .milestone:nth-child(8) { animation-delay: 0.56s; }

.game-sky {
    --sky-a: #6d3fb5;
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(170deg, #1d4ed8 0%, #6d3fb5 55%, #b91c1c 100%);
    user-select: none;
}

.game-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    text-align: center;
    background: rgba(10, 6, 30, 0.25);
}

.game-overlay[hidden] {
    display: none;
}

.game-message {
    margin: 0;
    max-width: 360px;
    font-family: var(--font-fun);
    font-size: 1.15rem;
    color: #ffffff;
}

.game-cloud-btn {
    position: absolute;
    left: 0;
    width: 120px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    animation: game-drift var(--speed, 4s) linear forwards;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.game-cloud-btn::before,
.game-cloud-btn::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
}

.game-cloud-btn::before {
    width: 46px;
    height: 46px;
    left: 18px;
    top: -22px;
}

.game-cloud-btn::after {
    width: 60px;
    height: 60px;
    right: 14px;
    top: -30px;
}

.game-cloud-btn.is-small {
    transform: scale(0.6);
}

.game-cloud-btn.is-popped {
    animation-play-state: paused;
    opacity: 0;
    scale: 1.4;
}

.game-hud {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.game-hud strong {
    margin-left: 6px;
    font-family: var(--font-fun);
    font-size: 1.2rem;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

@keyframes game-drift {
    from { translate: -140px 0; }
    to { translate: calc(100cqw + 20px) 0; }
}

.game-sky {
    container-type: inline-size;
}

@media (max-width: 700px) {
    .milestones::before {
        left: 18px;
    }

    .milestone {
        grid-template-columns: 38px 1fr;
        grid-template-areas: "dot date" "dot text";
        gap: 2px 14px;
    }

    .milestone-dot {
        grid-area: dot;
    }

    .milestone-date {
        grid-area: date;
        text-align: left;
        font-size: 0.82rem;
    }

    .milestone-text {
        grid-area: text;
    }

    .game-sky {
        height: 280px;
    }
}

/* Kontrast: dunkler Verlauf hinter dem Kacheltext */
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12) 55%, transparent 80%);
    pointer-events: none;
}

.tile-meta {
    color: rgba(255, 255, 255, 0.95);
}

.tile-schedule { background: linear-gradient(140deg, #0f9488, #0f766e 55%, #134e4a); }
.tile-donation { background: linear-gradient(140deg, #16a34a, #15803d 55%, #0b4d31); }
.tile-discord { background: linear-gradient(140deg, #6670ee, #4f5ae0 50%, #2f3699); }
.tile-stats { background: linear-gradient(140deg, #2563eb, #6d3fb5 50%, #b91c1c); }

/* ==========================================================
   Nachthimmel, Tiefe, 3D-Kacheln, Feinschliff
   ========================================================== */

/* Nachthimmel */
.hero-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 8, 40, 0.45), rgba(6, 8, 40, 0.1) 60%, transparent);
}

.hero-stars span:not(.hero-moon) {
    position: absolute;
    width: var(--s, 2px);
    height: var(--s, 2px);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: twinkle 3.2s ease-in-out infinite;
    animation-delay: calc(var(--d, 0s) * -1);
}

.hero-moon {
    position: absolute;
    top: 13%;
    right: 12%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: -14px 8px 0 2px #fdf6d8;
    filter: drop-shadow(0 0 18px rgba(253, 246, 216, 0.55));
    transform: rotate(-20deg);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Tiefe im Startbereich (nur Maus) */
.hero .header-clouds {
    translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -10px);
    transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero .profile-pic-wrap {
    translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 8px);
    transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero .hero-stars {
    translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -4px);
    transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3D-Kacheln mit Lichtfleck */
.bento {
    perspective: 900px;
}

.tile::before {
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.2), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 55%);
}

.tile.is-tilting {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
    transition: transform 0.12s ease-out, box-shadow 0.3s ease;
}

/* Neu-Badge bei Posts */
.post-new {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #ef4444);
    color: #ffffff;
    font-family: var(--font-fun);
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: 1px;
}

/* Scrollbalken und Markierung in Blau-Rot */
::selection {
    background: rgba(138, 138, 245, 0.45);
    color: #ffffff;
}

html {
    scrollbar-color: #5b4b9a var(--bg-main);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    border: 3px solid var(--bg-main);
    border-radius: 999px;
    background: linear-gradient(180deg, #3b82f6, #a855f7, #ef4444);
}

/* ==========================================================
   Clips
   ========================================================== */

.subpage-hero:has(.fa-film) { --sky-a: #f59e0b; --sky-b: #7c2d12; }

.tile-clips { background: linear-gradient(140deg, #d97706, #b45309 50%, #7c2d12); }
.tile-stats { grid-column: span 2; }

.clip-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.clip-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip,
.clip-sort button {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #d4d4d8;
    font-family: var(--font-fun);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.clip-sort button:hover {
    border-color: rgba(251, 191, 36, 0.5);
    color: #ffffff;
}

.filter-chip[aria-pressed="true"],
.clip-sort button[aria-pressed="true"] {
    background: linear-gradient(140deg, #f59e0b, #b45309);
    border-color: transparent;
    color: #ffffff;
}

.filter-count {
    margin-left: 4px;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.clip-sort {
    display: flex;
    gap: 6px;
}

.clip-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.clip {
    animation: fade-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 40ms);
}

.clip-btn {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clip-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #2a2a33;
}

.clip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.clip-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #b45309;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.clip-length {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.75);
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.clip-btn:hover .clip-thumb img,
.clip-btn:focus-visible .clip-thumb img {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.clip-btn:hover .clip-play,
.clip-btn:focus-visible .clip-play {
    opacity: 1;
    transform: scale(1);
}

.clip-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.clip-title {
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.clip-meta strong {
    color: #ffffff;
}

.clip-game {
    color: #fbbf24;
}

.clip-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.clip-more {
    --sky-a: #b45309;
}

.clip-more[hidden] {
    display: none;
}

.clip-modal-box {
    position: relative;
    width: min(900px, 100%);
    cursor: default;
    animation: modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2) backwards;
}

.clip-modal .lightbox-close {
    top: -46px;
    right: 0;
}

.clip-modal-player {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: var(--bg-main);
}

.clip-modal-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.clip-modal-player .embed-consent-box {
    height: 100%;
}

.clip-modal-title {
    margin: 14px 0 0;
    font-family: var(--font-fun);
    font-size: 1.15rem;
    font-weight: 600;
}

@media (max-width: 860px) {
    .clip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tile-stats,
    .tile-clips {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .clip-grid {
        grid-template-columns: 1fr;
    }
}


.clip-modal-player:has(.embed-consent-box) {
    aspect-ratio: auto;
    min-height: 240px;
}

.clip-modal-player .embed-consent-btn,
.embed-consent-box .embed-consent-btn {
    flex: none;
}

/* ==========================================================
   Alle Geräte: Raster darf nie breiter als der Bildschirm werden
   ========================================================== */

.bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile-title {
    flex-wrap: wrap;
    row-gap: 4px;
}

.clip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Größere Tippflächen */
.nav-brand {
    min-height: 40px;
    padding-right: 6px;
}

.calendar-nav .btn {
    min-height: 40px;
    min-width: 44px;
    padding: 10px 16px;
}

.year-short {
    display: none;
}

@media (max-width: 860px) {
    .clip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .figures,
    .figures-twitch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .year-bar-year {
        font-size: 0.78rem;
    }

    .year-full {
        display: none;
    }

    .year-short {
        display: inline;
    }
}

@media (max-width: 600px) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .clip-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 360px) {
    .tile {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tile-title {
        font-size: 1.2rem;
    }

    .tile-twitch .tile-title {
        font-size: 1.7rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Lange Wörter und Links (z. B. in Posts oder Stream-Titeln) brechen um, statt die Seite zu verbreitern */
body {
    overflow-wrap: break-word;
}

.post,
.calendar-modal,
.hero-live,
.twitch-last-title,
.milestone-text,
.top-video-title,
.clip-title,
.clip-modal-title,
.fact,
.upcoming-info,
.lightbox {
    overflow-wrap: anywhere;
}

@media (max-width: 400px) {
    .tile-discord,
    .tile-donation,
    .tile-clips,
    .tile-stats {
        grid-column: span 2;
        min-height: 112px;
    }
}

/* ==========================================================
   Startseite kompakter und Sprung-Navigation
   ========================================================== */

.home-main {
    max-width: 1060px;
}

.home-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.home-row > .card {
    margin-bottom: 0;
}

.home-row .duo-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-row .duo {
    flex: 1;
}

[data-section] {
    scroll-margin-top: 90px;
}

#start {
    scroll-margin-top: 0;
}

/* Punktleiste rechts (PC) */
.section-rail {
    position: fixed;
    top: 50%;
    right: 18px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 5px;
    border-radius: 999px;
    background: rgba(20, 20, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    translate: 0 -50%;
}

.section-rail[hidden] {
    display: none;
}

.rail-dots {
    list-style: none;
    margin: 4px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rail-dot,
.rail-arrow {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.rail-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2), background 0.3s ease;
}

.rail-dot:hover::before {
    background: rgba(255, 255, 255, 0.8);
}

.rail-dot[aria-current="true"]::before {
    height: 22px;
    background: linear-gradient(180deg, #60a5fa, #ef4444);
}

.rail-label {
    position: absolute;
    right: 42px;
    top: 50%;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(20, 20, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-fun);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    translate: 6px -50%;
    transition: opacity 0.2s ease, translate 0.2s ease;
}

.rail-dot:hover .rail-label,
.rail-dot:focus-visible .rail-label {
    opacity: 1;
    translate: 0 -50%;
}

.rail-arrow {
    font-size: 0.85rem;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rail-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.rail-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

/* Runder Knopf unten rechts (Handy und Tablet) */
.section-jump {
    position: fixed;
    right: 16px;
    right: max(16px, env(safe-area-inset-right));
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 800;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: linear-gradient(140deg, #3b82f6, #a855f7 55%, #ef4444);
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    opacity: 0;
    scale: 0.7;
    pointer-events: none;
    transition: opacity 0.25s ease, scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.3);
}

.section-jump i {
    transition: rotate 0.3s ease;
}

.section-jump.is-visible {
    opacity: 1;
    scale: 1;
    pointer-events: auto;
}

.section-jump.is-top i {
    rotate: 180deg;
}

body.modal-open .section-jump,
body.modal-open .section-rail {
    display: none;
}

@media (max-width: 1199px) {
    .section-rail {
        display: none;
    }

    .section-jump:not([hidden]) {
        display: grid;
    }
}

@media (max-width: 900px) {
    .home-row {
        display: block;
        margin-bottom: 0;
    }

    .home-row > .card {
        margin-bottom: 25px;
    }
}

/* Wer im System "Bewegung reduzieren" eingestellt hat, bekommt keine Animationen */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .header-clouds,
    .hero-clouds,
    .hero-scroll {
        display: none;
    }

    .game-cloud-btn {
        animation: none !important;
    }

    .hero-stars span:not(.hero-moon) {
        opacity: 0.8;
    }

    .anim .card {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .page-btn:hover:not(:disabled),
    .calendar-day:not(.calendar-day-empty):hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}

/* Zurück-Link auf den Fun-Seiten (/schedule, /challenge) zur Übersicht /fun */
.fun-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font: 600 0.88rem var(--font-fun);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.fun-back i { font-size: 0.75rem; transition: transform 0.2s; }
.fun-back:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.fun-back:hover i { transform: translateX(-3px); }
