/*
Theme Name:  Basen
Theme URI:   https://github.com/your-agency/basen-theme
Author:      Toby Volke / Chiemgau Creative
Author URI:  https://your-agency.de
Description: Schlankes Basis-Theme optimiert für WPBakery Page Builder. Kein Overhead, kein Ballast – nur saubere Struktur.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basen
Tags:        custom-logo, custom-menu, custom-background, footer-widgets, full-width-template, threaded-comments, translation-ready
*/

/* Font Awesome 6 – Brand-Icons für Social-Bar */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

/* =========================================================
   BASEN THEME – BASE STYLES
   Nur das Nötigste. WPBakery macht den Rest.
   ========================================================= */

:root {
    /* Farben – via Basen Optionen oder Customizer überschreibbar */
    --color-primary:        #1a1a1a;
    --color-secondary:      #555555;
    --color-accent:         #2d5a27;   /* Naturgrün – Chiemgau/Tourismus */
    --color-bg:             #ffffff;
    --color-bg-alt:         #f5f7f4;
    --color-border:         #e0e0e0;
    --color-header-bg:      #ffffff;
    --color-footer-bg:      #1a1a1a;
    --color-footer-text:    #cccccc;

    /* Header-spezifische Variablen (werden per PHP überschrieben) */
    --header-text-color:    #1a1a1a;
    --header-hover-color:   #2d5a27;
    --header-cta-bg:        #2d5a27;
    --header-cta-txt:       #ffffff;
    --header-border-bottom: none;
    --header-logo-width:    200px;
    --header-trans-text:    #ffffff;

    /* Typografie */
    --font-base:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading:     var(--font-base);
    --font-size-base:   16px;
    --font-size-h1:     42px;
    --font-size-h2:     32px;
    --font-size-h3:     24px;
    --font-size-h4:     20px;
    --font-size-nav:    14px;
    --line-height-base: 1.65;

    /* Layout */
    --container-width:  1200px;
    --container-width-wide: 1440px;
    --container-pad:    clamp(16px, 4vw, 40px);
    --header-height:    70px;

    /* Abstände */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  2rem;
    --space-xl:  4rem;

    /* Übergänge */
    --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-primary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Verhindert Layout-Shift durch Admin-Bar */
body.admin-bar .site-header.sticky {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header.sticky {
        top: 46px;
    }
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* =========================================================
   HEADER SOCIAL BAR
   ========================================================= */

.header-social-bar {
    background-color: transparent;
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    height: 36px;
    display: flex;
    align-items: center;
}

.header-social-bar .container {
    max-width: var(--container-width);
}

.header-inner {
    max-width: var(--container-width-wide);
}

.header-social-bar .container {
    display: flex;
    justify-content: flex-end;
}

.header-social-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-social-menu li { position: relative; }

.header-social-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.8rem;     /* Text sichtbar – normale Navigationslinks */
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color var(--transition);
}

.header-social-menu a:hover { color: var(--color-accent); }

/* Standard: kein Icon-Pseudo-Element */
.header-social-menu a::before {
    display: none;
    font-style: normal;
    font-size: 15px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: currentColor;
}

/* Bekannte Social-Plattformen → Icon statt Text */
.header-social-menu a[href*="instagram.com"],
.header-social-menu a[href*="facebook.com"],
.header-social-menu a[href*="x.com"],
.header-social-menu a[href*="twitter.com"],
.header-social-menu a[href*="youtube.com"],
.header-social-menu a[href*="tiktok.com"],
.header-social-menu a[href*="linkedin.com"],
.header-social-menu a[href*="pinterest.com"],
.header-social-menu a[href*="xing.com"],
.header-social-menu a[href*="whatsapp.com"],
.header-social-menu a[href*="wa.me"],
.header-social-menu a[href*="threads.net"],
.header-social-menu a[href*="spotify.com"] {
    font-size: 0; /* Text verstecken – nur Icon */
}
.header-social-menu a[href*="instagram.com"]::before,
.header-social-menu a[href*="facebook.com"]::before,
.header-social-menu a[href*="x.com"]::before,
.header-social-menu a[href*="twitter.com"]::before,
.header-social-menu a[href*="youtube.com"]::before,
.header-social-menu a[href*="tiktok.com"]::before,
.header-social-menu a[href*="linkedin.com"]::before,
.header-social-menu a[href*="pinterest.com"]::before,
.header-social-menu a[href*="xing.com"]::before,
.header-social-menu a[href*="whatsapp.com"]::before,
.header-social-menu a[href*="wa.me"]::before,
.header-social-menu a[href*="threads.net"]::before,
.header-social-menu a[href*="spotify.com"]::before    { display: inline-block; }

.header-social-menu a[href*="instagram.com"]::before  { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\f16d"; }
.header-social-menu a[href*="facebook.com"]::before   { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\f39e"; }
.header-social-menu a[href*="x.com"]::before,
.header-social-menu a[href*="twitter.com"]::before    { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\e61b"; }
.header-social-menu a[href*="youtube.com"]::before    { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\f167"; }
.header-social-menu a[href*="tiktok.com"]::before     { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\e07b"; }
.header-social-menu a[href*="linkedin.com"]::before   { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\f0e1"; }
.header-social-menu a[href*="pinterest.com"]::before  { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\f0d2"; }
.header-social-menu a[href*="xing.com"]::before       { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\f168"; }
.header-social-menu a[href*="whatsapp.com"]::before,
.header-social-menu a[href*="wa.me"]::before          { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\f232"; }
.header-social-menu a[href*="threads.net"]::before    { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\e618"; }
.header-social-menu a[href*="spotify.com"]::before    { font-family:"Font Awesome 6 Brands"; font-weight:400; content:"\f1bc"; }

/* Trennstriche zwischen Items */
.header-social-menu li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 12px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

/* Admin-Bar Offset */
body.admin-bar .header-social-bar {
    /* Kein extra Offset nötig – sticky Header kümmert sich darum */
}

@media (max-width: 600px) {
    .header-social-bar { display: none; }
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background-color: var(--color-header-bg);
    position: relative;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.sticky {
    position: sticky;
    top: 0;
}

/* Vor dem Scrollen: Header transparent (gilt für alle Seiten mit sticky Header).
   Ergibt dasselbe Bild wie die Startseite – Hintergrundfarbe/-bild der ersten
   WPBakery-Row scheint durch. */
.site-header.sticky:not(.scrolled):not(.mega-is-open) {
    background: transparent !important;
    box-shadow: none !important;
}

.site-header.scrolled {
    background: var(--color-header-bg) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: var(--header-height);
    gap: var(--space-lg);
}

/* Logo – margin-right: auto schiebt Nav + CTA auf die rechte Seite */
.site-branding {
    flex-shrink: 0;
    margin-right: auto;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.custom-logo {
    /* Höhe passt sich automatisch an – Breite wird über
       --header-logo-width (Theme Optionen → Header → Max. Breite) gesteuert */
    max-width: var(--header-logo-width, 200px);
    max-height: calc(var(--header-height, 80px) - 20px);
    width: auto;
    height: auto;
    display: block;
}

.site-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.site-title-text:hover { color: var(--color-accent); }

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.main-navigation li { position: relative; }

.main-navigation a {
    display: block;
    padding: 8px 14px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--color-accent);
}

/* Dropdown */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
    z-index: 100;
}

.main-navigation .sub-menu a {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 400;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    display: flex;
}

/* Header CTA Button (optional) */
.header-cta {
    flex-shrink: 0;
}

.header-cta a {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-accent);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity var(--transition);
}
.header-cta a:hover { opacity: 0.85; }

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-primary);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Per JS ins Nav injizierte Mobile-Elemente – auf Desktop versteckt */
.sub-menu-toggle    { display: none; }
.mobile-nav-header  { display: none; }
.mobile-cta-wrap    { display: none; }
.mobile-nav-widgets { display: none; }

/* Mobile-Nav-Outer + Panel – auf Desktop unsichtbar */
.mobile-nav-outer  { display: none; }
.mobile-nav-panel  { display: none; }

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.site-main { min-height: 50vh; }

/* WPBakery – Fullwidth Support */
.page-template-template-fullwidth .site-main,
.page-template-template-fullwidth .entry-content {
    padding: 0;
    max-width: 100%;
}

.entry-header { margin-bottom: var(--space-lg); }
.entry-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 var(--space-sm);
}

/* Standard-Seite mit Container – kein padding-top, WPBakery steuert den oberen Abstand selbst */
.page-default .entry-content {
    padding-bottom: var(--space-xl);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding-block: var(--space-xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: var(--container-width-wide);
    margin-inline: auto;
    padding-inline: var(--container-pad);
    width: 100%;
    box-sizing: border-box;
}

/* Widget-Bereiche */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.footer-widget-area { }

.footer-widget-area .widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0 0 var(--space-md);
}

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

.footer-widget-area li { padding: 3px 0; }

.footer-widget-area a {
    color: var(--color-footer-text);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-widget-area a:hover {
    color: #fff;
    text-decoration: none;
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.8rem;
}

.footer-copyright { color: rgba(255,255,255,0.5); }
.footer-copyright a { color: rgba(255,255,255,0.7); }

/* Footer Navigation */
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-nav a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer-nav a:hover { color: #fff; }

/* Social Icons */
.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0;            /* Text verstecken */
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Font Awesome 6 Icons für Footer-Social-Links */
.social-links a::before {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: currentColor;
}

.social-links a[href*="instagram.com"]::before  { content: "\f16d"; }
.social-links a[href*="facebook.com"]::before   { content: "\f39e"; }
.social-links a[href*="linkedin.com"]::before   { content: "\f0e1"; }
.social-links a[href*="youtube.com"]::before    { content: "\f167"; }
.social-links a[href*="tiktok.com"]::before     { content: "\e07b"; }
.social-links a[href*="xing.com"]::before       { content: "\f168"; }
.social-links a[href*="x.com"]::before,
.social-links a[href*="twitter.com"]::before    { content: "\e61b"; }
.social-links a[href*="pinterest.com"]::before  { content: "\f0d2"; }
.social-links a[href*="whatsapp.com"]::before,
.social-links a[href*="wa.me"]::before          { content: "\f232"; }
.social-links a[href*="spotify.com"]::before    { content: "\f1bc"; }

/* Footer Bottom Navigation (rechts ausgerichtet) */

.footer-bottom-nav { margin-left: auto; }

.footer-bottom-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-md);
}

.footer-bottom-menu a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-bottom-menu a:hover { color: #fff; }

@media (max-width: 600px) {
    .footer-bottom-nav { margin-left: 0; width: 100%; }
    .footer-bottom-menu { justify-content: flex-start; }
}

/* =========================================================
   WPBAKERY OVERRIDES & HELPERS
   ========================================================= */

/* WPBakery setzt seinen eigenen Reset – wir helfen nach */
.vc_row { margin-left: 0 !important; margin-right: 0 !important; }

/* Fullwidth Rows ohne Horizontal-Scroll */
.vc_row.vc_row-full-width {
    margin-left: 0 !important;
    right: auto !important;
    left: auto !important;
}

/* Kein weißer Rand bei stretched rows */
body .vc_row[data-vc-full-width="true"] {
    overflow: hidden;
}

/* Saubere Section-Abstände */
.vc_section, .vc_row { position: relative; }

/* =========================================================
   WPBAKERY INHALTSBREITE
   Standard-Rows: max. 1440px zentriert
   Stretched Rows (data-vc-full-width="true"): 100% breit
   ========================================================= */

/* 1. Stretched Row: volle Breite, JS-Inline-Styles überschreiben */
.vc_row[data-vc-full-width="true"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    box-sizing: border-box;
}

/* Innerer fluid-Wrapper bei Stretched Row: ebenfalls 100% */
.vc_row[data-vc-full-width="true"] > .vc_row-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Spalten in Stretched Rows: kein seitliches Padding */
.vc_row[data-vc-full-width="true"] .vc_column_container > .vc_column-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. Standard-Row (nicht stretched): auf 1440px begrenzen */
.vc_row:not([data-vc-full-width="true"]) {
    width: auto !important;
    max-width: var(--container-width-wide) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--container-pad) !important;
    padding-right: var(--container-pad) !important;
    box-sizing: border-box;
}

/* Innerer fluid-Wrapper falls vorhanden */
.vc_row:not([data-vc-full-width="true"]) > .vc_row-fluid,
.vc_row:not([data-vc-full-width="true"]) > .wpb_row {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Spalten in Standard-Rows */
.vc_row:not([data-vc-full-width="true"]) .vc_column_container > .vc_column-inner {
    padding-left: 15px;
    padding-right: 15px;
}

/* =========================================================
   WORDPRESS CORE CLASSES
   ========================================================= */

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--color-secondary); margin-top: 4px; }
.sticky { }
.gallery-caption { }
.bypostauthor { }
.alignnone { margin: 0; }
.alignleft { float: left; margin: 0 var(--space-lg) var(--space-md) 0; }
.alignright { float: right; margin: 0 0 var(--space-md) var(--space-lg); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: calc(var(--container-width) + 160px); margin-inline: auto; }
.alignfull { max-width: 100%; margin-inline: calc(-1 * var(--container-pad)); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ── Overlay hinter dem Mobile-Menü ── */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 991px) {
    .nav-toggle { display: flex; flex-direction: column; }

    /* Desktop-Navigation auf Mobile ausblenden */
    .main-navigation { display: none !important; }

    /* ── Outer-Wrapper: schiebt sich komplett von rechts ein, scrollt als Ganzes ── */
    .mobile-nav-outer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        width: min(340px, 88vw);
        z-index: 1001;
        border-left: 1px solid var(--color-border);
        transform: translateX(110%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
    }
    body.admin-bar .mobile-nav-outer { top: 32px; }
    .mobile-nav-outer:has(.mobile-nav-panel.is-open) {
        transform: translateX(0);
        box-shadow: -6px 0 28px rgba(0, 0, 0, 0.14);
    }

    /* ── Mobile-Nav-Panel: wächst auf Content-Höhe, Outer scrollt ── */
    .mobile-nav-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex: 0 0 auto;
        background: var(--color-bg);
        overflow: visible;
        padding: 0;
    }

    /* ── Panel-Kopfzeile ── */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px 0 20px;
        height: 60px;
        flex-shrink: 0;
        border-bottom: 2px solid var(--color-accent);
        background: var(--color-bg);
        position: sticky;
        top: 0;
        z-index: 1;
        width: 100%;
        box-sizing: border-box;
    }
    .mobile-nav-header-title {
        font-size: .85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--color-secondary);
    }
    .mobile-nav-close {
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary);
        border-radius: 8px;
        padding: 0;
        transition: background 0.15s;
        flex-shrink: 0;
    }
    .mobile-nav-close:hover { background: var(--color-bg-alt); }
    .mobile-nav-close svg   { pointer-events: none; }

    /* ── Menü-Liste ── */
    .mobile-nav-panel ul {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    /* Alle Links im Panel */
    .mobile-nav-panel a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
        box-sizing: border-box;
        color: var(--color-primary);
        text-decoration: none;
        transition: color 0.15s, background 0.15s;
    }
    .mobile-nav-panel a:hover { color: var(--color-accent); background: var(--color-bg-alt); }

    /* ── Chevron-Pfeil: erscheint via CSS, kein JS-Button ── */
    .mobile-nav-panel .menu-item-has-children > a::after {
        content: '';
        flex-shrink: 0;
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        margin-left: 12px;
        transition: transform 0.22s ease;
    }
    .mobile-nav-panel .menu-item-has-children > a.sub-is-open {
        color: var(--color-accent);
        background: var(--color-bg-alt);
    }
    .mobile-nav-panel .menu-item-has-children > a.sub-is-open::after {
        transform: rotate(-135deg) translateY(-2px);
    }

    /* ── Sub-Menü: standardmäßig eingeklappt ── */
    .mobile-nav-panel .sub-menu {
        position: static;
        box-shadow: none;
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--color-bg-alt);
        border-left: 3px solid var(--color-accent);
        margin-left: 0;
        padding-left: 0;
    }
    .mobile-nav-panel .sub-menu.is-open { display: flex; }
    .mobile-nav-panel .sub-menu > li > a {
        padding: 11px 20px 11px 28px;
        font-size: .9rem;
        font-weight: 500;
        color: var(--color-secondary);
        border-bottom: 1px solid rgba(0,0,0,.05);
    }
    .mobile-nav-panel .sub-menu > li:last-child > a { border-bottom: 1px solid var(--color-border); }
    .mobile-nav-panel .sub-menu > li > a:hover { color: var(--color-accent); }
    /* Kein Chevron in Sub-Menüs */
    .mobile-nav-panel .sub-menu .menu-item-has-children > a::after { display: none; }

    /* ── Widget-Bereiche: eigene Sektionen über/unter dem Menü ── */
    .mobile-nav-widgets {
        display: block;
        flex-shrink: 0;
        padding: 18px 20px;
        background: var(--color-bg-alt);
        box-sizing: border-box;
        width: 100%;
    }
    .mobile-nav-widgets--top {
        border-bottom: 1px solid var(--color-border);
    }
    .mobile-nav-widgets--bottom {
        border-top: 1px solid var(--color-border);
        flex: 1;          /* füllt den restlichen Platz bis zum unteren Rand */
    }
    /* Widget-Titel im Panel */
    .mobile-nav-widgets .widget-title {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--color-text-muted, #888);
        margin: 0 0 8px;
    }
    /* Allgemeine Texte & Links im Panel-Widget */
    .mobile-nav-widgets p { margin: 0 0 6px; font-size: 14px; }
    .mobile-nav-widgets a { color: var(--color-accent); text-decoration: none; }
    .mobile-nav-widgets a:hover { text-decoration: underline; }
    /* Bild-Widgets: volle Breite */
    .mobile-nav-widgets img { max-width: 100%; height: auto; border-radius: 6px; }

    /* ── CTA: grüner Button direkt nach dem letzten Menüpunkt ── */
    .mobile-cta-wrap {
        display: block;
        flex-shrink: 0;
        padding: 16px 20px;
        width: 100%;
        box-sizing: border-box;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
    }
    .mobile-cta-wrap a {
        display: block;
        text-align: center;
        background: var(--color-accent);
        color: #fff !important;
        padding: 13px 20px;
        border-radius: 7px;
        font-weight: 700;
        font-size: .95rem;
        text-decoration: none;
        border-bottom: none !important;
        transition: opacity 0.15s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    .mobile-cta-wrap a:hover { opacity: .87; }

    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Admin-Bar 46px auf sehr kleinen Screens */
@media (max-width: 782px) {
    body.admin-bar .mobile-nav-outer { top: 46px !important; }
}

@media (max-width: 600px) {
    :root { --header-height: var(--header-height-mobile, 60px); }
    /* CTA im Header ausblenden – erscheint im Mobile-Menü (per JS eingefügt) */
    .header-cta { display: none; }
}

/* =========================================================
   HEADER – LAYOUT: ZENTRIERT
   ========================================================= */

.header-centered .header-inner--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 12px;
}

.header-centered .header-center-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    margin-bottom: 8px;
}

.header-centered .nav-toggle {
    position: absolute;
    right: 0;
}

.header-centered .main-navigation {
    width: 100%;
    justify-content: center;
}

.header-centered .main-navigation ul {
    justify-content: center;
}

/* =========================================================
   HEADER – TRANSPARENTER MODUS
   ========================================================= */

.site-header.is-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 1000;
}

/* Seiteninhalt rückt unter transparenten Header nicht ein */
.site-header.is-transparent + #content {
    margin-top: 0;
}

