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

/* === CSS VARIABLES === */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
}

/* Dark Mode Farben werden via BP Options gesteuert (design-options.php)
   Hardcodierte Werte hier entfernt — [data-theme="dark"] in blueprint-options Style */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: var(--color-bg, var(--bg-primary, #ffffff));
    color: var(--color-text, var(--text-primary, #1a1a2e));
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
    overflow-y: auto;
}

/* === HEADER === */

/*
 * HEADER TOKEN SYSTEM — Blueprint Core
 *
 * Token-Hierarchie (Priorität von hoch nach niedrig):
 *   1. bp-header--[variant]   Setzt alle Nav-Tokens auf .site-header (höchste Prio)
 *   2. body.is-scrolled       Überschreibt transparent → solid im Scroll-State
 *   3. :root (design-options) Manuelle BP-Options-Werte, nur Fallback für light
 *   4. CSS-Hardcode-Fallbacks Letzte Absicherung
 *
 * Sichtbare Elemente lesen Tokens via CSS-Kaskade von .site-header:
 *   .navbar-desktop  → var(--nav-bg), var(--nav-color) etc.
 *   .navbar-nav a    → var(--nav-color), var(--nav-color-hover)
 *   Icon-Buttons     → var(--nav-icon-color)
 *
 * REGEL: Variant hat Vorrang. do_nav_* aus BP Options greifen nur bei
 * bp-header--light als erwünschte Customization.
 */
.site-header {
    --header-bg:     var(--color-bg, #ffffff);
    --header-text:   var(--color-text, #1a1a2e);
    --header-height: auto;

    background:    var(--header-bg);
    color:         var(--header-text);
    border-bottom: 1px solid var(--nav-border-bottom, var(--color-border, #e5e7eb));
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

/* ── VARIANT: light ──────────────────────────────────────────────────────── */
/* Heller Header. do_nav_* aus BP Options kommen via :root und greifen hier. */
.site-header.bp-header--light {
    --header-bg:         var(--color-bg, #ffffff);
    --header-text:       var(--color-text, #1a1a2e);
    --nav-bg:            var(--color-bg, #ffffff);
    --nav-border-bottom: var(--color-border, #e5e7eb);
    /* Explizite Fallbacks — damit Light nicht allein auf :root-Tokens angewiesen ist */
    --nav-color:         var(--color-text, #1a1a2e);
    --nav-icon-color:    var(--color-text, #1a1a2e);
}

/* ── VARIANT: dark ───────────────────────────────────────────────────────── */
/* Dunkler Header (Primärfarbe). Überschreibt alle manuellen Nav-Farben.     */
.site-header.bp-header--dark {
    --header-bg:            var(--color-primary, #1a1a2e);
    --header-text:          #ffffff;
    --nav-bg:               var(--color-primary, #1a1a2e);
    --nav-color:            #ffffff;
    --nav-color-hover:      rgba(255, 255, 255, 0.75);
    --nav-icon-color:       #ffffff;
    --nav-icon-color-hover: rgba(255, 255, 255, 0.75);
    --nav-border-bottom:    rgba(255, 255, 255, 0.1);
    --nav-scrolled-bg:      var(--color-bg, #ffffff);
    --nav-scrolled-color:   var(--color-text, #1a1a2e);
    border-bottom-color:    rgba(255, 255, 255, 0.1);
}

/* ── VARIANT: transparent ────────────────────────────────────────────────── */
/* Overlay über Hero. --nav-transparent-color aus BP Options (Hero Nav Tab). */
.site-header.bp-header--transparent {
    --header-bg:            transparent;
    --header-text:          #ffffff;
    --nav-bg:               transparent;
    --nav-color:            var(--nav-transparent-color, #ffffff);
    --nav-color-hover:      var(--nav-transparent-color-hover, rgba(255,255,255,0.75));
    --nav-icon-color:       var(--nav-transparent-color, #ffffff);
    --nav-icon-color-hover: var(--nav-transparent-color-hover, rgba(255,255,255,0.75));
    --nav-border-bottom:    transparent;
    border-bottom-color:    transparent;
    box-shadow:             none;
}

/* ── SCROLL STATE: transparent → solid ──────────────────────────────────── */
body.is-scrolled .site-header.bp-header--transparent {
    --header-bg:         var(--color-bg, #ffffff);
    --header-text:       var(--color-text, #1a1a2e);
    --nav-bg:            var(--color-bg, #ffffff);
    --nav-color:         var(--color-text, #1a1a2e);
    --nav-icon-color:    var(--color-text, #1a1a2e);
    --nav-border-bottom: var(--color-border, #e5e7eb);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* Ohne is-over-hero: transparent sofort solid (kein Hero darunter) */
body:not(.is-over-hero) .site-header.bp-header--transparent {
    --header-bg:         var(--color-bg, #ffffff);
    --header-text:       var(--color-text, #1a1a2e);
    --nav-bg:            var(--color-bg, #ffffff);
    --nav-color:         var(--color-text, #1a1a2e);
    --nav-icon-color:    var(--color-text, #1a1a2e);
    --nav-border-bottom: var(--color-border, #e5e7eb);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

/* ── VARIANT SUB-SELEKTOREN ──────────────────────────────────────────────── */
/* Für Elemente mit eigenen color-Deklarationen die nicht via --nav-color erben. */
.bp-header--dark .navbar-brand a,
.bp-header--transparent .navbar-brand a {
    color: currentColor;
}
.bp-header--dark .navbar-horizontal .navbar-nav a,
.bp-header--transparent .navbar-horizontal .navbar-nav a {
    color: var(--nav-color);
}
.bp-header--dark .navbar-actions button,
.bp-header--transparent .navbar-actions button {
    color: var(--nav-icon-color);
}
/* .header-socials__icon und .header-phone lesen --nav-color direkt aus ihrer Basisregel —
   keine Variant-spezifischen Overrides nötig. */

/* === NAVBAR CONTAINER === */
/* container-wide und container-narrow haben eigene max-width in header-layout.css */
.navbar-container,
.navbar .container,
.navbar .container-custom,
.navbar .grid-container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Basis: flex + spacing für wide/narrow — max-width kommt aus header-layout.css */
.navbar .container-wide,
.navbar .container-narrow {
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-container-full,
.navbar .container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Nav Padding — einheitlich über alle Container-Typen via .navbar-desktop */
.navbar-desktop,
.navbar-mobile {
    padding-top: var(--nav-padding-y, 1rem);
    padding-bottom: var(--nav-padding-y, 1rem);
}

/* === BRAND/LOGO === */
.navbar-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--nav-color, var(--text-primary, #1a1a2e));
    transition: color 0.3s;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

/* === DESKTOP / MOBILE VISIBILITY === */
.navbar-desktop {
    display: block;
    background: var(--nav-bg, var(--color-bg, #ffffff));
    border-bottom: 1px solid var(--nav-border-bottom, var(--color-border, #e5e7eb));
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* Hero-Modus: navbar-desktop border ausblenden — gesteuert via hero-nav.css */

.navbar-mobile {
    display: none;
    background: var(--color-bg, #ffffff);
    transition: box-shadow 0.3s ease;
}

/* W3Schools Sticky Method */
.navbar-desktop.sticky,
.navbar-mobile.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background: var(--nav-scrolled-bg, var(--color-bg, #ffffff)) !important;
}

/* OVERRIDE: Wenn Sticky Header deaktiviert ist */
body.header-not-sticky .navbar-desktop.sticky,
body.header-not-sticky .navbar-mobile.sticky {
    position: relative !important;
    box-shadow: none !important;
}

/* Dark Mode */
[data-theme="dark"] .navbar-desktop.sticky,
[data-theme="dark"] .navbar-mobile.sticky {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Verstärkter Schatten beim Scrollen */
body.is-scrolled .navbar-desktop.sticky,
body.is-scrolled .navbar-mobile.sticky {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] body.is-scrolled .navbar-desktop.sticky,
[data-theme="dark"] body.is-scrolled .navbar-mobile.sticky {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 768px) {
    .navbar-desktop {
        display: none;
    }
    
    .navbar-mobile {
        display: block;
    }
}

/* === HORIZONTAL MENU === */
.navbar-horizontal .navbar-menu {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-right: 1rem;
}

.navbar-horizontal .navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.navbar-horizontal .navbar-nav li {
    position: relative;
}

.navbar-horizontal .navbar-nav a {
    text-decoration: none;
    color: var(--nav-color, var(--text-primary, #1a1a2e));
    padding: 0.5rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-horizontal .navbar-nav a:hover {
    color: var(--nav-color-hover, var(--accent-color, #34aee4));
}

/* Active / Current State — Top-Level Navigation
 * Token: --nav-color-active (normal), --nav-transparent-color-active (hero/transparent)
 * Defaults: --color-primary — erweiterbar via BP Options (do_nav_active_color, do_nav_transparent_active_color)
 * WordPress-Klassen: current-menu-item, current-menu-ancestor, current_page_item, current_page_ancestor
 */
.navbar-horizontal .navbar-nav > li.current-menu-item > a,
.navbar-horizontal .navbar-nav > li.current-menu-ancestor > a,
.navbar-horizontal .navbar-nav > li.current_page_item > a,
.navbar-horizontal .navbar-nav > li.current_page_ancestor > a {
    color: var(--nav-color-active, var(--color-primary, #34aee4));
}

/* === DROPDOWN MENU === */
.navbar-horizontal .has-dropdown {
    position: relative;
}

.navbar-horizontal .dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.navbar-horizontal .has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.navbar-horizontal .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.navbar-horizontal .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-horizontal .dropdown-menu li {
    margin: 0;
}

.navbar-horizontal .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    /* Explizit --color-text als Basis — Dropdown-Hintergrund ist immer hell (--color-bg).
     * --nav-color wird NICHT genutzt, da dieser Token im transparent-Preset weiß sein kann. */
    color: var(--color-text, #1a1a2e);
    white-space: nowrap;
}

.navbar-horizontal .dropdown-menu a:hover {
    background: var(--color-surface, var(--color-bg-secondary, #f8f9fa));
    color: var(--nav-dropdown-color-hover, var(--color-primary, #34aee4));
}

/* Active / Current State — Dropdown
 * Token: --nav-dropdown-color-active
 * Erweiterbar via BP Options: do_nav_dropdown_active_color
 */
.navbar-horizontal .dropdown-menu .current-menu-item > a,
.navbar-horizontal .dropdown-menu .current_page_item > a,
.navbar-horizontal .dropdown-menu .current-menu-ancestor > a,
.navbar-horizontal .dropdown-menu .current_page_ancestor > a {
    color: var(--nav-dropdown-color-active, var(--color-primary, #34aee4));
}

/* Nested Dropdowns (Submenus) */
.navbar-horizontal .dropdown-menu .has-dropdown {
    position: relative;
}

.navbar-horizontal .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin: 0 0 0 0.5rem;
}

/* === THEME TOGGLE === */
.theme-toggle-wrapper {
    margin-left: auto;
}

/* Navbar Actions: Theme Toggle + Hamburger nebeneinander */
.navbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;  /* Erhöht von 0.5rem auf 1rem */
}

.theme-toggle-btn {
    background: none;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.theme-toggle-btn:hover {
    background: none;
    border-color: vnone;
}

.theme-toggle-btn i {
    font-size: 1.2rem;
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.theme-icon-light {
    color: var(--nav-icon-color, var(--color-text, #111));
}

.theme-icon-dark {
    color: var(--nav-icon-color, var(--color-text, #111));
}

/* Light Mode: Zeige Sonne, verstecke Mond */
:root .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

:root .theme-icon-dark {
    opacity: 0;
    transform: rotate(180deg);
}

/* Dark Mode: Zeige Mond, verstecke Sonne */
[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* === TOGGLE BUTTON (Hamburger) === */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-offcanvas-left .navbar-toggle,
.navbar-offcanvas-right .navbar-toggle,
.navbar-mobile .navbar-toggle {
    display: flex;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text, #1a1a2e);
    transition: 0.3s;
}

.navbar-toggle:hover span {
    background: var(--color-primary, #34aee4);
}

/* === OFFCANVAS MENU (Desktop) === */
.offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--offcanvas-bg, var(--color-bg, #ffffff));
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 1050;
    transition: transform 0.3s ease, background 0.3s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}

.offcanvas-right {
    right: 0;
    transform: translateX(100%);
}

.offcanvas.active {
    transform: translateX(0);
}

/* === OFFCANVAS HEADER === */
.offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid var(--offcanvas-border, var(--color-border, #e5e7eb));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-brand a {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--offcanvas-color, var(--color-text, #1a1a2e));
}

.offcanvas-brand img {
    height: 35px;
    width: auto;
}

.offcanvas-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--offcanvas-color, var(--color-text, #1a1a2e));
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.offcanvas-close:hover {
    color: var(--offcanvas-color-hover, var(--color-primary, #34aee4));
}

/* === OFFCANVAS BODY === */
.offcanvas-body {
    padding: 1rem;
    flex: 1;
}

.offcanvas-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas-nav li {
    margin-bottom: 0.25rem;
}

.offcanvas-nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--offcanvas-color, var(--color-text, #1a1a2e));
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.offcanvas-nav a:hover {
    background: var(--color-bg-secondary, var(--color-surface, #f8f9fc));
    color: var(--offcanvas-color-hover, var(--color-primary, #34aee4));
}

/* === ACCORDION/SUBMENU für Offcanvas === */
.offcanvas-nav .has-submenu {
    margin-bottom: 0;
}

.offcanvas-nav .menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.offcanvas-nav .menu-item-wrapper a {
    flex: 1;
    padding: 0.75rem 1rem;
}

.offcanvas-nav .submenu-toggle {
    background: none;
    border: none;
    color: var(--color-text, #1a1a2e);
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offcanvas-nav .submenu-toggle:hover {
    color: var(--color-primary, #34aee4);
}

.offcanvas-nav .has-submenu.active > .menu-item-wrapper .submenu-toggle i {
    transform: rotate(180deg);
}

.offcanvas-nav .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.offcanvas-nav .has-submenu.active > .submenu {
    max-height: 500px;
}

.offcanvas-nav .submenu li {
    margin: 0;
}

.offcanvas-nav .submenu a {
    padding-left: 2rem;
    font-size: 0.9rem;
}

/* Nested Submenus */
.offcanvas-nav .submenu .submenu a {
    padding-left: 3rem;
}

/* === WIDGET AREAS === */
.offcanvas-widget-area {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.widget {
    margin-bottom: 1rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text, #1a1a2e);
}

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1050;
    background: var(--mobile-nav-bg, var(--color-bg, #ffffff));
    transition: transform 0.3s ease, background 0.3s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Offcanvas Mobile Styles */
.mobile-menu-offcanvas-left,
.mobile-menu-offcanvas-right {
    width: 300px;
    max-width: 85vw;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.mobile-menu-offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}

.mobile-menu-offcanvas-right {
    right: 0;
    transform: translateX(100%);
}

/* Fullscreen Mobile Style */
.mobile-menu-fullscreen {
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-100%);
}

.mobile-menu.active {
    transform: translate(0, 0);
}

/* === MOBILE MENU HEADER === */
.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid var(--offcanvas-border, var(--color-border, #e5e7eb));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--mobile-nav-color, var(--color-text, #1a1a2e));
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: var(--mobile-nav-color-hover, var(--color-primary, #34aee4));
}

/* === MOBILE MENU BODY === */
.mobile-menu-body {
    padding: 1rem;
    flex: 1;
}

/* Fullscreen: Center navigation */
.mobile-menu-fullscreen .mobile-menu-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 0.25rem;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--mobile-nav-color, var(--color-text, #1a1a2e));
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

/* Fullscreen: Larger text, centered */
.mobile-menu-fullscreen .mobile-nav a {
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
}

.mobile-nav a:hover {
    background: var(--color-bg-secondary, var(--color-surface, #f8f9fc));
    color: var(--mobile-nav-color-hover, var(--color-primary, #34aee4));
}

/* === ACCORDION/SUBMENU für Mobile === */
.mobile-nav .has-submenu {
    margin-bottom: 0;
}

.mobile-nav .menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mobile-nav .menu-item-wrapper a {
    flex: 1;
    padding: 0.75rem 1rem;
}

.mobile-nav .submenu-toggle {
    background: none;
    border: none;
    color: var(--color-text, #1a1a2e);
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav .submenu-toggle:hover {
    color: var(--mobile-nav-color-hover, var(--color-primary, #34aee4));
}

.mobile-nav .has-submenu.active > .menu-item-wrapper .submenu-toggle i {
    transform: rotate(180deg);
}

.mobile-nav .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav .has-submenu.active > .submenu {
    max-height: 500px;
}

.mobile-nav .submenu li {
    margin: 0;
}

.mobile-nav .submenu a {
    padding-left: 2rem;
    font-size: 0.9rem;
}

/* Fullscreen Submenu Styles */
.mobile-menu-fullscreen .mobile-nav .submenu a {
    font-size: 1.2rem;
    padding-left: 2.5rem;
}

/* Nested Submenus */
.mobile-nav .submenu .submenu a {
    padding-left: 3rem;
}

/* === MOBILE MENU FOOTER === */
.mobile-menu-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    display: flex;
    justify-content: center;
}

/* === MOBILE WIDGET AREAS === */
.mobile-widget-area {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

/* === BACKDROP === */
.offcanvas-backdrop,
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.offcanvas-backdrop.active,
.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* === MAIN CONTENT === */
/* Kein max-width, padding oder margin auf <main> — Layout-Constraints liegen in Komponenten */
/* (grid-container, page-header__content-inner, entry-content etc.) */
main {
}

/* === POSTS GRID === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-card .post-thumbnail {
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .entry-header {
    padding: 1.5rem 1.5rem 0;
}

.post-card .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-card .entry-title a {
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card .entry-title a:hover {
    color: var(--color-primary, #34aee4);
}

.post-card .entry-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-card .entry-summary {
    padding: 0 1.5rem;
    color: var(--text-secondary);
}

.post-card .read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem 1.5rem;
    color: var(--color-primary, #34aee4);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.post-card .read-more:hover {
    color: var(--accent-hover);
}

/* === SINGLE POST / PAGE === */
article {

}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text, #1a1a2e);
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.entry-meta > span {
    margin-right: 1rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Vertikales Padding für Standard-Content-Seiten (page.php, single.php, page-with-sidebar.php).
 * Zuständige Quelle: main.css. Nicht im Pagebuilder verwendet.
 * Ersetzt die frühere Markup-Klasse py-lg — Spacing liegt jetzt in der Komponenten-CSS. */
.entry-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
    line-height: 1.8;
    color: var(--color-text, #1a1a2e);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text, #1a1a2e);
}

.entry-content p {
    margin-bottom: 0rem;
}

.entry-content a {
    color: var(--color-primary, #34aee4);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--accent-hover);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: var(--bg-secondary);
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.tags-links a:hover {
    background: var(--color-primary, #34aee4);
    color: white;
}

/* === PAGE HEADER === */
/* Alle .page-header Regeln liegen ausschließlich in assets/css/page-header.css */

.page-title {
    font-size: 2.5rem;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-primary, #34aee4);
    color: white;
}

/* === POST NAVIGATION === */
.post-navigation {
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation a {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.post-navigation a:hover {
    background: var(--color-primary, #34aee4);
    color: white;
}

/* === COMMENTS === */
.comments-area {
    max-width: 800px;
    margin: 3rem auto;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text, #1a1a2e);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
    color: var(--color-text, #1a1a2e);
}

/* === COMMENT FORM === */
.comment-respond {
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text, #1a1a2e);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 4px;
    color: var(--color-text, #1a1a2e);
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary, #34aee4);
}

.comment-form input[type="submit"] {
    padding: 0.75rem 2rem;
    background: var(--color-primary, #34aee4);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: var(--accent-hover);
}

/* === SEARCH FORM === */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 4px;
    color: var(--color-text, #1a1a2e);
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary, #34aee4);
}

.search-submit {
    padding: 0.75rem 2rem;
    background: var(--color-primary, #34aee4);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-submit:hover {
    background: var(--accent-hover);
}

/* === 404 PAGE === */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-404 ul {
    list-style: none;
    padding: 0;
}

.error-404 li {
    margin-bottom: 0.5rem;
}

.error-404 a {
    color: var(--color-primary, #34aee4);
    text-decoration: none;
}

.error-404 a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    transition: background 0.3s, border-color 0.3s;
}

/* Footer Widgets - Using Foundation XY Grid */
.footer-widgets {
    margin-bottom: 2rem;
}

/* Ensure footer cells have proper box-sizing */
.footer-widgets.grid-x > .cell {
    min-width: 0; /* Prevents flex overflow */
    box-sizing: border-box; /* Ensures padding is included in width */
}

/* Footer Widget Styles */
.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text, #1a1a2e);
}

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

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: var(--color-primary, #34aee4);
}

.footer-widget p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Site Info */
.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.site-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-info a {
    color: var(--color-primary, #34aee4);
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

/* === SCROLLBAR DARK MODE === */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--color-border, #e5e7eb);
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* === SPLIDE SLIDER CUSTOM STYLES === */
.splide {
    margin: 2rem 0;
}

.splide__slide {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slide-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.slide-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.slide-text {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.slide-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-primary, #34aee4);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.slide-button:hover {
    background: var(--accent-hover);
}

/* Dark Mode Splide */
[data-theme="dark"] .splide__arrow {
    background: var(--bg-secondary);
    color: var(--color-text, #1a1a2e);
}

[data-theme="dark"] .splide__pagination__page.is-active {
    background: var(--color-primary, #34aee4);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slide-image img {
        height: 300px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-text {
        font-size: 0.9rem;
    }
}

/* === PAGEBUILDER STYLES === */
#pagebuilder-content {
    width: 100%;
}

.pagebuilder-section {
    position: relative;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text, #1a1a2e);
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.pagebuilder-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.pagebuilder-column {
    padding: 0.5rem;
    box-sizing: border-box;
    min-height: 1px;
}

/* Responsive Columns */
@media (max-width: 768px) {
    .pagebuilder-column {
        width: 100% !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ACF Info Box */
.entry-content ul,
.entry-content ol {
    padding-left: 2rem;
    color: var(--text-secondary);
}

.entry-content li {
    margin-bottom: 0.5rem;
}
/**
 * Card Block Grid Styles
 * Dark/Light Mode Ready
 * 
 * CSS Custom Properties für einfache Anpassung
 */

/* ==========================================================================
   CSS Custom Properties (Variablen)
   ========================================================================== */

:root {
    /* Light Mode (Default) */
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --card-title-color: #1a1a1a;
    --card-subtitle-color: #666666;
    --card-text-color: #333333;
}

/* Dark Mode */
[data-theme="dark"] {
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-title-color: rgba(255, 255, 255, 0.95);
    --card-subtitle-color: rgba(255, 255, 255, 0.6);
    --card-text-color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Card Base Styles
   ========================================================================== */

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px var(--card-shadow);
    height: 100%; /* Gleiche Höhe für alle Cards */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--card-shadow);
}

/* ==========================================================================
   Card Image
   ========================================================================== */

.card-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: var(--card-border);
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* ==========================================================================
   Card Content
   ========================================================================== */

.card-content {
    padding: 1.5rem;
    flex: 1; /* Nimmt verfügbaren Platz ein */
    display: flex;
    flex-direction: column;
}

/* Card Title */
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: var(--card-title-color);
}

/* Card Subtitle */
.card-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
    color: var(--card-subtitle-color);
}

/* Card Text */
.card-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    color: var(--card-text-color);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-text {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Optional: Card Footer (falls du später einen brauchst)
   ========================================================================== */

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--card-border);
    margin-top: auto; /* Pushed to bottom */
}

/* ==========================================================================
   Optional: Card mit Link (gesamte Card klickbar)
   ========================================================================== */

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
}

/* ==========================================================================
   Optional: Card Variants (Farb-Varianten)
   ========================================================================== */

/* Primary Variant */
.card.card-primary {
    border-color: var(--accent-color, #0066cc);
}

.card.card-primary .card-subtitle {
    color: var(--accent-color, #0066cc);
}

/* Featured Variant (größer, auffälliger) */
.card.card-featured {
    grid-column: span 2; /* Nimmt 2 Spalten ein */
}

@media (max-width: 768px) {
    .card.card-featured {
        grid-column: span 1; /* Auf Mobile normal */
    }
}

/* ==========================================================================
   Alternative: Card ohne Bild
   ========================================================================== */

.card.card-no-image .card-content {
    padding: 2rem 1.5rem;
}
/* ========================================
   BLUEPRINT GRID SYSTEM
   ======================================== */

.bp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.bp-container-fluid {
  width: 100%;
  padding: 0 15px;
}

.bp-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="bp-col-"] {
  padding: 0 15px;
  width: 100%;
}

/* Mobile First Grid */
.bp-col-1 { width: 8.333%; }
.bp-col-2 { width: 16.666%; }
.bp-col-3 { width: 25%; }
.bp-col-4 { width: 33.333%; }
.bp-col-5 { width: 41.666%; }
.bp-col-6 { width: 50%; }
.bp-col-7 { width: 58.333%; }
.bp-col-8 { width: 66.666%; }
.bp-col-9 { width: 75%; }
.bp-col-10 { width: 83.333%; }
.bp-col-11 { width: 91.666%; }
.bp-col-12 { width: 100%; }

/* Responsive Grid - Small */
@media (min-width: 576px) {
  .bp-col-sm-1 { width: 8.333%; }
  .bp-col-sm-2 { width: 16.666%; }
  .bp-col-sm-3 { width: 25%; }
  .bp-col-sm-4 { width: 33.333%; }
  .bp-col-sm-5 { width: 41.666%; }
  .bp-col-sm-6 { width: 50%; }
  .bp-col-sm-7 { width: 58.333%; }
  .bp-col-sm-8 { width: 66.666%; }
  .bp-col-sm-9 { width: 75%; }
  .bp-col-sm-10 { width: 83.333%; }
  .bp-col-sm-11 { width: 91.666%; }
  .bp-col-sm-12 { width: 100%; }
}

/* Responsive Grid - Medium */
@media (min-width: 768px) {
  .bp-col-md-1 { width: 8.333%; }
  .bp-col-md-2 { width: 16.666%; }
  .bp-col-md-3 { width: 25%; }
  .bp-col-md-4 { width: 33.333%; }
  .bp-col-md-5 { width: 41.666%; }
  .bp-col-md-6 { width: 50%; }
  .bp-col-md-7 { width: 58.333%; }
  .bp-col-md-8 { width: 66.666%; }
  .bp-col-md-9 { width: 75%; }
  .bp-col-md-10 { width: 83.333%; }
  .bp-col-md-11 { width: 91.666%; }
  .bp-col-md-12 { width: 100%; }
}

/* Responsive Grid - Large */
@media (min-width: 992px) {
  .bp-col-lg-1 { width: 8.333%; }
  .bp-col-lg-2 { width: 16.666%; }
  .bp-col-lg-3 { width: 25%; }
  .bp-col-lg-4 { width: 33.333%; }
  .bp-col-lg-5 { width: 41.666%; }
  .bp-col-lg-6 { width: 50%; }
  .bp-col-lg-7 { width: 58.333%; }
  .bp-col-lg-8 { width: 66.666%; }
  .bp-col-lg-9 { width: 75%; }
  .bp-col-lg-10 { width: 83.333%; }
  .bp-col-lg-11 { width: 91.666%; }
  .bp-col-lg-12 { width: 100%; }
}

/* Responsive Grid - XL */
@media (min-width: 1200px) {
  .bp-col-xl-1 { width: 8.333%; }
  .bp-col-xl-2 { width: 16.666%; }
  .bp-col-xl-3 { width: 25%; }
  .bp-col-xl-4 { width: 33.333%; }
  .bp-col-xl-5 { width: 41.666%; }
  .bp-col-xl-6 { width: 50%; }
  .bp-col-xl-7 { width: 58.333%; }
  .bp-col-xl-8 { width: 66.666%; }
  .bp-col-xl-9 { width: 75%; }
  .bp-col-xl-10 { width: 83.333%; }
  .bp-col-xl-11 { width: 91.666%; }
  .bp-col-xl-12 { width: 100%; }
}

/* Column Order */
.bp-order-1 { order: 1; }
.bp-order-2 { order: 2; }
.bp-order-3 { order: 3; }
.bp-order-4 { order: 4; }
.bp-order-5 { order: 5; }

@media (min-width: 576px) {
  .bp-order-sm-1 { order: 1; }
  .bp-order-sm-2 { order: 2; }
  .bp-order-sm-3 { order: 3; }
  .bp-order-sm-4 { order: 4; }
  .bp-order-sm-5 { order: 5; }
}

@media (min-width: 768px) {
  .bp-order-md-1 { order: 1; }
  .bp-order-md-2 { order: 2; }
  .bp-order-md-3 { order: 3; }
  .bp-order-md-4 { order: 4; }
  .bp-order-md-5 { order: 5; }
}

@media (min-width: 992px) {
  .bp-order-lg-1 { order: 1; }
  .bp-order-lg-2 { order: 2; }
  .bp-order-lg-3 { order: 3; }
  .bp-order-lg-4 { order: 4; }
  .bp-order-lg-5 { order: 5; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing - Margin Top */
.bp-mt-0 { margin-top: 0 !important; }
.bp-mt-1 { margin-top: 0.25rem !important; }
.bp-mt-2 { margin-top: 0.5rem !important; }
.bp-mt-3 { margin-top: 1rem !important; }
.bp-mt-4 { margin-top: 1.5rem !important; }
.bp-mt-5 { margin-top: 3rem !important; }

/* Spacing - Margin Bottom */
.bp-mb-0 { margin-bottom: 0 !important; }
.bp-mb-1 { margin-bottom: 0.25rem !important; }
.bp-mb-2 { margin-bottom: 0.5rem !important; }
.bp-mb-3 { margin-bottom: 1rem !important; }
.bp-mb-4 { margin-bottom: 1.5rem !important; }
.bp-mb-5 { margin-bottom: 3rem !important; }

/* Spacing - Padding Top */
.bp-pt-0 { padding-top: 0 !important; }
.bp-pt-1 { padding-top: 0.25rem !important; }
.bp-pt-2 { padding-top: 0.5rem !important; }
.bp-pt-3 { padding-top: 1rem !important; }
.bp-pt-4 { padding-top: 1.5rem !important; }
.bp-pt-5 { padding-top: 3rem !important; }

/* Spacing - Padding Bottom */
.bp-pb-0 { padding-bottom: 0 !important; }
.bp-pb-1 { padding-bottom: 0.25rem !important; }
.bp-pb-2 { padding-bottom: 0.5rem !important; }
.bp-pb-3 { padding-bottom: 1rem !important; }
.bp-pb-4 { padding-bottom: 1.5rem !important; }
.bp-pb-5 { padding-bottom: 3rem !important; }

/* Spacing - Padding Right */
.bp-pr-0 { padding-right: 0 !important; }
.bp-pr-1 { padding-right: 0.25rem !important; }
.bp-pr-2 { padding-right: 0.5rem !important; }
.bp-pr-3 { padding-right: 1rem !important; }
.bp-pr-4 { padding-right: 1.5rem !important; }
.bp-pr-5 { padding-right: 3rem !important; }

/* Spacing - Padding Left */
.bp-pl-0 { padding-left: 0 !important; }
.bp-pl-1 { padding-left: 0.25rem !important; }
.bp-pl-2 { padding-left: 0.5rem !important; }
.bp-pl-3 { padding-left: 1rem !important; }
.bp-pl-4 { padding-left: 1.5rem !important; }
.bp-pl-5 { padding-left: 3rem !important; }

/* Spacing - Padding Y (top + bottom) */
.bp-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.bp-py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.bp-py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.bp-py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.bp-py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.bp-py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Text Alignment */
.bp-text-left { text-align: left !important; }
.bp-text-center { text-align: center !important; }
.bp-text-right { text-align: right !important; }

/* Display */
.bp-d-none { display: none !important; }
.bp-d-block { display: block !important; }
.bp-d-flex { display: flex !important; }
.bp-d-inline { display: inline !important; }
.bp-d-inline-block { display: inline-block !important; }

/* Flex Utilities */
.bp-flex-row { flex-direction: row !important; }
.bp-flex-column { flex-direction: column !important; }
.bp-justify-start { justify-content: flex-start !important; }
.bp-justify-end { justify-content: flex-end !important; }
.bp-justify-center { justify-content: center !important; }
.bp-justify-between { justify-content: space-between !important; }
.bp-align-start { align-items: flex-start !important; }
.bp-align-end { align-items: flex-end !important; }
.bp-align-center { align-items: center !important; }

/* Screen Reader Only */
.bp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Animated State */
.bp-animated {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Animation Types */
.bp-animate-fade-in.bp-animated {
    opacity: 1;
}

.bp-animate-fade-up.bp-animated {
    opacity: 1;
    transform: translateY(0);
}

.bp-animate-fade-down.bp-animated {
    opacity: 1;
    transform: translateY(0);
}

.bp-animate-fade-left.bp-animated {
    opacity: 1;
    transform: translateX(0);
}

.bp-animate-fade-right.bp-animated {
    opacity: 1;
    transform: translateX(0);
}

.bp-animate-zoom-in.bp-animated {
    opacity: 1;
    transform: scale(1);
}

.bp-animate-zoom-out.bp-animated {
    opacity: 1;
    transform: scale(1);
}

.bp-animate-flip-up.bp-animated {
    opacity: 1;
    transform: perspective(1000px) rotateX(0);
}

.bp-animate-flip-down.bp-animated {
    opacity: 1;
    transform: perspective(1000px) rotateX(0);
}

.bp-animate-slide-up.bp-animated {
    opacity: 1;
    transform: translateY(0);
}

.bp-animate-slide-down.bp-animated {
    opacity: 1;
    transform: translateY(0);
}

.bp-animate-slide-left.bp-animated {
    opacity: 1;
    transform: translateX(0);
}

.bp-animate-slide-right.bp-animated {
    opacity: 1;
    transform: translateX(0);
}
/* ========================================
   ADRESSBLOCK FOOTER
   ======================================== */
/* Footer Address Styles - Jetzt in footer-icons.css */
/* Siehe /assets/css/footer-icons.css für editierbare Icon-Farben */

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary, #34aee4);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ========================================
   PAGE WITH SIDEBAR LAYOUT
   ======================================== */

.content-with-sidebar {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.content-with-sidebar .main-content {
    min-width: 0;
}

.content-with-sidebar .sidebar {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    position: sticky;
    top: calc(80px + 2rem);
}

.sidebar .widget {
    margin-bottom: 2rem;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text, #1a1a2e);
    border-bottom: 2px solid var(--color-primary, #34aee4);
    padding-bottom: 0.5rem;
}

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

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: var(--color-primary, #34aee4);
}

/* Mobile: Stack Layout */
@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-with-sidebar .sidebar {
        position: static;
        width: 100%;
    }
}

/* ========================================
   STICKY HEADER OPTION
   ======================================== */

/* When disabled via options */
body.header-not-sticky .site-header {
    position: relative !important;
}

/* Section Overlay Support */
.pagebuilder-section.section-with-overlay { position: relative; overflow: hidden; }
.section-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 1; }
.section-inner { position: relative; z-index: 2; }

/* ── Blueprint Container Width Variants ─────────────────────── */
.grid-container-1400  { max-width: 1400px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.grid-container-1600  { max-width: 1600px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.grid-container-1920  { max-width: 1920px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.grid-container-custom { margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }


/* ─────────────────────────────────────────────────────────────────────────────
   Pagebuilder Section — strukturelle Fixes (seit Core 1.5.0)
   ───────────────────────────────────────────────────────────────────────────── */

/**
 * Hero Full Sections: Section als Flex-Container damit der Block
 * die volle Höhe (min-height) erbt ohne eigenes min-height zu setzen.
 */
.pagebuilder-section--bbl_hero_full {
    display: flex;
    flex-direction: column;
}

.pagebuilder-section--bbl_hero_full .section-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pagebuilder-section--bbl_hero_full .grid-container,
.pagebuilder-section--bbl_hero_full .grid-container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pagebuilder-section--bbl_hero_full .bbl-hero-full {
    flex: 1;
}

/**
 * Flush Sections: Sections mit padding:0 und Bildspalten brauchen
 * gap:0 auf dem Grid (kein grid-margin-x Gutter).
 * Klasse 'section-flush' via custom_css_class im Preset setzen.
 */
.pagebuilder-section.section-flush .grid-x.grid-margin-x {
    margin-left: 0;
    margin-right: 0;
}

.pagebuilder-section.section-flush .grid-x.grid-margin-x > .cell {
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================================================
   Header Extras — Phone + Social Icons
   Global UI Phase 1, Step 1
   ========================================================================== */

/* Telefonnummer */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nav-color, var(--color-text, #1a1a2e));
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.header-phone:hover {
    opacity: 0.75;
}
.header-phone .fa-phone {
    font-size: 0.75rem;
}
.header-phone__number {
    /* auf kleinen Desktop-Breiten nur Icon anzeigen */
}
@media (max-width: 900px) {
    .header-phone__number { display: none; }
}

/* Social Icons */
.header-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0.75rem;  /* Abstand zur Navigation */
    margin-right: 0.75rem; /* Abstand zum CTA */
}
.header-socials__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-color, var(--color-text, #1a1a2e));
    opacity: 0.8;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.header-socials__icon:hover {
    color: var(--color-primary, #34aee4);
    opacity: 1;
}

/* ── Reduced Motion ─────────────────────────────────────────────────────────
   Respektiert die System-Einstellung "Bewegung reduzieren".
   Alle Header-Transitions werden deaktiviert — State-Wechsel sind sofort.
   ────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .navbar-desktop,
    .navbar-mobile,
    .navbar-brand a,
    .navbar-brand img,
    .navbar-horizontal .navbar-nav a,
    .theme-toggle-btn,
    .header-search-trigger,
    .info-offcanvas-toggle {
        transition: none !important;
    }
}
