/* General Styling */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --text-color-dark: #343a40;
    --text-color-light: #ffffff;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --footer-bg: #343a40;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px; /* Specific max-width for content */
    margin: 0 auto; /* Center the container */
    padding: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color-dark);
    margin-bottom: 10px;
}

/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* DEUTLICH ERHÖHTER Z-INDEX */
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease-out forwards;
}

/* Header */
header {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    header h1 {
        color: var(--text-color-light);
        margin: 0;
        font-size: 2.5rem;
        float: left;
    }

    header nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        float: right;
    }

        header nav ul li {
            display: inline-block;
            margin-left: 20px;
        }

            header nav ul li a {
                color: var(--text-color-light);
                font-weight: 400;
                padding: 5px 10px;
                transition: color 0.3s ease;
            }

                header nav ul li a:hover,
                header nav ul li a.active {
                    color: var(--primary-color);
                    text-decoration: none;
                }

    /* Clearfix for header */
    header .container::after {
        content: "";
        display: table;
        clear: both;
    }

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), #0056b3);
    color: var(--text-color-light);
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack the direct children (the two containers) vertically */
    align-items: center; /* Center the stacked containers horizontally */
    justify-content: center;
    gap: 40px; /* Space between the top content and the notice section */
}

/* This new class handles the side-by-side layout for hero content and image */
.hero-main-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    width: 100%; /* Ensure it takes full available width */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

    .hero-content h2 {
        color: var(--text-color-light);
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center; /* Changed from right to center for better alignment */
}

    .hero-image .main-screenshot {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

/* No specific styling needed for .hero-notice-section, it uses default .container styles */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 1px solid var(--primary-color);
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border: 1px solid var(--secondary-color);
}

    .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
    }

/* Sections */
section {
    padding: 60px 0;
    text-align: center;
}

    section:nth-of-type(even) {
        background-color: #f0f2f5;
    }

    section h3 {
        font-size: 2.2rem;
        margin-bottom: 40px;
        position: relative;
        display: inline-block;
    }

        section h3::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -10px;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background-color: var(--primary-color);
            border-radius: 2px;
        }

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.12);
    }

    .feature-item img {
        max-width: 200px;
        margin-bottom: 20px;
    }

    .feature-item h4 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .feature-item p {
        font-size: 1rem;
        color: #666;
    }

/* Screenshots Section */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

    .screenshot-gallery img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

        .screenshot-gallery img:hover {
            transform: scale(1.02);
        }

/* FAQ Section */
.faq-section .faq-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 25px;
    background-color: #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    transition: background-color 0.3s ease;
}

    .faq-question:hover {
        background-color: #e2e6ea;
    }

    .faq-question span {
        font-size: 1.5rem;
        line-height: 1;
    }

.faq-answer {
    padding: 0 25px;
    background-color: var(--card-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

    .faq-answer p {
        padding-bottom: 18px; /* Padding for the actual text content */
        margin: 0; /* Remove default paragraph margin */
    }

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed based on content */
    padding: 18px 25px;
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

    .faq-item.active .faq-question span {
        transform: rotate(45deg);
    }

/* Dropdown-Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown-Inhalt standardmäßig verstecken */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Dropdown-Inhalt beim Hover anzeigen */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: Links im Dropdown stylen */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }

/* Downloads Section */
.downloads-section .download-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.download-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .download-item h3 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .download-item ul {
        list-style: none;
        padding: 0;
        margin: 15px 0;
    }

        .download-item ul li {
            margin-bottom: 8px;
            color: #555;
        }

    .download-item .btn {
        align-self: flex-start;
        margin-top: 20px;
    }

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color-light);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}
/* Site Overflow Bar */
.overflow-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg); /* Oder eine andere Farbe, die passt */
    color: var(--text-color-light);
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Stellt sicher, dass die Leiste über anderem Inhalt liegt */
    display: flex;
    justify-content: center;
    align-items: center;
}

.overflow-content {
    display: flex;
    gap: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--text-color-light);
    transition: background-color 0.3s ease;
}

    .share-btn img {
        width: 20px;
        height: 20px;
        filter: invert(1); /* Macht die Icons weiß, wenn sie ursprünglich dunkel sind */
    }

.facebook-btn {
    background-color: #3b5998; /* Facebook Blau */
}

    .facebook-btn:hover {
        background-color: #2d4373;
        text-decoration: none;
    }

.copy-btn {
    background-color: var(--secondary-color); /* Grau oder eine andere passende Farbe */
    cursor: pointer;
}

    .copy-btn:hover {
        background-color: #5a6268;
        text-decoration: none;
    }