.site-header.is-transparent .main-navigation .primary-menu > li > a,
.site-header.is-transparent .site-title-text {
    color: var(--header-trans-text) !important;
}

.site-header.is-transparent .nav-toggle span {
    background: var(--header-trans-text);
}

/* Wenn gescrollt: undurchsichtig werden */
.site-header.is-transparent.scrolled {
    background: var(--color-header-bg) !important;
}

.site-header.is-transparent.scrolled .main-navigation .primary-menu > li > a,
.site-header.is-transparent.scrolled .site-title-text {
    color: var(--header-text-color) !important;
}

.site-header.is-transparent.scrolled .nav-toggle span {
    background: var(--header-text-color);
}

/* Unterseiten: transparenter Header bleibt sticky (klebt oben, scrollt nicht weg).
   Startseite behält position:absolute, damit WPBakery-Hero bei y=0 starten kann. */
body.page-default .site-header.is-transparent {
    position: sticky;
}

/* Admin-Bar: transparenter Header wird nach unten verschoben */
body.admin-bar .site-header.is-transparent {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header.is-transparent {
        top: 46px;
    }
}

/* =========================================================
   TOUR HERO (fe_tour Beitragsbild als Hero hinter dem Header)
   ========================================================= */

/* Social-Bar auf Tour-Seiten ausblenden – WPBakery-Inhalt reicht bis Oberkante */
body.single-fe_tour .header-social-bar {
    display: none;
}


