/**
 * Ostborussen Frontend - Complete BVB Design System
 * Schwarz #000 | Gelb #FDE100 | Modern, Responsive, Animations
 * ONE file - alles für das öffentliche Frontend
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* BVB Brand Colors */
    --primary-yellow: #FDE100;
    --primary-black: #000000;
    --accent-gold: #C9A961;
    
    /* Grayscale */
    --gray-900: #0A0A0A;
    --gray-800: #1A1A1A;
    --gray-700: #2A2A2A;
    --gray-600: #444444;
    --gray-500: #666666;
    --gray-400: #888888;
    --gray-300: #AAAAAA;
    --gray-200: #CCCCCC;
    --white: #FFFFFF;
    
    /* Layout */
    --container-max: 1200px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    /* Nur für Tabellen-Zeilenabstand (Bundesliga-Tabelle), damit der Rest unverändert bleibt */
    --space-md-table: 0.55rem;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(253, 225, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(253, 225, 0, 0.2);
    --glow: 0 0 20px rgba(253, 225, 0, 0.3);
    
    /* Animation */
    --anim-duration: 0.3s;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--gray-900);
    color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(253, 225, 0, 0.03) 50px,
        rgba(253, 225, 0, 0.03) 100px
    );
    pointer-events: none;
    z-index: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-yellow); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-gold); }

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--primary-black);
    border-bottom: 2px solid var(--primary-yellow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(253, 225, 0, 0.15);
    transform: none !important;
}
body {
    padding-top: 70px;
}
.navbar { padding: var(--space-sm) 0; }
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.logo:hover { color: var(--accent-gold); }
.logo-icon { font-size: 1.5rem; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-yellow);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-menu {
    display: flex;
    gap: 0.85rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}
.nav-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-menu a:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}
.nav-menu a.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 600;
}

/* BVB Dropdown (Desktop) */
.nav-item-has-sub {
    position: relative;
}
.nav-sub-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    white-space: nowrap;
    transition: var(--transition);
}
.nav-sub-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 0.15rem;
    transition: transform 0.25s ease;
}
.nav-sub-toggle:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}
.nav-item-has-sub.active > .nav-sub-toggle {
    background: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 600;
}
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    margin: 0.25rem 0 0;
    padding: 0.35rem 0;
    list-style: none;
    background: var(--gray-800);
    border: 1px solid rgba(253, 225, 0, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}
.nav-item-has-sub:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-item-has-sub:hover .nav-sub-toggle::after {
    transform: rotate(180deg);
}
.nav-submenu a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0;
    white-space: nowrap;
}
.nav-submenu a:hover {
    background: rgba(253, 225, 0, 0.2);
    color: var(--primary-yellow);
}
.nav-submenu a.active {
    background: rgba(253, 225, 0, 0.25);
    color: var(--primary-yellow);
}

.btn-admin {
    background: var(--primary-yellow) !important;
    color: var(--primary-black) !important;
    font-weight: 700 !important;
}

/* Tablet/Desktop: Hamburger ab 992px, damit keine Nav-Umbrüche („Unsere Fahrten“, „Fußball News“) */
@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    .navbar .container { position: relative; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-black);
        flex-direction: column;
        padding: var(--space-md);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 2px solid var(--primary-yellow);
    }
    .nav-menu.active {
        max-height: 520px;
        opacity: 1;
        overflow-y: auto;
    }
    .nav-menu > li {
        margin-bottom: 0.35rem;
    }
    .nav-menu > li:last-child { margin-bottom: 0; }
    .nav-menu a { white-space: normal; }
    .nav-menu a,
    .nav-submenu a {
        text-align: center;
    }
    /* Mobile: nur flache Liste – BVB aus, kein Kästchen, Liveticker/Saison/Team direkt unter Galerie */
    .nav-item-has-sub {
        margin-bottom: 0;
        width: 100%;
        position: static;
    }
    .nav-item-has-sub > .nav-sub-toggle {
        display: none !important;
    }
    .nav-submenu {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        position: static;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: none;
        transform: none;
    }
    .nav-submenu li {
        margin-bottom: 0.35rem;
    }
    .nav-submenu li:last-child { margin-bottom: 0; }
    .nav-submenu a {
        display: block;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        color: var(--white);
        font-weight: 500;
    }
    .nav-submenu a:hover {
        background: var(--primary-yellow);
        color: var(--primary-black);
    }
    .nav-submenu a.active {
        background: var(--primary-yellow);
        color: var(--primary-black);
        font-weight: 600;
    }
}

/* Mobile Nav (kleinere Screens) */
@media (max-width: 768px) {
    .nav-menu a { padding: 0.5rem 1rem; }
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.container-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.container-article { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: var(--space-md); padding-right: var(--space-md); }
.main-content { 
    min-height: 60vh; 
    position: relative;
    z-index: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 70px);
        min-height: calc(100svh - 70px);
        padding-top: var(--space-sm);
        padding-bottom: var(--space-sm);
        align-items: flex-start;
    }
}
.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(253,225,0,0.05) 0%, transparent 70%);
}
.hero-pattern {
    display: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-lg);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(253,225,0,0.15);
    border: 2px solid var(--primary-yellow);
    border-radius: 50px;
    color: var(--primary-yellow);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}
