/*
 * Special Olympics Switzerland National Games Chur 2028
 * Custom CSS – 1:1 Migration from static site
 */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #e10712;
    --black: #1d1d1b;
    --grey: #68675d;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --max-width: 1200px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Ubuntu', sans-serif;
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    overflow: visible;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    position: relative;
    height: 100%;
    width: auto;
    max-width: 250px;
    z-index: 1001;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    height: 100%;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

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

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--light-grey);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-left: 2px solid var(--light-grey);
    padding-left: 1.5rem;
}

.lang-link {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-link:hover {
    background-color: var(--light-grey);
    color: var(--primary-red);
}

.lang-link.active {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section - Modern & Animated */
.hero {
    background:
        linear-gradient(to bottom, rgba(225, 7, 18, 0.6) 0%, rgba(225, 7, 18, 0.5) 30%, rgba(225, 7, 18, 0.4) 60%, rgba(29, 29, 27, 0.5) 100%),
        url('../images/national-games-hero.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, -5%) rotate(5deg); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0.4) 60%,
        transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

/* Hero Floating Icons */
.hero-icons {
    position: absolute;
    width: 100%;
    height: 65%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(225, 7, 18, 0.6), rgba(225, 7, 18, 0.7));
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(225, 7, 18, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icon img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    opacity: 0.95;
}

.icon-1 {
    top: 15%;
    left: 10%;
    animation: floatComplex1 8s ease-in-out infinite;
}

.icon-2 {
    top: 25%;
    right: 15%;
    animation: floatComplex2 9s ease-in-out 0.5s infinite;
}

.icon-3 {
    top: 45%;
    left: 8%;
    width: 70px;
    height: 70px;
    animation: floatComplex3 10s ease-in-out 1s infinite;
}

.icon-4 {
    top: 40%;
    right: 8%;
    width: 90px;
    height: 90px;
    animation: floatComplex4 7.5s ease-in-out 1.5s infinite;
}

.icon-5 {
    top: 50%;
    right: 20%;
    width: 75px;
    height: 75px;
    animation: floatComplex1 9.5s ease-in-out 2s infinite;
}

.icon-6 {
    top: 35%;
    left: 15%;
    width: 85px;
    height: 85px;
    animation: floatComplex2 8.8s ease-in-out 0.8s infinite;
}

.icon-7 {
    top: 10%;
    left: 50%;
    width: 70px;
    height: 70px;
    animation: floatComplex3 9.2s ease-in-out 1.2s infinite;
}

.icon-8 {
    top: 55%;
    left: 40%;
    width: 65px;
    height: 65px;
    animation: floatComplex4 8.3s ease-in-out 2.5s infinite;
}

@keyframes floatComplex1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(15px, -25px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(0, -35px) rotate(-3deg) scale(1.1);
    }
    75% {
        transform: translate(-15px, -20px) rotate(4deg) scale(1.05);
    }
}

@keyframes floatComplex2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(-20px, -30px) rotate(-6deg) scale(1.08);
    }
    50% {
        transform: translate(-10px, -40px) rotate(4deg) scale(1.12);
    }
    75% {
        transform: translate(10px, -25px) rotate(-5deg) scale(1.06);
    }
}

@keyframes floatComplex3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(18px, -28px) rotate(7deg) scale(1.07);
    }
    66% {
        transform: translate(-12px, -38px) rotate(-5deg) scale(1.1);
    }
}

