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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Header and Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5f2d;
}

.nav-logo img {
    height: 40px;
    margin-right: 10px;
}

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

.nav-menu li {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #2c5f2d;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.2rem;
    margin-left: 0.8rem;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: #2c5f2d;
    color: #2c5f2d;
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #2c5f2d;
    border-color: #2c5f2d;
    color: white;
}

.flag-icon {
    font-size: 1rem;
    line-height: 1;
}

.lang-text {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Image Banner */
.image-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed header */
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 450px;
    width: auto;
}

.banner-overlay h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.banner-overlay p {
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Prayer Countdown Timer */
.prayer-countdown {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.countdown-header i {
    font-size: 1rem;
    color: #ffd700;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
}

.time-unit span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.time-unit label {
    font-size: 0.7rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.time-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 0.3rem;
}

/* Pulsing animation for countdown */
.countdown-timer .time-unit span {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c5f2d;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2c5f2d;
    color: white;
}

.btn-primary:hover {
    background: #245a26;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2c5f2d;
    border: 2px solid #2c5f2d;
}

.btn-secondary:hover {
    background: #2c5f2d;
    color: white;
}

/* Prayer Times Section */
.prayer-times {
    padding: 80px 20px;
    background: #fff;
}

.prayer-times h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5f2d;
}

.prayer-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Ensure consistent grid layout for 6 items */
@media (min-width: 1200px) {
    .prayer-schedule {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .prayer-schedule {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .prayer-schedule {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .special-times {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

.prayer-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.prayer-item:hover {
    transform: translateY(-5px);
}

.prayer-item h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.prayer-item .time {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Sunrise specific styling */
.sunrise-item {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border: 2px solid #f39c12;
    position: relative;
}

.sunrise-item h3 {
    color: #d63031;
    font-weight: 600;
}

.sunrise-item .time {
    color: #2d3436;
}

.sunrise-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #f39c12;
    font-size: 1.5rem;
    animation: sunshine 3s ease-in-out infinite;
}

/* Fallback: CSS sun icon if FontAwesome fails */
.sunrise-icon::before {
    content: "☀";
    display: inline-block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Hide the fallback if FontAwesome loads */
.fa-solid.sunrise-icon::before,
.fas.sunrise-icon::before {
    content: "";
}

@keyframes sunshine {
    0%, 100% { 
        transform: scale(1);
        color: #f39c12;
    }
    50% { 
        transform: scale(1.1);
        color: #e17055;
    }
}

/* Special Islamic Times Section */
.special-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.special-times h3 {
    display: none; /* Hide the "Besondere Zeiten" heading */
}

.special-time-item {
    background: #f0f8f0;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #e8f5e8;
}

.special-time-item:hover {
    transform: translateY(-5px);
}

.special-time-item h4 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.special-time-item .time {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5f2d;
    opacity: 0.9;
}

/* Special styling for Fajr in Congregation */
.special-time-item:first-child {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f4dd 100%);
    border: 2px solid #2c5f2d;
}

.special-time-item:first-child .fas {
    color: #2c5f2d;
    font-size: 1.2rem;
}

.friday-prayer {
    background: #2c5f2d;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.friday-prayer h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c5f2d;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.mission-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-item i {
    font-size: 2rem;
    color: #2c5f2d;
    margin-top: 0.5rem;
}

.value-item h4 {
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: #fff;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5f2d;
}

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

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: #2c5f2d;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Events Section */
.events {
    padding: 80px 20px;
    background: #f8f9fa;
}

.events h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5f2d;
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.event-date {
    background: #2c5f2d;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-info h3 {
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.event-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.event-time {
    color: #2c5f2d;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: #fff;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5f2d;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5f2d;
    margin-top: 0.5rem;
}

.contact-item h3 {
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-link a {
    color: #2c5f2d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link a:hover {
    color: #245a26;
    text-decoration: underline;
}

.contact-note {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #2c5f2d;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-note p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-note i {
    color: #2c5f2d;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #2c5f2d;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo img {
    height: 35px;
    margin-right: 10px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* Banner Responsive Styles */
@media (max-width: 768px) {
    .image-banner {
        height: 40vh;
        min-height: 300px;
    }
    
    .banner-overlay {
        padding: 1rem;
        max-width: 350px;
        left: 1rem;
    }
    
    .banner-overlay h2 {
        font-size: 1.5rem;
    }
    
    .banner-overlay p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .prayer-countdown {
        padding: 0.8rem;
        margin-top: 1rem;
    }
    
    .countdown-header {
        font-size: 0.8rem;
    }
    
    .countdown-timer {
        gap: 0.6rem;
    }
    
    .time-unit {
        min-width: 45px;
    }
    
    .time-unit span {
        font-size: 1.5rem;
    }
    
    .time-unit label {
        font-size: 0.6rem;
    }
    
    .time-separator {
        font-size: 1.2rem;
        margin: 0 0.2rem;
    }
}

@media (max-width: 480px) {
    .image-banner {
        height: 35vh;
        min-height: 250px;
    }
    
    .banner-overlay {
        padding: 0.8rem;
        max-width: 280px;
        left: 0.5rem;
    }
    
    .banner-overlay h2 {
        font-size: 1.2rem;
    }
    
    .banner-overlay p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .prayer-countdown {
        padding: 0.6rem;
        margin-top: 0.8rem;
    }
    
    .countdown-header {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .countdown-timer {
        gap: 0.4rem;
    }
    
    .time-unit {
        min-width: 40px;
    }
    
    .time-unit span {
        font-size: 1.2rem;
    }
    
    .time-unit label {
        font-size: 0.6rem;
    }
    
    .time-separator {
        font-size: 1rem;
        margin: 0 0.1rem;
    }
    
    .language-switcher {
        margin-bottom: 1.2rem;
    }
    .image-banner {
        margin-top: 200px; /* More space for stacked header */
        min-height: 220px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 4rem 0 2rem 0; /* Add more top padding to avoid collision */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }
    
    .language-switcher {
        position: absolute;
        top: 0.5rem;
        right: 1rem;
        z-index: 1001;
        /* Ensure language switcher stays fixed in header area */
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .flag-icon {
        font-size: 0.9rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 100px 20px 60px;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .prayer-schedule {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .sunrise-icon {
        font-size: 1.2rem;
        top: 8px;
        right: 10px;
    }

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

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        min-width: auto;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .prayer-schedule {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .sunrise-item {
        padding: 1.5rem;
        background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%) !important;
        border: 1px solid #f39c12 !important;
    }
    
    .sunrise-icon {
        font-size: 1rem;
        top: 5px;
        right: 8px;
        color: #f39c12 !important;
    }
    
    .sunrise-item h3 {
        color: #d63031 !important;
        font-size: 0.9rem;
    }
    
    .sunrise-item .time {
        color: #2d3436 !important;
        font-size: 1.5rem !important;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    .nav-logo {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    .language-switcher {
        position: static;
        margin-top: 0.3rem;
        margin-left: 0;
        justify-content: center;
    }
}

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

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #2c5f2d;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: white;
    }
    
    .hero h1 {
        color: black;
    }
    
    .hero p {
        color: black;
    }
}

.donate {
    padding: 60px 20px;
    background-color: #f5f5f5;
    text-align: center;
}
.donate h2 {
    margin-bottom: 20px;
    font-size: 2em;
}
.donate p {
    font-size: 1.1em;
    margin-bottom: 30px;
}
.paypal-button button {
    font-size: 1.1em;
    padding: 10px 25px;
    background-color: #0070ba;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.paypal-button button:hover {
    background-color: #005c9e;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 95, 45, 0.98);
    color: white;
    z-index: 10001;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 3px solid #4CAF50;
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2rem;
    color: #ffd700;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.cookie-text p {
    margin: 0 0 0.8rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e0e0e0;
}

.cookie-links {
    font-size: 0.85rem;
}

.cookie-links a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.cookie-links span {
    margin: 0 0.5rem;
    color: #ccc;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-btn-essential {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cookie-btn-essential:hover {
    background: #fff;
    color: #2c5f2d;
}

.cookie-btn-all {
    background: #ffd700;
    color: #2c5f2d;
    border: 2px solid #ffd700;
}

.cookie-btn-all:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.3s ease;
}

.cookie-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.cookie-modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #2c5f2d;
    font-size: 1.3rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cookie-modal-close:hover {
    background: #f0f0f0;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.cookie-category-header h4 {
    margin: 0;
    color: #2c5f2d;
    font-size: 1rem;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Toggle Switch Styles */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2c5f2d;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

input:disabled + .toggle-slider {
    background-color: #4CAF50;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cookie-btn-primary {
    background: #2c5f2d;
    color: white;
    border: 2px solid #2c5f2d;
}

.cookie-btn-primary:hover {
    background: #245a26;
    border-color: #245a26;
}

.cookie-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.cookie-btn-secondary:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

/* Responsive Design for Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Remove the old rule that moves language switcher inside menu */
    .nav-menu.active + .language-switcher {
        position: fixed !important;
        top: 0.5rem !important;
        right: 1rem !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.5rem;
        border-radius: 8px;
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1002;
    }
}

@media (max-width: 480px) {
    .nav-menu.active + .language-switcher {
        position: fixed !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.4rem;
        border-radius: 6px;
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1002;
    }
}

/* Begegnung Banner Styles */







@media (max-width: 768px) {

@media (max-width: 992px) {