.hero-title {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 900;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    text-shadow: 0 4px 30px rgba(253,225,0,0.4);
    line-height: 1.1;
}
/* Hero Badge Wrapper & Countup */
.hero-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-lg);
}
.hero-countup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}
.countup-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}
.countup-row-main {
    gap: var(--space-sm);
}
.countup-row-detail {
    opacity: 0.8;
}
.countup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.countup-item-large .countup-value {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    color: var(--primary-yellow);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 2.5ch;
}
.countup-item-large .countup-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
}
.countup-item-small .countup-value {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
}
.countup-item-small .countup-label {
    font-size: 0.65rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.15rem;
}
.countup-separator {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    color: var(--primary-yellow);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
}
.countup-separator-small {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--accent-gold);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.countup-glow {
    text-shadow: 
        0 0 10px rgba(253, 225, 0, 0.5),
        0 0 20px rgba(253, 225, 0, 0.3),
        0 0 40px rgba(253, 225, 0, 0.2);
    animation: countupPulse 2s ease-in-out infinite;
}
@keyframes countupPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(253, 225, 0, 0.5),
            0 0 20px rgba(253, 225, 0, 0.3),
            0 0 40px rgba(253, 225, 0, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(253, 225, 0, 0.7),
            0 0 30px rgba(253, 225, 0, 0.5),
            0 0 60px rgba(253, 225, 0, 0.3);
    }
}
@media (max-width: 768px) {
    .hero-content {
        padding: var(--space-sm);
    }
    .hero-badge-wrapper {
        margin-bottom: var(--space-sm);
    }
    .hero-badge {
        padding: 0.25rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: var(--space-xs);
    }
    .hero-countup {
        margin-top: var(--space-xs);
        gap: 0.25rem;
    }
    .countup-row-main {
        gap: var(--space-xs);
    }
    .countup-item-large .countup-value {
        font-size: 1.75rem;
    }
    .countup-item-large .countup-label {
        font-size: 0.55rem;
        margin-top: 0.1rem;
    }
    .countup-item-small .countup-value {
        font-size: 1rem;
    }
    .countup-item-small .countup-label {
        font-size: 0.5rem;
    }
    .countup-separator {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    .countup-separator-small {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    .hero-logo {
        margin-bottom: var(--space-xs);
    }
    .hero-logo-img {
        max-width: 180px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    .hero-tagline {
        font-size: 0.8rem;
        margin-bottom: var(--space-sm);
    }
}
@media (max-width: 480px) {
    .hero-content {
        padding: var(--space-xs);
    }
    .hero-countup {
        gap: 0.15rem;
    }
    .countup-item-large .countup-value {
        font-size: 1.5rem;
    }
    .countup-item-large .countup-label,
    .countup-item-small .countup-label {
        font-size: 0.5rem;
    }
    .countup-item-small .countup-value {
        font-size: 0.9rem;
    }
    .countup-separator {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    .countup-separator-small {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    .hero-logo-img {
        max-width: 150px;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
    .hero-tagline {
        font-size: 0.75rem;
        margin-bottom: var(--space-xs);
    }
}

/* Cover Flow Carousel */
.coverflow-carousel {
    width: 100%;
    max-width: 900px;
    margin: var(--space-lg) auto 0;
    perspective: 1000px;
    overflow: visible;
}
.coverflow-container {
    position: relative;
    width: 100%;
    height: 280px;
    transform-style: preserve-3d;
}
.coverflow-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 220px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    user-select: none;
}
.coverflow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.coverflow-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 60%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    border-radius: 12px;
    pointer-events: none;
}
.coverflow-item.active {
    transform: translate(-50%, -50%) translateZ(0) rotateY(0deg);
    z-index: 10;
    opacity: 1;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(253, 225, 0, 0.2);
}
.coverflow-item.prev-1 {
    transform: translate(-50%, -50%) translateX(-70%) translateZ(-150px) rotateY(35deg);
    z-index: 8;
    opacity: 0.85;
}
.coverflow-item.prev-2 {
    transform: translate(-50%, -50%) translateX(-120%) translateZ(-280px) rotateY(45deg);
    z-index: 6;
    opacity: 0.6;
}
.coverflow-item.prev-3 {
    transform: translate(-50%, -50%) translateX(-150%) translateZ(-380px) rotateY(50deg);
    z-index: 4;
    opacity: 0.35;
}
.coverflow-item.next-1 {
    transform: translate(-50%, -50%) translateX(70%) translateZ(-150px) rotateY(-35deg);
    z-index: 8;
    opacity: 0.85;
}
.coverflow-item.next-2 {
    transform: translate(-50%, -50%) translateX(120%) translateZ(-280px) rotateY(-45deg);
    z-index: 6;
    opacity: 0.6;
}
.coverflow-item.next-3 {
    transform: translate(-50%, -50%) translateX(150%) translateZ(-380px) rotateY(-50deg);
    z-index: 4;
    opacity: 0.35;
}
.coverflow-item.active::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-gold));
    border-radius: 15px;
    z-index: -1;
    opacity: 0.8;
}
@media (max-width: 1024px) {
    .coverflow-carousel {
        max-width: 700px;
    }
    .coverflow-container {
        height: 240px;
    }
    .coverflow-item {
        width: 280px;
        height: 190px;
    }
    .coverflow-item.prev-1 {
        transform: translate(-50%, -50%) translateX(-65%) translateZ(-120px) rotateY(35deg);
    }
    .coverflow-item.prev-2 {
        transform: translate(-50%, -50%) translateX(-110%) translateZ(-220px) rotateY(45deg);
    }
    .coverflow-item.next-1 {
        transform: translate(-50%, -50%) translateX(65%) translateZ(-120px) rotateY(-35deg);
    }
    .coverflow-item.next-2 {
        transform: translate(-50%, -50%) translateX(110%) translateZ(-220px) rotateY(-45deg);
    }
}
@media (max-width: 768px) {
    .coverflow-carousel {
        max-width: 100%;
        margin: var(--space-sm) auto 0;
    }
    .coverflow-container {
        height: 140px;
    }
    .coverflow-item {
        width: 160px;
        height: 110px;
    }
    .coverflow-item.prev-1 {
        transform: translate(-50%, -50%) translateX(-55%) translateZ(-60px) rotateY(30deg);
    }
    .coverflow-item.prev-2 {
        transform: translate(-50%, -50%) translateX(-90%) translateZ(-110px) rotateY(40deg);
        opacity: 0.4;
    }
    .coverflow-item.prev-3 {
        opacity: 0;
    }
    .coverflow-item.next-1 {
        transform: translate(-50%, -50%) translateX(55%) translateZ(-60px) rotateY(-30deg);
    }
    .coverflow-item.next-2 {
        transform: translate(-50%, -50%) translateX(90%) translateZ(-110px) rotateY(-40deg);
        opacity: 0.4;
    }
    .coverflow-item.next-3 {
        opacity: 0;
    }
}
@media (max-width: 480px) {
    .coverflow-carousel {
        margin: var(--space-xs) auto 0;
    }
    .coverflow-container {
        height: 120px;
    }
    .coverflow-item {
        width: 140px;
        height: 95px;
    }
    .coverflow-item.prev-1 {
        transform: translate(-50%, -50%) translateX(-50%) translateZ(-50px) rotateY(25deg);
        opacity: 0.7;
    }
    .coverflow-item.prev-2 {
        opacity: 0;
    }
    .coverflow-item.next-1 {
        transform: translate(-50%, -50%) translateX(50%) translateZ(-50px) rotateY(-25deg);
        opacity: 0.7;
    }
    .coverflow-item.next-2 {
        opacity: 0;
    }
}

/* Glow auf rundem Wrapper statt filter am Bild – verhindert quadratischen Schatten vor Bild-Ladezeit */
.hero-logo {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    width: min(350px, 100%);
    aspect-ratio: 1;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(253,225,0,0.45), 0 4px 30px rgba(253,225,0,0.35);
    overflow: hidden;
}
.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .hero-logo { width: min(250px, 100%); }
    .hero-logo-img { max-width: none; }
}
@media (max-width: 480px) {
    .hero-logo { width: min(200px, 100%); }
    .hero-logo-img { max-width: none; }
}
.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.75rem);
    color: var(--gray-300);
    margin-bottom: var(--space-xs);
    font-weight: 400;
}
.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    color: var(--accent-gold);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}
.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-yellow);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 5;
}
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-black);
}
.btn-primary:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}
.btn-secondary {
    background: transparent;
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}
.btn-secondary:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}
.btn-outline {
    background: transparent;
    border-color: var(--gray-600);
    color: var(--white);
}
.btn-outline:hover { border-color: var(--primary-yellow); color: var(--primary-yellow); }
.btn-slim { padding: 0.4rem 0.85rem; font-size: 0.875rem; font-weight: 500; }
.btn-large { padding: var(--space-md) var(--space-xl); font-size: 1.125rem; }
.btn-block { display: block; width: 100%; justify-content: center; text-align: center; }