.tour-hero {
    position: relative;
    width: 100%;
    height: clamp(380px, 60vh, 680px);
    overflow: hidden;
}

.tour-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.tour-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.28) 0%,
        rgba(0,0,0,.08) 45%,
        rgba(0,0,0,.55) 100%
    );
    pointer-events: none;
}

.tour-hero__content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: var(--space-xl) var(--container-pad);
    color: #fff;
}

.tour-hero__title {
    color: #fff !important;
    font-size: clamp(1.75rem, 4vw, 3rem) !important;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
    line-height: 1.2;
}

/* Breadcrumbs im Hero-Bereich */
.tour-hero__content .basen-breadcrumb,
.tour-hero__content .basen-breadcrumb a,
.tour-hero__content .breadcrumbs,
.tour-hero__content .breadcrumbs a {
    color: rgba(255,255,255,.82) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    font-size: .85rem;
}
.tour-hero__content .basen-breadcrumb {
    margin-bottom: var(--space-sm);
}

/* =========================================================
   FE_TOUR – TRANSPARENTER FIXED HEADER (CSS-only, immer aktiv)
   Strukturregeln greifen unabhängig von PHP/OPcache.
   Logo-/Menüfarbe wird separat via Metabox gesteuert
   (transparent-header.php → "Hell" oder "Dunkel").
   ========================================================= */

