:root {
    --primary-color: #DA8A29; /* warm orange matching the hero image */
    --secondary-color: #F4B443; /* golden accent */
    --accent-color: #004D5B; /* deep teal for text and highlights */
    --light-color: #F6E8D2; /* warm beige background */
    --dark-color: #2E3B3E; /* dark slate for headings */
    --white: #FFFFFF;
    --gray-light: #F9F5EE;
    --shadow-color: rgba(0,0,0,0.1);
    --transition: 0.3s ease;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px var(--shadow-color);
    z-index: 999;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-area .logo-icon {
    width: 40px;
    height: 40px;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 24px;
}

nav a {
    font-weight: 500;
    transition: color var(--transition);
}

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

.cta-header {
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-weight: 600;
    transition: background var(--transition);
}

.cta-header:hover {
    background: var(--secondary-color);
}

/* Hamburger Menü */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    transform-origin: center;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

/* Animation zum "X" */
.hamburger.active {
    justify-content: center;      /* verhindert "space-between" Abstand */
}
.hamburger.active span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);  /* exakt mittig */
}

.hamburger.active span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 1090px) {
    .hamburger {
        display: flex;
    }
    .cta-header {
        display: none;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 5%;
        background: var(--white);
        box-shadow: 0 4px 10px var(--shadow-color);
        border-radius: 12px;
        padding: 20px;
        gap: 16px;
        display: none;
    }
    nav ul.active {
        display: flex;
    }
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px; /* space for the fixed header */
    overflow: hidden;
    color: var(--dark-color);
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* subtle white overlay to ensure text readability */
#hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.9) 80%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: auto;
}

.hero-text {
    flex: 1 1 55%;
    padding: 20px;
}

.hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.hero-description strong {
    color: var(--primary-color);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons_info {
    /* For the maintenance page we want the registration notice to stand out. */
    font-style: normal;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Strong tag within the hero buttons info inherits these styles but ensures compatibility */
.hero-buttons_info strong {
    font-weight: inherit;
    color: inherit;
}

/* Style for the trailer embedded within the hero section */
.hero-trailer {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
}

.btn {
    display: inline-block;
    width: 175px;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

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

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

.hero-image {
    flex: 1 1 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-image img {
    width: auto;
    max-height: 500px;
}

/* Trailer & Info */
.light-section {
    background-color: var(--gray-light);
}

#trailer {
    padding: 80px 0;
}

#trailer h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--accent-color);
}

.trailer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* align-items: flex-start; */
}

.video-wrapper {
    flex: 1 1 55%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/*
 * DSGVO-konforme Einbettung: zeige zunächst nur einen Platzhalter.
 * Das eigentliche Video wird erst durch einen Klick geladen (siehe index.html und Script).
 */
.youtube-placeholder {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-image: url('../images/trailer-thumbnail.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-color);
    cursor: pointer;
    overflow: hidden;
}
.youtube-placeholder .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: var(--white);
    text-align: center;
    border-radius: 12px;
    transition: background var(--transition);
}
.youtube-placeholder:hover .play-overlay {
    background: rgba(0, 0, 0, 0.6);
}
.youtube-placeholder .play-overlay i {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--white);
}
.youtube-placeholder .play-overlay p {
    font-size: 1rem;
    padding: 1rem 5rem;
    color: var(--white);
    margin: 0;
}

/* .info-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 75px 0;
    width: 100%;
    gap: 20px;
} */

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 75px auto;
    width: 100%;
    max-width: 1200px;        /* optional: begrenzt die Gesamtbreite */
    padding: 0 20px;          /* links/rechts Abstand */
}

.info-card {
    display: flex;
    flex: 1 1 0;
    gap: 12px;
    padding: 18px;
    align-items: center;
    box-shadow: 0 2px 6px var(--shadow-color);
    background: var(--white);
    border-radius: 12px;
    min-width: 0;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.info-card h3 {
    font-size: 1rem;
    text-align: left;
    color: var(--accent-color);
}

.info-card p {
    font-size: 0.9rem;
    text-align: left;
    color: var(--dark-color);
}

/* Program Section */
#das-erwartet-dich {
    padding: 80px 0;
}

#das-erwartet-dich h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
    color: var(--dark-color);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform var(--transition);
}

.program-card:hover {
    transform: translateY(-4px);
}

.program-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.program-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.program-card p {
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Info Section */
#infos-fuer-eltern {
    padding: 80px 0;
}

#infos-fuer-eltern h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-block {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.info-block h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.info-block ul {
    list-style: none;
    padding-left: 0;
}

.info-block li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 18px;
}

.info-block li::before {
    content: "\2022"; /* bullet */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Gallery & Testimonials */
#gallery {
    padding: 80px 0;
}

#gallery h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    height: 0;
    padding-bottom: 70%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--shadow-color);
    overflow: hidden;
}

/* Footer */
footer {
    background: var(--accent-color);
    color: var(--light-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 250px;
}

.footer-column a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

footer h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-links li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--light-color);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--light-color);
    transition: color var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 20px;
    color: var(--light-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text,
    .hero-image {
        flex: 1 1 100%;
    }
    .hero-text {
        align-items: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    nav ul {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .program-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        padding: 10px 5%;
    }
    .site-title {
        font-size: 1.2rem;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    nav ul {
        display: none; /* hide nav links on very small screens, can be improved with a mobile menu */
    }
    .cta-header {
        display: none;
    }
}