/* ===== SECTIONS ===== */
.section { padding: var(--space-xl) 0; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary-yellow);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-yellow);
    border-radius: 2px;
}
.section-link {
    color: var(--gray-400);
    font-weight: 600;
    transition: var(--transition);
}
.section-link:hover { color: var(--primary-yellow); transform: translateX(4px); }

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}
.card {
    background: var(--gray-800);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-700);
    transition: var(--transition);
    position: relative;
}
.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-lg);
}
.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-700);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card:hover .card-image img { transform: scale(1.08); }
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7));
    pointer-events: none;
}
.card-content { padding: var(--space-md); }
.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}
.card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.badge-news { background: rgba(59,130,246,0.8); color: white; }
.badge-event { background: var(--primary-yellow); color: var(--primary-black); }
.card-meta time { color: var(--gray-400); }
.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}
.card-title a { color: var(--white); }
.card-title a:hover { color: var(--primary-yellow); }
.card-excerpt {
    color: var(--gray-300);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-yellow);
    font-weight: 600;
    transition: var(--transition);
}
.card-link:hover { gap: 0.75rem; }

/* ===== NEXT MATCH WIDGET ===== */
.section-next-match {
    padding: var(--space-lg) 0;
    background: transparent;
}
.next-match-widget {
    background: var(--gray-800);
    border: 2px solid var(--primary-yellow);
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
}
.widget-header { text-align: center; margin-bottom: var(--space-sm); }
.widget-header-standings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: var(--space-sm);
}
.widget-header-standings .badge-table { flex-shrink: 0; }
/* Saison-Seite: Filter unter Überschrift (wie Startseiten-Tabelle) */
.matches-standings-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.matches-standings-toolbar .standings-tabs {
    width: 100%;
    justify-content: center;
}
.standings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    width: 100%;
}
.standings-tab-btn {
    appearance: none;
    border: 1px solid var(--gray-600);
    background: var(--gray-800);
    color: var(--gray-400);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.standings-tab-btn:hover {
    color: var(--white);
    border-color: var(--primary-yellow);
}
.standings-tab-btn.is-active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}
.standings-compact-wide {
    -webkit-overflow-scrolling: touch;
}
.standings-table-wide {
    min-width: 520px;
    font-size: 0.75rem;
}
.standings-table-wide th,
.standings-table-wide td {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}
.standings-table-wide .col-num {
    width: 1.75rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    font-variant-numeric: tabular-nums;
}
.standings-table-wide .col-diff {
    font-weight: 600;
    color: var(--gray-300);
}
.standings-table-wide .col-goals {
    white-space: nowrap;
}
.standings-table-wide tr.row-bvb .col-diff,
.standings-table-wide tr.row-bvb .col-num {
    color: var(--primary-yellow);
}
.badge-live {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}
.match-teams {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-lg);
    margin: var(--space-sm) 0;
    flex-wrap: wrap;
}
.team {
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.team-logo {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
}
.team-logo img {
    width: 100%;
    max-width: 80px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}
.team-logo .team-logo-placeholder {
    font-size: 4rem;
}
.team-name { font-size: 1.25rem; font-weight: 700; color: var(--white); }
@media (min-width: 769px) {
    .team-logo img { max-width: 100px; }
    .team { min-width: 140px; max-width: 220px; }
}
.match-vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.match-vs .score-value {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.match-info { text-align: center; color: var(--gray-400); margin-bottom: 0; font-size: 0.8rem; }

/* ===== FOOTBALL 3-SPALTEN: Letztes | Nächstes | Tabelle ===== */
.section-football {
    padding: var(--space-md) 0;
    background: transparent;
}
.section-football .container {
    max-width: none;
    width: 100%;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}
/* Große Displays: Bundesliga-Sektion mit Abstand links/rechts, aber nicht zu schmal */
@media (min-width: 1200px) {
    .section-football .container {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
}
.football-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
    align-items: stretch;
}
.football-col-next { grid-column: 1; grid-row: 1; align-self: start; }
.football-col-last { grid-column: 1; grid-row: 2; align-self: start; }
.football-col-table { grid-column: 2; grid-row: 1 / -1; }
.football-col { min-width: 0; display: flex; }
.football-col > .football-card,
.football-col > .next-match-widget {
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}
.football-col-next > .football-card,
.football-col-next > .next-match-widget,
.football-col-last > .football-card,
.football-col-last > .next-match-widget { min-height: 0; }
.football-col-table > .football-card,
.football-col-table > .next-match-widget { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.football-col > .football-card .widget-content,
.football-col > .next-match-widget .widget-content {
    display: flex;
    flex-direction: column;
    padding: 0;
}
.football-col-next .widget-content { flex: 1; }
.football-col-next .countdown { margin-top: auto; }
.football-table-card .standings-compact { flex: 1; min-height: 0; }
.football-card .widget-content { padding: 0; }
.badge-result,
.badge-table {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-result {
    background: var(--gray-600);
    color: var(--white);
}
.badge-table {
    background: var(--gray-700);
    color: var(--primary-yellow);
}
.standings-compact { overflow-x: auto; }
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.standings-table th,
.standings-table td { padding: var(--space-md-table) 0.35rem; text-align: left; border-bottom: 1px solid var(--gray-700); line-height: 1.2; }
.standings-table th { color: var(--gray-400); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; }
.standings-table td { color: var(--white); }
.standings-table .text-center { text-align: center; }
.standings-table .text-right { text-align: right; }
.standings-table .col-pos { width: 2rem; color: var(--gray-400); }
.standings-table .col-team { display: flex; align-items: center; gap: 0.5rem; }
.standings-table .team-logo-small { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
/* Responsiv: schmal = Abkürzung, breit = voller Name */
.standings-compact .standings-table .team-name-full { display: none; }
.standings-compact .standings-table .team-name-short { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
@media (min-width: 900px) {
    .standings-compact .standings-table .team-name-full { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
    .standings-compact .standings-table .team-name-short { display: none; }
}
.standings-table .team-name-short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.standings-table .col-goals { color: var(--gray-300); }
.standings-table .col-pts { font-weight: 700; color: var(--primary-yellow); }
.standings-table tr.row-bvb {
    background: rgba(253, 225, 0, 0.12);
    font-weight: 700;
}
.standings-table tr.row-bvb .team-name-short,
.standings-table tr.row-bvb .team-name-full { color: var(--primary-yellow); }
.standings-table tr.row-bvb .col-pts { color: var(--primary-yellow); }

/* Liniendiagramm: BVB-Platzierung pro Spieltag */
.football-chart-wrap {
    margin-top: var(--space-lg);
    background: var(--gray-800);
    border: 2px solid var(--primary-yellow);
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
}
.football-chart-header { text-align: center; margin-bottom: var(--space-sm); }
.football-chart-inner { width: 100%; overflow-x: auto; }
.football-chart-svg {
    display: block;
    width: 100%;
    min-width: 320px;
    height: auto;
    max-height: 380px;
}
.football-chart-svg .chart-grid-line {
    stroke: var(--gray-600);
    stroke-width: 0.5;
}
.football-chart-svg .chart-axis-label {
    fill: var(--gray-400);
    font-size: 11px;
    font-weight: 600;
}
.football-chart-svg .chart-axis-x { font-size: 10px; }
.football-chart-svg .chart-bvb-line {
    filter: drop-shadow(0 0 4px rgba(253, 225, 0, 0.4));
}
.football-chart-svg .chart-point-wrap {
    cursor: pointer;
}
.football-chart-svg .chart-point {
    fill: var(--primary-yellow);
    stroke: var(--primary-black);
    stroke-width: 1.5;
}
.football-chart-svg .chart-point-wrap:hover .chart-point {
    filter: drop-shadow(0 0 6px rgba(253, 225, 0, 0.8));
}

/* Klick-/Tap-Tooltip: Ballon mit Rahmen */
.chart-tooltip-popover {
    display: none;
    position: fixed;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 1.75rem 0.75rem 1rem;
    background: var(--gray-800);
    border: 2px solid var(--primary-yellow);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(253,225,0,0.2);
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}
.chart-tooltip-popover.is-open {
    display: block;
}
.chart-tooltip-popover .chart-tooltip-close {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--gray-400);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.chart-tooltip-popover .chart-tooltip-close:hover,
.chart-tooltip-popover .chart-tooltip-close:focus {
    color: var(--primary-yellow);
    background: rgba(253,225,0,0.1);
}
.chart-tooltip-popover.chart-tooltip--at-cursor {
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
    white-space: normal;
    max-width: 320px;
}
.chart-tooltip-popover .chart-tooltip-title {
    display: block;
    font-weight: 700;
    color: var(--primary-yellow);
    font-size: 0.9rem;
    padding-right: 0.5rem;
}
.chart-tooltip-popover .chart-tooltip-match {
    display: block;
    color: var(--white);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    white-space: normal;
}

/* Mobile: Diagramm lesbarer, weniger Achsen-Labels */
@media (max-width: 768px) {
    .chart-label-hide-mobile,
    .chart-grid-hide-mobile { display: none !important; }
    .football-chart-inner {
        min-height: 280px;
        -webkit-overflow-scrolling: touch;
    }
    .football-chart-svg {
        min-height: 260px;
        max-height: 320px;
    }
    .football-chart-svg .chart-axis-label {
        font-size: 10px;
    }
    .football-chart-svg .chart-point-wrap {
        cursor: pointer;
    }
    .chart-tooltip-popover.chart-tooltip--at-cursor {
        max-width: calc(100vw - 1.5rem);
        padding: 0.7rem 1.5rem 0.7rem 0.9rem;
    }
    .chart-tooltip-popover .chart-tooltip-close {
        top: 0.25rem;
        right: 0.25rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.35rem;
    }
}

@media (max-width: 1024px) {
    .football-grid { gap: var(--space-md); }
}
@media (max-width: 768px) {
    .football-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .football-col-next { grid-column: 1; grid-row: auto; }
    .football-col-last { grid-column: 1; grid-row: auto; }
    .football-col-table { grid-column: 1; grid-row: auto; }
    .section-football .container { padding-left: var(--space-sm); padding-right: var(--space-sm); }
    .standings-table .team-name-short { max-width: 100px; }
}

.countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}
.countdown-item {
    text-align: center;
    padding: var(--space-sm);
    background: var(--gray-900);
    border-radius: 6px;
    min-width: 52px;
}
.countdown-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-yellow);
    line-height: 1;
}
.countdown-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 0.15rem;
}

/* ===== EVENTS TIMELINE ===== */
.events-timeline { display: flex; flex-direction: column; gap: var(--space-md); }
.event-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-800);
    border-left: 4px solid var(--primary-yellow);
    border-radius: 8px;
    transition: var(--transition);
}
.event-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}
.event-date-badge {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    padding: var(--space-sm);
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 8px;
    font-weight: 700;
}
.event-day { display: block; font-size: 1.75rem; line-height: 1; }
.event-month { display: block; font-size: 0.8rem; text-transform: uppercase; margin-top: 0.25rem; }
.event-content { flex: 1; }
.event-title { font-size: 1.25rem; margin-bottom: var(--space-xs); }
.event-title a { color: var(--white); }
.event-title a:hover { color: var(--primary-yellow); }
.event-meta {
    display: flex;
    gap: var(--space-md);
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}
.event-excerpt { color: var(--gray-300); }