.copy-message {
    background-color: #28a745; /* Grün für Erfolg */
    color: var(--text-color-light);
    padding: 8px 15px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .copy-message.show {
        opacity: 1;
        visibility: visible;
    }

/* Media Queries für Responsive Design */
@media (max-width: 600px) {
    .overflow-content {
        flex-direction: column;
        gap: 10px;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        float: none;
        text-align: center;
        margin-bottom: 20px;
    }

    header nav ul {
        float: none;
        text-align: center;
    }

        header nav ul li {
            margin: 0 10px;
        }

    /* .hero-main-content will stack its children on smaller screens */
    .hero-main-content {
        flex-direction: column; /* Stack content and image vertically */
        text-align: center; /* Center content horizontally */
    }

    .hero-content, .hero-image {
        min-width: unset;
        width: 100%;
        text-align: center; /* Center content/image within their respective divs */
    }

    .feature-grid, .screenshot-gallery, .download-list {
        grid-template-columns: 1fr;
    }

    .container { /* Ensure general container also adapts */
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .screenshot-gallery img {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .feature-item, .download-item {
        padding: 20px;
    }

    /* Falls die overflow-bar einen Z-Index hat oder bekommen sollte, hier anpassen */
    .overflow-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Beispiel Hintergrundfarbe */
        padding: 10px 0;
        z-index: 1000; /* Diesen Wert niedriger als den des Cookie-Banners halten */
    }

    @media (max-width: 600px) {
        .cookie-banner .container {
            flex-direction: column;
            text-align: center;
        }

        .cookie-buttons {
            flex-direction: column;
            gap: 10px;
        }

            .cookie-buttons .btn {
                width: 100%;
            }
    }
}

/* Slideshow Container */
.slideshow-container {
    max-width: 70%; /* Oder eine feste Breite, je nach Design */
    position: relative; /* Changed from center to relative for better positioning */
    margin: auto;
    overflow: hidden; /* Wichtig, um Überläufe zu verstecken */
    text-align: center; /* Center images inside the container */
}

/* Hide the images by default */
.mySlides {
    display: none;
    width: 100%;
}

/* Fade animation */
.fade {
    animation-name: fade;
    animation-duration: 4.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Optional: Fügen Sie ein paar grundlegende Styling für die Bilder hinzu, falls notwendig */
.slideshow-container img {
    vertical-align: middle;
    max-width: 100%; /* Changed from fixed width to max-width */
    height: auto; /* Changed from fixed height to auto for responsiveness */
    object-fit: contain; /* Ensure images fit within dimensions */
    display: block; /* Ensures no extra space below image */
    margin: 0 auto; /* Center the image if it's smaller than max-width */
}

.ticker-wrapper {
    background-color: #333; /* Dunkler Hintergrund für den Ticker */
    color: #fff; /* Weiße Schriftfarbe */
    padding: 10px 0;
    overflow: hidden; /* Versteckt den überlaufenden Inhalt */
    white-space: nowrap; /* Verhindert Zeilenumbruch */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Leichter Schatten */
}

.ticker {
    display: inline-block;
    padding-left: 100%; /* Startet den Text außerhalb des sichtbaren Bereichs */
    animation: ticker-animation 30s linear infinite; /* Animation für die Laufschrift */
}

    .ticker p {
        margin: 0;
        padding: 0;
        font-size: 0.9em;
    }

@keyframes ticker-animation {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@contact-form {
    display: flex;
    flex-direction: column;
}
    .contact-form input[type="email"] {
        width: 100%;
        max-width: 400px; /* Set a max-width for email input */
    }
    .contact-form textarea {
        width: 100%;
        max-width: 400px; /* Set a max-width for textarea */
    }
    .contact-form button {
        width: auto; /* Allow button to adjust based on content */
        max-width: 200px; /* Set a max-width for the button */
        align-self: center; /* Center the button horizontally */
    }
    /* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 150px;
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

    .contact-form button:hover {
        background-color: #0056b3;

    }
    /* Note Section */
.note-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 30px;
    text-align: center;
    }
    .note-section h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        }

    .note-section p {
        font-size: 1rem;
        color: #555;
        margin-bottom: 0;
        }
    /* Note */
    .note {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
    text-align: center;
    }
    /* Responsive Design for Note Section */
    @media (max-width: 600px) {
        .note-section {
            padding: 15px;
        }
        .note-section h3 {
            font-size: 1.3rem;
        }
        .note-section p {
            font-size: 0.9rem;
        }
    }
    /* Cookie Banner Responsive Design */
    @media (max-width: 600px) {
        .cookie-banner {
            padding: 10px 0;
            font-size: 0.9rem;
        }
        .cookie-banner p {
            margin-bottom: 10px;
        }
        .cookie-buttons {
            flex-direction: column;
            gap: 5px;
        }
        .cookie-buttons .btn {
            width: 100%;
            padding: 10px;
        }
    }
    /* Cookie Banner Animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    /* Cookie Banner Buttons */
    .cookie-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    .cookie-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    .cookie-buttons .btn.accept {
        background-color: #28a745; /* Green for accept */
        color: #fff;
    }
        .cookie-buttons .btn.accept:hover {
            background-color: #218838;
        }
        .cookie-buttons .btn.decline {
            background-color: #dc3545; /* Red for decline */
            color: #fff;
        }
        .cookie-buttons .btn.decline:hover {
            background-color: #c82333;
        }
        /* Cookie Banner Text */
        .cookie-banner p {
            margin: 0 20px 10px;
            font-size: 0.9rem;
        }
        /* Cookie Banner Close Button */
        .cookie-banner .close-btn {
            position: absolute;
            top: 10px;
            right: 20px;
            background: none;
            border: none;
            color: var(--text-color-light);
            font-size: 1.5rem;
            cursor: pointer;
        }
        .cookie-banner .close-btn:hover {
            color: #f8f9fa; /* Lighter color on hover */
        }
        /* Cookie Banner Responsive Design */
        @media (max-width: 600px) {
            .cookie-banner {
                padding: 15px 10px;
                font-size: 0.8rem;
            }
            .cookie-banner p {
                margin: 0 10px 10px;
            }
            .cookie-buttons {
                flex-direction: column;
                gap: 5px;
            }
            .cookie-buttons .btn {
                width: 100%;
                padding: 8px;
            }
        }
        /* Contact Form Responsive Design */
        @media (max-width: 600px) {
            .contact-form {
                padding: 15px;
            }
            .contact-form input[type="email"],
            .contact-form textarea {
                max-width: 100%; /* Full width on small screens */
            }
            .contact-form button {
                max-width: 100%; /* Full width on small screens */
            }
        }
        /* Note Section Responsive Design */
        @media (max-width: 600px) {
            .note-section {
                padding: 15px;
            }
            .note-section h3 {
                font-size: 1.2rem;
            }
            .note-section p {
                font-size: 0.9rem;
            }
        }
        /* Slideshow Responsive Design */
        @media (max-width: 600px) {
            .slideshow-container {
                max-width: 100%; /* Full width on small screens */
            }
            .slideshow-container img {
                width: 100%; /* Ensure images are responsive */
                height: auto; /* Maintain aspect ratio */
            }
        }
        /* Slideshow Navigation Buttons */
        .slideshow-container .prev,
        .slideshow-container .next {
            cursor: pointer;
            position: absolute;
            top: 50%;
            width: auto;
            padding: 16px;
            color: #fff;
            font-weight: bold;
            font-size: 18px;
            transition: background-color 0.3s ease;
        }
        .slideshow-container .prev:hover,
        .slideshow-container .next:hover {
            background-color: rgba(0, 0, 0, 0.5); /* Darken on hover */
        }
        .slideshow-container .prev {
            left: 0;
            border-radius: 0 3px 3px 0;
        }
        .slideshow-container .next {
            right: 0;
            border-radius: 3px 0 0 3px;
        }
        /* Slideshow Dots */
        .slideshow-container .dot {
            height: 15px;
            width: 15px;
            margin: 0 2px;
            background-color: #bbb;
            border-radius: 50%;
            display: inline-block;
            transition: background-color 0.6s ease;
        }
        .slideshow-container .active {
            background-color: #717171;
        }
        /* Slideshow Dots Responsive Design */
        @media (max-width: 600px) {
            .slideshow-container .dot {
                height: 10px;
                width: 10px;
            }
        }
        /* Slideshow Navigation Arrows */
        .slideshow-container .prev,
        .slideshow-container .next {
            background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
            border-radius: 50%; /* Rounded buttons */
            color: #fff; /* White text */
            font-size: 24px; /* Larger font size for better visibility */
        }
        .slideshow-container .prev:hover,
        .slideshow-container .next:hover {
            background-color: rgba(0, 0, 0, 0.5); /* Darker on hover */
        }

        /* Add some basic styles for the form message */
        .form-message {
         margin-top: 20px;
         font-weight: bold;
         text-align: center;
         opacity: 0;
         transition: opacity 0.5s ease;
        }