/*
 * Standort-Erweiterung Mai 2026:
 *   - Galerie-Sektion (zwischen SEO-Intro & Räume)
 *   - Preise-Sektion (zwischen Räume & Standort-Info, Anker #preise)
 *
 * Conditional auf Standort-Pages geladen (siehe inc/enqueue.php).
 * Aus cage-quests-location-v3.html 1:1 übernommen (Zeilen 320-780).
 */

/* ══════════════════════════════════════════════════
   STANDORT-GALERIE
   ══════════════════════════════════════════════════ */
.cq-loc-gallery {
    position: relative; z-index: 10;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 3rem);
    background: var(--surface);
}

.cq-loc-gallery-inner {
    max-width: 1200px; margin: 0 auto;
}

.cq-loc-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cq-loc-gallery-headline {
    display: flex; flex-direction: column;
}

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

.cq-loc-gallery-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 100; letter-spacing: clamp(0.12rem, 0.4vw, 0.3rem);
    text-transform: uppercase; color: var(--white);
    text-shadow: 0 0 30px rgba(255,255,255,0.12);
    margin: 0;
}

.cq-loc-gallery-meta {
    font-size: 0.7rem; font-weight: 300;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

.cq-loc-gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
    height: 520px;
}

.cq-loc-gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--elevated);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.5s var(--ease);
}

.cq-loc-gallery-item:first-child {
    grid-row: span 2;
}

.cq-loc-gallery-item-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
    filter: brightness(0.85) saturate(0.95);
}

.cq-loc-gallery-item:hover .cq-loc-gallery-item-img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1.05);
}

.cq-loc-gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    transition: background 0.4s var(--ease);
}

.cq-loc-gallery-item:hover::after {
    background: linear-gradient(180deg, rgba(178,148,116,0.08) 0%, transparent 30%, rgba(0,0,0,0.75) 100%);
}

.cq-loc-gallery-item-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.2rem;
    color: var(--white);
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s var(--ease);
}

.cq-loc-gallery-item-eyebrow {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    opacity: 0.85;
    margin-bottom: 0.3rem;
}

.cq-loc-gallery-item-label {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
}

.cq-loc-gallery-item:first-child .cq-loc-gallery-item-label {
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .cq-loc-gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.6rem;
        height: 320px;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--gold) transparent;
    }
    .cq-loc-gallery-grid::-webkit-scrollbar { height: 4px; }
    .cq-loc-gallery-grid::-webkit-scrollbar-thumb { background: rgba(178,148,116,0.4); }
    .cq-loc-gallery-item {
        flex: 0 0 78%;
        scroll-snap-align: start;
        grid-row: auto !important;
    }
}

/* ══════════════════════════════════════════════════
   PREISE — Standortspezifisch
   ══════════════════════════════════════════════════ */
.cq-prices {
    position: relative; z-index: 10;
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 3vw, 3rem);
    background: var(--black);
    overflow: hidden;
}

.cq-prices::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.25;
}

.cq-prices::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(178,148,116,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cq-prices-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cq-prices-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3.5rem;
}

.cq-prices-headline { display: flex; flex-direction: column; }

.cq-prices-intro {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    line-height: 1.85;
}

.cq-prices-intro strong {
    color: rgba(255,255,255,0.85);
    font-weight: 400;
}

.cq-prices-intro p { margin: 0 0 0.6em 0; }
.cq-prices-intro p:last-child { margin-bottom: 0; }

.cq-prices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.cq-price-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--ease);
}

.cq-price-card.is-premium {
    border-color: rgba(178,148,116,0.35);
    background: linear-gradient(180deg, rgba(178,148,116,0.05) 0%, rgba(178,148,116,0.015) 100%);
}

.cq-price-card:hover {
    border-color: rgba(178,148,116,0.45);
    transform: translateY(-3px);
}

.cq-price-card-badge {
    position: absolute;
    top: -10px; left: 2rem;
    padding: 0.3rem 0.9rem;
    background: var(--black);
    border: 1px solid rgba(178,148,116,0.4);
    color: var(--gold-light);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.cq-price-card.is-premium .cq-price-card-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(178,148,116,0.25);
}

.cq-price-card-head {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1.3rem;
    margin-bottom: 1.3rem;
}

.cq-price-card-eyebrow {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.6rem;
}

.cq-price-card-title {
    font-size: 1.3rem;
    font-weight: 100;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cq-price-card-sub {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin: 0;
}

.cq-price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.3rem;
}

.cq-price-table th,
.cq-price-table td {
    text-align: left;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
}

.cq-price-table th {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding-bottom: 0.7rem;
}

.cq-price-table tr:last-child td { border-bottom: none; }

.cq-price-table td:first-child {
    color: rgba(255,255,255,0.7);
    font-weight: 300;
}

.cq-price-table td:nth-child(2) {
    color: var(--white);
    font-weight: 400;
    text-align: right;
    font-feature-settings: 'tnum';
}

.cq-price-table td:nth-child(3) {
    text-align: right;
    font-size: 0.7rem;
    color: var(--gold-light);
    font-weight: 400;
    opacity: 0.85;
    width: 80px;
}

.cq-price-table tr.is-best td {
    color: var(--gold-light);
    font-weight: 500;
}

.cq-price-table tr.is-best td:nth-child(2) {
    color: var(--gold-light);
    font-weight: 500;
}

.cq-price-card-foot {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-weight: 300;
    padding-top: 0.5rem;
    line-height: 1.6;
}

.cq-price-card-foot p { margin: 0 0 0.4em 0; }
.cq-price-card-foot p:last-child { margin-bottom: 0; }

.cq-price-card-foot strong {
    color: var(--gold-light);
    font-weight: 400;
}

/* Trust bar unter den Karten */
.cq-prices-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cq-prices-trust-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.cq-prices-trust-icon {
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.cq-prices-trust-icon svg {
    width: 24px;
    height: 24px;
}

.cq-prices-trust-title {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.cq-prices-trust-desc {
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.55;
}

/* Hinweis-Block + CTA */
.cq-prices-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
}

.cq-prices-footer-text {
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

.cq-prices-footer-text p { margin: 0 0 0.6em 0; }
.cq-prices-footer-text p:last-child { margin-bottom: 0; }

.cq-prices-footer-text strong {
    color: rgba(255,255,255,0.85);
    font-weight: 400;
}

.cq-prices-footer-text a {
    color: var(--gold-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(178,148,116,0.3);
    transition: border-color 0.3s;
}

.cq-prices-footer-text a:hover { border-color: var(--gold-light); }

.cq-prices-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2rem;
    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;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(178,148,116,0.25);
}

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

@media (max-width: 900px) {
    .cq-prices-header { grid-template-columns: 1fr; gap: 1.5rem; }
    .cq-prices-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .cq-prices-trust { grid-template-columns: 1fr 1fr; }
    .cq-prices-footer { grid-template-columns: 1fr; }
    .cq-prices-cta { justify-content: center; width: 100%; }
}

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

/* Reduced motion: animations off */
@media (prefers-reduced-motion: reduce) {
    .cq-loc-gallery-item-img,
    .cq-loc-gallery-item::after,
    .cq-loc-gallery-item-caption,
    .cq-price-card,
    .cq-prices-cta {
        transition: none !important;
    }
    .cq-loc-gallery-item:hover .cq-loc-gallery-item-img { transform: none !important; }
    .cq-price-card:hover { transform: none !important; }
    .cq-prices-cta:hover { transform: none !important; }
}