/* ===== PAGE HEADER (einheitlich kompakt wie Saison) ===== */
.page-header {
    padding: 1.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-black), var(--gray-900));
    border-bottom: 2px solid var(--primary-yellow);
}
.page-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-yellow);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.page-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FILTER BAR ===== */
.filter-section {
    padding: var(--space-lg) 0;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}
.filter-bar {
    background: var(--gray-900);
    border-radius: 12px;
    padding: var(--space-md);
}
.filter-form {
    display: flex;
    gap: var(--space-md);
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-group { flex: 1; min-width: 180px; }
.filter-input, .filter-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
}
.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

/* ===== MATCHES ===== */
.matches-list { display: flex; flex-direction: column; gap: var(--space-md); }
.match-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: var(--space-md);
    transition: var(--transition);
}
.match-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow);
}
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-700);
}
.match-league { color: var(--gray-400); font-size: 0.875rem; font-weight: 600; }
.match-date { color: var(--primary-yellow); font-weight: 600; }
.match-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
}
.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}
.match-team-home { text-align: right; }
.match-team-away { text-align: left; }
.match-info { text-align: center; }
.match-time { font-size: 1.5rem; font-weight: 700; color: var(--primary-yellow); }
.match-footer { text-align: center; margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--gray-700); }
.match-venue { color: var(--gray-400); font-size: 0.875rem; }
.match-finished .match-body { gap: var(--space-md); }
.team-score { font-size: 2rem; font-weight: 900; color: var(--primary-yellow); }
.winner .team-score { color: var(--accent-gold); }
.match-separator { font-size: 1.75rem; color: var(--gray-600); }

