/* ============================================
   LAYOUT-WEB - Zentrale CSS-Datei für Frontend
   ============================================ */

/* Google Fonts werden über Consent Bridge geladen - hier nur Fallback */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Playfair+Display:wght@400;600;700&family=Merriweather:wght@300;400;700&family=Space+Grotesk:wght@400;500;600;700&display=swap'); */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: #1e293b;
}

/* Sidebar Layout */
body.layout-sidebar {
    display: flex;
    margin: 0;
    padding: 0;
    background: #fafbfc;
}

.layout-sidebar .sidebar-nav {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    z-index: 40;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.06);
}

.layout-sidebar .sidebar-logo {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.layout-sidebar .nav-links {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 0.5rem;
}

.layout-sidebar .nav-links::-webkit-scrollbar {
    width: 6px;
}

.layout-sidebar .nav-links::-webkit-scrollbar-track {
    background: transparent;
}

.layout-sidebar .nav-links::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 3px;
}

.layout-sidebar .nav-links::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.layout-sidebar .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.625rem;
    border-left: 3px solid transparent;
    position: relative;
}

.layout-sidebar .nav-link:hover {
    color: #0f172a;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-left-color: #6366f1;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.layout-sidebar .nav-cta {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.layout-sidebar main {
    margin-left: 280px;
    flex: 1;
    padding: 0;
    width: calc(100% - 280px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .layout-sidebar .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .layout-sidebar main {
        margin-left: 0;
        width: 100%;
    }
}

/* Topbar Layout */
body.layout-topbar {
    margin: 0;
    padding: 0;
}

.layout-topbar .topbar-nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 50;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0,0,0,0.05);
}

.layout-topbar .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.layout-topbar .nav-brand {
    flex-shrink: 0;
}

.layout-topbar .logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.layout-topbar .logo-link:hover {
    opacity: 0.8;
}

.layout-topbar .nav-links-desktop {
    display: none;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.layout-topbar .nav-link-desktop {
    padding: 0.625rem 1.25rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 0.5rem;
}

.layout-topbar .nav-link-desktop:hover {
    color: #0f172a;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
}

.layout-topbar .nav-link-desktop::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.layout-topbar .nav-link-desktop:hover::after {
    width: 70%;
}

.layout-topbar .mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.layout-topbar .mobile-menu-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.layout-topbar .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.layout-topbar .mobile-menu-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.layout-topbar .mobile-menu-link {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.layout-topbar .mobile-menu-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.layout-topbar main {
    margin-top: 72px;
    padding: 0;
    width: 100%;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .layout-topbar .nav-links-desktop {
        display: flex;
    }
    .layout-topbar .nav-cta-desktop {
        display: block;
    }
    .layout-topbar .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 1023px) {
    .layout-topbar .nav-container {
        padding: 1rem 1.5rem;
    }
    .layout-topbar .mobile-menu-content {
        padding: 1rem 1.5rem;
    }
}

/* Common Styles */
.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-cta {
    display: inline-block;
    padding: 0.625rem 1.375rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 3.5rem 2rem 2rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-text {
    font-size: 0.875rem;
}

.footer-links-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    position: relative;
}

.footer-links-list a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-links-list a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #6366f1;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-links-list a:hover::before {
    opacity: 1;
}

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* Floating Buttons (Stack: Scroll-to-Top oben, WhatsApp unten, gemeinsam rechts unten) */
.floating-actions-stack {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.floating-actions-stack .whatsapp-button,
.floating-actions-stack .scroll-top-button {
    position: static;
    bottom: auto;
    right: auto;
}

.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 5.5rem;
    z-index: 50;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35), 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-button svg {
    width: 20px;
    height: 20px;
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #1da851 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-top-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35), 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 23, 42, 0.16);
    cursor: pointer;
}

.scroll-top-button:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-top-button i,
.scroll-top-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.admin-button {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 48px;
    height: 48px;
    background: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
    color: white;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
}

.admin-button i {
    color: white !important;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: block;
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(71, 85, 105, 0.4);
    background: #334155;
}

.admin-button:hover i {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .admin-button {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    .floating-actions-stack {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .scroll-top-button {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .whatsapp-button {
        bottom: 1.5rem;
        right: 5.5rem;
    }
}

/* Content Container */
.content-container {
    max-width: 896px;
    margin: 0 auto;
    width: 100%;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.editor-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.editor-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.editor-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #334155;
}

.editor-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #475569;
}

.editor-content a {
    color: #6366f1;
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
}

.editor-content a:hover {
    color: #4f46e5;
    border-bottom-color: #6366f1;
}

/* Cookie Banner Modal (Design-Tokens für Custom Layout Overrides) */
:root {
    --cookie-banner-z: 9999;
    --cookie-banner-overlay-bg: rgba(0, 0, 0, 0.5);
    --cookie-banner-overlay-blur: 4px;
    --cookie-banner-bg: #ffffff;
    --cookie-banner-radius: 1rem;
    --cookie-banner-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --cookie-banner-border: #e2e8f0;
    --cookie-banner-title-color: #0f172a;
    --cookie-banner-text-color: #475569;
    --cookie-banner-muted-color: #64748b;
    --cookie-banner-link-color: #475569;
    --cookie-banner-link-hover-color: #0f172a;
    --cookie-toggle-off-bg: #cbd5e1;
    --cookie-toggle-on-bg: #475569;
    --cookie-btn-primary-bg: #000000;
    --cookie-btn-primary-color: #ffffff;
    --cookie-btn-primary-hover-bg: #1a1a1a;
    --cookie-btn-secondary-bg: #ffffff;
    --cookie-btn-secondary-color: #475569;
    --cookie-btn-secondary-border: #cbd5e1;
    --cookie-btn-secondary-hover-bg: #f8fafc;
    --cookie-btn-secondary-hover-border: #94a3b8;
}

/* Cookie Banner Modal */
.cookie-banner-modal {
    position: fixed;
    inset: 0;
    z-index: var(--cookie-banner-z);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-banner-overlay {
    position: absolute;
    inset: 0;
    background: var(--cookie-banner-overlay-bg);
    backdrop-filter: blur(var(--cookie-banner-overlay-blur));
}

.cookie-banner-content {
    position: relative;
    background: var(--cookie-banner-bg);
    border-radius: var(--cookie-banner-radius);
    box-shadow: var(--cookie-banner-shadow);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--cookie-banner-border);
}

.cookie-banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cookie-banner-title-color);
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.cookie-banner-body {
    padding: 1.5rem;
}

.cookie-banner-text {
    color: var(--cookie-banner-text-color);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cookie-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cookie-banner-title-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1rem;
    cursor: pointer;
}

.cookie-more-link i,
.cookie-more-link svg {
    transition: transform 0.2s;
}

.cookie-more-link--open i,
.cookie-more-link--open svg {
    transform: rotate(90deg);
}

/* Kategorien aus Admin (Cookie-Kategorien): zuerst zugeklappt, «Mehr anzeigen» oeffnet */
.cookie-banner-modal .cookie-categories {
    display: none;
}

.cookie-banner-modal.cookie-categories-open .cookie-categories {
    display: block;
}

.cookie-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cookie-banner-border);
}

