/* Performance & Mobile Optimizations */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Entfernt Touch-Highlight auf iOS */
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Optimized body with parallax background */
body {
    font-family: 'Open Sans', sans-serif;
    background-image: url("Bilder/kamera/back.JPG");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Headlines */
h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 !important;
}

h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: #34495e;
    margin: 0 !important;
}

/* Header / Überschrift */
.überschrift, header {
    padding: 6px 20px !important;
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0 !important;
}

/* Navigation */
/* nav .nav-link styles moved to bottom of stylesheet */

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px 20px;
}

.feature {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    animation: fadeInFeature 0.5s ease both;
}

@keyframes fadeInFeature {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delay für Features */
.feature:nth-child(1)  { animation-delay: 0.05s; }
.feature:nth-child(2)  { animation-delay: 0.10s; }
.feature:nth-child(3)  { animation-delay: 0.15s; }
.feature:nth-child(4)  { animation-delay: 0.20s; }
.feature:nth-child(5)  { animation-delay: 0.25s; }
.feature:nth-child(6)  { animation-delay: 0.30s; }
.feature:nth-child(7)  { animation-delay: 0.35s; }
.feature:nth-child(8)  { animation-delay: 0.40s; }
.feature:nth-child(9)  { animation-delay: 0.45s; }
.feature:nth-child(10) { animation-delay: 0.50s; }

/* Nach der Einblend-Animation: animation entfernen damit hover-transform greift */
.feature.anim-done {
    animation: none;
}

.feature:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.feature h2 {
    font-size: 1.5rem;
    color: #007bff;
}

.feature p {
    color: #555;
}

/* Card Styles */
.card {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Buttons */
button, .btn {
    font-family: 'Roboto', sans-serif;
    background-color: rgba(131, 131, 131, 0.47);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 5px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Video Container */
.container {
    text-align: center;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.container video {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
}

/* Modern Footer Styles */
.modern-footer {
    background-color: #f8f9fa;
    color: #333;
    padding: 40px 0 30px;
    margin-top: 50px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    transition: transform 0.3s ease;
    cursor: pointer;
    filter: none;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-text {
    text-align: center;
}

.footer-text .copyright {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.footer-text .credits {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.footer-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.modern-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.modern-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8d7da;
    padding: 15px;
    text-align: center;
    z-index: 9999;
}

.cookie-banner button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cookie-banner button:hover {
    background-color: #0056b3;
}

/* Disable interactions while cookie banner is visible */
.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Video Section */
.video-section {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.video-section video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: none;
}

.video-section .text {
    margin-top: 1rem;
}

.video-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.video-section p {
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
}

/* Responsive Headlines */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Disable parallax on mobile for better performance */
        background-size: cover;
    }

    /* Mobile navigation styles moved to bottom of stylesheet */

    /* Mobile-optimized features grid */
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }

    .feature {
        padding: 25px 20px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .feature h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .feature p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Mobile header optimization */
    .überschrift, header {
        padding: 12px 15px !important;
    }

    .überschrift h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .überschrift h2 {
        font-size: 1.2rem !important;
        line-height: 1.4;
    }

    /* Mobile video container */
    .container, .video-section {
        margin: 20px 15px;
        padding: 15px;
    }

    .video-section h2 {
        font-size: 1.5rem;
    }

    /* Mobile footer */
    .modern-footer {
        padding: 20px 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-logo img {
        width: 150px;
        height: auto;
    }

    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }

    .modern-btn {
        width: 200px;
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
    }

    .footer-text .copyright {
        font-size: 13px;
    }

    .footer-text .credits {
        font-size: 11px;
    }

    /* Touch-friendly buttons */
    button, .btn {
        min-height: 44px; /* Apple's recommended touch target size */
        padding: 12px 20px;
        font-size: 16px;
        margin: 8px;
    }

    /* Mobile cookie banner */
    .cookie-banner {
        flex-direction: column;
        gap: 10px;
        padding: 20px 15px;
        bottom: 0;
        width: 100%;
        border-radius: 0;
    }

    .cookie-banner p {
        font-size: 13px;
        line-height: 1.4;
    }

    #acceptCookies, #denyCookies {
        width: 100%;
        margin: 5px 0;
        padding: 12px;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 40px 30px;
    }

    .überschrift h1 {
        font-size: 2.2rem;
    }

    .überschrift h2 {
        font-size: 1.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 20px;
    }
}

/* Performance optimizations */
img {
    loading: lazy;
    max-width: 100%;
    height: auto;
}

/* Optimized animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    /* Feature-Karten immer sichtbar, auch ohne Animation */
    .feature {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Better focus states for accessibility */
button:focus,
.nav-link:focus,
.feature:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100% !important;
}

/* Override global .container styles for the navbar container */
.navbar .container {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    margin: 10px auto !important;
    padding: 8px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1320px !important;
    border: none !important;
    text-align: left !important;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-brand img {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.2s ease !important;
}

.navbar-brand img:hover {
    transform: scale(1.03) !important;
}

/* Desktop Styles (No Wrap, Flexible Fit) */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        gap: 4px !important;
    }

    .nav-item {
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .nav-link {
        font-family: 'Bebas Neue', sans-serif !important;
        font-size: 18px !important;
        letter-spacing: 0.8px !important;
        color: #333333 !important;
        padding: 8px 14px !important;
        border-radius: 4px !important;
        transition: all 0.2s ease !important;
        display: inline-block !important;
        text-decoration: none !important;
    }

    .nav-link:hover {
        color: #007bff !important;
        background-color: rgba(0, 123, 255, 0.05) !important;
    }

}

/* Extra tight spacing on intermediate screens to prevent overflow */
@media (min-width: 992px) and (max-width: 1250px) {
    .navbar .container {
        padding: 8px 16px !important;
        margin: 8px auto !important;
    }
    .navbar-brand img {
        height: 50px !important;
    }
    .nav-link {
        font-size: 14px !important;
        padding: 6px 8px !important;
        letter-spacing: 0.5px !important;
    }
}

/* Mobile & Tablet Collapsed Styles */
@media (max-width: 991.98px) {
    .navbar .container {
        border-radius: 12px !important;
        margin: 15px 15px !important;
        padding: 10px 20px !important;
    }

    .navbar-brand img {
        height: 45px !important;
    }

    .navbar-collapse {
        margin-top: 15px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        padding-top: 10px !important;
        width: 100% !important;
    }

    .navbar-nav {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 5px !important;
    }

    .nav-item {
        width: 100% !important;
        text-align: center !important;
    }

    .nav-link {
        font-family: 'Bebas Neue', sans-serif !important;
        font-size: 17px !important;
        letter-spacing: 1px !important;
        color: #333333 !important;
        padding: 10px 15px !important;
        display: block !important;
        width: 100% !important;
        border-radius: 8px !important;
        text-decoration: none !important;
    }

    .nav-link:hover {
        color: #007bff !important;
        background-color: rgba(0, 123, 255, 0.05) !important;
    }
}

.navbar-toggler {
    padding: 0.25rem 0.5rem !important;
    border: none !important;
    background: transparent !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}


/* Bootstrap bg-white und shadow-sm überschreiben */