/* ===== TABS ===== */
/* Saison/Team-Style: Unterline, schlank (für .matches-tabs) */
.matches-tabs .matches-tabs-nav {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.matches-tabs .matches-tabs-nav::-webkit-scrollbar { display: none; }
.matches-tabs .matches-tab-btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem 0.6rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.matches-tabs .matches-tab-btn:hover {
    color: rgba(255,255,255,0.85);
}
.matches-tabs .matches-tab-btn.active {
    color: var(--primary-yellow, #fde047);
    border-bottom-color: var(--primary-yellow, #fde047);
}
@media (max-width: 600px) {
    .matches-tabs .matches-tab-btn {
        padding: 0.4rem 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
}

.tabs-header {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-lg);
    background: var(--gray-800);
    border-radius: 12px;
    padding: 0.5rem;
    flex-wrap: wrap;
}
.tab-button {
    flex: 1;
    min-width: 120px;
    padding: var(--space-md);
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
}
.tab-button.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
}
.tab-button:not(.active):hover {
    background: var(--gray-700);
    color: var(--white);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ===== TABLE ===== */
.table-container {
    overflow-x: auto;
    background: var(--gray-800);
    border-radius: 12px;
    border: 1px solid var(--gray-700);
}
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table thead { background: var(--primary-black); border-bottom: 2px solid var(--primary-yellow); }
.standings-table th {
    padding: var(--space-md);
    text-align: left;
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}
.standings-table td { padding: var(--space-md); border-bottom: 1px solid var(--gray-700); }
.standings-table tbody tr { transition: var(--transition); }
.standings-table tbody tr:hover { background: var(--gray-700); }
/* Kompakte Tabelle (z. B. Home): eigener Zeilenabstand, überschreibt die obigen Werte */
.standings-compact .standings-table th,
.standings-compact .standings-table td {
    padding: var(--space-md-table) 0.5rem !important;
    line-height: 1.3;
}
.standings-compact .standings-table th { font-size: 0.7rem; }
.highlight-row { background: rgba(253,225,0,0.1) !important; border-left: 4px solid var(--primary-yellow); }
.pos-champions { color: #10b981; font-weight: 700; }
.pos-europa { color: #f59e0b; font-weight: 700; }
.pos-relegation { color: #ef4444; font-weight: 700; }
.positive { color: #10b981; }
.negative { color: #ef4444; }

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .standings-table-full .col-team { max-width: 150px; }
    .standings-table-full .team-name { 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        max-width: 100px;
        display: inline-block;
    }
}
.standings-table-full { font-size: 0.9rem; }
.standings-table-full .col-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.standings-table-full .team-logo-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Match result styling */
.match-body-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.match-result {
    text-align: center;
    flex-shrink: 0;
}
.result-score {
    font-size: 1.5rem;
    font-weight: 700;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    background: var(--gray-700);
}
.result-score.home-win { color: var(--primary-yellow); }
.result-score.away-win { color: var(--primary-yellow); }
.result-score.draw { color: var(--gray-300); }

.match-team .team-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.match-team .team-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.match-team .team-logo-placeholder {
    font-size: 2rem;
}

.table-legend {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-top: 1px solid var(--gray-700);
    font-size: 0.875rem;
    flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: var(--space-xs); }
.legend-color { width: 12px; height: 12px; border-radius: 50%; }
.legend-color.pos-champions { background: #10b981; }
.legend-color.pos-europa { background: #f59e0b; }
.legend-color.pos-relegation { background: #ef4444; }

/* ===== ARTICLE / POST DETAIL ===== */
.article, .post-detail { }

/* Wrapper: Share-Leiste + Artikel gemeinsam, Rahmen schmaler, Leiste am Rahmen */
.article-page-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px; /* Erhöht von 732px */
    margin: 0 auto;
    gap: 0;
}
.article-outer {
    flex: 1;
    min-width: 0;
    margin-left: 0;
}
/* Desktop: Share-Leiste sticky am linken Rand des Rahmens */
.share-bar-desktop {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 6rem;
}
.share-bar-fixed {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.35rem;
    background: var(--primary-black);
    border-right: 2px solid var(--primary-yellow);
    border-radius: 0px 10px 10px 0px;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}
.share-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    max-height: 44px;
    color: var(--gray-400);
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 0;
    box-sizing: border-box;
}
.share-bar-item:hover { color: var(--primary-yellow); background: rgba(253, 225, 0, 0.12); }
.share-bar-item.share-bar-copied { color: var(--primary-yellow); background: rgba(253, 225, 0, 0.2); }
.share-bar-icon {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    flex-shrink: 0;
}
.article-frame {
    border: 2px solid var(--gray-700);
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.6);
    margin: var(--space-md) auto;
    overflow: hidden;
}
.article-header, .post-header { padding: var(--space-lg) 0 var(--space-md); }
.article-header .container-article { padding-top: var(--space-sm); }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-400);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--primary-yellow); }
.article-meta, .post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}
.article-badge, .post-type {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--primary-yellow);
    color: var(--primary-black);
}
.category-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--primary-yellow);
    background: rgba(253, 225, 0, 0.1);
    color: var(--gray-300);
    transition: all 0.3s ease;
}
.category-tag:hover {
    background: rgba(253, 225, 0, 0.2);
    transform: translateY(-2px);
}
.card-category {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(253, 225, 0, 0.15);
    color: var(--primary-yellow);
    border: 1px solid rgba(253, 225, 0, 0.3);
}
.article-title, .post-detail .post-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--primary-yellow);
}
.event-info-box, .event-details {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--gray-800);
    border: 2px solid var(--primary-yellow);
    border-radius: 12px;
    margin-top: var(--space-md);
    flex-wrap: wrap;
}
.event-info-item, .info-icon { display: flex; gap: var(--space-sm); align-items: start; }
.article-featured-image { margin: var(--space-md) 0; }
.article-featured-image img { width: 100%; border-radius: 12px; }
.article-featured-block { margin: var(--space-md) 0; }
/* Artikel-Bilder: volle Content-Breite, zentriert, volle Größe */
.post-gallery-article {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    max-width: 100%;
}
.post-gallery-article .gallery-item {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
}
.post-gallery-article .gallery-item a {
    display: block;
    width: 100%;
}
.post-gallery-article .gallery-item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}
.post-gallery-inline { margin-bottom: 0; }
.article-content, .post-content { padding: var(--space-md) 0 var(--space-lg); }
.content-body,
.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-200);
    max-width: 65ch;
}
.post-detail-page .content-body,
.post-detail-page .post-content { 
    max-width: none !important; 
}
.content-body p,
.post-content p { margin-bottom: var(--space-md); }