.cookie-link {
    color: var(--cookie-banner-link-color);
    text-decoration: underline;
    font-size: 0.875rem;
}

.cookie-link:hover {
    color: var(--cookie-banner-link-hover-color);
}

.cookie-categories {
    margin-top: 1rem;
}

.cookie-banner-modal:not(.cookie-categories-open) .cookie-categories {
    margin-top: 0;
}

.cookie-category {
    margin-bottom: 1.5rem;
}

.cookie-category-services {
    margin-top: 0.5rem;
    padding: 0.35rem 0 0.15rem 0.75rem;
    border-left: 2px solid var(--cookie-banner-border);
}

.cookie-category-services-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cookie-banner-muted-color);
    margin: 0 0 0.35rem 0;
}

.cookie-category-services-list {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--cookie-banner-text-color);
}

.cookie-category-services-name {
    font-weight: 600;
    color: var(--cookie-banner-title-color);
}

.cookie-category-services-prov {
    font-weight: 400;
    color: var(--cookie-banner-muted-color);
}

.cookie-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 0;
}

.cookie-category-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.cookie-category-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-category-separator {
    width: 1px;
    height: 24px;
    background-color: var(--cookie-banner-border);
}

.cookie-category-expand {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--cookie-banner-muted-color);
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-category-expand:hover {
    color: var(--cookie-banner-title-color);
}

.cookie-category-expand.expanded {
    transform: rotate(90deg);
}

.cookie-category-description {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    padding-left: 0.5rem;
    border-top: 1px solid var(--cookie-banner-border);
}

.cookie-category-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cookie-banner-title-color);
    margin: 0;
}

.cookie-category-description {
    font-size: 0.875rem;
    color: var(--cookie-banner-muted-color);
    margin: 0;
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cookie-toggle-off-bg);
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle-slider.active {
    background-color: var(--cookie-toggle-on-bg);
}

.cookie-toggle-slider.active:before {
    transform: translateX(20px);
}

