/**
 * XXL ART — AR Preview Landingpage
 * /templates/landingpage/css/style.css
 */

.ar-lp {
    --gold:     #c8a96e;
    --gold-dim: #9a7c4a;
    --bg:       #0a0908;
    --bg2:      #111009;
    --surface:  #1a1814;
    --border:   rgba(200,169,110,.15);
    --text:     #f0ead8;
    --muted:    #7a7060;
    --r:        8px;
    --sans:     'Outfit', sans-serif;
    --serif:    'Cormorant Garamond', Georgia, serif;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
}

/* ── Hero ────────────────────────────────────────────────── */
.ar-lp__hero {
    position: relative;
    width: 100%;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    overflow: hidden;
}
.ar-lp__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200,169,110,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,110,.035) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}
.ar-lp__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 85% at 50% 50%,
        transparent 35%, rgba(10,9,8,.9) 100%);
    pointer-events: none;
}

/* ── Headline ────────────────────────────────────────────── */
.ar-lp__headline {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 32px;
    pointer-events: none;
}
.ar-lp__headline h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 8px;
}
.ar-lp__headline p {
    font-size: clamp(.8rem, 1.8vw, .95rem);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Canvas Wrapper ──────────────────────────────────────── */
.ar-lp__canvas-wrap {
    position: relative;
    z-index: 2;
    width: min(700px, calc(100vw - 32px));
    aspect-ratio: 16/9;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border),
        0 40px 100px rgba(0,0,0,.8),
        0 0 50px rgba(200,169,110,.05);
}
.ar-lp__canvas-wrap canvas {
    /* Dimensionen werden von renderer.setSize() gesetzt — kein Override */
    display: block;
}

/* Drag-Hint */
.ar-lp__drag-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .5s ease;
    z-index: 4;
}
.ar-lp__drag-hint.hide { opacity: 0; }

/* Spinner */
#rgARSpinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,9,8,.8);
    z-index: 3;
    border-radius: var(--r);
}
.ar-lp__ring {
    width: 36px; height: 36px;
    border: 2px solid rgba(200,169,110,.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: arLpSpin .8s linear infinite;
}
@keyframes arLpSpin { to { transform: rotate(360deg); } }

/* ── Info Strip ──────────────────────────────────────────── */
.ar-lp__strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.ar-lp__strip-text { display: flex; flex-direction: column; gap: 3px; }

#arLpTitle {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text);
    transition: opacity .25s ease;
}
#arLpSize {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dim);
}
.ar-lp__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    color: var(--gold);
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
    white-space: nowrap;
}
.ar-lp__cta:hover { background: var(--gold); color: var(--bg); }

/* ── Slider ──────────────────────────────────────────────── */
.ar-lp__slider-section {
    background: var(--bg2);
    padding: 28px 0 36px;
}
.ar-lp__slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px 16px;
}
.ar-lp__slider-label {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.ar-lp__nav { display: flex; gap: 6px; }
.ar-lp__nav-btn {
    width: 34px; height: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s;
}
.ar-lp__nav-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Track */
.ar-lp__track-outer {
    position: relative;
    overflow: hidden;
}
.ar-lp__track-outer::before,
.ar-lp__track-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}
.ar-lp__track-outer::before {
    left: 0;
    background: linear-gradient(to right, var(--bg2), transparent);
}
.ar-lp__track-outer::after {
    right: 0;
    background: linear-gradient(to left, var(--bg2), transparent);
}
.ar-lp__track {
    display: flex;
    gap: 10px;
    padding: 4px 28px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ar-lp__track::-webkit-scrollbar { display: none; }

/* Cards */
.ar-lp__card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 130px;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    outline: none;
    position: relative;
}
.ar-lp__card:hover {
    border-color: rgba(200,169,110,.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,0,0,.5);
}
.ar-lp__card.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 10px 32px rgba(200,169,110,.12);
}
.ar-lp__card.is-active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
}
.ar-lp__card-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg);
}
.ar-lp__card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.ar-lp__card:hover .ar-lp__card-thumb img { transform: scale(1.06); }
.ar-lp__card-info {
    padding: 8px 9px 9px;
}
.ar-lp__card-name {
    font-size: .73rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.ar-lp__card-size {
    font-size: .62rem;
    color: var(--muted);
    letter-spacing: .04em;
}

/* ── SEO Content ─────────────────────────────────────────── */
.ar-lp__content {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 28px;
    font-size: .92rem;
    line-height: 1.75;
    color: rgba(240,234,216,.7);
}
.ar-lp__content h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 16px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 580px) {
    .ar-lp__headline h1  { font-size: 1.7rem; }
    .ar-lp__strip        { padding: 14px 16px; }
    .ar-lp__slider-head  { padding: 0 16px 14px; }
    .ar-lp__track        { padding: 4px 16px 6px; }
    .ar-lp__card         { width: 110px; }
    .ar-lp__content      { padding: 32px 16px; }
}

/* ── Aktive Karte im Slider (room_generator_mode) ─────────── */
[data-room-generator-mode].ar-lp-active-card,
[data-room-generator-mode].ar-lp-active-card .pin-image-wrap {
    outline: 2px solid var(--gold, #c8a96e) !important;
    outline-offset: 2px;
}

/* ── AR Button Overlay — exakt wie Room Generator ────────── */
.ar_button_overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity .6s ease;
}
