@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

strong, b {
    font-weight: 800;
}

:root {
    /* Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --accent-silver: #f4f4f5;
    --accent-dim: #71717a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --border-color: rgba(255, 255, 255, 0.05);
    
    /* Glassmorphism */
    --glass-bg: rgba(18, 18, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-blur: blur(12px);

    /* Fonts */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing (Whitespace Scale) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 2rem;     /* 32px */
    --space-lg: 4rem;     /* 64px */
    --space-xl: 8rem;     /* 128px */
    --space-xxl: 12rem;   /* 192px */

    /* Animation Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Editable Design Properties (with defaults) */
    --logo-size: 2.4rem;
    --nav-font-size: 0.95rem;
    
    --header-margin-top: 0px;
    --header-margin-bottom: 0px;
    --header-margin-left: 0px;
    --header-margin-right: 0px;
    
    --header-padding-top: 20px;
    --header-padding-bottom: 20px;
    --header-padding-left: 90px;
    --header-padding-right: 90px;

    /* Hero / Eyecatcher properties */
    --hero-bg-image: url('vision_keyvisual.jpg');
    --hero-title-size: 3.8rem;
    --hero-title-color: #ffffff;
    --hero-title-line-height: 1.1;
    
    --hero-desc-size: 1.15rem;
    --hero-desc-color: rgba(255, 255, 255, 0.9);
    --hero-desc-line-height: 1.5;

    /* Footer properties */
    --footer-bg-color: #0a0a0b;
    --footer-padding-top: 80px;
    --footer-padding-bottom: 40px;
    
    --footer-logo-size: 1.8rem;
    --footer-logo-color: #ffffff;
    
    --footer-col-title-size: 0.85rem;
    --footer-col-title-color: #a1a1aa;
    
    --footer-link-size: 0.95rem;
    --footer-link-color: #ffffff;
    --footer-link-hover-color: #00bcd4;
    
    --footer-social-icon-size: 1.2rem;
    --footer-social-icon-color: #ffffff;
    --footer-social-icon-bg: #121214;
    --footer-social-icon-hover-color: #00bcd4;
    --footer-social-icon-hover-bg: #27272a;
    --footer-social-icon-radius: 50%;

    /* General / Box Shadow / Headings / List / Link properties */
    --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    --text-h2-size: 2.2rem;
    --text-h2-margin-top: 1.5rem;
    --text-h2-margin-bottom: 1rem;
    --text-h3-size: 1.8rem;
    --text-h3-margin-top: 1.5rem;
    --text-h3-margin-bottom: 1rem;
    --text-h4-size: 1.4rem;
    --text-h4-margin-top: 1.25rem;
    --text-h4-margin-bottom: 0.75rem;
    
    --list-margin-left: 24px;
    --list-margin-top: 10px;
    --list-margin-bottom: 10px;
    --list-font-weight: 300;
    --list-symbol: "•";
    --body-line-height: 1.6;
    --paragraph-margin-top-bottom: 16px;
    
    --link-color: #00bcd4;
    --link-hover-color: #ffffff;
    --link-decoration: none;
    --link-hover-decoration: underline;
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: #ffffff;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    line-height: var(--body-line-height, 1.6);
    background-color: var(--bg-primary);
    /* Dynamischer Rahmen: skaliert stufenlos mit der Viewport-Breite.
       ~15px auf kleinen Geräten, ~28-34px auf Laptops, max. 50px auf großen Monitoren. */
    border: clamp(15px, 2.2vw, 50px) solid #ffffff;
    min-height: 100vh;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body {
        border-width: 15px;
    }
    .container {
        padding-left: clamp(12px, 3.5vw, 18px) !important;
        padding-right: clamp(12px, 3.5vw, 18px) !important;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-banner {
        padding: var(--space-md) 20px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout Containers */
.container {
    max-width: calc(1750px + var(--header-padding-left) + var(--header-padding-right));
    width: calc(100% - var(--header-margin-left) - var(--header-margin-right));
    margin-left: auto;
    margin-right: auto;
    /* Innenabstand dynamisch: nie mehr als der im Dashboard gesetzte Wert,
       auf schmaleren Viewports proportional reduziert (bündig mit dem Header). */
    padding-left: clamp(16px, 4vw, var(--header-padding-left));
    padding-right: clamp(16px, 4vw, var(--header-padding-right));
    box-sizing: border-box;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: var(--header-margin-top);
    left: 0;
    z-index: 100;
    background-color: #ffffff;
    transition: var(--transition-fast);
    
    /* Customizable Margins */
    margin-top: var(--header-margin-top);
    margin-bottom: var(--header-margin-bottom);
    margin-left: var(--header-margin-left);
    margin-right: var(--header-margin-right);
    
    /* Width calculation when margins are applied */
    width: calc(100% - var(--header-margin-left) - var(--header-margin-right));
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    /* Horizontale Einrückung dynamisch: nie mehr als der im Dashboard gesetzte
       Wert, aber auf kleineren Viewports proportional reduziert (Untergrenze 24px). */
    padding-top: var(--header-padding-top);
    padding-bottom: var(--header-padding-bottom);
    padding-left: max(24px, min(var(--header-padding-left), 5vw));
    padding-right: max(24px, min(var(--header-padding-right), 5vw));
    width: calc(100% - var(--header-margin-left) - var(--header-margin-right));
    max-width: calc(1750px + var(--header-padding-left) + var(--header-padding-right));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 20px;
    }
}

.logo {
    color: #0a0a0b !important;
}

.logo.desktop-logo {
    font-size: var(--logo-size, 2.4rem);
}

.logo.mobile-logo {
    display: none !important;
}

@media (max-width: 768px) {
    .logo.desktop-logo {
        display: none !important;
    }
    .logo.mobile-logo {
        display: inline-flex !important;
        font-size: var(--logo-size-mobile, 1.8rem);
    }
}

/* Custom Text Logo styling */
.logo, .footer-logo, .sidebar-logo, .sim-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25em !important;
    text-decoration: none !important;
    line-height: 1 !important;
    vertical-align: middle;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1em;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: lowercase;
}

.logo-dot, .footer-logo-dot {
    color: #00bcd4 !important;
}

.logo-sep {
    display: inline-block;
    width: 0.35em;
    height: 0.85em;
    position: relative;
    overflow: hidden;
    text-indent: -999px;
    margin: 0 0.1em;
    vertical-align: middle;
}

.logo-sep::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0.065em;
    height: 100%;
    background-color: currentColor;
    transform: translateX(-50%) skewX(-20deg);
}

.logo-slogan {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-primary), sans-serif;
    font-size: 0.28em;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo .logo-sep, .logo .logo-slogan {
    color: #0a0a0b;
}

.footer-logo .logo-sep, .footer-logo .logo-slogan {
    color: var(--footer-logo-color, #ffffff);
}

.nav-container nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    font-size: var(--nav-font-size);
    letter-spacing: 0.02em;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links li {
    flex-shrink: 0;
}

.nav-links a {
    color: #71717a;
    font-weight: var(--nav-font-weight, 500);
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover {
    color: #0a0a0b;
}

/* Nav Login Button */
.nav-login {
    display: flex;
    align-items: center;
}

.nav-login-btn {
    background-color: #0a0a0b;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 18px;
    font-weight: 600 !important;
    font-size: 0.85rem;
    transition: var(--transition-fast) !important;
    border: 1px solid #0a0a0b;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.nav-login-btn:hover {
    background-color: #4df9ff !important;
    color: #0a0a0b !important;
    border-color: #4df9ff !important;
    transform: scale(1.06);
}

/* Beim Hover die gesamte Schrift (inkl. Punkt) schwarz */
.nav-login-btn:hover span {
    color: #0a0a0b !important;
}

/* Kein Unterstrich-Effekt unter dem CMS-PRO-Button beim Hover */
.nav-login-btn::after,
.nav-login-btn:hover::after {
    display: none !important;
    content: none !important;
}

.nav-links li.active a {
    color: var(--nav-active-color, #0a0a0b);
    font-weight: var(--nav-active-font-weight, 500);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: var(--nav-border-height, 2px);
    background-color: var(--nav-border-color, #0a0a0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links li.active a::after {
    transform: scaleX(1);
}

/* Dropdown-Menü für Unterkategorien */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    transform: translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.nav-links li.dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -22px;
    left: 0;
    width: 100%;
    height: 22px;
    background: transparent;
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
}

.nav-links .dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #52525b;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
    text-align: left;
}

.nav-links .dropdown-menu a::after {
    display: none; /* Deaktiviere den Unterstrich-Effekt für Unterkategorien */
}

.nav-links .dropdown-menu a:hover {
    color: #00bcd4;
    background-color: rgba(0, 188, 212, 0.04);
}

.nav-links a .nav-arrow {
    font-size: 0.55rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.2s ease;
    vertical-align: middle;
    opacity: 0.6;
}

.nav-links li.dropdown:hover a .nav-arrow {
    transform: rotate(180deg);
}

.social-links {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-left: clamp(8px, 1.2vw, 40px);
    flex-shrink: 0;
}

/* Kompakter CMS-PRO-Button in der Kopfzeile (nur Mobil sichtbar, links vom Hamburger) */
.header-cms-btn {
    display: none;
    align-items: center;
    background-color: #0a0a0b;
    color: #ffffff;
    padding: 7px 15px;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #0a0a0b;
    transition: var(--transition-fast);
}

.header-cms-btn:hover {
    background-color: #4df9ff;
    color: #0a0a0b;
    border-color: #4df9ff;
    transform: scale(1.06);
}

.header-cms-btn:hover span {
    color: #0a0a0b !important;
}

/* Zwischenbereich vor dem Mobil-Breakpoint: sobald der Platz für die Social-Icons
   knapp wird, alle auf einmal ausblenden (statt sie abzuschneiden). Die Navigation
   rutscht dann per margin-left:auto ganz nach rechts, bis bei 991px der Hamburger greift. */
@media (max-width: 1250px) {
    .header .social-links {
        display: none;
    }
}

.social-links a {
    color: #0a0a0b;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: #71717a;
}

/* Hero Section (Eyecatcher) */
.hero-section {
    background-color: #ffffff;
    padding: var(--space-xs) 0 var(--space-md) 0;
}

.hero-container {
    padding: 0;
    width: 100%;
}

.hero-banner {
    min-height: 75vh;
    display: flex;
    align-items: stretch; /* Stretch the inner container to full height */
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-left: var(--header-margin-left);
    margin-right: var(--header-margin-right);
    width: calc(100% - var(--header-margin-left) - var(--header-margin-right));
    box-sizing: border-box;
}

.hero-container-inner {
    min-height: inherit;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    padding-top: var(--space-lg);
    padding-bottom: calc(var(--space-lg) + 48px);
    box-sizing: border-box;
}

.hero-banner.has-video-bg::before {
    background-image: none !important;
}

.hero-video-bg, .sim-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), var(--hero-bg-image);
    background-size: cover;
    background-position: center left; /* Fokussiert den Bergsteiger (original links) in gespiegelter Ansicht */
    background-repeat: no-repeat;
    transform: scaleX(-1); /* Spiegelverkehrte Darstellung des Hintergrundbildes */
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-banner::before {
        transform: none; /* normal background on mobile if preferred, or keep scaleX(-1) */
    }
}

.hero-content {
    max-width: 580px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    animation: fadeInUp 1.2s var(--transition-smooth) both;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: var(--hero-title-size);
    font-weight: 500;
    color: var(--hero-title-color);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.025em;
    line-height: var(--hero-title-line-height);
}

.hero-desc {
    font-family: var(--font-primary);
    font-size: var(--hero-desc-size);
    font-weight: 300;
    color: var(--hero-desc-color);
    line-height: var(--hero-desc-line-height);
    max-width: 480px;
}

/* Sections General */
.section {
    padding: var(--space-xl) 0;
    max-width: calc(1750px + var(--header-padding-left) + var(--header-padding-right));
    width: calc(100% - var(--header-margin-left) - var(--header-margin-right));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #00bcd4;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

/* Showcase Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.card {
    background-color: var(--card-bg-color, var(--bg-secondary));
    border: 1px solid var(--card-border-color, var(--border-color));
    border-radius: var(--card-border-radius, 8px);
    padding: var(--space-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.02), transparent 50%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card:hover::before {
    opacity: 1.5;
}

.card-top {
    margin-bottom: var(--space-md);
}

.card-tag {
    font-size: var(--card-tag-size, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--card-tag-color, #00bcd4);
    margin-bottom: var(--space-xs);
}

.card-title {
    font-size: var(--card-title-size, 1.5rem);
    font-family: var(--font-primary);
    font-weight: var(--card-title-weight, 500);
    color: var(--card-title-color, inherit);
    margin-bottom: var(--space-xs);
}

.card-desc {
    font-size: var(--card-desc-size, 0.95rem);
    color: var(--card-desc-color, var(--text-secondary));
    font-weight: 300;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card:hover .card-link svg {
    transform: translateX(4px);
}

.card-status {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    letter-spacing: 0.05em;
}

.status-active {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.2);
    background-color: rgba(52, 211, 153, 0.05);
}

/* Performance Highlight Section */
.performance-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (max-width: 768px) {
    .performance-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.perf-metric-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-md);
    text-align: center;
}

.metric-number {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-dim);
}

