/* ═══════════════════════════════════════════════════════
   meelo Theme — theme.css
   Alle CSS-Werte nutzen CSS-Variablen aus dem Customizer
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--meelo-font-size, 16px); }
body {
    font-family: var(--meelo-font-body, 'DM Sans', system-ui, sans-serif);
    color: var(--meelo-text, #1a1916);
    background: var(--meelo-bg, #f8f7f4);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
    font-family: var(--meelo-font-heading, 'DM Sans', system-ui, sans-serif);
    font-weight: var(--meelo-font-weight-heading, 800);
    color: var(--meelo-text, #1a1916);
    line-height: 1.2;
    letter-spacing: -.02em;
}
a { color: var(--meelo-primary, #2563eb); text-decoration: none; transition: color .15s; }
a:hover { color: color-mix(in srgb, var(--meelo-primary) 80%, #000); }
img { max-width: 100%; height: auto; display: block; }
input, button, select, textarea { font-family: inherit; font-size: 1rem; }

/* ── Layout ─────────────────────────────────────── */
.meelo-page { display: flex; flex-direction: column; min-height: 100vh; }
.meelo-main { flex: 1; }
.meelo-container {
    max-width: var(--meelo-container, 1280px);
    width: 100%; margin: 0 auto; padding: 0 24px;
}
.meelo-section { padding: var(--meelo-section-padding, 64px) 0; }
.meelo-fp-section { padding: var(--meelo-section-padding, 64px) 0; }
.meelo-fp-section--narrow { padding: 32px 0; }