/* Primäre Zustandslogik: folgt dem echten Checkbox-Zustand */
.cookie-toggle-input:checked + .cookie-toggle-slider {
    background-color: var(--cookie-toggle-on-bg);
}

.cookie-toggle-input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-toggle-input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-banner-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--cookie-banner-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}

.cookie-btn-accept-all {
    background: var(--cookie-btn-primary-bg);
    color: var(--cookie-btn-primary-color);
}

.cookie-btn-accept-all:hover {
    background: var(--cookie-btn-primary-hover-bg);
    transform: translateY(-1px);
}

.cookie-btn-reject-all {
    background: var(--cookie-btn-primary-bg);
    color: var(--cookie-btn-primary-color);
}

.cookie-btn-reject-all:hover {
    background: var(--cookie-btn-primary-hover-bg);
    transform: translateY(-1px);
}

.cookie-btn-selection {
    background: var(--cookie-btn-secondary-bg);
    color: var(--cookie-btn-secondary-color);
    border: 1px solid var(--cookie-btn-secondary-border);
}

.cookie-btn-selection:hover {
    background: var(--cookie-btn-secondary-hover-bg);
    border-color: var(--cookie-btn-secondary-hover-border);
}

@media (max-width: 640px) {
    .cookie-banner-content {
        max-height: 95vh;
    }
    .cookie-banner-header {
        padding: 1rem;
    }
    .cookie-banner-body {
        padding: 1rem;
    }
    .cookie-banner-footer {
        padding: 1rem;
    }
}

/* Consent Placeholder Styles */
.consent-placeholder {
    position: relative;
    min-height: 200px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 1rem 0;
}

.consent-placeholder-content {
    text-align: center;
    max-width: 400px;
}

.consent-placeholder-content p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.consent-placeholder-btn {
    background: #475569;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.consent-placeholder-btn:hover {
    background: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(71, 85, 105, 0.2);
}

/* Footer Modal */
.footer-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.footer-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.footer-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.footer-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.footer-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #64748b;
    transition: color 0.2s;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.footer-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.footer-modal-inner-content {
    color: #334155;
    line-height: 1.7;
}

.footer-modal-inner-content h1,
.footer-modal-inner-content h2,
.footer-modal-inner-content h3,
.footer-modal-inner-content h4,
.footer-modal-inner-content h5,
.footer-modal-inner-content h6 {
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.footer-modal-inner-content h1 {
    font-size: 2rem;
}

.footer-modal-inner-content h2 {
    font-size: 1.5rem;
}

.footer-modal-inner-content h3 {
    font-size: 1.25rem;
}

.footer-modal-inner-content p {
    margin-bottom: 1rem;
}

.footer-modal-inner-content ul,
.footer-modal-inner-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.footer-modal-inner-content li {
    margin-bottom: 0.5rem;
}

.footer-modal-inner-content a {
    color: var(--theme-primary, #4f46e5);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-modal-inner-content a:hover {
    color: var(--theme-primary-hover, #4338ca);
}

.footer-modal-inner-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .footer-modal-header {
        padding: 1rem;
    }
    
    .footer-modal-title {
        font-size: 1.25rem;
    }
    
    .footer-modal-body {
        padding: 1rem;
    }
}

/* ============================================
   NEUE NAVIGATIONSTYPEN
   ============================================ */

/* Links Navigation (Sidebar Links) */
.sidebar-nav-left {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    z-index: 40;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.06);
    overflow-y: auto;
}

.sidebar-nav-left .sidebar-logo {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    flex-shrink: 0;
}

.sidebar-nav-left .sidebar-logo .logo-img {
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.sidebar-nav-left .sidebar-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
}

.sidebar-nav-left .nav-links {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 0.5rem;
}

.sidebar-nav-left .nav-links::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav-left .nav-links::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav-left .nav-links::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 3px;
}

.sidebar-nav-left .nav-links::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.sidebar-nav-left .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.625rem;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav-left .nav-link.has-submenu .submenu-chevron {
    transition: transform 0.2s ease;
    margin-left: auto;
}

.sidebar-nav-left .nav-item-with-sub:hover .nav-link.has-submenu .submenu-chevron {
    transform: rotate(90deg);
}

.sidebar-nav-left .nav-link:hover {
    color: #0f172a;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-left-color: #6366f1;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.sidebar-nav-left ~ main {
    margin-left: 280px;
    width: calc(100% - 280px);
}

/* Rechts Navigation (Sidebar Rechts) */
.sidebar-nav-right {
    width: 280px;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    z-index: 40;
    box-shadow: -4px 0 20px rgba(15, 23, 42, 0.06);
    overflow-y: auto;
}

