/* ========== Farbpalette und Variablen ========== */
:root {
  --primary: #5cb8c2;
  --primary-light: rgba(92, 184, 194, 0.1);
  --secondary: #ff9e4f;
  --secondary-light: rgba(255, 158, 79, 0.1);
  --dark: #2d3748;
  --dark-light: #4a5568;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #e2e8f0;
  --gray-dark: #cbd5e0;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  
  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
}

/* Header */
header {
    background: #7bc7ce;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: hidden;
    transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header .logo {
    height: 60px;
    width: auto;
    transition: height 0.3s ease-in-out;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 16px;
}

nav ul li a:hover {
    color: #fbd980;
}

nav {
    transition: opacity 0.3s ease-in-out;
}

.scrolled {
    max-height: 10px; /* Nur ein schmaler Balken */
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.8s ease-in-out, padding 0.4s ease-in-out;
}

.scrolled .logo,
.scrolled nav {
    opacity: 0;
    visibility: hidden;
    height: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.scrolled:hover {
    max-height: 200px;
    padding: 15px 0;
    transition: height 0.8s ease-in-out, padding 0.4s ease-in-out;
}

.scrolled:hover .logo {
    height: 60px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s ease-in-out 0.3s, transform 0.4s ease-in-out 0.3s; /* Verzögerung, damit zuerst height-Animation läuft */
}

.scrolled:hover nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s ease-in-out 0.3s, transform 0.4s ease-in-out 0.3s; /* Verzögerung, damit zuerst height-Animation läuft */
}

/* Footer */
footer {
    background: #7bc7ce;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer ul li {
    margin: 5px 10px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

footer ul li a:hover {
    color: #fbd980;
}

/* Hamburger-Menü */
.hamburger {
    display: none; /* Standardmäßig versteckt */
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1000;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Navigationsmenü */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-list li {
    margin: 0 10px;
}

.nav-list a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-list a:hover {
    color: #f7b35e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        padding: 0 15px;
    }
    
    header .logo {
        height: 50px;
    }
    
    .hamburger {
        display: block; /* Zeigt das Hamburger-Icon auf kleinen Bildschirmen an */
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Menü ist zunächst ausgeblendet */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        opacity: 0.95;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 70px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-list li {
        margin: 0;
        width: 100%;
    }

    .nav-list a {
        color: var(--primary);
        font-size: 18px;
        padding: 15px 20px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list a.phone-link {
        background: #fbd980;
        color: #333 !important;
        margin: 20px;
        border-radius: 4px;
        text-align: center;
        width: calc(100% - 40px);
        border-bottom: none;
    }

    /* Wenn das Menü geöffnet ist */
    .nav.active {
        right: 0;
    }

    /* Animation für das Hamburger-Icon */
    .hamburger.active .hamburger-inner {
        background-color: transparent;
    }

    .hamburger.active .hamburger-inner::before {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger-inner::after {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Scrolled State für Mobile anpassen */
    .scrolled:hover {
        max-height: none;
        padding: 0;
    }
    
    .scrolled:hover .logo,
    .scrolled:hover nav {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 480px) {
    header .logo {
        height: 45px;
    }
    
    footer ul {
        flex-direction: column;
        gap: 10px;
    }
    
    footer ul li {
        margin: 0;
    }
}

/* ========== Cookie-Banner ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    border-top: 3px solid var(--primary);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    color: var(--dark);
    font-size: 14px;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cookie-btn.accept {
    background: var(--primary);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: var(--secondary);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--gray);
}

.cookie-btn.decline:hover {
    background: var(--light-gray);
}

.cookie-btn.settings {
    background: transparent;
    color: var(--primary);
    text-decoration: underline;
    padding: 10px 5px;
}

.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-content {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.settings-content h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 18px;
}

.cookie-option {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
}

.cookie-option input {
    margin-right: 10px;
    margin-top: 3px;
}

.cookie-description {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
    font-weight: normal;
}

.settings-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .settings-buttons {
        justify-content: center;
    }
    
    .settings-buttons .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-content p {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .settings-content {
        padding: 15px;
    }
    
    .settings-content h3 {
        font-size: 16px;
    }
}