/* Footer */
.footer {
    color: var(--text-secondary);
}

.footer-container {
    max-width: calc(1750px + var(--header-padding-left) + var(--header-padding-right));
    width: calc(100% - var(--header-margin-left) - var(--header-margin-right));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--header-padding-left);
    padding-right: var(--header-padding-right);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 20px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-upper {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

@media (max-width: 992px) {
    .footer-upper {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    .footer-brand-col {
        grid-column: span 2;
    }
    .footer-social-col {
        grid-column: span 2;
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    .footer-upper {
        grid-template-columns: 1fr;
    }
    .footer-brand-col, .footer-social-col {
        grid-column: span 1;
    }
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: var(--footer-logo-size, 1.8rem);
    color: var(--footer-logo-color, #ffffff) !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: lowercase;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo-dot {
    color: #00bcd4;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: var(--footer-col-title-size, 0.85rem);
    color: var(--footer-col-title-color, #a1a1aa);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: var(--footer-link-size, 0.95rem);
    color: var(--footer-link-color, #ffffff);
    transition: var(--transition-fast);
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.footer-column a:hover {
    color: var(--footer-link-hover-color, #00bcd4);
}

/* Link Border Styling */
.footer-column.underline-always a {
    border-bottom-color: var(--footer-link-color, #ffffff);
}
.footer-column.underline-hover a:hover {
    border-bottom-color: var(--footer-link-hover-color, #00bcd4);
}
.footer-column.underline-none a {
    border-bottom-color: transparent !important;
}

.footer-social-col {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    align-items: flex-start;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--footer-social-icon-size, 1.2rem) * 1.8 + 10px);
    height: calc(var(--footer-social-icon-size, 1.2rem) * 1.8 + 10px);
    border-radius: var(--footer-social-icon-radius, 50%);
    background-color: var(--footer-social-icon-bg, #121214);
    color: var(--footer-social-icon-color, #ffffff);
    transition: var(--transition-fast);
}

.footer-social-icon svg {
    width: var(--footer-social-icon-size, 1.2rem);
    height: var(--footer-social-icon-size, 1.2rem);
}

.footer-social-icon:hover {
    background-color: var(--footer-social-icon-hover-bg, #27272a);
    color: var(--footer-social-icon-hover-color, #00bcd4);
}

.footer-lower {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-lower {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.footer-bottom-links a:hover {
    color: var(--footer-link-hover-color, #00bcd4);
}

/* Bottom links underlines */
.footer-bottom-links.underline-always a {
    border-bottom-color: var(--text-muted);
}
.footer-bottom-links.underline-hover a:hover {
    border-bottom-color: var(--footer-link-hover-color, #00bcd4);
}
.footer-bottom-links.underline-none a {
    border-bottom-color: transparent !important;
}

.footer-copyright {
    white-space: nowrap;
}

/* Keyframes for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ==========================================================================
   Page Builder & Dynamic Block Types Styles
   ========================================================================== */

.dynamic-category-section {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dynamic-hero-banner::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), var(--dynamic-hero-bg-image, var(--hero-bg-image)) !important;
}

/* Columns helpers */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Image with Text Block */
.image-text-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-md) 0;
}

.image-text-block.align-right {
    direction: rtl;
}

.image-text-block.align-right .text-col,
.image-text-block.align-right .image-col {
    direction: ltr;
}

.premium-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.premium-image:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.text-col .block-title {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
}

.text-col .block-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.btn-premium {
    display: inline-block;
    background-color: #ffffff;
    color: #0a0a0b;
    border: 1px solid #ffffff;
    border-radius: 24px;
    padding: 10px 26px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: var(--space-sm);
}

.btn-premium:hover {
    background-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .image-text-block {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .image-text-block.align-right {
        direction: ltr;
    }
}

/* ── Contact Form Block ── */
.contact-form-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
    padding: var(--space-md) 0;
}

.contact-form-block.contact-form-centered {
    grid-template-columns: 1fr;
}

.contact-form-block .text-col {
    position: sticky;
    top: 120px;
}

.contact-form-block .form-col {
    width: 100%;
}

.contact-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-field {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-field.half {
    flex: 1 1 calc(50% - 8px);
    min-width: 180px;
}

.contact-field label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.contact-input {
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
}

/* Full border style */
.contact-form.style-full .contact-input {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom border only style */
.contact-form.style-bottom .contact-input {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

/* Border radius */
.contact-form.has-radius .contact-input {
    border-radius: 8px;
}

.contact-form.no-radius .contact-input {
    border-radius: 0;
}

.contact-form.style-bottom .contact-input {
    border-radius: 0 !important;
}

.contact-input:focus {
    outline: none;
    border-color: rgba(0, 188, 212, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.contact-input::placeholder {
    color: var(--text-muted);
}

textarea.contact-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

select.contact-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-checkbox {
    flex: 1 1 100% !important;
}

.contact-checkbox .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

.contact-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #00bcd4;
    flex-shrink: 0;
}

.contact-captcha {
    flex: 1 1 100%;
    margin-top: 4px;
}

.contact-captcha .contact-input {
    max-width: 200px;
}

.contact-submit-wrap {
    margin-top: 12px;
}

.contact-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.contact-arrow-btn:hover span {
    transform: translateX(4px);
}

.contact-arrow-btn span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.contact-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

@media (max-width: 768px) {
    .contact-form-block {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .contact-field.half {
        flex: 1 1 100%;
    }
    
    .contact-form-block .text-col {
        position: static;
    }
}

/* FAQ Element (Accordion) */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item[open],
.faq-item.faq-open {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    padding: var(--space-sm) var(--space-md);
    font-weight: 500;
    color: var(--faq-q-color, var(--text-primary));
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent-dim);
    flex-shrink: 0;
}

.faq-item.faq-open .faq-icon {
    transform: rotate(180deg);
    color: var(--faq-q-color, var(--text-primary));
}

/* Animierbarer Wrapper: Höhe via grid 0fr -> 1fr (weich), plus sanftes Einblenden */
.faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.06s;
}

.faq-item.faq-open .faq-answer-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-wrap > .faq-answer {
    overflow: hidden;
    min-height: 0;
}

.faq-answer {
    padding: 0 var(--space-md) var(--space-sm) var(--space-md);
    color: var(--faq-a-color, var(--text-secondary));
    font-weight: 300;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Moderne Bildergalerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 11, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
    color: #ffffff;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Vollbild-Teaser (Full-Width Hero) */
.full-hero-block {
    min-height: 60vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--full-hero-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .full-hero-block {
        width: calc(100% + 40px);
        left: 0;
        transform: translateX(-20px);
    }
}

.full-hero-content {
    max-width: 600px;
    width: 100%;
    z-index: 2;
}

.full-hero-content.align-center {
    margin: 0 auto;
    text-align: center;
}

.full-hero-content.align-right {
    margin-left: auto;
    text-align: right;
}

.full-hero-content.align-left {
    margin-right: auto;
    text-align: left;
}

.full-hero-title {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: #ffffff;
}

.full-hero-desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Lightbox Dialog */
.lightbox-dialog {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    outline: none;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-dialog::backdrop {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(18, 18, 20, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.lightbox-close:hover {
    border-color: #ffffff;
    transform: scale(1.05);
}

/* Philosophy Section Redesign (myrealdesign.com style) */
.philosophy-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.philosophy-left {
    display: flex;
    flex-direction: column;
}

.philosophy-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.accent-highlight {
    color: #00bcd4; /* Cyan/Teal accent */
}

.philosophy-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    max-width: 480px;
}

.philosophy-right {
    display: flex;
    flex-direction: column;
}

.philosophy-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.philosophy-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.philosophy-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00bcd4;
    letter-spacing: 0.15em;
}

.philosophy-item-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 6px;
    margin-bottom: 10px;
}

.philosophy-item-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 992px) {
    .philosophy-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .philosophy-desc {
        max-width: 100%;
    }
}

/* ── Premium Verification Widget ── */
.premium-verification {
    display: inline-block;
    user-select: none;
}

.verification-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(18, 18, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 220px;
}

.verification-box:hover {
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.05);
}

.verification-checkbox-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.verification-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.verification-box:hover .verification-checkbox {
    border-color: rgba(0, 188, 212, 0.5);
}

/* Spinner */
.verification-spinner {
    position: absolute;
    top: 0; left: 0;
    width: 24px; height: 24px;
    border: 2px solid transparent;
    border-top-color: #00bcd4;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.verification-box.verifying .verification-checkbox {
    opacity: 0;
    transform: scale(0.8);
}

.verification-box.verifying .verification-spinner {
    opacity: 1;
    animation: verify-spin 0.8s linear infinite;
}

@keyframes verify-spin {
    to { transform: rotate(360deg); }
}

/* Checkmark animation */
.verification-checkmark {
    position: absolute;
    top: 0; left: 0;
    width: 24px; height: 24px;
    display: block;
    stroke-width: 4;
    stroke: #22c55e;
    stroke-miterlimit: 10;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.verification-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke: #22c55e;
    fill: none;
    animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.verification-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.verification-box.verified .verification-checkbox {
    opacity: 0;
}

.verification-box.verified .verification-spinner {
    opacity: 0;
}

.verification-box.verified .verification-checkmark {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes stroke-circle {
    100% { stroke-dashoffset: 0; }
}
@keyframes stroke-check {
    100% { stroke-dashoffset: 0; }
}

.verification-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.verification-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.verification-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Submit Row Layout */
.contact-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .contact-submit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Stats Marquee Block */
.stats-marquee-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.stats-marquee-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stats-marquee-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.stats-marquee-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: var(--space-md);
}

.stats-marquee-right {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.stats-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.stats-marquee-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: max-content;
}

.stats-marquee-item {
    flex: 0 0 240px;
    width: 240px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 50px 24px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.stats-marquee-number {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
    transition: color 0.5s ease;
}

.stats-marquee-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
    transition: color 0.5s ease;
}

@media (max-width: 991px) {
    .stats-marquee-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats-marquee-item {
        flex: 0 0 220px;
        width: 220px;
        padding: 40px 20px;
    }
}

/* Split Text Block */
.split-text-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.split-text-left, .split-text-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.split-text-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.split-text-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: var(--space-md);
}

@media (max-width: 991px) {
    .split-text-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Custom Eyecatcher (Slideshow, Overlays, Heights) */
.dynamic-hero-banner.has-custom-bg::before,
.sim-hero-banner-main.has-custom-bg::before {
    display: none !important;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

/* Slideshow navigation arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
    padding: 0;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.hero-arrow svg {
    pointer-events: none;
    stroke: #ffffff;
}

/* Ensure content sits above elements */
.dynamic-hero-banner .hero-content,
.sim-hero-banner-main .sim-hero-content-main {
    position: relative;
    z-index: 4;
}

/* ==========================================================================
   Responsive Mobile Navigation Hamburger Menu & Mobile Fixes
   ========================================================================== */

/* Toggle Button Styling */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #0a0a0b;
    transition: var(--transition-fast);
    transform-origin: left center;
}

/* Mobile Social Links default state */
.mobile-social-links {
    display: none;
}

/* Mobile responsive styles */
@media (max-width: 1150px) {
    /* Prevent body overflow horizontally */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Reset header margins and widths on mobile */
    .header {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        top: 0 !important;
    }
    
    /* Reset hero banner margins and paddings on mobile */
    .hero-banner, .dynamic-hero-banner {
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* Reset container, section, nav-container and footer margins and paddings on mobile */
    .container, .footer-container, .section, .nav-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .container, .footer-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Responsive custom variables for font sizes on mobile */
    :root {
        --hero-title-size: 2.2rem !important;
        --hero-desc-size: 1.05rem !important;
    }
    
    .section-title {
        font-size: 2.2rem !important;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .card {
        min-height: auto !important;
    }
    
    .nav-toggle {
        display: flex;
    }

    /* Kompakten CMS-PRO-Button einblenden, links neben den Hamburger schieben */
    .header-cms-btn {
        display: inline-flex;
        margin-left: auto;
    }
    /* Im Button nur "PRO." zeigen */
    .header-cms-btn .cms-prefix {
        display: none;
    }
    /* Abstand zwischen PRO-Button und Hamburger kompakt halten */
    .nav-container {
        gap: 18px;
    }
    /* Das CMS-PRO-Duplikat im Menü-Drawer ausblenden (jetzt in der Kopfzeile) */
    .nav-links .nav-login {
        display: none;
    }

    /* Hide desktop social links */
    .header .social-links {
        display: none !important;
    }
    
    /* Make nav dynamic mobile drawer */
    .nav-container nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #0a0a0b;
        z-index: 1050;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        margin: 0 !important;
        padding: 60px 40px;
        box-sizing: border-box;
    }
    
    /* Menu open state */
    .header.nav-open nav {
        right: 0;
    }
    
    /* Animate hamburger to X when open */
    .header.nav-open .nav-toggle span {
        background-color: #ffffff;
    }
    .header.nav-open .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(1px, -1px);
    }
    .header.nav-open .nav-toggle span:nth-child(2) {
        width: 0;
        opacity: 0;
    }
    .header.nav-open .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(1px, 1px);
    }
    
    /* Adjust vertical alignment of mobile links */
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
        margin-bottom: 40px;
        max-height: 60vh;
        overflow-y: auto;
        padding: 10px 0;
    }
    
    .nav-links li {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .nav-links a {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.65);
        font-family: var(--font-primary);
        font-weight: var(--nav-font-weight, 500);
        padding: 8px 0 !important;
        transition: color 0.2s;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        text-align: center !important;
    }
    
    .nav-links a:hover,
    .nav-links li.active a {
        color: #ffffff;
        font-weight: var(--nav-active-font-weight, 500);
    }
    
    .nav-links li.active a::after {
        background-color: var(--nav-border-color, #ffffff);
        bottom: -2px;
    }
    
    /* Login button inside mobile nav */
    .nav-links .nav-login-btn {
        background-color: #ffffff;
        color: #0a0a0b !important;
        font-size: 1rem;
        padding: 10px 28px !important;
        border-radius: 24px;
        border-color: #ffffff;
        display: inline-block !important;
    }
    
    .nav-links .nav-login-btn:hover {
        background-color: transparent !important;
        color: #ffffff !important;
    }
    
    /* Mobile dropdown items styling */
    .nav-links li.dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        padding: 10px 16px !important;
        margin-top: 10px !important;
        width: 90% !important;
        max-width: 400px !important;
        box-sizing: border-box !important;
        min-width: unset !important;
        box-shadow: none !important;
        transition: none !important;
        list-style: none !important;
    }
    
    .nav-links li.dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .nav-links .dropdown-menu li {
        width: 100% !important;
        text-align: center !important;
        padding: 6px 0 !important;
        display: block !important;
    }
    
    .nav-links .dropdown-menu a {
        font-size: 0.95rem !important;
        color: rgba(255, 255, 255, 0.6) !important;
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.4 !important;
        padding: 4px 0 !important;
    }
    
    .nav-links .dropdown-menu a:hover {
        color: #ffffff !important;
    }
    
    /* Untermenü im Mobilmenü öffnet sich über die aktive Klasse (kein inline-display) */
    .nav-links li.dropdown.dropdown-active .dropdown-menu {
        display: block !important;
    }

    /* Arrow rotation on active dropdown */
    .nav-links li.dropdown.dropdown-active a .nav-arrow {
        transform: rotate(180deg) !important;
    }
    
    /* Mobile Social Links container */
    .mobile-social-links {
        display: flex;
        gap: 24px;
        justify-content: center;
        align-items: center;
        margin-top: auto;
    }
    
    .mobile-social-links a {
        color: rgba(255, 255, 255, 0.6);
        transition: color 0.2s;
    }
    
    .mobile-social-links a:hover {
        color: #ffffff;
    }
}

/* ==========================================================================
   Weisser Content-Bereich fuer dynamische Seiten & Weisse Footer-Zeile
   ========================================================================== */

/* Footer-Zeile mit Datenschutz, Cookies, Impressum und Copyright (gleich der Hauptnavigation) */
.footer-lower,
.footer-copyright,
.footer-bottom-links a {
    color: #71717a !important;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: #0a0a0b !important;
}

/* Wrapper-Klassen für getrennte Backgrounds */
.footer-upper-wrap {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--footer-bg-color, #0a0a0b);
    padding-top: var(--footer-padding-top, 80px);
    padding-bottom: var(--footer-padding-bottom, 40px);
    border-top: 1px solid var(--border-color);
}

.footer-lower-wrap {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--footer-bottom-bg-color, var(--footer-bg-color, #0a0a0b));
    padding-top: var(--footer-bottom-padding-top, 24px);
    padding-bottom: var(--footer-bottom-padding-bottom, 24px);
    border-top: 1px solid var(--border-color);
}

.footer-lower-wrap .footer-lower {
    border-top: none !important;
    padding-top: 0 !important;
}

/* Dynamischer Content-Hintergrund für CMS-Inhaltsblöcke (ausser Homepage) */
#dynamic-category #dynamicContentBlocks {
    background-color: var(--page-bg-color, #ffffff) !important;
    color: var(--page-text-color, #121214) !important;
    display: flow-root;
}

#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) {
    background-color: var(--page-bg-color, #ffffff);
    color: var(--page-text-color, #121214) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) h1,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) h2,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) h3,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) h4,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) h5,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) h6,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) p,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) li,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) span,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) div:not(.card-tag):not(.button-filled),
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .section-title,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .section-subtitle,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .card-title,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .card-desc,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .accordion-trigger,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .accordion-content,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .stat-value,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .stat-label,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .stat-desc {
    color: var(--page-text-color, #121214) !important;
}

/* Anpassung für Kategorietags und Abzeichen (ausser Homepage) */
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .section-tag,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .card-tag {
    color: #00bcd4 !important;
    border-color: rgba(0, 188, 212, 0.15) !important;
}

/* Verlinkungen innerhalb weisser Blöcke (bessere Lesbarkeit) (ausser Homepage) */
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) a {
    color: #008ba3 !important;
}

#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) a:hover {
    color: #005f73 !important;
}

/* Accordion-Anpassungen auf weissem Hintergrund (ausser Homepage) */
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .accordion-trigger::after {
    filter: invert(1);
}

/* Grid-Karten auf weissem Hintergrund (ausser Homepage) */
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .card {
    background: var(--card-bg-color, #f8f9fa) !important;
    border: 1px solid var(--card-border-color, rgba(0, 0, 0, 0.08)) !important;
    border-radius: var(--card-border-radius, 8px) !important;
}

/* Globale Karten-Textfarben (überschreibbar via --card-*-color, sonst Auto-Kontrast) */
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .card-title {
    color: var(--card-title-color, var(--page-text-color, #121214)) !important;
}
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .card-desc {
    color: var(--card-desc-color, var(--page-text-color, #121214)) !important;
}
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .card-tag {
    color: var(--card-tag-color, #00bcd4) !important;
}

/* Startseite: Nur das statsMarquee (Statistiken/SEO) Element hat weissen Hintergrund und dunkle Schrift */
.category-home .dynamic-block-statsMarquee {
    background-color: #ffffff !important;
    color: #121214 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.category-home .dynamic-block-statsMarquee h1,
.category-home .dynamic-block-statsMarquee h2,
.category-home .dynamic-block-statsMarquee h3,
.category-home .dynamic-block-statsMarquee h4,
.category-home .dynamic-block-statsMarquee h5,
.category-home .dynamic-block-statsMarquee h6,
.category-home .dynamic-block-statsMarquee p,
.category-home .dynamic-block-statsMarquee span,
.category-home .dynamic-block-statsMarquee div,
.category-home .dynamic-block-statsMarquee .stats-marquee-title,
.category-home .dynamic-block-statsMarquee .stats-marquee-desc {
    color: #121214 !important;
}

/* Kicker/Tagline im statsMarquee */
.category-home .dynamic-block-statsMarquee .section-tag {
    color: #4b5563 !important;
}

/* Die Marquee Items (Widgets) auf weissem Hintergrund */
.category-home .dynamic-block-statsMarquee .stats-marquee-item {
    background-color: #f8f9fa !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #121214 !important;
}

.category-home .dynamic-block-statsMarquee .stats-marquee-item .stats-marquee-number {
    color: #121214 !important;
}

.category-home .dynamic-block-statsMarquee .stats-marquee-item .stats-marquee-text {
    color: #4b5563 !important;
}
.simple-text-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .simple-text-title {
        font-size: 2.25rem;
    }
}

/* FAQs auf weißen Unterseiten lesbar machen (weiße Schrift auf dunklem Akkordeon-Hintergrund) */
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .faq-item,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .faq-item span,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .faq-question {
    color: var(--faq-q-color, #ffffff) !important;
}
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .faq-answer,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .faq-answer p,
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) .faq-item p {
    color: var(--faq-a-color, #a1a1aa) !important;
}

/* Globale Typografie-Regeln für Fließtexte (z. B. H2, H3, H4, ul/li und a in einfachen Texten/Inhalten) */
.simple-text-desc, .card-desc, .accordion-content, .faq-answer, .text-col, .rich-text,
.block-desc, .full-hero-desc, .philosophy-desc, .philosophy-item-text, .stats-marquee-desc, .split-text-desc, .hero-desc {
    line-height: var(--body-line-height, 1.6) !important;
}
.simple-text-desc p, .card-desc p, .accordion-content p, .faq-answer p, .text-col p, .rich-text p,
.block-desc p, .full-hero-desc p, .philosophy-desc p, .philosophy-item-text p, .stats-marquee-desc p, .split-text-desc p, .hero-desc p {
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    line-height: var(--body-line-height, 1.6) !important;
    margin-top: var(--paragraph-margin-top-bottom, 1em) !important;
    margin-bottom: var(--paragraph-margin-top-bottom, 1em) !important;
}
.simple-text-desc ul li, .card-desc ul li, .accordion-content ul li, .faq-answer ul li, .text-col ul li, .rich-text ul li,
.block-desc ul li, .full-hero-desc ul li, .philosophy-desc ul li, .philosophy-item-text ul li, .stats-marquee-desc ul li, .split-text-desc ul li, .hero-desc ul li {
    line-height: var(--body-line-height, 1.6) !important;
}
.simple-text-desc h2, .card-desc h2, .accordion-content h2, .faq-answer h2, .text-col h2, .rich-text h2 {
    font-size: var(--text-h2-size) !important;
    margin-top: var(--text-h2-margin-top) !important;
    margin-bottom: var(--text-h2-margin-bottom) !important;
}
.simple-text-desc h3, .card-desc h3, .accordion-content h3, .faq-answer h3, .text-col h3, .rich-text h3 {
    font-size: var(--text-h3-size) !important;
    margin-top: var(--text-h3-margin-top) !important;
    margin-bottom: var(--text-h3-margin-bottom) !important;
}
.simple-text-desc h4, .card-desc h4, .accordion-content h4, .faq-answer h4, .text-col h4, .rich-text h4 {
    font-size: var(--text-h4-size) !important;
    margin-top: var(--text-h4-margin-top) !important;
    margin-bottom: var(--text-h4-margin-bottom) !important;
}

/* Listen-Styling in Fließtexten */
.simple-text-desc ul, .card-desc ul, .accordion-content ul, .faq-answer ul, .text-col ul, .rich-text ul {
    margin-left: var(--list-margin-left) !important;
    margin-top: var(--list-margin-top) !important;
    margin-bottom: var(--list-margin-bottom) !important;
    list-style: none !important;
    padding: 0 !important;
}
.simple-text-desc ul li, .card-desc ul li, .accordion-content ul li, .faq-answer ul li, .text-col ul li, .rich-text ul li {
    font-weight: var(--list-font-weight) !important;
    margin-bottom: 0.5rem !important;
    position: relative !important;
    padding-left: 1.5em !important;
}
.simple-text-desc ul li::before, .card-desc ul li::before, .accordion-content ul li::before, .faq-answer ul li::before, .text-col ul li::before, .rich-text ul li::before {
    content: var(--list-symbol) !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--link-color, #00bcd4) !important;
    font-weight: bold !important;
}

/* Textlink-Styling in Fließtexten */
.simple-text-desc a, .card-desc a, .accordion-content a, .faq-answer a, .text-col a, .rich-text a {
    color: var(--link-color) !important;
    text-decoration: var(--link-decoration) !important;
    transition: var(--transition-fast) !important;
}
.simple-text-desc a:hover, .card-desc a:hover, .accordion-content a:hover, .faq-answer a:hover, .text-col a:hover, .rich-text a:hover {
    color: var(--link-hover-color) !important;
    text-decoration: var(--link-hover-decoration) !important;
}

/* Überschriften in Fließtexten erben die Schriftfarbe des Containers (Verhindert Weiß-auf-Weiß-Bug) */
.simple-text-desc h2, .simple-text-desc h3, .simple-text-desc h4,
.card-desc h2, .card-desc h3, .card-desc h4,
.accordion-content h2, .accordion-content h3, .accordion-content h4,
.faq-answer h2, .faq-answer h3, .faq-answer h4,
.text-col h2, .text-col h3, .text-col h4,
.rich-text h2, .rich-text h3, .rich-text h4,
.block-desc h2, .block-desc h3, .block-desc h4,
.full-hero-desc h2, .full-hero-desc h3, .full-hero-desc h4,
.philosophy-desc h2, .philosophy-desc h3, .philosophy-desc h4,
.stats-marquee-desc h2, .stats-marquee-desc h3, .stats-marquee-desc h4,
.split-text-desc h2, .split-text-desc h3, .split-text-desc h4,
.hero-desc h2, .hero-desc h3, .hero-desc h4 {
    color: inherit !important;
}

/* Custom styling for btn-arrow-underline link buttons */
.btn-arrow-underline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    --btn-actual-color: currentColor;
    transition: opacity 0.2s !important;
}

/* On hover: Underline disappears, arrow moves right, color stays exactly the same */
.btn-arrow-underline:hover {
    opacity: 1 !important;
    color: var(--btn-actual-color) !important;
}

.btn-arrow-underline span:first-child {
    border-bottom: 1px solid currentColor !important;
    padding-bottom: 2px !important;
    transition: border-color 0.2s ease-in-out !important;
}

.btn-arrow-underline:hover span:first-child {
    border-bottom-color: transparent !important;
}

.btn-arrow-underline span:last-child {
    font-size: 1.1em !important;
    line-height: 1 !important;
    display: inline-block !important;
    transform: translateY(-0.5px) !important;
    transition: transform 0.2s ease-in-out !important;
}

.btn-arrow-underline:hover span:last-child {
    transform: translate(4px, -0.5px) !important;
}

/* Ensure highlight-cyan is not overridden by dynamic block light theme text colors */
#dynamic-category #dynamicContentBlocks section.section:not(.theme-dark) span.highlight-cyan {
    color: inherit !important;
}

/* Prevent title clipping and overflow on all screens */
.simple-text-title, 
.block-title, 
.full-hero-title, 
.stats-marquee-title, 
.faq-section-title, 
.gallery-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Cap titles on medium screens/tablets */
@media (max-width: 1200px) {
    #dynamicContentBlocks .simple-text-title, 
    #dynamicContentBlocks .block-title, 
    #dynamicContentBlocks .full-hero-title, 
    #dynamicContentBlocks .stats-marquee-title {
        font-size: clamp(2rem, 6.5vw, 2.85rem) !important;
    }
}

/* Cap titles on mobile viewports */
@media (max-width: 768px) {
    #dynamicContentBlocks .simple-text-title, 
    #dynamicContentBlocks .block-title, 
    #dynamicContentBlocks .full-hero-title, 
    #dynamicContentBlocks .stats-marquee-title {
        font-size: clamp(1.8rem, 8vw, 2.25rem) !important;
    }
}



.intro-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

.intro-text-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-word {
    font-size: clamp(2.2rem, 9.5vw, 9.5rem);
    font-weight: 600;
    font-family: 'Montserrat', 'Outfit', sans-serif;
    color: #ffffff;
    text-align: center;
    line-height: 1.0;
    letter-spacing: -0.04em;
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.3) translateZ(-200px);
    position: absolute;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: none;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.intro-word.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateZ(0);
}

.intro-word.exit {
    opacity: 0;
    filter: blur(15px);
    transform: scale(1.5) translateZ(150px);
}

.intro-logo-text {
    font-family: var(--font-serif) !important;
    font-weight: 600 !important;
    font-size: 0.84em !important;
    text-transform: lowercase !important;
    color: #000000 !important;
    letter-spacing: -0.01em;
}

.intro-logo-dot {
    color: #00bcd4 !important;
    display: inline-block;
    animation: heroDotPulseInfinite 2.0s infinite ease-in-out;
    transform-origin: center center;
}

/* Hide hero content initially when intro is running */
body.intro-active .hero-content {
    opacity: 0;
    transform: translateY(20px);
}

body.intro-finished .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- HERO LOGO TYPOGRAPHY & PULSING DOT --- */
.hero-logo-text {
    font-family: var(--font-serif) !important;
    font-weight: 600 !important;
    font-size: 1.05em !important;
    text-transform: lowercase !important;
    color: #000000 !important;
    letter-spacing: -0.01em;
}

.hero-logo-dot {
    color: #00bcd4 !important;
    display: inline-block;
    transform-origin: center center;
    transform: scale(0);
}

body.intro-finished .hero-logo-dot {
    animation: heroDotPulseOnce 0.55s cubic-bezier(0.175, 0.885, 0.4, 1.5) forwards;
    animation-delay: 1.4s; /* delays until the text fade-in is almost complete */
}

@keyframes heroDotPulseInfinite {
    0%, 100% {
        transform: scale(0.35);
    }
    50% {
        transform: scale(1.0);
    }
}

@keyframes heroDotPulseOnce {
    0% {
        transform: scale(0.01);
    }
    100% {
        transform: scale(1.0);
    }
}

br.desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .hero-content {
        max-width: 720px;
    }
    br.desktop-only {
        display: inline;
    }
}

/* ===== Countdown ===== */
.countdown-wrap {
    margin-top: 28px;
}
.countdown-label {
    display: block;
    color: rgba(255,255,255,0.82);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.countdown {
    display: flex;
    gap: clamp(8px, 1.6vw, 18px);
    flex-wrap: wrap;
}
.cd-item {
    min-width: 76px;
    padding: 16px 12px;
    text-align: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}
.cd-num {
    display: block;
    font-size: clamp(1.6rem, 3.6vw, 2.7rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-lbl {
    display: block;
    margin-top: 9px;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

/* Theme dark override rules for CMS blocks */
#dynamic-category #dynamicContentBlocks section.section.theme-dark {
    background-color: #09090b;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

#dynamic-category #dynamicContentBlocks section.section.theme-dark h1,
#dynamic-category #dynamicContentBlocks section.section.theme-dark h2,
#dynamic-category #dynamicContentBlocks section.section.theme-dark h3,
#dynamic-category #dynamicContentBlocks section.section.theme-dark h4,
#dynamic-category #dynamicContentBlocks section.section.theme-dark h5,
#dynamic-category #dynamicContentBlocks section.section.theme-dark h6,
#dynamic-category #dynamicContentBlocks section.section.theme-dark span:not(.highlight-cyan):not(.num),
#dynamic-category #dynamicContentBlocks section.section.theme-dark div:not(.card-tag):not(.button-filled):not(.card):not(.image-col):not(.text-col):not(.image-text-block) {
    color: #ffffff !important;
}

#dynamic-category #dynamicContentBlocks section.section.theme-dark .block-desc,
#dynamic-category #dynamicContentBlocks section.section.theme-dark p,
#dynamic-category #dynamicContentBlocks section.section.theme-dark li {
    color: #cbd5e1 !important;
}

#dynamic-category #dynamicContentBlocks section.section.theme-dark .card {
    background: #18181b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#dynamic-category #dynamicContentBlocks section.section.theme-dark .card-title {
    color: #ffffff !important;
}

#dynamic-category #dynamicContentBlocks section.section.theme-dark .card-desc {
    color: #a1a1aa !important;
}

/* --- Global Overrides for Headlines and Grid Elements --- */

/* 1. Neonblaue Highlights aus Überschriften entfernen (erbt die Standardfarbe der Überschrift, außer Logo-Text/Dot) */
.hero-title span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
.simple-text-title span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
.block-title span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
.section-title span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
.category-title span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
.highlight-cyan:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
h1 span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
h2 span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
h3 span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
h4 span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
h5 span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot),
h6 span:not(.hero-logo-text):not(.hero-logo-dot):not(.intro-logo-text):not(.intro-logo-dot) {
    color: inherit !important;
}

/* 2. Icons in Gridelementen standardmäßig dunkel machen */
.icon-grid-icon-wrapper {
    color: #18181b !important;
}
.icon-grid-icon-wrapper svg {
    stroke: #18181b !important;
}
.icon-grid-icon-wrapper svg * {
    stroke: #18181b !important;
}
.icon-grid-icon-wrapper svg [fill="currentColor"] {
    fill: #18181b !important;
}

/* 3. Icons in Gridelementen in dunklen Sektionen hell/weiß halten */
.theme-dark .icon-grid-icon-wrapper {
    color: #ffffff !important;
}
.theme-dark .icon-grid-icon-wrapper svg {
    stroke: #ffffff !important;
}
.theme-dark .icon-grid-icon-wrapper svg * {
    stroke: #ffffff !important;
}
.theme-dark .icon-grid-icon-wrapper svg [fill="currentColor"] {
    fill: #ffffff !important;
}

/* 4. Slogan und Counter wieder linksbündig ausrichten */
.hero-desc {
    text-align: left !important;
}
.countdown-wrap {
    text-align: left !important;
}
.countdown {
    justify-content: flex-start !important;
}