/* Header fixieren & transparent machen */
body.single-fe_tour .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* Admin-Bar-Versatz */
body.admin-bar.single-fe_tour .site-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar.single-fe_tour .site-header {
        top: 46px !important;
    }
}
/* Nach dem Scrollen: Header bekommt Hintergrund, Logo/Farben/CTA zurücksetzen */
body.single-fe_tour .site-header.scrolled {
    background: var(--color-header-bg) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}
body.single-fe_tour .site-header.scrolled .custom-logo { filter: none !important; }
body.single-fe_tour .site-header.scrolled .main-navigation a,
body.single-fe_tour .site-header.scrolled .site-title-text,
body.single-fe_tour .site-header.scrolled .nav-toggle { color: var(--color-primary) !important; }
body.single-fe_tour .site-header.scrolled .nav-toggle span { background: var(--color-primary); }
/* Social-Bar ausblenden – WPBakery-Inhalt reicht bis Oberkante */
body.single-fe_tour .header-social-bar {
    display: none !important;
}
/* Inhalt beginnt bei y=0 (Header ist aus dem Fluss) */
body.single-fe_tour .site-content,
body.single-fe_tour .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =========================================================
   MEGA MENÜ
   ========================================================= */

/* Trigger-Item: position:static damit der Dropdown sich relativ
   zum site-header (nächster positioned ancestor) ausrichtet */
