/* webseite-online.css (aufgeteilt aus shop.css und webseite.css, WS28). Nur die Seite Online-Abenteuer der Webseite. Die Reihenfolge der Regeln ist die der alten Dateien. */

/* ---- Online-Abenteuer (WS7) ---- */

.ws-oa-geschichte {
    display: grid;
    gap: 32px;
    align-items: center;
}

.ws-oa-geschichte p,
.ws-oa-text p {
    margin: 0 0 1em;
    color: var(--sh-text);
    font-size: 1.05rem;
    line-height: 1.65;
}

.ws-oa-text h3 {
    margin: 1.6em 0 0.5em;
    font-family: var(--sh-schrift);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sh-gold-text);
}

/* Szene aus dem Spiel, leicht gedreht wie ein Foto auf dem Tresen */

.ws-oa-szene {
    margin: 0;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    box-shadow: var(--sh-schatten);
}

.ws-oa-szene {
    transform: rotate(1.5deg);
}

.ws-oa-szene > img {
    animation-name: ws-zoom-leicht;
}

/* Band „Mit Code spielen“: der Page (freigestellter Comic, wie auf der Raumseite Haunted Hotel) und daneben ein Anhänger
   mit dem Feld */

.ws-oa-band {
    scroll-margin-top: 80px;
}

.ws-band .ws-oa-spielen {
    display: grid;
    gap: 28px;
    padding: 48px 20px;
    align-items: center;
}

/* Der Page ist klein: am Handy höchstens 160 px hoch über dem Anhänger, am Rechner (ab 900 px) höchstens 300 px, etwa so
   hoch wie Feld und Sprachkasten. Er bringt selbst keine Höhe mit und liegt ganz sichtbar im Fluss (nicht wie bei den
   Raumseiten über die Spalte gestreckt); die Regeln von .ws-freibild-an-text werden hier überstimmt (Sylvia, 20.11.2026). */

.ws-oa-spielen .ws-oa-page {
    margin: 0 auto;
    max-width: 100%;
    justify-self: center;
}

.ws-oa-spielen .ws-oa-page img {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    margin-inline: auto;
}

/* Am Rechner so hoch wie Feld und Sprachkasten daneben (Sylvia, 21.11.2026: vorher 300 px, wirkte klein) */

@media (min-width: 900px) {
  .ws-oa-spielen .ws-oa-page img {
        max-height: 480px;
    }
}

.ws-oa-anhaenger {
    position: relative;
    padding: 30px 24px 26px;
    border: 1px solid rgba(224, 180, 80, 0.35);
    border-radius: 14px 14px 14px 40px;
    background:
        radial-gradient(circle at 26px 26px, var(--sh-hintergrund) 0 7px, rgba(224, 180, 80, 0.5) 7.5px 9px, transparent 9.5px),
        linear-gradient(160deg, rgba(224, 180, 80, 0.08), rgba(0, 0, 0, 0) 60%),
        var(--sh-hintergrund);
    box-shadow: var(--sh-schatten);
}

.ws-oa-anhaenger h2 {
    padding-left: 30px;
}

.ws-oa-anhaenger > p {
    margin: 0 0 20px;
    color: var(--sh-text);
    line-height: 1.6;
}

.ws-oa-form {
    display: grid;
    gap: 16px;
}

