/* Extracted from cage-quests-header.html */
.cq-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    transition: all 0.5s var(--ease);
    /* Anfangszustand: komplett transparent */
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* Scrolled-State: Glass-Effekt */
.cq-header.scrolled {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Fallback für Geräte ohne backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    .cq-header.scrolled {
        background: rgba(0, 0, 0, 0.97);
    }
}

/* ── Logo ───────────────────────────────────────── */
.cq-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    z-index: 1001;
    flex-shrink: 0;
}

.cq-logo-img {
    height: 94px;
    /* ~2.5 cm */
    width: auto;
    display: block;
    transition: all 0.4s var(--ease);
    filter: brightness(1);
}

.cq-logo:hover .cq-logo-img {
    filter: brightness(1.2) drop-shadow(0 0 12px rgba(178, 148, 116, 0.4));
}

/* ── Desktop Navigation ─────────────────────────── */
.cq-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.cq-nav-item {
    position: relative;
    padding: 0 1.2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.cq-nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    padding: 0.5rem 0;
    position: relative;
}

.cq-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}

.cq-nav-link:hover,
.cq-nav-link.active {
    color: var(--white);
}

.cq-nav-link:hover::after,
.cq-nav-link.active::after {
    width: 100%;
}

/* Dropdown Chevron */
.cq-chevron {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s var(--ease);
}

.cq-nav-item.open .cq-chevron {
    transform: rotate(180deg);
}

/* ── CTA Button ─────────────────────────────────── */
.cq-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.6rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 1.5px solid var(--gold);
    color: var(--black);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(178, 148, 116, 0.25);
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.cq-header-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cq-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(178, 148, 116, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.cq-header-cta:hover::before {
    transform: translateX(100%);
}

.cq-header-cta span {
    position: relative;
    z-index: 2;
}

.cq-cta-arrow {
    font-size: 1rem;
    line-height: 1;
    position: relative;
    z-index: 2;
    transition: transform 0.3s var(--ease);
}

.cq-header-cta:hover .cq-cta-arrow {
    transform: translateX(3px);
}

/* ── Mega-Dropdown ──────────────────────────────── */
.cq-mega {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.45s var(--ease);
    z-index: 999;
    pointer-events: none;
}

.cq-mega.open {
    max-height: 620px;
    opacity: 1;
    padding: 2.5rem 0 3rem;
    pointer-events: auto;
}

.cq-mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ── Mega Location Column ───────────────────────── */
.cq-mega-col {
    position: relative;
}

.cq-mega-col+.cq-mega-col::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--glass-border);
}

.cq-mega-city {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.cq-mega-count {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.2rem;
}

.cq-mega-rooms {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cq-mega-room {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.6rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    transition: all 0.25s var(--ease);
    position: relative;
    border: 1px solid transparent;
}

.cq-mega-room::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
    opacity: 0;
}

.cq-mega-room:hover {
    color: var(--white);
    background: var(--glass);
    border-color: var(--glass-border);
}

.cq-mega-room:hover::before {
    width: 3px;
    opacity: 1;
}

.cq-mega-room-thumb {
    width: 40px;
    height: 26px;
    background-size: cover;
    background-position: center;
    background-color: var(--elevated);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.cq-mega-room:hover .cq-mega-room-thumb {
    opacity: 1;
}

.cq-mega-room-name {
    flex: 1;
}

.cq-mega-room-dur {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
}

/* Mega Footer Link */
.cq-mega-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    opacity: 0.6;
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
}

.cq-mega-more:hover {
    opacity: 1;
    border-color: rgba(178, 148, 116, 0.3);
    background: rgba(178, 148, 116, 0.05);
}

.cq-mega-more-arrow {
    transition: transform 0.3s var(--ease);
    font-size: 0.85rem;
}

.cq-mega-more:hover .cq-mega-more-arrow {
    transform: translateX(4px);
}

/* Coming Soon Column */
.cq-mega-col.coming-soon .cq-mega-room {
    opacity: 0.35;
    pointer-events: none;
}

.cq-mega-col.coming-soon .cq-mega-room-name::before {
    content: '\1F512  ';
    font-size: 0.65rem;
}

.cq-mega-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border: 1px solid var(--warn);
    color: var(--warn);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.cq-mega-badge-dot {
    width: 5px;
    height: 5px;
    background: var(--warn);
    border-radius: 50%;
    animation: pulse-warn 2s infinite;
}

@keyframes pulse-warn {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(255, 165, 0, 0);
    }
}

/* ── Hamburger (Mobile) ─────────────────────────── */
.cq-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 0;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.cq-hamburger:hover {
    border-color: var(--gold);
}

.cq-hamburger-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 12px;
}

.cq-hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--white);
    transition: all 0.35s var(--ease);
}

.cq-hamburger-line:nth-child(1) {
    top: 0;
}

.cq-hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.cq-hamburger-line:nth-child(3) {
    bottom: 0;
}

/* Hamburger → X */
.cq-hamburger.open .cq-hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--gold);
}

.cq-hamburger.open .cq-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.cq-hamburger.open .cq-hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background: var(--gold);
}

/* ── Mobile Fullscreen Overlay ──────────────────── */
.cq-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    padding: calc(var(--header-height-mobile) + 2rem) 2rem 6rem;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.cq-mobile-menu.open {
    opacity: 1;
}

/* Mobile Nav Items */
.cq-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.cq-mobile-nav-item {
    border-bottom: 1px solid var(--glass-border);
}

.cq-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.cq-mobile-nav-link:hover,
.cq-mobile-nav-link.active {
    color: var(--white);
}

