* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --primary-orange: #ff9900;
    --light-blue: #e6f3ff;
    --dark-blue: #004499;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

html {
    scroll-behavior: smooth;
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
.section {
    padding: 100px 0 100px 0; /* mehr Abstand oben und unten */
    text-align: center;
    background-color: var(--light-gray);
}

.section:nth-of-type(even) {
    background-color: var(--white);
}

.section-title {
    margin-bottom: 70px; /* mehr Abstand nach unten */
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-secondary, .cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary, .cta-button {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover, .cta-button:hover {
    background-color: #e68a00; /* Darker orange */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 153, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 102, 204, 0.3);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px; /* mehr horizontaler Abstand */
    min-height: 70px; /* mehr Höhe für bessere Lesbarkeit */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
    margin-right: 10px;
    color: var(--primary-orange);
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 10px; /* Abstand zwischen Nav-Items */
}

.nav-item {
    margin-left: 40px; /* mehr Abstand zwischen Menüpunkten */
    position: relative;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link i {
    font-size: 1rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    background-color: var(--dark-blue);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px 0;
    top: 100%; /* Direkt unter dem Button */
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* NEU: Dropdown nur beim Hover/Fokus auf nav-item anzeigen */
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Entferne alle .dropdown:hover und .nav-item .dropdown:hover Regeln! */

.dropdown a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
}

.dropdown a:hover {
    background-color: var(--primary-blue);
    color: var(--primary-orange);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}


.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('https://bluehorizonrp.com/assets/kh.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: var(--primary-orange);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px; /* mehr Abstand zwischen Cards */
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 5px solid var(--primary-blue);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-bottom-color: var(--primary-orange);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-orange);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* About Section */
.about {
    background-color: var(--white);
    text-align: left;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px; /* mehr Abstand zwischen Spalten */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.about-text {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    min-width: 400px; /* Minimum width before wrapping */
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px; /* mehr Abstand zwischen Cards */
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.news-image {
    background: url('https://bluehorizonrp.com/assets/kh.jpg') no-repeat center center/cover; /* Placeholder */
    height: 200px;
    width: 100%;
}

.news-card:nth-child(2) .news-image {
    background-image: url('https://via.placeholder.com/400x250/ff9900/FFFFFF?text=Event');
}

.news-card:nth-child(3) .news-image {
    background-image: url('https://via.placeholder.com/400x250/0066cc/FFFFFF?text=Equipment');
}

.news-content {
    padding: 30px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-orange);
    margin-bottom: 10px;
    font-weight: bold;
}

.news-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.news-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--dark-blue);
}

.read-more i {
    font-size: 1rem;
    margin-left: 8px;
    transition: margin-left 0.2s ease;
}

.read-more:hover i {
    margin-left: 12px;
}

/* Contact Section (Adjusted for general use if not using contact.php) */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* mehr Abstand zwischen Spalten */
    margin-top: 40px;
    text-align: left;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 2.1rem;
    color: var(--primary-orange);
    margin-right: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-item div {
    color: var(--text-light);
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-blue);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
    outline: none;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: var(--white);
    padding: 60px 0 30px 0;
    text-align: left;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-orange);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.footer-section p, .footer-section ul li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-orange);
}

.footer-section .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

.footer-section .contact-item i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-grow: 1;
}

.cookie-text {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary-orange);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-accept {
    background-color: var(--primary-orange);
    color: var(--white);
}

.cookie-accept:hover {
    background-color: #e68a00;
}

.cookie-decline {
    background-color: var(--white);
    color: var(--primary-blue);
}

.cookie-decline:hover {
    background-color: #f0f0f0;
}


/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        padding: 20px 0;
        border-radius: 0 0 10px 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        padding: 15px 20px;
        justify-content: center;
    }

    .cta-button {
        display: none; /* Hide CTA button in mobile nav */
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 80%;
        margin: 0 auto;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text, .about-image {
        min-width: unset; /* Remove min-width to allow full flexibility */
        width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-section ul li {
        width: fit-content;
    }

    .social-links {
        justify-content: center;
    }
    .footer-section .contact-item {
        justify-content: center;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    /* Dropdown für mobile Navigation */
    .dropdown {
        position: static;
        display: none;
        background-color: rgba(0,0,0,0.2);
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item:hover > .dropdown,
    .nav-item:focus-within > .dropdown {
        display: none;
    }

    .nav-item.active > .dropdown { /* Wird per JS für mobile geöffnet */
        display: block;
    }

    .dropdown a {
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .section {
        padding: 60px 0 60px 0;
    }
    .features-grid,
    .news-grid,
    .team-grid,
    .training-grid,
    .download-list,
    .join-steps {
        gap: 30px;
    }
    .about-content,
    .contact-content {
        gap: 30px;
    }
    .navbar {
        padding: 0 15px;
        min-height: 60px;
    }
    .nav-item {
        margin-left: 0;
    }
}

/* Bootstrap Icons Anpassung */
.bi {
    vertical-align: -.125em;
    margin-right: 8px;
    font-size: 1.2em;
}
.features-grid .bi,
.feature-icon .bi {
    font-size: 2.2rem;
    margin-right: 0;
}
.section-title .bi {
    font-size: 2rem;
    margin-bottom: -5px;
    margin-right: 10px;
}
.contact-item .bi {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--primary-orange);
}
.footer-section .bi {
    font-size: 1.1rem;
    margin-right: 8px;
    color: var(--primary-orange);
}
.pdf-icon .bi,
.pdf-download-icon .bi {
    font-size: 2rem;
    margin-right: 0;
}
.download-hint .bi {
    font-size: 1.3rem;
    margin-right: 6px;
    color: var(--primary-orange);
}