/* POST DETAIL: Kompakte Abstände */
.post-detail-page .content-body p,
.post-detail-page .post-content p { 
    margin-bottom: 0.5rem !important; 
}
.content-body strong, .post-content strong,
.content-body b, .post-content b { font-weight: 700; }
.content-body em, .post-content em,
.content-body i, .post-content i { font-style: italic; }
.content-body u, .post-content u { text-decoration: underline; }
.content-body s, .post-content s { text-decoration: line-through; }
.content-body ul, .post-content ul { margin: 0.75em 0; padding-left: 1.5em; list-style: disc; }
.content-body ol, .post-content ol { margin: 0.75em 0; padding-left: 1.5em; list-style: decimal; }
.content-body li, .post-content li { margin-bottom: 0.25em; }
.content-body h2, .post-content h2 { font-size: 1.35rem; margin: 1em 0 0.4em; font-weight: 700; }
.content-body h3, .post-content h3 { font-size: 1.15rem; margin: 0.85em 0 0.35em; font-weight: 600; }
.content-body h4, .post-content h4 { font-size: 1.05rem; margin: 0.75em 0 0.3em; font-weight: 600; }
.content-body blockquote,
.post-content blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);
    border-left: 4px solid var(--primary-yellow, #fde100);
    background: rgba(253, 225, 0, 0.08);
    color: var(--gray-300);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.content-body blockquote p:last-child,
.post-content blockquote p:last-child { margin-bottom: 0; }
.content-body div, .post-content div { margin-bottom: 0.5em; }
.content-body a, .post-content a { color: var(--primary-yellow, #fde100); text-decoration: underline; }
.content-body a:hover, .post-content a:hover { text-decoration: none; }
/* Schriftfarben aus Editor: Inline-Style hat Priorität; data-c als Fallback */
.content-body span[style*="color"], .post-content span[style*="color"] { font-weight: inherit; }
.event-footer {
    margin-top: var(--space-xl);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--gray-700);
}
.event-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    color: var(--gray-400);
}
.event-footer-item:not(:first-child)::before {
    content: " · ";
    color: var(--gray-600);
}
.event-footer-item a {
    color: var(--primary-yellow, #fde100);
    text-decoration: none;
}
.event-footer-item a:hover {
    text-decoration: underline;
}
.article-footer, .post-footer { padding: var(--space-md) 0 var(--space-lg); }
.article-nav-slim { margin-top: var(--space-md); }
.article-nav-slim .btn-slim {
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 500;
}
.article-nav-slim .btn-slim + .btn-slim { margin-left: 0.5rem; }
.article-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--gray-400);
}
.article-stat-views { display: inline-flex; align-items: center; gap: 0.35rem; }
.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-600);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-like:hover:not(:disabled) { border-color: var(--primary-yellow); color: var(--primary-yellow); }
.btn-like:disabled { opacity: 0.8; cursor: default; }
.btn-like-count { font-weight: 600; }
.article-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}
.article-nav .btn { white-space: nowrap; }
.share-buttons { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap; }
.share-label { color: var(--gray-400); }
.share-btn {
    padding: 0.5rem 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-600);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}
