/* ==========================================================================
   VMD GLOBAL COMPONENTS STYLING (Header & Footer)
   Premium Glassmorphism & Responsive Design System
   ========================================================================== */

:root {
    --vmd-blue-dark: #202235;
    --vmd-accent: #c04930;
    --vmd-accent-light: #d85a40;
    --font-main: 'Outfit', sans-serif;
}

/* --- HEADER / VEMADO-HEADER --- */
header, vemado-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                -webkit-backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    font-family: var(--font-main);
    height: 64px;
    opacity: 1 !important;
}

/* Scrolled State - Premium Glassmorphism */
header.scrolled, vemado-header.scrolled {
    background: rgba(32, 34, 53, 0.88); /* Exakter VMD-Dunkelblau Farbton mit edler Transparenz */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 60px;
}

.header-left {
    background: #ffffff;
    padding: 0 20px 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    height: 52px; /* Erhöht für 50% größeres Logo */
    margin-left: 24px;
}

/* Morphing-Effekt im gescrollten Zustand */
header.scrolled .header-left, vemado-header.scrolled .header-left {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
    padding: 0 20px 0 12px; /* Exakt gleiches Padding beibehalten zur Vermeidung von Breiten-Sprüngen */
    margin-left: 24px;
    height: 52px;
}

.header-left img {
    height: 36px; /* Konstante Höhe */
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .header-left img, vemado-header.scrolled .header-left img {
    height: 36px; /* Exakt gleiche Höhe wie im unscrolled Zustand beibehalten zur Vermeidung von Skalierungseffekten */
}

.header-left .company-name {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: #1c2b4b;
    font-family: var(--font-main);
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .header-left .company-name, vemado-header.scrolled .header-left .company-name {
    color: #ffffff;
}

.header-nav {
    padding: 0 5%;
    display: flex;
    gap: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    height: 60px; /* Feste Höhe passend zum Header */
}

header.scrolled .header-nav, vemado-header.scrolled .header-nav {
    padding: 0 5%; /* Stabil halten, um jeglichen Sprung zu vermeiden */
}

.header-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease, transform 0.2s ease;
    font-family: var(--font-main);
}

.header-nav a.active { 
    color: var(--vmd-accent, #c04930); 
}

.header-nav a:hover { 
    color: var(--vmd-accent, #c04930); 
    transform: translateY(-1px);
}

/* Dropdown Styles */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Centered relative to the link */
    background-color: #ffffff;
    width: min(800px, calc(100vw - 48px)); /* Wide enough for 4 columns, safe on 1024px */
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border-radius: 16px;
    padding: 20px; /* Inner padding around the grid */
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Bridge the hover gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px; /* bridges the 10px margin-top plus extra */
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.col-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vmd-accent, #c04930);
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.col-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-content .group-title-link {
    color: #333333 !important;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 6px;
    display: block !important;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: none;
}

.dropdown-content .group-title-link:hover {
    background-color: #f8f9fa;
    color: var(--vmd-accent, #c04930) !important;
    padding-left: 14px !important;
}

.dropdown-content .sub-link {
    color: #666666 !important;
    padding: 4px 10px 4px 18px !important;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    border-radius: 6px;
    display: block !important;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: none;
}

.dropdown-content .sub-link:hover {
    background-color: #f8f9fa;
    color: var(--vmd-accent, #c04930) !important;
    padding-left: 22px !important;
}

.nav-item-dropdown:hover .dropdown-content {
    display: grid;
}


/* --- FOOTER / VEMADO-FOOTER --- */
footer, vemado-footer {
    background: linear-gradient(180deg, #1d1f30 0%, #121320 100%);
    color: #ffffff;
    padding: 0;
    margin-top: 80px;
    display: block;
    font-family: var(--font-main);
    width: 100%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    padding: 76px 0 54px;
    position: relative;
}

.footer-container {
    display: grid;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 5%;
    grid-template-columns: 1.2fr 0.8fr 3.3fr 1.5fr;
    gap: 40px;
    text-align: left;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer-logo-link:hover {
    opacity: 0.9;
}

.footer-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-column .brand-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 20px;
    font-family: var(--font-main);
}

.footer-partner-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.footer-partner-badge .partner-badge-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.footer-partner-badge .partner-badge-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-partner-badge .partner-badge-name i {
    color: var(--vmd-accent, #c04930);
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    font-family: var(--font-main);
    letter-spacing: -0.01em;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 28px;
    height: 2px;
    background-color: var(--vmd-accent, #c04930);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    font-family: var(--font-main);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-column ul li a:focus-visible {
    outline: none;
    color: var(--vmd-accent, #c04930);
    text-decoration: underline;
}

/* Insurance Column Sub-Grid & Compact Links */
.insurance-sub-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.insurance-sub-columns .sub-column {
    min-width: 0;
    overflow-wrap: break-word;
}

.insurance-sub-columns h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: normal;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.insurance-sub-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insurance-sub-columns ul li {
    margin-bottom: 12px !important;
}

.category-main-link {
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.86rem !important;
    display: inline-block !important;
    transition: all 0.25s ease !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.35 !important;
}

.category-main-link:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

.category-main-link:focus-visible {
    outline: none;
    color: var(--vmd-accent, #c04930) !important;
    text-decoration: underline;
}

.category-sub-links {
    display: block;
    margin-top: 4px;
}

.sub-link-tag {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.2s ease !important;
    display: inline !important;
    font-weight: 400 !important;
}

.sub-link-tag:hover {
    color: var(--vmd-accent, #c04930) !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.sub-link-tag:not(:last-child)::after {
    content: "•";
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.25);
    display: inline-block;
}

.insurance-sub-columns li a:hover {
    padding-left: 0 !important;
}

/* --- FOOTER RESPONSIVE: LAPTOPS & TABLETS LANDSCAPE (1025px - 1280px) --- */
@media (min-width: 993px) and (max-width: 1280px) {
    .footer-container {
        grid-template-areas: 
            "brand nav contact"
            "insurance insurance insurance";
        grid-template-columns: 1.2fr 0.8fr 1.6fr;
        gap: 36px 32px;
    }
    .footer-column.brand-col {
        grid-area: brand;
    }
    .footer-column.nav-col {
        grid-area: nav;
    }
    .footer-column.contact-col {
        grid-area: contact;
    }
    .footer-column.insurance-col {
        grid-area: insurance;
        margin-top: 6px;
        padding-top: 28px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .insurance-sub-columns {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Contact Column Cards & Interactivity */
.footer-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-contact-link:hover {
    background: rgba(192, 73, 48, 0.12);
    border-color: rgba(192, 73, 48, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.footer-contact-link:focus-visible {
    outline: none;
    border-color: var(--vmd-accent, #c04930);
    box-shadow: 0 0 0 2px rgba(192, 73, 48, 0.5);
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(192, 73, 48, 0.15);
    color: var(--vmd-accent, #c04930);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.footer-contact-link:hover .footer-contact-icon {
    background: var(--vmd-accent, #c04930);
    color: #ffffff;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.footer-contact-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-service-hours {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 2px;
}

.footer-hours-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-hours-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.footer-hours-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.footer-hours-val {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    padding: 24px 0;
    background-color: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.25s ease;
    font-family: var(--font-main);
}

.legal-links a:hover {
    color: #ffffff;
}

.legal-links a:focus-visible {
    outline: none;
    color: var(--vmd-accent, #c04930);
    text-decoration: underline;
}

.copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-family: var(--font-main);
}

/* --- VMD COOKIE BANNER (Premium Glassmorphism) --- */
.vmd-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(32, 34, 53, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: var(--font-main);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    visibility: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.vmd-cookie-banner.show-banner {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.vmd-cookie-banner.hidden-banner {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 5%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cookie-icon {
    font-size: 1.8rem;
    color: var(--vmd-accent, #c04930);
    animation: cookiePulse 2s infinite ease-in-out;
}

@keyframes cookiePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.cookie-banner-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.cookie-banner-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px 0;
}

.cookie-banner-links {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.cookie-banner-links a {
    color: var(--vmd-accent-light, #d85a40);
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.cookie-banner-links a:hover {
    text-decoration: underline;
}

.cookie-details {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.cookie-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
}

.category-title input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--vmd-accent, #c04930);
    cursor: pointer;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.required {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.badge.optional {
    background: rgba(192, 73, 48, 0.2);
    color: var(--vmd-accent-light, #d85a40);
    border: 1px solid rgba(192, 73, 48, 0.3);
}

.category-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    padding-left: 28px;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}

.cookie-btn {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    width: 100%;
    border: none;
    outline: none;
}

.cookie-btn.primary {
    background: var(--vmd-accent, #c04930);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(192, 73, 48, 0.3);
}

.cookie-btn.primary:hover {
    background: var(--vmd-accent-light, #d85a40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 73, 48, 0.4);
}

.cookie-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn.text {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cookie-btn.text:hover {
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-nav { display: none !important; }
    .hamburger-btn { display: flex !important; }
    
    /* Mobil-Optimierung für das Logo-Badge */
    .header-left {
        margin-left: 16px;
        padding: 0 12px 0 8px;
        height: 44px;
        gap: 8px;
        border-radius: 10px;
    }
    
    header.scrolled .header-left, vemado-header.scrolled .header-left {
        margin-left: 16px;
        padding: 0 12px 0 8px; /* Exakt gleiches Padding beibehalten zur Vermeidung von Breiten-Sprüngen */
        height: 44px;
    }
    
    .header-left img {
        height: 30px;
    }
    
    header.scrolled .header-left img, vemado-header.scrolled .header-left img {
        height: 30px; /* Exakt gleiche Höhe beibehalten zur Vermeidung von Skalierungseffekten */
    }
    
    .header-left .company-name {
        font-size: 0.68rem;
    }
    
    .footer-container {
        grid-template-areas: none;
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }
    .footer-column.brand-col {
        grid-area: auto;
        grid-column: 1;
    }
    .footer-column.nav-col {
        grid-area: auto;
        grid-column: 2;
    }
    .footer-column.contact-col {
        grid-area: auto;
        grid-column: 1 / -1;
    }
    .footer-column.insurance-col {
        grid-area: auto;
    }
    .footer-contact-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }
    .footer-column.insurance-col {
        grid-column: 1 / -1;
        margin-top: 0;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .insurance-sub-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
    }
    .cookie-banner-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 5%;
    }
    .cookie-banner-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cookie-btn {
        flex: 1;
        min-width: 180px;
    }
    .cookie-btn.text {
        width: 100%;
        flex: none;
    }
}

/* --- HAMBURGER BUTTON --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    margin-right: 5%;
    align-self: center;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #333333;
}
.hamburger-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #333333;
}

/* --- MOBILE NAV DRAWER --- */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(32, 34, 53, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav-drawer.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #333333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a, .mobile-accordion-trigger {
    color: #333333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
}

.mobile-nav-links a:hover, .mobile-accordion-trigger:hover, .mobile-accordion-trigger.active, .mobile-nav-links a.active {
    color: var(--vmd-accent, #c04930) !important;
}

/* Accordion Specifics */
.mobile-nav-accordion {
    display: flex;
    flex-direction: column;
}

.mobile-accordion-content {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0 5px 15px;
    border-left: 2px solid rgba(192, 73, 48, 0.2);
    margin-top: 10px;
}

.mobile-accordion-content.open {
    display: flex;
}

.mobile-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 5px;
}

.mobile-accordion-group .group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--vmd-accent, #c04930);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.mobile-accordion-content a {
    text-transform: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #555555 !important;
    letter-spacing: 0 !important;
    display: block !important;
}

.mobile-accordion-content a:hover {
    color: var(--vmd-accent, #c04930) !important;
}

.mobile-accordion-trigger i {
    transition: transform 0.3s ease;
}

.mobile-accordion-trigger.active i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-areas: none;
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-column.brand-col,
    .footer-column.nav-col,
    .footer-column.contact-col,
    .footer-column.insurance-col {
        grid-area: auto;
        grid-column: auto;
    }
    .footer-column.insurance-col {
        padding-top: 0;
        border-top: none;
        margin-top: 0;
    }
    .insurance-sub-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }
    .footer-contact-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-legal .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
    }
    .insurance-sub-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .insurance-sub-columns h4 {
        margin-bottom: 8px;
    }
}

/* ==========================================================================
   THEMENSEITEN DESIGN SYSTEM STYLING (Web Components)
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Needs Analysis Interaktivität */
.needs-option-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.needs-option-card:hover {
    transform: translateY(-4px);
}

.needs-option-card.selected {
    transform: translateY(-4px);
    border-color: var(--vmd-accent, #c04930);
    background-color: rgba(192, 73, 48, 0.05);
    box-shadow: 0 15px 30px rgba(192, 73, 48, 0.15);
}

/* FAQ Accordion */
.faq-chevron {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, color 0.3s;
}

.faq-chevron.rotate-180 {
    transform: rotate(180deg);
    background-color: var(--vmd-accent, #c04930);
    color: #ffffff;
}

/* --- VEMADO LEGAL FOUNDATION --- */
.legal-foundation-section {
    font-family: var(--font-main);
}

.legal-tab-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 34, 53, 0.05);
}

.legal-tab-btn.active {
    border-color: var(--vmd-accent, #c04930) !important;
    background-color: rgba(192, 73, 48, 0.05) !important;
    color: var(--vmd-blue-dark, #202235) !important;
    box-shadow: 0 8px 20px rgba(192, 73, 48, 0.08);
}

.legal-tab-btn.active h5 {
    color: var(--vmd-accent, #c04930) !important;
}

.legal-tab-btn.active .w-10,
.legal-tab-btn.active .legal-tab-icon {
    background-color: var(--vmd-accent, #c04930) !important;
    color: #ffffff !important;
}

.legal-tab-pane {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- VEMADO CTA & BENEFIT CARDS --- */
vemado-cta {
    display: block;
    width: 100%;
}

vemado-benefit-card {
    display: flex;
    height: 100%;
    width: 100%;
}

/* --- GLOBAL OVERFLOW PROTECTION (clip preserves position:sticky) --- */
html, body {
    width: 100% !important;
    overflow-x: clip !important;
}

vemado-hero, 
vemado-summary, 
vemado-benefits, 
vemado-needs-analysis, 
vemado-faq, 
vemado-legal-foundation, 
vemado-cta {
    display: block;
    width: 100%;
    overflow: hidden !important;
}

/* Fix CSS border-radius + overflow-hidden rendering bugs for absolute blur elements in Safari/Chrome */
.relative.overflow-hidden {
    isolation: isolate;
}

/* Prevent long German compound word overflow across all headings, components, and theme sections */
h1, h2, h3, h4, h5, h6,
vemado-hero p,
vemado-summary p, vemado-summary li,
vemado-benefits p, vemado-benefit-card p,
vemado-legal-foundation p,
vemado-needs-analysis p,
vemado-faq p, vemado-faq-item span,
vemado-cta p,
#grenzen p, #grenzen li,
main p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
}

/* Ensure flex text columns inside #grenzen and cards can shrink below longest word width */
#grenzen .flex > div:last-child {
    min-width: 0;
    flex: 1 1 0%;
}

@media (max-width: 480px) {
    vemado-hero h1 {
        font-size: 1.85rem !important; /* Elegant scaled-down size for mobile viewports */
    }
}

/* Sticky Subnav: custom element itself must be sticky so it sticks across the full page scroll */
vemado-subnav {
    display: block;
    width: 100%;
    position: sticky;
    top: 60px;
    z-index: 40;
    overflow: visible;
}

.subnav-wrapper {
    overflow: hidden;
    width: 100%;
}

.subnav-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subnav-container::-webkit-scrollbar {
    display: none;
}