.ws-oa-form .ws-feld > label {
    color: var(--sh-gold-text);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ws-oa-form .ws-feld input[type="text"] {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.ws-oa-form .ws-feld input[type="text"]:focus {
    border-color: var(--sh-gold);
}

.ws-oa-knopf {
    justify-self: start;
    min-height: 54px;
}

/* Codes kaufen unter dem Feld, durch eine feine Goldlinie abgesetzt */

.ws-oa-kaufen {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(224, 180, 80, 0.25);
    scroll-margin-top: 90px;
}

.ws-oa-kaufen h3 {
    margin: 0 0 8px;
}

.ws-oa-kaufen > p {
    margin: 0 0 16px;
    color: var(--sh-text);
    line-height: 1.6;
}

.ws-oa-kaufen select {
    width: 7.5rem;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--sh-radius);
    background: var(--sh-hintergrund);
    color: var(--sh-text);
    font: 700 1.2rem var(--sh-schrift);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.ws-oa-kaufen select:focus {
    border-color: var(--sh-gold);
    outline: none;
}

.ws-oa-firmen > h2 {
    margin-bottom: 20px;
}

.ws-oa-nachfrage {
    margin-top: 24px;
}

@media (min-width: 640px) {
  .ws-oa-geschichte {
        grid-template-columns: 1.1fr 1fr;
        gap: 56px;
    }

  .ws-band .ws-oa-spielen {
        grid-template-columns: 1fr 1.1fr;
        gap: 48px;
        padding: 64px 20px;
    }

  .ws-oa-anhaenger {
        padding: 36px 36px 32px;
        transform: rotate(-1deg);
    }
}

/* Zeichnung neben dem Absatz „Von verschiedenen Orten spielen“: am Rechner rechts unter „Das brauchst du“, am Handy
   unter dem Text, nie höher als 260 px */

.ws-oa-szene-fern {
    margin: 0;
    width: min(100%, 346px);
    max-height: 260px;
}

.ws-oa-szene-fern .szene {
    max-height: 260px;
}

@media (max-width: 639px) {
  .ws-oa-rechts {
        display: contents;
    }

  .ws-oa-rechts > .ws-wissen {
        order: 2;
    }

  .ws-oa-szene-fern {
        order: 1;
        justify-self: center;
        /* Die Zeichnung hat oben einen leeren, nur leicht leuchtenden Rand; ohne diesen Ausgleich steht sie weiter vom
           Text weg als von der Überschrift darunter (Sylvia, 21.11.2026: oben etwa 96 px, unten 43 px) */
        margin-top: -52px;
    }
}

@media (min-width: 640px) {
  .ws-oa-rechts {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

  .ws-oa-szene-fern {
        align-self: center;
    }
}

/* Breit genug für Feld und Sprachkasten nebeneinander: der Anhänger bekommt mehr Platz als das Bild */

@media (min-width: 900px) {
  .ws-band .ws-oa-spielen {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    }
}

@media (prefers-reduced-motion: reduce) {
  .ws-oa-szene > img {
        animation: none;
    }
}

/* Online-Abenteuer: Feld links, Sprachkasten rechts daneben; schmal untereinander */

.ws-oa-codezeile {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: flex-start;
}

.ws-oa-codezeile > .ws-oa-form {
    flex: 1 1 220px;
}

.ws-oa-sprache {
    flex: 1 1 200px;
    padding: 14px 16px;
    border: 1px solid rgba(224, 180, 80, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.ws-oa-flaggen {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ws-flagge {
    display: block;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ws-oa-sprache h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.ws-oa-sprache p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--sh-text);
}

/* Hinweis über dem Kaufknopf: gut zu sehen */

.ws-oa-hinweis {
    margin: 0;
    font-weight: 700;
    line-height: 1.5;
    color: var(--sh-text);
}

/* Online-Abenteuer: Der Page steht am Handy neben dem Text der Geschichte (Sylvia, 21.11.2026, Größe wie bisher: 160 px
   hoch), ab 640 px wieder im Band „Mit Code spielen“ */

.ws-oa-geschichte .ws-oa-page-handy {
    float: right;
    width: 78px;
    margin: 4px 0 8px 16px;
}

.ws-oa-geschichte .ws-oa-page-handy img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-height: 170px;
}

@media (max-width: 639px) {
  .ws-oa-spielen .ws-oa-page {
        display: none;
    }
}

@media (min-width: 640px) {
  .ws-oa-geschichte .ws-oa-page-handy {
        display: none;
    }
}

/* Vorführung des Online-Spiels unter der Antwort „Wie läuft das Spiel genau?“ (WS31, Sylvia, 21.11.2026). Farben und Schrift aus shop.css.
   Im Spielbild selbst: weiße Knöpfe mit schwarzer Schrift wie im echten Spiel. */

.vf { margin: 14px 0 22px; }
.vf, .vf *, .vf *::before, .vf *::after { box-sizing: border-box; }
.vf button { font: inherit; color: inherit; }
.vf-laptop { max-width: 700px; margin: 0 auto; }
.vf-deckel { position: relative; width: 90%; margin: 0 auto; padding: 3.4% 3.4% 3.8%; background: linear-gradient(#24242c, #17171d); border: 1px solid rgba(255,255,255,.14); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: var(--sh-schatten); }
.vf-kamera { position: absolute; top: 1.3%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3a46; }
.vf-unterteil { position: relative; height: clamp(10px, 2.4vw, 16px); background: linear-gradient(#3a3a45, #1a1a20 70%, #0f0f13); border-radius: 0 0 14px 14px / 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0,0,0,.55); }
.vf-unterteil::after { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 40%; transform: translateX(-50%); background: #121217; border-radius: 0 0 8px 8px; }

.vf-bildschirm { position: relative; aspect-ratio: 1024 / 682; overflow: hidden; background: #050507; border-radius: 3px; container-type: inline-size; user-select: none; }

.vf-szene { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.vf-szene.aktiv { opacity: 1; }
.vf-ebene { position: absolute; inset: 0; }
.vf-bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.vf-ohne-uebergang, .vf-ohne-uebergang * { transition: none !important; }

/* 1 Rezeption: Zeitung wächst aus dem Zeitungsständer */
.vf-zeitung { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 68.1% 60.4%; transform: scale(.06); opacity: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .25s ease; }
.zeitung-auf .vf-zeitung { transform: none; opacity: 1; }

/* 2 Telefon: Eingabefeld oben links, grau wie die Textfelder im Spiel */
.vf-feld { position: absolute; left: 1.5%; top: 1.8%; min-width: 19.5%; height: 6.6%; min-height: 20px; display: flex; align-items: center; padding: 0 .5em; background: #ccc; color: #000; font-size: clamp(11px, 2.6cqw, 26px); letter-spacing: .18em; font-weight: 700; }

/* 3 Hinweis: Fragezeichen, Knöpfe, Fenster */
.vf-menue { position: absolute; left: .6%; top: .9%; display: flex; flex-direction: column; align-items: flex-start; gap: max(5px, 1cqw); }
.vf-symbol { display: grid; place-items: center; width: clamp(18px, 3.9cqw, 40px); aspect-ratio: 1; background: #fff; color: #000; border: 1px solid #000; font-weight: 700; font-size: clamp(13px, 3cqw, 30px); line-height: 1; }
.vf-knopf { display: block; min-width: max(19.5cqw, 7em); padding: .55em .9em; background: #fff; color: #000; font-size: clamp(9px, 2cqw, 20px); line-height: 1.2; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; }
.knoepfe-an .vf-knopf { opacity: 1; transform: none; }
.vf-fenster { position: absolute; left: 50%; top: 52%; width: 62%; padding: 1em 1.2em .9em; background: #fff; color: #111; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.7); font-size: clamp(10px, 2.3cqw, 19px); line-height: 1.45; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .25s ease, transform .25s ease; }
.hinweis-an .vf-fenster { opacity: 1; transform: translate(-50%, -50%); }
.vf .vf-fenster p { margin: 0 0 .6em; color: inherit; max-width: none; line-height: inherit; }
.vf-fenster-titel { font-weight: 700; }
.vf-fenster-ok { display: block; width: max-content; margin-left: auto; padding: .35em 1.3em; background: #111; color: #fff; border-radius: 3px; font-weight: 700; }
@container (max-width: 420px) { .vf-fenster { width: 80%; padding: .8em .9em .7em; } }

/* 4 Zimmer 11: heranzoomen, Schublade öffnet sich */
.vf-zoomebene { transform-origin: 90.3% 61.6%; transition: transform 2.2s cubic-bezier(.4,0,.2,1); }
.zoom .vf-zoomebene { transform: scale(1.5); }
.vf-schublade { position: absolute; left: 85.45%; top: 59.97%; width: 11.33%; height: 9.97%; opacity: 0; transition: opacity .25s ease; }
.schublade-auf .vf-schublade { opacity: 1; }

/* Mauszeiger: ein Pfeil, die Bahn ist so groß wie der Bildschirm und wird in Prozent verschoben */
.vf-zeiger-bahn, .vf-ring-bahn { position: absolute; inset: 0; pointer-events: none; z-index: 10; will-change: transform; }
.vf-zeiger { display: block; width: clamp(13px, 2.4cqw, 24px); height: auto; transform-origin: 8% 5%; transition: transform .12s ease; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.vf-zeiger.drueckt { transform: scale(.82); }
.vf-ring { position: absolute; left: 0; top: 0; width: clamp(20px, 4.2cqw, 42px); aspect-ratio: 1; border: 2px solid rgba(255,255,255,.95); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); box-shadow: 0 0 6px rgba(0,0,0,.5); }

/* Unterschrift mit Szenen-Punkten */
.vf-unterschrift { display: flex; justify-content: space-between; align-items: center; gap: 14px; max-width: 630px; margin: 12px auto 0; color: var(--sh-leise); font-size: .92rem; }
.vf-text { flex: 1 1 auto; min-height: 1.55em; }
@media (max-width: 520px) { .vf-text { min-height: 3.1em; display: flex; align-items: center; } }
.vf-punkte { flex: none; display: flex; gap: 2px; }
.vf-punkt { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.vf-punkt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s ease; }
.vf-punkt.an::before { background: var(--sh-rot); }
.vf-punkt:focus-visible { outline: 2px solid var(--sh-rot-hell); outline-offset: 1px; border-radius: 50%; }

/* Bewegung reduziert: Standbilder ohne Übergänge, die Punkte schalten um */
.vf-still .vf-szene, .vf-still .vf-szene * , .vf-still .vf-zeiger-bahn { transition: none !important; }