a.share-btn:hover, .share-btn:not(:disabled):hover { border-color: var(--primary-yellow); color: var(--primary-yellow); }
.share-linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.share-telegram:hover { border-color: #0088cc; color: #0088cc; }
.share-copy { border-style: dashed; }

/* Artikel-Seite: Mobil – keine feste Share-Leiste, Icons im Footer (im Fluss) */
@media (max-width: 992px) {
    .article-page-wrap {
        flex-direction: column;
        max-width: none;
    }
    .share-bar-desktop {
        display: none !important;
    }
    .article-outer {
        width: 100%;
    }
    .article-frame {
        margin: var(--space-sm) auto;
    }
    /* Share-Icons im Footer, horizontal, feste Größen (Android-Chrome) */
    .share-inline-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: var(--space-sm) 0;
        margin-bottom: var(--space-md);
        border-top: 1px solid var(--gray-700);
        padding-top: var(--space-md);
    }
    .share-inline-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        max-width: 44px;
        min-height: 44px;
        max-height: 44px;
        color: var(--gray-400);
        border-radius: 8px;
        background: var(--gray-800);
        border: 1px solid var(--gray-600);
        cursor: pointer;
        text-decoration: none;
        font-size: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    .share-inline-item:hover,
    .share-inline-item:focus { color: var(--primary-yellow); border-color: var(--primary-yellow); background: rgba(253, 225, 0, 0.1); }
    .share-inline-item svg {
        width: 22px;
        height: 22px;
        max-width: 22px;
        max-height: 22px;
    }
    /* Footer kompakter und integrierter */
    .article-footer .container-article {
        padding-top: var(--space-md);
    }
    .article-stats {
        font-size: 0.85rem;
        gap: var(--space-md);
        margin-bottom: var(--space-sm);
        color: var(--gray-500);
    }
    .article-stat-views,
    .btn-like {
        padding: 0.3rem 0;
    }
    .btn-like {
        padding: 0.25rem 0.6rem;
        font-size: 0.85rem;
    }
    .article-nav-slim {
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 1px solid var(--gray-700);
    }
    .article-nav-slim .btn-slim {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    .article-nav-slim .btn-slim:last-child {
        margin-bottom: 0;
    }
}
@media (min-width: 993px) {
    .share-inline-mobile { display: none !important; }
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-icon { font-size: 2.5rem; }
.gallery-title { color: var(--primary-yellow); margin-bottom: var(--space-sm); }
.gallery-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}
.gallery-info-title {
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}
.gallery-info-category {
    color: var(--text-gray);
    font-size: 0.8rem;
}
.gallery-info-result {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1rem;
}
.post-gallery { 
    margin: var(--space-lg) 0; 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}
@media (max-width: 768px) {
    .post-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-sm);
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90vh; position: relative; }
.lightbox-content img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent-gold); }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: rgba(0,0,0,0.7);
    padding: var(--space-sm) var(--space-md);
    border-radius: 50px;
    font-weight: 600;
}

/* ===== POSTS GRID (Archive) ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}
.post-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: var(--space-md);
    transition: var(--transition);
}
.post-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.post-title a { color: var(--white); }
.post-title a:hover { color: var(--primary-yellow); }
.post-date { color: var(--gray-400); }
.post-excerpt { color: var(--gray-300); }
.post-link { color: var(--primary-yellow); font-weight: 600; }

/* ===== CTA SECTION ===== */
.section-cta { padding: var(--space-xl) 0; }
.cta-box {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--primary-black), var(--gray-800));
    border: 2px solid var(--primary-yellow);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--primary-yellow);
    margin-bottom: var(--space-md);
}
.cta-text {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-black);
    border-top: 2px solid var(--primary-yellow);
    margin-top: var(--space-xl);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.footer-section h3 { color: var(--primary-yellow); margin-bottom: var(--space-sm); font-size: 1.25rem; }
.footer-section h4 { color: var(--gray-300); margin-bottom: var(--space-sm); font-size: 1rem; }
.footer-section p { color: var(--gray-400); font-size: 0.95rem; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-xs); }
.footer-links a { color: var(--gray-400); }
.footer-links a:hover { color: var(--primary-yellow); }
.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-700);
    color: var(--gray-500);
    font-size: 0.9rem;
}
.footer-made { margin-top: var(--space-xs); color: var(--gray-600); }