/* ── Header ─────────────────────────────────────── */
.meelo-header {
    background: var(--meelo-header-bg, #fff);
    color: var(--meelo-header-text, #1a1916);
    height: var(--meelo-header-height, 70px);
    top: 0; left: 0; right: 0; z-index: 1000;
    transition: box-shadow .2s, transform .25s, background .2s;
}
.meelo-header.is-sticky { position: sticky; }
.meelo-header.has-shadow { box-shadow: 0 1px 0 var(--meelo-border, #e5e3de); }
.meelo-header.is-scrolled.has-shadow { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.meelo-header.is-hidden { transform: translateY(-100%); }
.meelo-header.is-transparent { background: transparent; color: #fff; box-shadow: none; }
.meelo-header__inner {
    height: 100%; display: flex; align-items: center;
    gap: 24px; justify-content: space-between;
}
.meelo-header__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.meelo-site-name { font-size: 22px; font-weight: 900; color: var(--meelo-primary); font-style: italic; letter-spacing: -.5px; }
.meelo-header__tagline { font-size: 11px; color: var(--meelo-text-muted); display: none; }
@media(min-width:1024px){ .meelo-header__tagline { display: block; } }

/* ── Navigation ─────────────────────────────────── */
.meelo-nav { flex: 1; }
.meelo-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.meelo-nav__list > li > a {
    display: block; padding: 8px 14px; font-size: 14px; font-weight: 600;
    color: var(--meelo-header-text, #1a1916); border-radius: 8px;
    transition: background .12s, color .12s;
}
.meelo-nav__list > li > a:hover,
.meelo-nav__list > li.current-menu-item > a {
    background: color-mix(in srgb, var(--meelo-primary) 8%, transparent);
    color: var(--meelo-primary);
}
.meelo-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.meelo-header__search-btn { background: none; border: none; cursor: pointer; color: var(--meelo-text-muted); padding: 8px; border-radius: 8px; transition: all .12s; }
.meelo-header__search-btn:hover { background: var(--meelo-bg); color: var(--meelo-primary); }
.meelo-header__register-btn {
    padding: 8px 18px; background: var(--meelo-primary); color: #fff;
    border-radius: 10px; font-size: 14px; font-weight: 700; transition: all .12s;
}
.meelo-header__register-btn:hover { opacity: .9; color: #fff; }
.meelo-header__login-link { font-size: 14px; font-weight: 600; color: var(--meelo-text-muted); }
.meelo-header__dash-btn {
    display: flex; align-items: center; gap: 7px; padding: 6px 14px;
    background: var(--meelo-bg); border-radius: 10px; font-size: 14px; font-weight: 600;
    color: var(--meelo-text); transition: all .12s;
}
.meelo-header__dash-btn:hover { background: var(--meelo-border); color: var(--meelo-text); }
.meelo-header__avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--meelo-border); }
.meelo-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.meelo-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--meelo-text); transition: all .2s; border-radius: 2px; }
.meelo-nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.meelo-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.meelo-nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Submenu ─────────────────────────────────────── */
.meelo-nav__list .sub-menu {
    position: absolute; top: 100%; left: 0;
    background: #fff; border: 1.5px solid var(--meelo-border); border-radius: var(--meelo-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.1); min-width: 200px; z-index: 100;
    list-style: none; padding: 6px; display: none;
}
.meelo-nav__list .menu-item-has-children { position: relative; }
.meelo-nav__list .menu-item-has-children:hover > .sub-menu { display: block; }
.meelo-nav__list .sub-menu li a { display: block; padding: 8px 12px; font-size: 14px; border-radius: 8px; color: var(--meelo-text); }
.meelo-nav__list .sub-menu li a:hover { background: var(--meelo-bg); color: var(--meelo-primary); }

/* ── Search Overlay ──────────────────────────────── */
.meelo-search-overlay {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.meelo-search-overlay.is-open { opacity: 1; pointer-events: all; }
.meelo-search-overlay__form { display: flex; gap: 10px; max-width: 600px; width: 90%; }
.meelo-search-overlay__form input {
    flex: 1; padding: 16px 20px; font-size: 18px; border-radius: var(--meelo-radius);
    border: none; outline: none; font-family: inherit;
}
.meelo-search-overlay__form button {
    padding: 16px 24px; background: var(--meelo-primary); color: #fff;
    border: none; border-radius: var(--meelo-radius); font-size: 16px; font-weight: 700; cursor: pointer;
}
.meelo-search-overlay__close {
    position: absolute; top: 24px; right: 24px; background: none; border: none;
    color: #fff; font-size: 24px; cursor: pointer; opacity: .7;
}

/* ── Hero ─────────────────────────────────────────── */
.meelo-hero {
    position: relative; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--meelo-primary) 0%, color-mix(in srgb,var(--meelo-primary) 70%,#7c3aed) 100%);
    background-size: cover; background-position: center; overflow: hidden;
}
.meelo-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.meelo-hero__inner { position: relative; z-index: 1; padding: var(--meelo-section-padding) 24px; color: #fff; }
.meelo-hero__title { font-size: clamp(28px,4vw,56px); margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.meelo-hero__sub { font-size: clamp(15px,2vw,20px); opacity: .88; max-width: 600px; margin-bottom: 28px; }
.meelo-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────── */
.meelo-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
    cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: all .15s;
    font-family: inherit;
}
.meelo-btn--primary { background: var(--meelo-primary); color: #fff; }
.meelo-btn--primary:hover { background: color-mix(in srgb,var(--meelo-primary) 85%,#000); color: #fff; }
.meelo-btn--outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.meelo-btn--outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.meelo-btn--white { background: #fff; color: var(--meelo-primary); }
.meelo-btn--white:hover { background: #f0f0f0; color: var(--meelo-primary); }
.meelo-btn--lg { padding: 13px 28px; font-size: 16px; border-radius: 12px; }

/* ── Stats ───────────────────────────────────────── */
.meelo-stats { padding: 32px 0; background: var(--meelo-card); border-bottom: 1.5px solid var(--meelo-border); }
.meelo-stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.meelo-stat__value { font-size: 36px; font-weight: 900; color: var(--meelo-primary); line-height: 1; }
.meelo-stat__label { font-size: 13px; font-weight: 600; color: var(--meelo-text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }

/* ── Section Head ────────────────────────────────── */
.meelo-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.meelo-section-title { font-size: clamp(20px,2.5vw,28px); }
.meelo-section-more { font-size: 14px; font-weight: 600; color: var(--meelo-primary); }

/* ── CTA Banner ──────────────────────────────────── */
.meelo-cta-banner {
    padding: var(--meelo-section-padding) 0;
    background: linear-gradient(135deg, var(--meelo-primary), color-mix(in srgb,var(--meelo-primary) 70%,#1e40af));
    color: #fff;
}
.meelo-cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.meelo-cta-banner__title { font-size: clamp(20px,2.5vw,30px); margin-bottom: 8px; }
.meelo-cta-banner__text { opacity: .85; max-width: 540px; }

/* ── Cards ───────────────────────────────────────── */
.meelo-card {
    background: var(--meelo-card); border: 1.5px solid var(--meelo-border);
    border-radius: var(--meelo-radius); overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: box-shadow .15s, transform .15s;
}
.meelo-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }

/* ── Post Cards ──────────────────────────────────── */
.meelo-archive { padding: var(--meelo-section-padding) 0; }
.meelo-archive__title { font-size: 28px; margin-bottom: 28px; }
.meelo-post-card { background: var(--meelo-card); border: 1.5px solid var(--meelo-border); border-radius: var(--meelo-radius); overflow: hidden; margin-bottom: 24px; display: grid; grid-template-columns: 260px 1fr; }
.meelo-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.meelo-post-card__body { padding: 24px; }
.meelo-post-card__title { font-size: 20px; margin-bottom: 10px; }
.meelo-post-card__title a { color: var(--meelo-text); }
.meelo-post-card__excerpt { font-size: 14px; color: var(--meelo-text-muted); margin-bottom: 16px; }

/* ── Article ─────────────────────────────────────── */
.meelo-article__hero img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--meelo-radius); margin-bottom: 28px; }
.meelo-article__header { margin-bottom: 24px; }
.meelo-article__title { font-size: clamp(24px,3vw,40px); margin-bottom: 10px; }
.meelo-article__meta { font-size: 13px; color: var(--meelo-text-muted); }
.meelo-content h2 { font-size: 24px; margin: 32px 0 12px; }
.meelo-content h3 { font-size: 20px; margin: 24px 0 10px; }
.meelo-content p { margin-bottom: 16px; }
.meelo-content ul, .meelo-content ol { margin: 16px 0 16px 24px; }
.meelo-content li { margin-bottom: 6px; }
.meelo-content blockquote { border-left: 4px solid var(--meelo-primary); padding: 16px 20px; margin: 24px 0; background: color-mix(in srgb,var(--meelo-primary) 5%,white); border-radius: 0 var(--meelo-radius) var(--meelo-radius) 0; font-style: italic; }
.meelo-content img { border-radius: var(--meelo-radius); margin: 16px 0; }

/* ── Page ────────────────────────────────────────── */
.meelo-page-content { padding: var(--meelo-section-padding) 0; }
.meelo-page-title { font-size: clamp(24px,3vw,36px); margin-bottom: 24px; }

/* ── Footer ──────────────────────────────────────── */
.meelo-footer {
    background: var(--meelo-footer-bg, #1a1916);
    color: var(--meelo-footer-text, #fff);
    padding: 56px 0 0; margin-top: auto;
}
.meelo-footer__top { display: grid; gap: 40px; margin-bottom: 48px; }
.meelo-footer__brand .meelo-site-name { color: var(--meelo-primary); }
.meelo-footer__tagline { font-size: 14px; opacity: .6; margin-top: 10px; max-width: 280px; line-height: 1.6; }
.meelo-footer__col h2,.meelo-footer__col h3,.meelo-footer__col .widget-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.meelo-footer-nav { list-style: none; }
.meelo-footer-nav li a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.7); transition: color .12s; }
.meelo-footer-nav li a:hover { color: #fff; }
.meelo-footer__bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 12px; color: rgba(255,255,255,.4);
}
.meelo-footer__powered a { color: var(--meelo-primary); }
.meelo-footer__legal { display: flex; gap: 16px; }
.meelo-footer__legal a { color: rgba(255,255,255,.4); font-size: 12px; }
.meelo-footer__legal a:hover { color: rgba(255,255,255,.8); }

/* ── Back to Top ─────────────────────────────────── */
.meelo-btt {
    position: fixed; bottom: 24px; right: 24px; z-index: 500;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--meelo-primary); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.2); opacity: 0; transform: translateY(10px);
    transition: opacity .2s, transform .2s; pointer-events: none;
}
.meelo-btt.is-visible { opacity: 1; transform: none; pointer-events: all; }
.meelo-btt:hover { opacity: .85; }

/* ── Cookie Bar ──────────────────────────────────── */
.meelo-cookie-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
    background: var(--meelo-text, #1a1916); color: #fff;
    padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 14px; transform: translateY(100%); transition: transform .3s;
}
.meelo-cookie-bar.is-visible { transform: none; }
.meelo-cookie-bar a { color: var(--meelo-primary); }
.meelo-cookie-bar__btn {
    padding: 8px 20px; background: var(--meelo-primary); color: #fff;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}

/* ── Widget ──────────────────────────────────────── */
.meelo-widget { margin-bottom: 24px; }
.meelo-widget__title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--meelo-text-muted); margin-bottom: 12px; }

/* ── Responsive ──────────────────────────────────── */
@media(max-width:900px){
    .meelo-nav,.meelo-header__tagline { display: none; }
    .meelo-nav-toggle { display: flex; }
    .meelo-header__nav { position: absolute; top: var(--meelo-header-height,70px); left: 0; right: 0; background: var(--meelo-header-bg,#fff); border-bottom: 1.5px solid var(--meelo-border); padding: 12px; z-index: 999; display: none; }
    .meelo-header__nav .meelo-nav { display: block; }
    .meelo-nav__list { flex-direction: column; align-items: stretch; }
    .meelo-nav__list > li > a { border-radius: 8px; }
    .meelo-stats__grid { grid-template-columns: 1fr 1fr; }
    .meelo-post-card { grid-template-columns: 1fr; }
    .meelo-footer__top { grid-template-columns: 1fr !important; }
    .meelo-cta-banner__inner { flex-direction: column; text-align: center; }
}
@media(max-width:600px){
    .meelo-hero__title { font-size: 26px; }
    .meelo-stats__grid { grid-template-columns: 1fr 1fr; }
    .meelo-footer__bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════
   Header-Styles (aus header.php ausgelagert, v1.1)
═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   meelo Header — Modern Style
═══════════════════════════════════════════════ */
.meelo-header {
    position: relative; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--hh, 70px);
    background: var(--meelo-header-bg, #fff);
    transition: box-shadow .2s, transform .28s, background .2s;
}
.meelo-header.is-sticky { position: sticky; }
.meelo-header.has-shadow { box-shadow: 0 1px 0 var(--meelo-border, #e5e3de); }
.meelo-header.is-scrolled.has-shadow { box-shadow: 0 4px 24px rgba(0,0,0,.09); }
.meelo-header.is-hidden { transform: translateY(-100%); }
.meelo-header.is-transparent { background: transparent; --mhd-text: #fff; }
.meelo-header.is-transparent .mhd-logo-text { color: #fff; }
.meelo-header.is-transparent .mhd-menu > li > a { color: rgba(255,255,255,.88); }
.meelo-header.is-transparent .mhd-icon-btn { color: rgba(255,255,255,.8); }
.meelo-header.is-transparent .mhd-user-info .mhd-user-name { color: rgba(255,255,255,.9); }
.mhd-inner {
    height: 100%; display: flex; align-items: center; gap: 20px;
}

/* Brand */
.mhd-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mhd-logo-text {
    font-size: 22px; font-weight: 900; color: var(--meelo-primary, #2563eb);
    font-style: italic; letter-spacing: -.5px; text-decoration: none;
}
.custom-logo-link img { max-height: 44px; width: auto; display: block; }
.mhd-tagline {
    font-size: 11px; color: var(--meelo-text-muted, #9ca3af);
    border-left: 1.5px solid var(--meelo-border, #e5e3de);
    padding-left: 10px; line-height: 1.4; max-width: 160px;
}
@media(max-width:1100px){ .mhd-tagline { display: none; } }

/* Nav */
/* ═══════════════════════════════════════════════════════════
   HEADER MENU — v1.2 Modern
═══════════════════════════════════════════════════════════ */
.mhd-nav-wrap { flex: 1; display: flex; justify-content: center; }
.mhd-nav { display: flex; }
.mhd-menu {
    display: flex; align-items: center;
    gap: 4px;
    list-style: none; margin: 0; padding: 0;
}
.mhd-menu > li {
    position: relative;
}
.mhd-menu > li > a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 10px 16px;
    font-size: 13.5px; font-weight: 700;
    color: var(--meelo-text, #1a1916);
    border-radius: 10px;
    text-decoration: none;
    transition: color .15s, background .15s;
    white-space: nowrap;
    position: relative;
    letter-spacing: -.005em;
}
/* Subtle hover state */
.mhd-menu > li > a:hover {
    color: var(--meelo-primary, #2563eb);
    background: color-mix(in srgb, var(--meelo-primary, #2563eb) 6%, transparent);
}
/* Active state with underline */
.mhd-menu > li.current-menu-item > a,
.mhd-menu > li.current-menu-ancestor > a,
.mhd-menu > li.current-menu-parent > a {
    color: var(--meelo-primary, #2563eb);
    background: color-mix(in srgb, var(--meelo-primary, #2563eb) 10%, transparent);
    font-weight: 800;
}
.mhd-menu > li.current-menu-item > a::before,
.mhd-menu > li.current-menu-ancestor > a::before {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 18px; height: 2.5px;
    background: var(--meelo-primary, #2563eb);
    border-radius: 2px;
    transform: translateX(-50%);
}

/* Submenu Chevron */
.mhd-menu .menu-item-has-children > a::after {
    content: '';
    width: 5px; height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    display: block;
    opacity: .55;
    transition: transform .15s;
}
.mhd-menu .menu-item-has-children:hover > a::after {
    opacity: 1;
    transform: rotate(45deg) translateY(1px);
}

/* Submenu Dropdown — refined */
.mhd-menu .sub-menu {
    position: absolute; top: calc(100% + 10px); left: 0;
    background: #fff;
    border: 1.5px solid var(--meelo-border, #e5e3de);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
    min-width: 240px;
    z-index: 200;
    list-style: none;
    padding: 8px;
    display: none;
    animation: mhd-sub-in .18s cubic-bezier(.2,.8,.2,1);
}
/* Arrow pointer */
.mhd-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px; left: 22px;
    width: 10px; height: 10px;
    background: #fff;
    border-top: 1.5px solid var(--meelo-border, #e5e3de);
    border-left: 1.5px solid var(--meelo-border, #e5e3de);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}
@keyframes mhd-sub-in {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mhd-menu .menu-item-has-children:hover > .sub-menu { display: block; }

/* Bridge zone — verhindert dass Submenu beim Hover-Wechsel flackert */
.mhd-menu .menu-item-has-children > .sub-menu::after {
    content: '';
    position: absolute;
    top: -10px; left: 0; right: 0;
    height: 10px;
}

.mhd-menu .sub-menu li a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    font-size: 13.5px; font-weight: 600;
    color: var(--meelo-text, #1a1916);
    border-radius: 10px;
    text-decoration: none;
    transition: all .12s;
    letter-spacing: -.005em;
}
.mhd-menu .sub-menu li a:hover {
    background: color-mix(in srgb, var(--meelo-primary, #2563eb) 7%, var(--meelo-bg, #f8f7f4));
    color: var(--meelo-primary, #2563eb);
    transform: translateX(2px);
}
.mhd-menu .sub-menu li.current-menu-item > a {
    background: color-mix(in srgb, var(--meelo-primary, #2563eb) 10%, var(--meelo-bg, #f8f7f4));
    color: var(--meelo-primary, #2563eb);
    font-weight: 700;
}
.mhd-menu .sub-menu li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-4px);
    transition: all .15s;
    font-size: 11px;
}
.mhd-menu .sub-menu li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Transparent Header — White text */
.meelo-header.is-transparent .mhd-menu > li > a { color: rgba(255,255,255,.92); }
.meelo-header.is-transparent .mhd-menu > li > a:hover { color: #fff; background: rgba(255,255,255,.14); }
.meelo-header.is-transparent .mhd-menu > li.current-menu-item > a { background: rgba(255,255,255,.18); color: #fff; }

/* Scrolled state: kompakteres Padding für weniger Raumverbrauch */
.meelo-header.is-scrolled .mhd-menu > li > a {
    padding: 8px 14px;
    font-size: 13px;
}

/* Actions */
.mhd-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mhd-icon-btn {
    width: 38px; height: 38px; border-radius: 10px; border: none;
    background: none; cursor: pointer; color: var(--meelo-text, #1a1916);
    display: flex; align-items: center; justify-content: center;
    transition: all .12s; flex-shrink: 0;
}
.mhd-icon-btn:hover { background: var(--meelo-bg, #f8f7f4); color: var(--meelo-primary, #2563eb); }

/* Auth Buttons */
.mhd-login-link { font-size: 14px; font-weight: 600; color: var(--meelo-text, #1a1916); text-decoration: none; padding: 0 8px; }
.mhd-login-link:hover { color: var(--meelo-primary, #2563eb); }
.mhd-register-btn {
    padding: 8px 18px; background: var(--meelo-primary, #2563eb); color: #fff;
    border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none;
    transition: all .12s; white-space: nowrap;
}
.mhd-register-btn:hover { filter: brightness(.92); color: #fff; }

/* User Menu */
.mhd-user-menu { position: relative; }
.mhd-user-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--meelo-bg, #f8f7f4); border: 1.5px solid var(--meelo-border, #e5e3de);
    border-radius: 10px; padding: 0 12px 0 6px;
    height: 38px;
    cursor: pointer; transition: all .12s; font-family: inherit;
}
.mhd-user-btn:hover { border-color: var(--meelo-primary, #2563eb); background: #fff; }
.mhd-user-btn.is-open { border-color: var(--meelo-primary, #2563eb); background: #fff; }
.mhd-user-avatar { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.mhd-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mhd-user-badge {
    position: absolute; top: -3px; right: -3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #ef4444; color: #fff; font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.mhd-user-info { display: flex; align-items: center; gap: 4px; }
.mhd-user-name { font-size: 13px; font-weight: 700; color: var(--meelo-text, #1a1916); }
.mhd-chevron { color: #9ca3af; transition: transform .2s; }
.mhd-user-btn.is-open .mhd-chevron { transform: rotate(180deg); }

/* Dropdown */
.mhd-user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    min-width: 260px; z-index: 500;
    display: none; animation: mhd-sub-in .15s ease;
    overflow: hidden;
}
.mhd-user-dropdown.is-open { display: block; }
.mhd-user-dropdown__head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid #f0f0f5;
    background: #fafafa;
}
.mhd-user-dropdown__av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mhd-user-dropdown__links { padding: 6px; }
.mhd-dd-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
    color: #374151; text-decoration: none; transition: all .1s;
}
.mhd-dd-link:hover { background: #f5f5f7; color: var(--meelo-primary, #2563eb); }
.mhd-dd-link .mhd-dd-icon { width: 16px; height: 16px; opacity: .5; }
.mhd-dd-badge { background: var(--meelo-primary, #2563eb); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 20px; }
.mhd-user-dropdown__footer { padding: 6px; border-top: 1px solid #f0f0f5; }
.mhd-dd-logout {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600;
    color: #ef4444; text-decoration: none; transition: background .1s;
}
.mhd-dd-logout:hover { background: #fef2f2; color: #ef4444; }

/* Mobile Toggle */
.mhd-mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; border-radius: 9px;
}
.mhd-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--meelo-text, #1a1916); border-radius: 2px; transition: all .22s; }
.mhd-mobile-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mhd-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mhd-mobile-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Drawer */
.mhd-drawer {
    position: fixed; top: var(--hh, 70px); left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.mhd-drawer.is-open { transform: none; }
.mhd-drawer__inner { padding: 20px 24px; }
.mhd-drawer-menu { list-style: none; margin: 0; padding: 0; }
.mhd-drawer-menu > li > a {
    display: block; padding: 13px 0; font-size: 16px; font-weight: 700;
    color: var(--meelo-text, #1a1916); text-decoration: none;
    border-bottom: 1.5px solid var(--meelo-border, #e5e3de);
}
.mhd-drawer-menu .sub-menu { list-style: none; padding: 0 0 0 16px; }
.mhd-drawer-menu .sub-menu li a { display: block; padding: 9px 0; font-size: 14px; color: var(--meelo-text-muted, #6b7280); text-decoration: none; border-bottom: 1px solid var(--meelo-border, #e5e3de); }
.mhd-drawer-auth { margin-top: 24px; }

/* Search Overlay */
.mhd-search-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; padding-top: 80px;
    justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mhd-search-overlay.is-open { opacity: 1; pointer-events: all; }
.mhd-search-form { width: 90%; max-width: 640px; }
.mhd-search-form__inner {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.mhd-search-form__inner input {
    flex: 1; border: none; outline: none; font-size: 17px;
    color: var(--meelo-text, #1a1916); background: transparent; font-family: inherit;
}
.mhd-search-submit {
    padding: 9px 20px; background: var(--meelo-primary, #2563eb); color: #fff;
    border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap; font-family: inherit;
}
.mhd-search-overlay__close {
    position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,.15);
    border: none; color: #fff; font-size: 18px; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
}

/* Ortschaft-Switcher */
.mhd-ort-switcher { position: relative; }
.mhd-ort-btn {
    display: flex; align-items: center; gap: 7px;
    background: var(--meelo-bg, #f8f7f4);
    border: 1.5px solid var(--meelo-border, #e5e3de);
    border-radius: 10px; padding: 0 12px;
    height: 38px;
    font-size: 13px; font-weight: 650; color: var(--meelo-text, #1a1916);
    cursor: pointer; font-family: inherit; transition: all .12s;
    white-space: nowrap; max-width: 170px;
}
.mhd-ort-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.mhd-ort-btn:hover { border-color: var(--meelo-primary, #2563eb); color: var(--meelo-primary, #2563eb); }
.mhd-ort-btn svg { flex-shrink: 0; }
.mhd-ort-btn.is-open { border-color: var(--meelo-primary, #2563eb); }
.mhd-ort-wappen { width: 20px; height: 20px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.mhd-ort-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
    min-width: 220px; z-index: 500;
    display: none; overflow: hidden; animation: mhd-sub-in .15s ease;
}
.mhd-ort-dropdown.is-open { display: block; }
.mhd-ort-dropdown__hd { padding: 11px 14px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #9ca3af; border-bottom: 1px solid #f0f0f5; background: #fafafa; }
.mhd-ort-options { padding: 6px; max-height: 280px; overflow-y: auto; }
.mhd-ort-option {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 9px; cursor: pointer;
    font-size: 13.5px; font-weight: 550; color: #374151;
    transition: background .1s; white-space: nowrap;
}
.mhd-ort-option:hover { background: #f5f5f7; }
.mhd-ort-option.is-selected { background: color-mix(in srgb, var(--meelo-primary, #2563eb) 8%, transparent); color: var(--meelo-primary, #2563eb); font-weight: 700; }
.mhd-ort-option input[type="radio"] { display: none; }
.mhd-ort-option__icon { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mhd-ort-option__icon--all { color: var(--meelo-text-muted, #9ca3af); }

/* Responsive */
@media(max-width:900px){
    .mhd-nav-wrap { display: none; }
    .mhd-mobile-toggle { display: flex; }
    .mhd-user-info { display: none; }
    .mhd-auth-btns .mhd-login-link { display: none; }
}

/* ═══════════════════════════════════════════════
   Live-Search-Styles (aus header.php ausgelagert)
═══════════════════════════════════════════════ */
    @keyframes mhd-spin{to{transform:rotate(360deg)}}
    .mhd-ls-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#9ca3af;pointer-events:none}
    #mhd-ls-input{width:100%;height:54px;padding:0 52px 0 48px;border:2px solid var(--meelo-border,#e5e3de);border-radius:14px;font-size:16px;font-family:inherit;color:var(--meelo-text,#1a1916);background:#fff;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
    #mhd-ls-input:focus{outline:none;border-color:var(--meelo-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--meelo-primary,#2563eb) 15%,transparent)}
    .mhd-ls-group{padding:8px 0}
    .mhd-ls-label{padding:6px 16px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#9ca3af;background:#fafafa;border-bottom:1px solid #f0f0f5}
    .mhd-ls-item{display:flex;align-items:center;gap:12px;padding:11px 16px;text-decoration:none;color:var(--meelo-text,#1a1916);border-bottom:1px solid #f8f7f4;transition:background .1s}
    .mhd-ls-item:hover,.mhd-ls-item.focused{background:#f5f5f7}
    .mhd-ls-thumb{width:44px;height:44px;border-radius:10px;overflow:hidden;flex-shrink:0;background:#f0f0f5;display:flex;align-items:center;justify-content:center;font-size:20px}
    .mhd-ls-thumb img{width:100%;height:100%;object-fit:cover;display:block}
    .mhd-ls-title{font-size:14.5px;font-weight:700;line-height:1.3}
    .mhd-ls-title mark{background:color-mix(in srgb,var(--meelo-primary,#2563eb) 20%,white);border-radius:2px;padding:0 1px;font-style:normal}
    .mhd-ls-meta{display:flex;align-items:center;gap:8px;margin-top:2px}
    .mhd-ls-type{font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:20px;background:color-mix(in srgb,var(--meelo-primary,#2563eb) 10%,white);color:var(--meelo-primary,#2563eb)}
    .mhd-ls-sub{font-size:11.5px;color:#9ca3af}
    .mhd-ls-empty{padding:28px;text-align:center;color:#9ca3af;font-size:14px}
    .mhd-ls-footer{padding:12px 16px;border-top:1px solid #f0f0f5;background:#fafafa;text-align:center}
    .mhd-ls-footer a{font-size:13px;font-weight:700;color:var(--meelo-primary,#2563eb);text-decoration:none}

/* ═══════════════════════════════════════════════════════════
   Mega-Menu Trigger Button (Erkunden)
═══════════════════════════════════════════════════════════ */
.mhd-megamenu-trigger {
    display: inline-flex; align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: color-mix(in srgb, var(--meelo-primary, #2563eb) 6%, transparent);
    cursor: pointer;
    font-size: 13.5px; font-weight: 700;
    color: var(--meelo-primary, #2563eb);
    font-family: inherit;
    transition: all .15s;
    white-space: nowrap;
    margin-left: 4px;
    letter-spacing: -.005em;
}
.mhd-megamenu-trigger:hover {
    background: color-mix(in srgb, var(--meelo-primary, #2563eb) 12%, transparent);
    transform: translateY(-1px);
}
.mhd-megamenu-trigger__chev {
    opacity: .65;
    transition: transform .15s;
}
.mhd-megamenu-trigger:hover .mhd-megamenu-trigger__chev {
    transform: translateY(1px);
    opacity: 1;
}
.meelo-header.is-transparent .mhd-megamenu-trigger {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.meelo-header.is-transparent .mhd-megamenu-trigger:hover {
    background: rgba(255,255,255,.2);
}

/* ═══════════════════════════════════════════════════════════
   Menu-Specificity Push (v1.2.1) — sichert dass Styles durchschlagen
═══════════════════════════════════════════════════════════ */
header.meelo-header .mhd-nav-wrap .mhd-menu {
    display: flex !important;
    align-items: center;
    gap: 4px;
}
header.meelo-header .mhd-nav-wrap .mhd-menu > li {
    position: relative;
    list-style: none;
}
header.meelo-header .mhd-nav-wrap .mhd-menu > li > a {
    display: inline-flex !important;
    padding: 10px 16px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: var(--meelo-text, #1a1916);
    transition: all .15s !important;
}
