/*
 * index.css
 * 
 * Gemeinsame Styles (Navigation, Footer, Buttons, etc.) 
 * sind in /includes/common.css
 * 
 * Hier nur noch page-spezifische Styles
 */

/* 
 * index.css - Page-specific styles
 * Common styles loaded from common.css
 */

/* Navigation - Burger-Styles sind in common.css */

/* Hero Section */
.hero {
    margin-top: 100px;
    position: relative;
    min-height: 91vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-blue) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 7rem;
    color: var(--white);
    line-height: 0.9;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
    color: var(--white);
    display: block;
    font-size: 7.5rem;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    line-height: 1;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: slideUp 0.8s ease-out 0.4s backwards;
    align-items: flex-end;
}

.stat-box--sponsor {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 3rem;
}

.hero-sponsor-logo {
    width: 240px;
    height: 70px;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1) !important;
    object-fit: contain;
    object-position: left center;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    color: var(--sky-blue);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.training-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

.training-card h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.time-entry {
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: var(--ice-blue);
    border-radius: 12px;
    border-left: 4px solid var(--light-blue);
    transition: transform 0.2s ease;
}

.time-entry:hover {
    transform: translateX(5px);
}

.time-entry:last-child {
    margin-bottom: 0;
}

.time-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.time-details {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
}



/* Welcome Section */
.welcome-section {
    padding: 6rem 2rem;
    background: var(--off-white);
}



.section-title h2 {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--light-blue);
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

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

.welcome-content p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 1.8rem;
}

.welcome-content .highlight {
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 2rem;
}

/* Quick Info */
.quick-info {
    padding: 6rem 2rem;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(43, 75, 140, 0.1);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(43, 75, 140, 0.15);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue), var(--sky-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.info-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

.info-card a {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--light-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-blue);
}

/* Social Media Section */
.social-media-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 75%, #FF0000 100%);
}

.social-media-section .section-title h2,
.social-media-section .section-title h2::after {
    color: white;
}

.social-media-section .section-title h2::after {
    background: white;
}

.social-media-section .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.social-media-container {
    text-align: center;
    color: white;
    max-width: 1100px;
    margin: 0 auto;
}

.social-media-icon {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
}


.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
}

.social-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.social-logo.youtube {
    height: auto;
    margin-top: 1rem;
    padding-bottom: 0.45rem;
}

.social-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-family: 'Bebas Neue', cursive;
}

.social-features {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
}

.social-feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.social-feature p {
    font-size: 0.9rem;
    margin: 0;
}

.social-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.social-btn.instagram {
    color: #E1306C;
}

.social-btn.youtube {
    color: #FF0000;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}



/* Aktuell Section */
.aktuell-section {
    padding: 40px 20px;
    background: var(--white);
}

/* Instagram Row - volle Breite oben */
.aktuell-instagram-row {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    /* min-height: 400px; */
}

/* Ladeplatzhalter */
.instagram-loading {
    /* min-height: 400px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--ice-blue);
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.instagram-loading p {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
}

.instagram-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--light-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.instagram-embed-wrapper {
    max-height: 900px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 20px;
    transform: translateX(-2px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.aktuell-instagram-row .j-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* YouTube Row - 2 Spalten unten */
.aktuell-youtube-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

/* Video Card */
.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(43, 75, 140, 0.1);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(43, 75, 140, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
    filter: sharpen(1);
    -webkit-filter: sharpen(1);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(255, 0, 0, 1);
}

.video-play-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-gray);
    margin: 0 0 12px 0;
    line-height: 1.6;
    letter-spacing: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.video-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Error State */
.error-message {
    text-align: center;
    padding: 40px;
    color: #FF0000;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}


/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablet landscape */

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 2rem;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-highlight {
        font-size: 5rem;
    }

    .training-card {
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-box--sponsor {
        padding-left: 2rem;
    }

    .aktuell-youtube-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: 2rem;
        margin-top: 60px;
    }

    .hero-container {
        padding: 4rem 1.5rem;
        gap: 2rem;
    }

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

    .hero-highlight {
        font-size: 3.2rem;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Buttons nebeneinander, gleich groß */
    .cta-group {
        gap: 0.75rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .cta-group .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.4rem;
        flex: 1;
        text-align: center;
        display: block;
        margin: 0;
    }

    /* Stats in einer Reihe */
    .hero-stats {
        flex-wrap: nowrap;
        gap: 1.2rem;
        margin-top: 2rem;
        align-items: flex-end;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-box--sponsor {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 1.2rem;
        flex-shrink: 0;
    }

    .hero-sponsor-logo {
        /* width: 90px;
        height: 40px; */
        width: 180px;
        height: 40px;
        object-position: left center;
        margin: 0 auto;
    }

    .training-card {
        padding: 1.75rem;
    }

    .training-card h3 {
        font-size: 1.6rem;
    }

    .welcome-section {
        padding: 3.5rem 1.25rem;
    }

    .welcome-content p {
        font-size: 1rem;
    }

    .aktuell-section {
        padding: 3rem 1.25rem;
    }

    .social-media-section {
        padding: 3rem 1.25rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .social-btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    .hero {
        margin-top: 60px;
    }

    .hero-container {
        padding: 4rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-highlight {
        font-size: 3.5rem;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    /* Buttons gleich groß nebeneinander */
    .cta-group {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.6rem;
        justify-content: flex-start;
    }

    .cta-group .btn {
        font-size: 0.82rem;
        padding: 0.65rem 1rem;
        flex: 1;
        text-align: center;
        display: block;
        margin: 0;
    }

    /* Stats: 3 nebeneinander, Victor als volle Zeile darunter */
    .hero-stats {
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
        margin-top: 1.5rem;
        align-items: center;
        justify-content: center;
    }

    .stat-box {
        flex: 0 0 auto;
        align-items: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-box--sponsor {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.75rem 0 0 0;
        /* ← padding-left: -1rem entfernt */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .stat-box--sponsor .stat-label {
        margin-top: 0;
    }

    .hero-sponsor-logo {
        width: 180px;
        height: 40px;
        margin: 0;
    }

    .training-card {
        padding: 1.25rem;
    }

    .training-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .time-entry {
        padding: 0.9rem;
    }

    .time-title {
        font-size: 0.95rem;
    }

    .time-details {
        font-size: 0.85rem;
    }

    .welcome-section {
        padding: 2.5rem 1rem;
    }

    .welcome-content p {
        font-size: 0.95rem;
    }

    .aktuell-section {
        padding: 2.5rem 1rem;
    }

    .social-media-section {
        padding: 2.5rem 1rem;
    }

    .social-media-subtitle {
        font-size: 0.9rem;
    }

    .social-box {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 600px) {
    .yt-skeleton {
        grid-template-columns: 1fr;
    }
}

/* ===== SPONSOREN ===== */
.sponsoren-section {
    padding: 4rem 2rem 5rem;
    background: linear-gradient(135deg, #fdf4f4 0%, #f8f8fc 60%, #fff 100%);
    text-align: center;
}

.sponsoren-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.sponsor-item {
    flex: 0 1 calc(50% - 0.75rem);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 2rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(43, 75, 140, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 75, 140, 0.14);
}

.sponsor-item img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.sponsor-item--large img {
    height: 50px;
}

.sponsor-item--dolnik img {
    height: 150px;
}

@media (max-width: 600px) {
    .sponsor-item {
        flex: 0 1 100%;
    }

    .sponsor-item img {
        height: 32px;
    }

    .sponsor-item--large img {
        height: 32px;
    }

    .sponsor-item--dolnik img {
        height: 80px;
    }
}