.cq-mobile-chevron {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    transition: transform 0.3s var(--ease);
    opacity: 0.5;
}

.cq-mobile-nav-item.open .cq-mobile-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Mobile Sub-Menu (Räume) */
.cq-mobile-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
}

.cq-mobile-nav-item.open .cq-mobile-sub {
    /* Notnagel ohne JavaScript. Die tatsaechliche Hoehe setzt header.js aus
       dem Inhalt — dieser Wert greift nur, wenn das Skript nicht laeuft.
       Vorher standen hier 800 px: Freiburg hat inzwischen 8 Raeume, der
       Inhalt war 1168 px hoch, und die fehlenden 368 px waren wegen
       "overflow: hidden" nicht erreichbar — auch nicht durch Scrollen. */
    max-height: 2400px;
}

.cq-mobile-location {
    padding: 0.8rem 0 1.2rem;
}

.cq-mobile-location+.cq-mobile-location {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cq-mobile-loc-title {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.cq-mobile-room-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 1px solid transparent;
}

.cq-mobile-room-thumb {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.cq-mobile-room-name {
    flex: 1 1 auto;
    min-width: 0;
}

.cq-mobile-room-link:hover {
    color: var(--white);
    border-left-color: var(--gold);
    padding-left: 1.2rem;
}
.cq-mobile-room-link:hover .cq-mobile-room-thumb {
    border-color: var(--gold);
}

.cq-mobile-more-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding-left: 0.8rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.cq-mobile-more-link:hover {
    opacity: 1;
}

/* Mobile Footer Links */
.cq-mobile-footer {
    display: flex;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.cq-mobile-footer a {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s;
}

.cq-mobile-footer a:hover {
    color: var(--gold);
}

/* ── Sticky Mobile Booking Button ───────────────── */
.cq-mobile-book {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    padding: 0.8rem 1.5rem;
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.cq-mobile-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 2px solid var(--gold);
    color: var(--black);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 -4px 20px rgba(178, 148, 116, 0.3);
}

.cq-mobile-book-btn:hover {
    box-shadow: 0 -4px 30px rgba(178, 148, 116, 0.5);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    .cq-nav,
    .cq-header-cta {
        display: none;
    }

    .cq-hamburger {
        display: block;
    }

    .cq-mobile-menu {
        display: none;  /* Unsichtbar bis .open via JS */
        pointer-events: none;  /* Keine Klick-Abfangung */
    }

    .cq-mobile-menu.open {
        display: flex;
        pointer-events: auto;
    }

    .cq-mobile-book {
        display: block;
    }

    .cq-header {
        height: var(--header-height-mobile);
    }

    .cq-logo-img {
        height: 70px;
    }

    /* Extra bottom padding for sticky book button — nur wenn der Button
       da ist. Warenkorb und Kasse rendern ihn nicht (header.php:21).
       Gegenstueck in mobile-fixes.css. (Nadja A3, 07.09.2026) */
    body:has(.cq-mobile-book) {
        padding-bottom: 70px;
    }
}

/* ── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01s !important;
        transition-duration: 0.15s !important;
    }
}

/* ══════════════════════════════════════════════════
   DEMO CONTENT (nur für Vorschau)
   ══════════════════════════════════════════════════ */
.demo-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.demo-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 100;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(178, 148, 116, 0.2);
}

.demo-hero p {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.5;
}

.demo-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--glass-border);
}

.demo-section p {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
}

/* ══ Nav-Link Button Reset ══ */
.cq-nav-link {
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.cq-mobile-book-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cq-mobile-book-info {
    flex: 1;
}

.cq-mobile-book-price {
    font-size: 1.1rem;
    font-weight: 200;
    color: var(--gold-light);
}

.cq-mobile-book-meta {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.cq-logo-text {
    font-size: 1.1rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    color: var(--white);
    text-transform: uppercase;
}

/* WordPress Nav Override */
.cq-nav-item a:focus,
.cq-nav-item a:active,
.cq-nav-item button:focus,
.cq-nav-item button:active,
.cq-nav-link:focus,
.cq-nav-link:active {
    background: transparent !important;
    outline: none;
}

.current_page_item>a,
.current-menu-item>a,
.current_page_ancestor>a {
    background: transparent !important;
}

/* ══════════════════════════════════════════════════
   EVENTS DROPDOWN (compact sub-menu)
   ══════════════════════════════════════════════════ */
.cq-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s var(--ease);
    pointer-events: none;
    z-index: 999;
}

.cq-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.cq-dropdown-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
}

.cq-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--glass-border);
}

.cq-dropdown-icon {
    font-size: 1.2rem;
    width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.cq-dropdown-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
}

.cq-dropdown-desc {
    display: block;
    font-size: 0.65rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.15rem;
}

.cq-dropdown-link:hover .cq-dropdown-title {
    color: var(--gold);
}

/* Mobile Events Sub-Menu */
.cq-mobile-nav-item--expandable .cq-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cq-mobile-chevron {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: transform 0.3s var(--ease);
}

.cq-mobile-nav-item--expandable.open .cq-mobile-chevron {
    transform: rotate(180deg);
}

.cq-mobile-sub {
    display: none;
    padding-left: 1.5rem;
}

.cq-mobile-nav-item--expandable.open .cq-mobile-sub {
    display: block;
}

.cq-mobile-sub .cq-mobile-nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0;
    opacity: 0.7;
}

.cq-mobile-sub .cq-mobile-nav-link:hover {
    opacity: 1;
    color: var(--gold);
}