.sidebar-nav-right .sidebar-logo {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    flex-shrink: 0;
}

.sidebar-nav-right .sidebar-logo .logo-img {
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.sidebar-nav-right .sidebar-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
}

.sidebar-nav-right .nav-links {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    padding-left: 0.5rem;
}

.sidebar-nav-right .nav-links::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav-right .nav-links::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav-right .nav-links::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 3px;
}

.sidebar-nav-right .nav-links::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.sidebar-nav-right .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.625rem;
    border-right: 3px solid transparent;
    position: relative;
}

.sidebar-nav-right .nav-link.has-submenu .submenu-chevron {
    transition: transform 0.2s ease;
    margin-left: auto;
}

.sidebar-nav-right .nav-item-with-sub:hover .nav-link.has-submenu .submenu-chevron {
    transform: rotate(90deg);
}

.sidebar-nav-right .nav-link:hover {
    color: #0f172a;
    background: linear-gradient(270deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-right-color: #6366f1;
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.sidebar-nav-right ~ main {
    margin-right: 280px;
    width: calc(100% - 280px);
}

/* Kombination: Links + Rechts */
.sidebar-nav-left ~ main {
    margin-left: 280px;
    margin-right: 0;
    width: calc(100% - 280px);
}

.sidebar-nav-left ~ .sidebar-nav-right ~ main {
    margin-left: 280px;
    margin-right: 280px;
    width: calc(100% - 560px);
}

/* Folder Navigation (Hierarchisch) */
.folder-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    border-radius: 0 0 1rem 1rem;
    max-width: 90%;
    width: auto;
}

.folder-nav-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.folder-nav-item {
    position: relative;
}

.folder-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.folder-nav-link:hover {
    color: #0f172a;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

/* Top Navigation (bereits vorhanden, aber ohne layout-topbar Klasse) */
.topbar-nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 50;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0,0,0,0.05);
}

.topbar-nav .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.topbar-nav .nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-nav .nav-brand .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.topbar-nav .nav-brand .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.topbar-nav .nav-brand .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
}

.topbar-nav .nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.topbar-nav .nav-link-desktop {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.topbar-nav .nav-link-desktop:hover {
    color: #0f172a;
    background: rgba(99, 102, 241, 0.1);
}

.topbar-nav .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #64748b;
    transition: color 0.2s;
    border-radius: 0.5rem;
}

.topbar-nav .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    padding: 1rem 0;
}

.topbar-nav .mobile-menu-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topbar-nav .mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.topbar-nav .mobile-menu-link:hover {
    color: #0f172a;
    background: rgba(99, 102, 241, 0.1);
}

/* ============================================
   SUBNavigation (Hierarchische Navigation)
   ============================================ */

/* Top Navigation Submenu */
.nav-item-with-sub {
    position: relative;
}

.nav-item-with-sub:hover .nav-submenu,
.nav-item-with-sub:focus-within .nav-submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-link-desktop.has-submenu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link-desktop.has-submenu .submenu-icon {
    transition: transform 0.2s ease;
}