.main-navigation .menu-item.has-mega-menu {
    position: static;
}

/* Alle Top-Level-Menüpunkte: gleiche Maße wie der CTA-Button */
.main-navigation .primary-menu > .menu-item > a {
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color .22s ease, color .22s ease;
}

/* ── Highlight: Hover für alle Menüpunkte, is-open für Mega Menü – nur Desktop ── */
@media (min-width: 992px) {
    .main-navigation .primary-menu > .menu-item:hover > a,
    .main-navigation .menu-item.has-mega-menu.is-open > a {
        background-color: var(--color-accent);
        color: #ffffff !important;
        /* Chevron erbt via currentColor automatisch weiß */
    }

    /* ── CTA-Button: Schrift weiß wenn ein Menüpunkt oder Mega Menü aktiv ── */
    .site-header.mega-is-open .header-cta a,
    .header-inner:has(.primary-menu > .menu-item:hover) .header-cta a {
        color: #ffffff;
    }
}

/* Chevron-Pfeil am Trigger-Link */
.main-navigation .menu-item.has-mega-menu > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    margin-left: 6px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.main-navigation .menu-item.has-mega-menu:hover > a::after,
.main-navigation .menu-item.has-mega-menu.is-open > a::after {
    transform: rotate(-135deg) translateY(1px);
}

