/* 360°-Rundgang auf der Website: Einstiegs-Knöpfe, Abschnitt der Startseite und
   die bildschirmfüllende Ansicht (js/tour-embed.js). Der Viewer selbst (PSV +
   css/tour.css) wird erst beim Öffnen geladen. Geladen auf liva/salon/kosmetik/spa/events. */

/* ------------------------------------------------------------ Knopf (Pille) */
.tour-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.84);
    color: #3a302a;
    font: 600 0.74rem/1 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(40, 28, 18, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.tour-cta[hidden] { display: none; }
.tour-cta:hover,
.tour-cta:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 10px 26px rgba(40, 28, 18, 0.22);
}
.tour-cta__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold, #a88a5c);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0;
    flex: none;
}
/* auf einem Foto (Spa, Kosmetik, Events) */
.tour-cta--on-photo {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
}
/* eigene Zeile (Salon „Über uns") */
.tour-cta-row {
    display: flex;
    justify-content: center;
    margin: -24px 0 56px;
}
.tour-cta-row[hidden] { display: none; }
.tour-cta-row .tour-cta {
    background: var(--cream, #faf7f2);
    border-color: var(--beige, #e8dfd3);
    box-shadow: 0 2px 10px rgba(40, 28, 18, 0.08);
}
/* in der Textspalte (Kosmetik: dort gibt es kein Behandlungsfoto, der Bildrahmen wird entfernt) */
.nails-tech-text .tour-cta-row {
    justify-content: flex-start;
    margin: 26px 0 0;
}
.tour-photo-wrap { position: relative; }

/* ------------------------------------------------------------ Startseite: Abschnitt */
.tour-section[hidden] { display: none; }
.tour-section__lead {
    max-width: 640px;
    margin: 0 auto 38px;
    text-align: center;
}
.tour-poster {
    position: relative;
    display: block;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--beige, #e8dfd3);
    box-shadow: 0 1px 3px rgba(60, 46, 34, 0.05), 0 24px 56px -28px rgba(60, 46, 34, 0.35);
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: inherit;
    -webkit-tap-highlight-color: transparent;
}
.tour-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.tour-poster:hover img { transform: scale(1.035); }
.tour-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(33, 28, 24, 0) 55%, rgba(33, 28, 24, 0.35) 100%);
}
.tour-poster__btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 10px 24px 10px 10px;
    font-size: 0.82rem;
    gap: 14px;
}
.tour-poster__btn .tour-cta__badge { width: 40px; height: 40px; font-size: 0.68rem; }
.tour-poster:hover .tour-poster__btn { transform: translate(-50%, calc(-50% - 2px)); background: #fff; }
.tour-poster:focus-visible { outline: 2px solid var(--gold, #a88a5c); outline-offset: 4px; }
.tour-poster__rooms {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    text-align: center;
}
@media (max-width: 600px) {
    .tour-poster { border-radius: 16px; aspect-ratio: 4 / 3; }
    .tour-poster__rooms { display: none; }
}

/* ------------------------------------------------------------ Bildschirmfüllende Ansicht */
html.tour-open,
html.tour-open body { overflow: hidden; }
html.tour-open body {
    /* Seite dahinter festhalten (auch iOS); die Position setzt das Skript über `top`. */
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #211c18;
    color: #f3ece3;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: tour-overlay-in 0.35s ease;
}
@keyframes tour-overlay-in { from { opacity: 0; } to { opacity: 1; } }
.tour-overlay__stage { position: absolute; inset: 0; }
.tour-overlay__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    pointer-events: none;
}
.tour-overlay__brand { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.tour-overlay__logo {
    display: block;
    font-family: 'Italiana', 'Playfair Display', Georgia, serif;
    font-size: 26px;
    letter-spacing: 7px;
    line-height: 1;
}
.tour-overlay__sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0.9;
}
.tour-overlay__close {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(33, 28, 24, 0.55);
    color: #fff;
    font: 600 0.78rem/1 'Lato', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color 0.2s ease;
}
.tour-overlay__close:hover,
.tour-overlay__close:focus-visible { background: rgba(168, 138, 92, 0.9); }
.tour-overlay__close svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 480px) {
    .tour-overlay__close span { display: none; }
    .tour-overlay__close { padding: 10px; }
}
.tour-overlay__status {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 16px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}
.tour-overlay__status[hidden] { display: none; }
.tour-overlay__status p { margin: 0; max-width: 420px; }
.tour-overlay__retry {
    font: inherit;
    padding: 9px 16px;
    border-radius: 6px;
    border: 1px solid #c4a87a;
    background: transparent;
    color: #f3ece3;
    cursor: pointer;
}
.tour-overlay__hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(33, 28, 24, 0.62);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.01em;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: opacity 0.6s ease;
}
.tour-overlay__hint[hidden] { display: none; }
.tour-overlay__hint.is-gone { opacity: 0; }
.tour-overlay__hint svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
    .tour-overlay { animation: none; }
    .tour-poster img { transition: none; }
}