.nav-item-with-sub:hover .nav-link-desktop.has-submenu .submenu-icon,
.nav-item-with-sub:focus-within .nav-link-desktop.has-submenu .submenu-icon {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    min-width: 220px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Top Navigation Submenu Links */
.topbar-nav .nav-link-sub {
    display: block;
    padding: 0.625rem 1.25rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
}

.topbar-nav .nav-link-sub:hover {
    color: #0f172a;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-left-color: #6366f1;
    transform: translateX(2px);
}

.topbar-nav .nav-link-sub:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.topbar-nav .nav-link-sub:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Sidebar Navigation Subnavigation */
.nav-sublinks {
    margin-left: 1.25rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(148, 163, 184, 0.2);
    animation: slideDown 0.2s ease-out;
}

.sidebar-nav-left .nav-link-sub,
.sidebar-nav-right .nav-link-sub {
    border-left: 2px solid transparent;
}

.sidebar-nav-left .nav-link-sub:hover {
    border-left-color: #6366f1;
}

.sidebar-nav-right .nav-link-sub {
    border-right: 2px solid transparent;
    border-left: none;
}

.sidebar-nav-right .nav-link-sub:hover {
    border-right-color: #6366f1;
}

/* Folder Navigation Subnavigation */
.folder-nav-item-wrapper {
    position: relative;
}

.folder-nav-sub {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(148, 163, 184, 0.2);
}

.folder-nav-link-sub {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Mobile Menu Subnavigation */
.mobile-menu-item {
    position: relative;
}

.mobile-menu-sub {
    margin-left: 1rem;
    margin-top: 0.25rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(148, 163, 184, 0.2);
}

.mobile-menu-link-sub {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.topbar-nav ~ main {
    margin-top: 80px; /* Platz für Top Navigation */
}

/* Kombinationen: Top + Sidebars */
.topbar-nav ~ .sidebar-nav-left ~ main {
    margin-top: 80px;
    margin-left: 280px;
    width: calc(100% - 280px);
}

.topbar-nav ~ .sidebar-nav-right ~ main {
    margin-top: 80px;
    margin-right: 280px;
    width: calc(100% - 280px);
}

.topbar-nav ~ .sidebar-nav-left ~ .sidebar-nav-right ~ main {
    margin-top: 80px;
    margin-left: 280px;
    margin-right: 280px;
    width: calc(100% - 560px);
}

/* Folder + Top */
.topbar-nav ~ .folder-nav {
    top: 80px; /* Unter Top Navigation */
}

.topbar-nav ~ .folder-nav ~ main {
    margin-top: 140px; /* Top Nav + Folder Nav */
}

/* Folder + Sidebars */
.sidebar-nav-left ~ .folder-nav {
    left: calc(50% + 140px); /* Zentriert, aber mit Sidebar-Offset */
    transform: translateX(-50%);
}

.sidebar-nav-right ~ .folder-nav {
    left: calc(50% - 140px); /* Zentriert, aber mit Sidebar-Offset */
    transform: translateX(-50%);
}

.sidebar-nav-left ~ .sidebar-nav-right ~ .folder-nav {
    left: 50%;
    transform: translateX(-50%);
}

/* Folder + Top + Sidebars */
.topbar-nav ~ .sidebar-nav-left ~ .folder-nav {
    top: 80px;
    left: calc(50% + 140px);
    transform: translateX(-50%);
}

.topbar-nav ~ .sidebar-nav-right ~ .folder-nav {
    top: 80px;
    left: calc(50% - 140px);
    transform: translateX(-50%);
}

.topbar-nav ~ .sidebar-nav-left ~ .sidebar-nav-right ~ .folder-nav {
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.topbar-nav ~ .sidebar-nav-left ~ .folder-nav ~ main,
.topbar-nav ~ .sidebar-nav-right ~ .folder-nav ~ main {
    margin-top: 140px;
}

.topbar-nav ~ .sidebar-nav-left ~ .sidebar-nav-right ~ .folder-nav ~ main {
    margin-top: 140px;
    margin-left: 280px;
    margin-right: 280px;
    width: calc(100% - 560px);
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .sidebar-nav-left,
    .sidebar-nav-right {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-nav-right {
        transform: translateX(100%);
    }
    
    .sidebar-nav-left ~ main,
    .sidebar-nav-right ~ main {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .topbar-nav .nav-links-desktop {
        display: none;
    }
    
    .topbar-nav .mobile-menu-btn {
        display: block;
    }
    
    .topbar-nav .mobile-menu {
        display: block;
    }
    
    .topbar-nav ~ main {
        margin-top: 70px; /* Kleinere Top Nav auf Mobile */
    }
    
    .folder-nav {
        position: relative;
        transform: none;
        left: auto;
        border-radius: 0;
        margin-top: 70px; /* Unter Top Nav */
        max-width: 100%;
        width: 100%;
    }
    
    .folder-nav-container {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .folder-nav-link {
        width: 100%;
        text-align: center;
    }
    
    .topbar-nav ~ .folder-nav ~ main {
        margin-top: 120px; /* Top Nav + Folder Nav auf Mobile */
    }
    
    /* Alle Kombinationen auf Mobile zurücksetzen */
    .topbar-nav ~ .sidebar-nav-left ~ main,
    .topbar-nav ~ .sidebar-nav-right ~ main,
    .topbar-nav ~ .sidebar-nav-left ~ .sidebar-nav-right ~ main {
        margin-top: 70px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .topbar-nav ~ .sidebar-nav-left ~ .folder-nav,
    .topbar-nav ~ .sidebar-nav-right ~ .folder-nav,
    .topbar-nav ~ .sidebar-nav-left ~ .sidebar-nav-right ~ .folder-nav {
        top: auto;
        left: auto;
        transform: none;
    }
}

/* ============================================
   SECTION TYPES - Template-basierte Sections
   ============================================ */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
}

.hero-gradient {
    background: linear-gradient(135deg, #faf9f7 0%, #f1eeeb 50%, #e8e4df 100%);
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Two Column Section */
.two-column-section {
    padding: 6rem 0;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Image Text Section */
.image-text-section {
    padding: 6rem 0;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Transitions */
.section-transition {
    scroll-margin-top: 100px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