/* ── Dropdown-Panel ──────────────────────────────────── */
.mega-menu-dropdown {
    /* position: fixed → Viewport-breite, unabhängig von Containing-Block-Hierarchie.
       JS setzt --mega-top = Header-Unterkante in px (getBoundingClientRect().bottom) */
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mega-top, 70px);
    z-index: 998;
    background: #fff;
    border-top: 3px solid var(--color-accent); /* verbindet farblich mit dem Highlight-Block */
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);

    /* Versteckt-Zustand */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.menu-item.has-mega-menu:hover .mega-menu-dropdown,
.menu-item.has-mega-menu.is-open .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
/* ARIA-gesteuerte Sichtbarkeit (Keyboard) */
.mega-menu-dropdown[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Innerer Content-Bereich ──────────────────────────── */
.mega-menu-inner {
    max-width: var(--container-width-wide);
    margin-inline: auto;
    padding: var(--space-xl) var(--container-pad);
    box-sizing: border-box;
}

/* ── WPBakery in Mega Menü: keine Stretched Rows ─────── */
/* Stretched Rows berechnen Offsets relativ zur Seite –
   im Dropdown führt das zu falschen Positionen.
   Alle Rows werden als Standard-Rows behandelt.          */
.mega-menu-inner .vc_row,
.mega-menu-inner .vc_row[data-vc-full-width="true"] {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
}
.mega-menu-inner .vc_row > .vc_row-fluid,
.mega-menu-inner .vc_row[data-vc-full-width="true"] > .vc_row-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.mega-menu-inner .vc_column_container > .vc_column-inner {
    padding-left: var(--space-md) !important;
    padding-right: var(--space-md) !important;
}

/* ── Typografie & Links im Mega Menü ─────────────────── */
.mega-menu-inner h2 { font-size: 1rem;   font-weight: 700; margin: 0 0 var(--space-xs); color: var(--color-primary); }
.mega-menu-inner h3 { font-size: 0.9rem; font-weight: 600; margin: 0 0 var(--space-xs); color: var(--color-secondary); text-transform: uppercase; letter-spacing: .04em; }
.mega-menu-inner p  { font-size: 0.875rem; margin: 0 0 var(--space-sm); }

.mega-menu-inner ul {
    list-style: none;
    margin: 0; padding: 0;
}
.mega-menu-inner ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    color: var(--color-primary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition), gap var(--transition);
}
.mega-menu-inner ul li a:hover {
    color: var(--color-accent);
    gap: 10px;
}
/* Trenn-Linie zwischen Mega-Menü-Spalten */
.mega-menu-inner .vc_col-sm-3 + .vc_col-sm-3,
.mega-menu-inner .vc_col-sm-4 + .vc_col-sm-4 {
    border-left: 1px solid var(--color-border);
}

/* ── Startseite USP-Navigation: auf Tablet 3 Spalten, Mobile 2 Spalten ── */
@media (max-width: 991px) {
    .vc_col-sm-1\/5 {
        width: 33.333% !important;
        float: left !important;
    }
}
@media (max-width: 600px) {
    .vc_col-sm-1\/5 {
        width: 50% !important;
        float: left !important;
    }
}