@keyframes floatComplex4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(10px, -20px) rotate(3deg) scale(1.05);
    }
    40% {
        transform: translate(-15px, -35px) rotate(-4deg) scale(1.1);
    }
    60% {
        transform: translate(12px, -42px) rotate(6deg) scale(1.08);
    }
    80% {
        transform: translate(-8px, -25px) rotate(-3deg) scale(1.04);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .subtitle {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .event-date {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite, fadeInUp 1s ease-out 0.6s both;
}

.hero .wp-block-buttons {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero .wp-block-button__link:hover {
    background-color: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: 'Ubuntu', sans-serif;
}

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

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c5060f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 7, 18, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-grey {
    background-color: var(--light-grey);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-1 {
    grid-template-columns: minmax(250px, 420px);
    justify-content: center;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards - Modern & Animated */
.card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #c5060f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(225, 7, 18, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.sport-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
}

/* Sport Cards with centered icons (for homepage) */
.card.sport-card .card-content {
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card.sport-card .sport-icon {
    width: 4rem;
    height: 4rem;
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(225, 7, 18, 0.1) 0%, rgba(225, 7, 18, 0.05) 100%);
    border: 3px solid var(--primary-red);
    transition: all 0.3s ease;
}

/* Sport-Icon (Startseite UND Sportarten-Detailseite verwenden beide
   <figure class="wp-block-image sport-icon"><img></figure>) — Abstand
   zwischen Icon und Titel. Eigene Regel notwendig, weil der Selektor
   .card.sport-card .sport-icon im FSE-Block-Layout-Kontext für
   margin-block-end vom WP-Layout überschrieben wird. */
.wp-block-image.sport-icon {
    margin-bottom: 1rem;
}

.card.sport-card:hover .sport-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(225, 7, 18, 0.15) 0%, rgba(225, 7, 18, 0.1) 100%);
    box-shadow: 0 8px 20px rgba(225, 7, 18, 0.3);
}

.card.sport-card .card-title,
.card.sport-card h3 {
    flex-direction: column;
    gap: 0;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.card.sport-card .card-text,
.card.sport-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.card-text {
    color: var(--grey);
    margin-bottom: 1rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label,
.stat-item > p {
    font-size: 1.125rem;
    color: var(--grey);
    margin: 0;
}

/* Content Page */
.content-header {
    background-color: var(--light-grey);
    padding: 3rem 0;
    text-align: center;
}

.content-body {
    padding: 3rem 0;
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Vision-Text Block (InnerBlocks-Variante): paragraphen zentriert, grosser Text */
.nsg-vision-text > p {
    text-align: center;
    font-size: 1.125rem;
    color: var(--grey);
    margin: 0 0 1rem 0;
}

.nsg-vision-text > p:last-child {
    margin-bottom: 0;
}

/* CTA-Section Block (InnerBlocks-Variante): zentriert, Buttons im NSG-Stil */
.nsg-cta-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.nsg-cta-section h2 {
    margin: 0 0 1rem 0;
}

.nsg-cta-section > p {
    font-size: 1.125rem;
    color: var(--grey);
    margin: 0 0 2rem 0;
}

.nsg-cta-section .wp-block-buttons {
    justify-content: center;
    gap: 1rem;
    margin: 0;
    flex-wrap: wrap;
}

.nsg-cta-section .wp-block-button {
    margin: 0;
}

/* core/button im NSG-Stil rendern (überschreibt WP-Default-Look) */
.nsg-cta-section .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.nsg-cta-section .wp-block-button__link:hover {
    background-color: #c5060f;
    border-color: #c5060f;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 7, 18, 0.4);
}

/* Zweiter und folgender Button im CTA: Sekundär-Stil (Outline rot) */
.nsg-cta-section .wp-block-button:nth-of-type(n+2) .wp-block-button__link {
    background-color: transparent;
    color: var(--primary-red);
}

.nsg-cta-section .wp-block-button:nth-of-type(n+2) .wp-block-button__link:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* FAQ */
.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-grey);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--grey);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Download Items */
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.download-item:hover {
    transform: translateX(5px);
}

.download-info h3 {
    margin-bottom: 0.25rem;
}

.download-meta {
    font-size: 0.875rem;
    color: var(--grey);
}

/* Partner Logos */
.partner-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.partner-grid--large {
    grid-template-columns: repeat(3, 1fr);
}

.partner-grid--medium {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.partner-grid--small {
    grid-template-columns: repeat(4, 1fr);
}

.partner-logo {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partner-logo--large {
    min-height: 200px;
    padding: 2.5rem;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.partner-logo--large img {
    max-height: 140px;
}

/* Testimonial (Bild + Zitat, z.B. Startseite vor dem Footer) */
.wp-block-group.nsg-testimonial {
    padding-top: 8rem;
    padding-bottom: 8rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: var(--light-grey);
}

.nsg-testimonial .wp-block-media-text {
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: 40% 1fr;
    gap: 3rem;
    align-items: center;
}

.nsg-testimonial .wp-block-media-text__media {
    margin: 0;
}

.nsg-testimonial .wp-block-media-text__media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.nsg-testimonial .wp-block-media-text__content {
    padding: 0;
}

.nsg-testimonial .wp-block-quote {
    border-left: 4px solid var(--primary-red);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 0;
    font-style: normal;
}

.nsg-testimonial .wp-block-quote p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #1d1d1b;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.nsg-testimonial .wp-block-quote p:last-of-type {
    margin-bottom: 0;
}

.nsg-testimonial .wp-block-quote cite {
    display: block;
    margin-top: 1.5rem;
    color: var(--primary-red);
    font-weight: 600;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .nsg-testimonial {
        padding: 2.5rem 1rem;
    }

    .nsg-testimonial .wp-block-media-text {
        grid-template-columns: 1fr;
    }

    .nsg-testimonial .wp-block-media-text__media img {
        max-height: 360px;
    }

    .nsg-testimonial .wp-block-media-text__content {
        padding: 2rem 1.5rem;
    }

    .nsg-testimonial .wp-block-quote p {
        font-size: 1.05rem;
    }
}

/* Footer */
.site-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--grey);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.social-link:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.social-link i {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--grey);
    color: var(--grey);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .header-container {
        padding: 0 15px;
    }

    .logo {
        height: 55px;
        max-width: 220px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }

    .nav-item {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--light-grey);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: var(--light-grey);
        margin-top: 0;
    }

    .nav-item:hover .dropdown-menu {
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .language-switcher {
        border-left: none;
        border-top: 2px solid var(--light-grey);
        padding: 1rem 1.5rem;
        justify-content: center;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .download-item .btn {
        width: 100%;
    }

    .hero {
        background-position: left center;
        background-attachment: scroll;
    }

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

    /* Reduziere Anzahl der Bubbles auf mobilen Geraeten */
    .icon-5, .icon-6, .icon-7, .icon-8 {
        display: none;
    }

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

    .hero .event-date {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

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

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

    .grid-1,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .partner-grid,
    .partner-grid--large,
    .partner-grid--medium,
    .partner-grid--small {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 0 15px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

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

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

    .hero .event-date {
        font-size: 1.75rem;
    }
}

/* Modern Animations & Effects */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

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

/* Section Background Gradients */
.section-grey {
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

/* Stat Items with Gradient */
.stat-item {
    background: linear-gradient(135deg, rgba(225, 7, 18, 0.05) 0%, rgba(225, 7, 18, 0.02) 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(225, 7, 18, 0.1) 0%, rgba(225, 7, 18, 0.05) 100%);
}

.stat-number {
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c5060f 100%);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Section Title Enhancement */
.section-title {
    position: relative;
    display: inline-block;
}

/* Card Image Overlay Effect */
.card-image {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.card:hover .card-image {
    transform: scale(1.1);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
.card-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-image img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image img[data-src].loaded {
    opacity: 1;
}

.card-image img:not([data-src]) {
    opacity: 1;
}

/* Parallax Effect Prep */
.section {
    position: relative;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before {
        animation: none;
    }

    .card:hover {
        transform: none;
    }

    .stat-item:hover {
        transform: none;
    }
}

/* Sport Card Location Badge */
.card-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.35rem 0.75rem;
    background-color: var(--light-grey);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--grey);
}

.card-location i {
    color: var(--primary-red);
    font-size: 0.8rem;
}

/* Missing Text Highlight */
.missing-text {
    background-color: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #856404;
    font-style: italic;
}

/* WordPress-specific overrides */
.wp-site-blocks {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
}

/* Remove WordPress block gap between sections */
:where(.wp-site-blocks) > * {
    margin-block-start: 0;
}

/* Remove flow layout margins for our custom content */
.wp-block-post-content.is-layout-flow > * {
    margin-block-start: 0;
}

/* Don't constrain our full-width sections */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none;
}

/* Remove default padding from wp-block-group wrapper */
.wp-block-group {
    padding: 0;
}

/* Ensure template parts don't get block gap */
.wp-block-template-part {
    margin-block-start: 0 !important;
}

/* WordPress Query Loop as News Grid */
.news-query .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0 20px;
    margin: 0 auto;
    max-width: var(--max-width);
}

.news-query .wp-block-post-template > li {
    list-style: none;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-query .wp-block-post-template > li > .wp-block-group.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-query .wp-block-post-template > li .wp-block-group.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-query .wp-block-post-template > li .card-text {
    flex: 1;
}

.news-query .wp-block-post-template > li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-query .wp-block-post-template .wp-block-post-featured-image {
    margin: 0;
}

.news-query .wp-block-post-template .wp-block-post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-query .wp-block-post-template .card-meta {
    font-size: 0.875rem;
    color: var(--grey);
    padding: 1.5rem 1.5rem 0;
    margin: 0;
}

.news-query .wp-block-post-template .card-title {
    padding: 0.5rem 1.5rem 0;
    margin: 0;
    font-size: 1.1rem;
}

.news-query .wp-block-post-template .card-title a {
    color: var(--black);
    text-decoration: none;
}

.news-query .wp-block-post-template .card-title a:hover {
    color: var(--primary-red);
}

.news-query .wp-block-post-template .card-text {
    padding: 0.5rem 1.5rem 1.5rem;
    margin: 0;
}

.news-query .wp-block-post-template .card-text .wp-block-post-excerpt__excerpt {
    color: var(--grey);
    font-size: 0.95rem;
    margin: 0;
}

/* News query pagination */
.news-query .wp-block-query-pagination {
    margin-top: 2rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .news-query .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

/* WordPress section wrapper for news archive */
.news-query {
    padding: 3rem 0;
}

/* GravityForms 2-column layout */
.gform_wrapper .gform_body .gform_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gform_wrapper .gform_body .gfield.gf-half {
    grid-column: span 1;
}

.gform_wrapper .gform_body .gfield--type-html,
.gform_wrapper .gform_footer {
    grid-column: 1 / -1;
    text-align: center;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
}

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button:hover {
    background: #c5060f;
}

@media (max-width: 768px) {
    .gform_wrapper .gform_body .gform_fields {
        grid-template-columns: 1fr;
    }
}

/* WordPress Button Block → match original .btn styling */
.wp-block-button.btn .wp-block-button__link,
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.btn-secondary .wp-block-button__link,
.wp-block-button.btn-outline .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: 'Ubuntu', sans-serif;
    text-decoration: none;
}

.wp-block-button.btn-primary .wp-block-button__link {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c5060f 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.wp-block-button.btn-primary .wp-block-button__link:hover {
    background-color: #c5060f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 7, 18, 0.4);
}

.wp-block-button.btn-secondary .wp-block-button__link {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.wp-block-button.btn-secondary .wp-block-button__link:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.wp-block-button.btn-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.wp-block-button.btn-outline .wp-block-button__link:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

/* Reset WordPress button block default styles */
.wp-block-button.btn,
.wp-block-button.btn-primary,
.wp-block-button.btn-secondary,
.wp-block-button.btn-outline {
    margin: 0;
}

.wp-block-buttons.is-layout-flex {
    gap: 1rem;
    margin-top: 1rem;
}

/* Fix WordPress block flow layout spacing in our custom sections */
.wp-block-group.section.is-layout-flow > *,
.wp-block-group.card.is-layout-flow > *,
.wp-block-group.card-content.is-layout-flow > *,
.wp-block-group.grid.is-layout-flow > *,
.wp-block-group.container.is-layout-flow > *,
.wp-block-group.content-text.is-layout-flow > *,
.wp-block-group.single-post.is-layout-flow > *,
.wp-block-group.single-post-hero.is-layout-flow > *,
.wp-block-group.single-post-meta.is-layout-flow > *,
.wp-block-group.single-post-content.is-layout-flow > *,
.wp-block-group.single-post-nav.is-layout-flow > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Fix constrained layout adding extra padding on our containers */
.wp-block-group.container.is-layout-constrained {
    padding-left: 0;
    padding-right: 0;
}

.wp-block-group.container.has-global-padding {
    padding-left: 20px;
    padding-right: 20px;
}

/* Single Post Detail Page */
.single-post {
    padding: 3rem 0 4rem;
}

.single-post-hero {
    margin-bottom: 2rem;
}

.single-post-hero .wp-block-post-featured-image {
    margin: 0;
}

.single-post-hero .wp-block-post-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-grey);
    flex-wrap: wrap;
}

.single-post-meta .meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--grey);
}

.single-post-meta .meta-category a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.single-post-meta .meta-category a:hover {
    background-color: #c5060f;
}

.single-post-content {
    margin-bottom: 3rem;
}

.single-post-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--grey);
    margin-bottom: 1.5rem;
}

.single-post-content h2,
.single-post-content h3 {
    color: var(--black);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary-red);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--light-grey);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--grey);
}

/* Share Buttons */
.single-post-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--light-grey);
    border-bottom: 2px solid var(--light-grey);
    margin-bottom: 2rem;
}

.single-post-share-label {
    font-weight: 500;
    color: var(--black);
    margin-right: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--light-grey);
    color: var(--grey);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background-color: var(--share-color, var(--primary-red));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Back Navigation */
.single-post-nav {
    text-align: center;
}

.single-post-nav p {
    margin: 0;
}

@media (max-width: 768px) {
    .single-post-hero .wp-block-post-featured-image img {
        max-height: 250px;
        border-radius: 12px;
    }

    .single-post-meta {
        gap: 0.75rem;
    }

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

/* Ensure WordPress admin bar doesn't conflict with sticky header */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.cta-btn {
    padding: .7rem 2rem !important;
}