/* ===== ALERTS ===== */
.alert {
    padding: var(--space-md);
    border-radius: 8px;
    margin: var(--space-md) auto;
    max-width: var(--container-max);
    text-align: center;
}
.alert-success { background: rgba(16,185,129,0.2); border: 1px solid #10b981; color: #6ee7b7; }
.alert-error { background: rgba(239,68,68,0.2); border: 1px solid #ef4444; color: #fca5a5; }
.alert-info { background: rgba(59,130,246,0.2); border: 1px solid #3b82f6; color: #93c5fd; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--gray-400);
}
.empty-icon { font-size: 4rem; margin-bottom: var(--space-md); opacity: 0.5; }
.empty-state h3 { color: var(--gray-300); margin-bottom: var(--space-sm); }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}
.pagination-info { color: var(--gray-400); }
.live-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gray-800);
    border: 2px solid var(--primary-yellow);
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(60px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-60px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
@keyframes fadeInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-60px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}
@keyframes fadeInRight {
    from { 
        opacity: 0; 
        transform: translateX(60px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}
@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(100px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Scroll Animation Base States */
[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].animated {
    opacity: 1;
}

/* Animation Types */
[data-animate].animate-fade-up {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
[data-animate].animate-fade-down {
    animation: fadeInDown 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
[data-animate].animate-fade-left {
    animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
[data-animate].animate-fade-right {
    animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
[data-animate].animate-scale {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
[data-animate].animate-slide-up {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
[data-animate].animate-stagger {
    opacity: 1;
}
[data-animate].animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
}
[data-animate].animate-stagger > *.animated {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Gallery, Posts, Cards - immer sichtbar */
.gallery-grid .gallery-item,
.posts-grid .post-card,
.card-grid .card {
    opacity: 1 !important;
    transform: none !important;
}

/* Page Header Animation Specifics */
.page-header[data-animate] {
    transform: translateY(-30px);
}
.page-header[data-animate].animated {
    transform: translateY(0);
}

/* Section Animation Specifics */
.section[data-animate],
.section-football[data-animate],
.section-news[data-animate],
.section-events[data-animate],
.filter-section[data-animate] {
    transform: translateY(40px);
}
.section[data-animate].animated,
.section-football[data-animate].animated,
.section-news[data-animate].animated,
.section-events[data-animate].animated,
.filter-section[data-animate].animated {
    transform: translateY(0);
}

/* Card Animation Specifics */
.card[data-animate],
.next-match-widget[data-animate],
.football-card[data-animate],
.event-item[data-animate] {
    transform: translateY(30px);
}
.card[data-animate].animated,
.next-match-widget[data-animate].animated,
.football-card[data-animate].animated,
.event-item[data-animate].animated {
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        animation: none;
    }
    [data-animate].animated {
        animation: none;
    }
}

/* Mobile: Vereinfachte Animationen für bessere Performance */
@media (max-width: 768px) {
    [data-animate] {
        transition: opacity 0.3s ease;
        transform: none !important;
    }
    [data-animate].animated {
        opacity: 1;
    }
    [data-animate].animate-fade-up,
    [data-animate].animate-fade-down,
    [data-animate].animate-fade-left,
    [data-animate].animate-fade-right,
    [data-animate].animate-scale,
    [data-animate].animate-slide-up {
        animation: fadeInSimple 0.3s ease forwards;
    }
    @keyframes fadeInSimple {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Stagger auf Mobile: Sofort sichtbar */
    [data-animate].animate-stagger > * {
        opacity: 1;
        transform: none;
    }
    .gallery-grid[data-animate].animate-stagger .gallery-item,
    .posts-grid[data-animate].animate-stagger .post-card,
    .card-grid[data-animate].animate-stagger .card {
        opacity: 1;
        transform: none;
    }
    
    /* Page Header sofort sichtbar auf Mobile */
    .page-header[data-animate] {
        opacity: 1;
        transform: none;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
}
.animate-bounce { animation: bounce 2s infinite; }

/* Scroll reveal - compatibility with data-reveal */
[data-reveal] { opacity: 1; }
[data-reveal-stagger] > * { opacity: 1; }
.glow-hover:hover { box-shadow: var(--glow); }
.text-glow:hover { text-shadow: 0 0 20px var(--primary-yellow); }
.card-glow:hover { box-shadow: var(--glow); border-color: var(--primary-yellow); }
.card-animated { transition: var(--transition); }
.card-shine { position: relative; overflow: hidden; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; letter-spacing: 0.08em; }
    .hero-cta { flex-direction: column; }
    .card-grid { grid-template-columns: 1fr; }
    .match-teams { flex-direction: column; }
    .countdown { gap: var(--space-sm); }
    .countdown-item { min-width: 60px; }
    .countdown-value { font-size: 1.5rem; }
    .tabs-header { flex-direction: column; }
    .filter-form { flex-direction: column; }
    .event-item { flex-direction: column; }

    /* Next-Match: Mobile optimiert */
    .section-next-match { padding: var(--space-md) 0; }
    .next-match-widget { padding: var(--space-md); }
    .match-teams {
        gap: var(--space-md);
        margin: var(--space-md) 0;
    }
    .team {
        min-width: 0;
        max-width: none;
    }
    .team-logo {
        min-height: 72px;
    }
    .team-logo img {
        max-width: 72px;
    }
    .team-name { font-size: 1.125rem; }
    .match-vs {
        font-size: 1.5rem;
        margin: var(--space-xs) 0;
        width: 100%;
        align-self: center;
    }
    .match-info { margin-bottom: var(--space-md); font-size: 0.9rem; }
    /* Countdown: eine Reihe, 4 gleiche Kacheln */
    .countdown {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
        flex-wrap: nowrap;
    }
    .countdown-item {
        min-width: 0;
        padding: var(--space-sm);
    }
    .countdown-value { font-size: 1.35rem; }
    .countdown-label { font-size: 0.7rem; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; letter-spacing: 0.05em; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .next-match-widget { padding: var(--space-sm); }
    .countdown-item { padding: 0.5rem; }
    .countdown-value { font-size: 1.25rem; }
    .countdown-label { font-size: 0.65rem; }
}

/* ===== POST DETAIL - KOMPAKTE ABSTÄNDE & BREITER CONTENT ===== */

/* Container breiter auf Desktop - BEIDE Klassen überschreiben */
.post-detail-page .container-article,
.post-detail-page .container.container-article {
    max-width: 1100px !important; /* Noch breiter + !important für Sicherheit */
}

/* Titel kleiner */
.post-detail-page .article-title,
.post-detail-page .post-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem); /* Noch kleiner: max 2rem statt 2.5rem */
    margin-bottom: 0.75rem;
}

/* Bilder volle Content-Breite, UNTEREINANDER (keine Spalten) */
.post-detail-page .post-gallery,
.post-detail-page .post-gallery-article {
    margin: 1rem 0;
    gap: 0.75rem;
    max-width: 100%;
    display: flex; /* Kein Grid! */
    flex-direction: column; /* Untereinander */
}

.post-detail-page .post-gallery-article .gallery-item,
.post-detail-page .post-gallery-article .gallery-item a,
.post-detail-page .post-gallery-article .gallery-item img {
    max-width: 100%;
    width: 100%;
}

/* Content-Bereich auch breiter */
.post-detail-page .article-content,
.post-detail-page .post-content {
    padding: 0.75rem 0 2rem; /* Noch kompakter oben */
}

.post-detail-page .content-body,
.post-detail-page .post-content {
    max-width: 100%; /* Volle Breite statt 65ch */
}

/* Absätze SEHR kompakt */
.post-detail-page .content-body p,
.post-detail-page .post-content p {
    margin-bottom: 0.3rem !important; /* Noch kleiner: 0.3rem statt 0.5rem */
}

/* Überschriften kompakter */
.post-detail-page .content-body h2,
.post-detail-page .post-content h2 {
    margin: 1.25rem 0 0.5rem;
}

.post-detail-page .content-body h3,
.post-detail-page .post-content h3 {
    margin: 1rem 0 0.4rem;
}

/* Excerpt auch kompakter */
.post-detail-page .post-excerpt,
.post-detail-page .article-excerpt {
    margin-bottom: 0.75rem;
}

/* Meta/Kategorie-Badges */
.post-detail-page .post-meta {
    margin-bottom: 0.75rem;
}

/* Listen-Abstände auch reduzieren */
.post-detail-page .content-body ul,
.post-detail-page .content-body ol,
.post-detail-page .post-content ul,
.post-detail-page .post-content ol {
    margin: 0.5rem 0; /* Reduziert von 0.75rem */
}

.post-detail-page .content-body li,
.post-detail-page .post-content li {
    margin-bottom: 0.15rem; /* Reduziert von 0.25rem */
}

/* ===== POST DETAIL FOOTER - EINFACH & SAUBER ===== */

.post-detail-page .article-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Icons */
.post-detail-page .share-inline-mobile {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.post-detail-page .share-inline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--gray-400);
    transition: all 0.2s ease;
}

.post-detail-page .share-inline-item:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
}

/* Stats */
.post-detail-page .article-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
    border: none;
}

.post-detail-page .article-stat-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.95rem;
}

.post-detail-page .btn-like {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--gray-300);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-detail-page .btn-like:hover {
    background: rgba(253, 225, 0, 0.1);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

/* Buttons */
.post-detail-page .article-nav-slim {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: none;
}

.post-detail-page .article-nav-slim .btn-slim {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.post-detail-page .article-nav-slim .btn-secondary {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
}

.post-detail-page .article-nav-slim .btn-secondary:hover {
    background: #e6ca00;
    transform: translateY(-1px);
}

.post-detail-page .article-nav-slim .btn-outline {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.post-detail-page .article-nav-slim .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Mobile */
@media (max-width: 768px) {
    .post-detail-page .article-nav-slim {
        flex-direction: column;
    }
}