/* ── Mobil: Mega Menü deaktivieren (Dropdown, nicht der Link selbst) ── */
@media (max-width: 991px) {
    .mega-menu-dropdown {
        display: none !important;
    }
    /* Chevron ausblenden – kein Dropdown vorhanden */
    .main-navigation .menu-item.has-mega-menu > a::after {
        display: none !important;
    }
    /* Hover-Highlight für Mega-Menü-Trigger auf Mobile deaktivieren */
    .main-navigation .primary-menu > .menu-item.has-mega-menu:hover > a {
        background: transparent !important;
        color: var(--color-primary) !important;
    }
    /* Aktiver Zustand bleibt via current-menu-item sichtbar */
    .main-navigation .menu-item.has-mega-menu.current-menu-ancestor > a,
    .main-navigation .menu-item.has-mega-menu.current-menu-item > a {
        color: var(--color-accent) !important;
    }
}

/* ════════════════════════════════════════════════════════════
   Konzept 2 – "Overlapping Hero" Startseite
   Klassen-Prefix: fd-
   ════════════════════════════════════════════════════════════ */

/* ── Hero: Bilderstapel ── */
.fd-hero-row { overflow: visible; }
.fd-hero-left .wpb_wrapper { padding: 0 !important; overflow: visible; }

.fd-img-stack {
    position: relative;
    height: 580px;
    overflow: visible;
}
.fd-img-main {
    position: absolute;
    top: 0; left: 0;
    width: 82%; height: 500px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    z-index: 1;
}
.fd-img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fd-img-secondary {
    position: absolute;
    bottom: 0; right: -30px;
    width: 54%; height: 310px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.32);
    border: 5px solid #fff;
    z-index: 2;
}
.fd-img-secondary img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fd-img-accent {
    position: absolute;
    top: 38%; left: 46%;
    width: 34%; height: 210px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.38);
    border: 5px solid #fff;
    z-index: 3;
    transform: rotate(-2.5deg);
}
.fd-img-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fd-hero-text-overlay {
    position: absolute;
    top: 44px; left: 32px;
    z-index: 5;
}
.fd-hero-tag {
    display: inline-block;
    background: var(--color-accent, #2d5a27);
    color: #fff;
    padding: 6px 16px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 14px;
}
.fd-hero-title {
    color: #fff;
    font-size: 2.7rem;
    line-height: 1.15;
    text-shadow: 0 3px 20px rgba(0,0,0,0.6);
    margin: 0 0 12px;
    max-width: 380px;
    font-weight: 800;
}
.fd-hero-sub {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 320px;
    margin: 0;
}

/* ── Hero: Rechte Sidebar ── */
.fd-hero-right .wpb_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.fd-sidebar-panel { padding: 0; }

.fd-btn-anmelden {
    display: block;
    background: var(--color-accent, #2d5a27);
    color: #fff !important;
    text-align: center;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none !important;
    margin-bottom: 36px;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 24px rgba(45,90,39,0.35);
    transition: background 0.2s, transform 0.2s;
}
.fd-btn-anmelden:hover {
    background: #1a3a15;
    transform: translateY(-2px);
}

.fd-termine-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a1e;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fd-green-bar {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--color-accent, #2d5a27);
    border-radius: 2px;
    flex-shrink: 0;
}

.fd-event-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.fd-event-date {
    background: var(--color-accent, #2d5a27);
    color: #fff;
    border-radius: 5px;
    padding: 8px 10px;
    text-align: center;
    min-width: 48px;
    flex-shrink: 0;
}
.fd-day  { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.fd-month { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.fd-event-info strong { font-size: 0.875rem; color: #1a2a1a; display: block; margin-bottom: 2px; }
.fd-event-info p  { font-size: 0.78rem; color: #666; margin: 0; line-height: 1.4; }

.fd-alle-link {
    display: inline-block;
    color: var(--color-accent, #2d5a27);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: 6px;
}
.fd-alle-link:hover { text-decoration: underline; }

/* ── Touren Section ── */
.fd-section-header { text-align: center; color: #fff; }
.fd-section-tag {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    padding: 5px 14px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 3px;
    margin-bottom: 14px;
}
.fd-section-title { color: #fff; font-size: 2.1rem; margin: 0 0 10px; font-weight: 800; }
.fd-section-sub   { color: rgba(255,255,255,0.65); font-size: 0.95rem; max-width: 480px; margin: 0 auto; }

.fd-tour-col { padding: 0 10px !important; }

.fd-tour-card {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}
.fd-tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.fd-tour-img { height: 196px; overflow: hidden; }
.fd-tour-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s;
}
.fd-tour-card:hover .fd-tour-img img { transform: scale(1.06); }
.fd-tour-body { padding: 18px 16px 20px; }
.fd-tour-name { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }

.fd-tour-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fd-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-block;
}
.fd-badge-leicht { background: #2a7a2a; color: #fff; }
.fd-badge-mittel { background: #c8860a; color: #fff; }
.fd-badge-schwer { background: #a93226; color: #fff; }
.fd-badge-info   { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.88); }

.fd-tour-desc { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin: 0 0 14px; line-height: 1.5; }
.fd-tour-link { color: #8dcc8d; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.fd-tour-link:hover { color: #fff; }

/* ── Karte ── */
.fd-map-container { position: relative; }
.fd-map-overlay {
    position: absolute;
    top: 28px; left: 28px;
    background: rgba(255,255,255,0.96);
    padding: 20px 24px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 24px rgba(0,0,0,0.14);
    max-width: 270px;
}
.fd-map-overlay h3 { margin: 0 0 5px; font-size: 0.95rem; color: #1e3a1e; font-weight: 700; }
.fd-map-overlay p  { margin: 0 0 12px; font-size: 0.78rem; color: #666; }
.fd-map-btn {
    display: inline-block;
    background: var(--color-accent, #2d5a27);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
}
.fd-map-btn:hover { background: #1a3a15; }

/* ── Responsive (old fd-img-* hero) ── */
@media (max-width: 991px) {
    .fd-img-stack    { height: 420px; }
    .fd-img-main     { width: 90%; height: 380px; }
    .fd-img-accent   { display: none; }
    .fd-img-secondary { right: 0; width: 56%; height: 230px; }
    .fd-hero-title   { font-size: 2rem; }
    .fd-tour-col     { margin-bottom: 20px; }
}
@media (max-width: 767px) {
    .fd-img-stack    { height: 300px; }
    .fd-img-main     { width: 100%; height: 270px; }
    .fd-img-secondary { display: none; }
    .fd-hero-title   { font-size: 1.6rem; }
    .fd-hero-text-overlay { top: 24px; left: 18px; }
    .fd-section-title { font-size: 1.6rem; }
    .fd-map-overlay  { position: static; max-width: 100%; border-radius: 0; }
}

/* ── Konzept 2 (Update): Parallax Overlap Section ── */
.fd-parallax-section { overflow: hidden; }
.fd-parallax-left .wpb_wrapper { overflow: visible !important; }

.fd-pimg-stack {
    position: relative;
    height: 540px;
    overflow: visible;
}
.fd-pimg-1 {
    position: absolute;
    top: 20px; left: 0;
    width: 74%; height: 460px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(0,0,0,0.18);
    will-change: transform;
    transition: transform 0.05s linear;
}
.fd-pimg-1 img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fd-pimg-2 {
    position: absolute;
    bottom: 0; right: -10px;
    width: 50%; height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
    border: 6px solid #fff;
    will-change: transform;
    transition: transform 0.05s linear;
}
.fd-pimg-2 img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fd-pimg-3 {
    position: absolute;
    top: 44%; left: 40%;
    width: 34%; height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
    border: 6px solid #fff;
    will-change: transform;
    transition: transform 0.05s linear;
}
.fd-pimg-3 img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fd-stack-label {
    padding-top: 36px;
    max-width: 420px;
}
.fd-stack-tag {
    display: inline-block;
    background: var(--color-accent, #2d5a27);
    color: #fff;
    padding: 5px 14px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 12px;
}
.fd-stack-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a1a;
    line-height: 1.2;
    margin: 0 0 12px;
}
.fd-stack-sub {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* Sidebar im hellen Kontext */
.fd-parallax-sidebar .fd-termine-title { color: #1e3a1e !important; }
.fd-parallax-sidebar .fd-event-info strong { color: #1a2a1a !important; }
.fd-parallax-sidebar .fd-event-info p { color: #666 !important; }
.fd-parallax-sidebar .basen-events-title { font-size: 1.05rem; font-weight: 700; color: #1e3a1e; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.fd-parallax-sidebar .basen-events-title::before { content: ''; display: inline-block; width: 4px; height: 20px; background: var(--color-accent, #2d5a27); border-radius: 2px; }

@media (max-width: 991px) {
    .fd-pimg-stack  { height: 380px; }
    .fd-pimg-1      { width: 85%; height: 330px; }
    .fd-pimg-3      { display: none; }
    .fd-pimg-2      { right: 0; width: 55%; height: 220px; }
    .fd-stack-label { padding-top: 20px; }
    .fd-stack-heading { font-size: 1.5rem; }
}
@media (max-width: 767px) {
    .fd-pimg-stack  { height: 260px; }
    .fd-pimg-1      { width: 100%; height: 240px; }
    .fd-pimg-2      { display: none; }
    .fd-stack-heading { font-size: 1.3rem; }
}
