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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #f4f4f4 !important; /* Exakter Hintergrund, wie Footer */
    opacity: 1; /* Verhindert Transparenz */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav-menu a:hover {
    color: #007bff;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
}

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

.dropdown:hover .dropdown-content {
    display: block;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    flex-grow: 1;
}

section {
    margin-bottom: 2rem;
}

.hero {
    background: url('../img/hero.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

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

.hero p {
    font-size: 1.2rem;
}

footer {
    background-color: #f4f4f4 !important; /* Exakter Hintergrund, wie Header */
    opacity: 1; /* Verhindert Transparenz */
    color: #333;
    text-align: center;
    padding: 1rem 0;
    flex-shrink: 0;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-menu li {
    margin: 0 10px;
}

.footer-menu a {
    color: #333;
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #d3d3d3;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #e0e0e0;
    }
    .hamburger {
        display: block;
    }
}

/* Cookie page styles */
.cookie-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.cookie-info h2 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.cookie-info h3 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-info ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.cookie-info li {
    margin-bottom: 0.5rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem 0;
    background: white;
    border: 1px solid #ddd;
}

.cookie-table th {
    background: #007bff;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.cookie-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
}

.cookie-table tr:nth-child(even) {
    background: #f8f9fa;
}

.cookie-table tr:hover {
    background: #e9ecef;
}

.cookie-actions {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.cookie-btn.accept {
    background: #28a745;
    color: white;
}

.cookie-btn.accept:hover {
    background: #218838;
}

.cookie-btn.reject {
    background: #dc3545;
    color: white;
}

.cookie-btn.reject:hover {
    background: #c82333;
}

.cookie-btn.settings {
    background: #6c757d;
    color: white;
}

.cookie-btn.settings:hover {
    background: #5a6268;
}

.cookie-btn.more {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.cookie-btn.more:hover {
    background: #007bff;
    color: white;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
    }
    
    .cookie-table {
        display: block;
        overflow-x: auto;
    }
}