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

.ws-buehne-raum .ws-fakten {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--sh-text);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* Hinweis auf den nächsten freien Termin im Kopf der Raumseite (Sylvia, 16.11.2026; ersetzt die Live-Zeile im runden
   Kasten): ein Gegenstand in der Stimme des Raums, der ganze Gegenstand ist ein Link in den Kalender. Die Ebene liegt
   über dem Bild und schneidet ab, was über den Rand ragt (nie waagerecht scrollen). Stellung aus der Konfiguration als
   CSS-Variablen (--hw-oben-*, --hw-abstand-*), Maße in em, damit am Rechner ein größerer Grundwert reicht. */

.ws-termin {
    position: absolute;
    inset: 0;
    z-index: 6;
    overflow: hidden;
    pointer-events: none;
}

.ws-termin-link {
    position: absolute;
    top: var(--hw-oben-handy, 90px);
    display: block;
    font-size: 16px;
    line-height: 1.3;
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.ws-termin-link.hw-links { left: var(--hw-abstand-handy, 16px); }

.ws-termin-link.hw-rechts { right: var(--hw-abstand-handy, 16px); }

/* Fokus wie bei allen Links der Webseite (.ws-seite a:focus-visible), nur mit Abstand zum Gegenstand */

.ws-seite .ws-termin-link:focus-visible { outline-offset: 4px; }

.ws-termin-link .hw-zl { display: block; }

.ws-termin-link .hw-nb { white-space: nowrap; }

.ws-termin-link .hw-weiter { margin-top: 0.45em; font-size: 0.8em; font-weight: 700; }

@media (max-width: 359px) {
  .ws-termin-link { top: var(--hw-oben-schmal, var(--hw-oben-handy, 90px)); }

  .ws-termin-link.hw-links { left: var(--hw-abstand-schmal, var(--hw-abstand-handy, 16px)); }

  .ws-termin-link.hw-rechts { right: var(--hw-abstand-schmal, var(--hw-abstand-handy, 16px)); }
}

@media (min-width: 640px) {
  .ws-termin-link { top: var(--hw-oben-rechner, 16%); font-size: 20px; }

  .ws-termin-link.hw-links { left: var(--hw-abstand-rechner, 7%); }

  .ws-termin-link.hw-rechts { right: var(--hw-abstand-rechner, 7%); }
}

@media (min-width: 1100px) {
  .ws-termin-link { font-size: 23px; }
}

/* Leuchtschild an einem Ausleger, alt und kaputt wie an einem verlassenen Motel (Fassung „Ruine“, Sylvia,
   19.11.2026). Das Emailschild hängt nur noch am rechten Draht: Es bleibt im Fluss (die Fläche des Links umfasst Schild
   und Emailschild) und rückt mit negativem Rand unter den Draht. Der Draht endet im SVG bei x 66,6 / y 60,35 von 86 × 74
   Einheiten; die Ränder unten sind daraus gerechnet (Emailschild-em = 0,95 Schild-em). */

.hw-leuchtschild { width: 13.4em; padding-bottom: 1.2em; }

/* unten Platz für die schräg hängende Ecke des Emailschilds */

.hw-schild { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0.5em 0.8em rgba(0, 0, 0, 0.7)); }

.hw-leuchtschild .hw-tafel {
    position: relative;
    display: block;
    width: max-content;
    min-width: 8.6em;
    margin: -1.24em 1.72em 0 auto;
    padding: 0.62em 0.85em 0.66em;
    border-radius: 0.75em;
    background:
        radial-gradient(ellipse 0.3em 0.22em at 96% 80%, #2b2a2c 50%, #7a3a14 70%, transparent 80%),
        radial-gradient(ellipse 0.18em 0.13em at 90% 92%, #2b2a2c 50%, #7a3a14 70%, transparent 82%),
        radial-gradient(ellipse 0.36em 0.24em at 3% 66%, #2b2a2c 50%, #7a3a14 70%, transparent 80%),
        radial-gradient(ellipse 0.3em 0.2em at 30% 3%, #2b2a2c 50%, #7a3a14 70%, transparent 80%),
        linear-gradient(to bottom, rgba(122, 58, 20, 0.6), transparent 80%) 0.62em 0.75em / 0.2em 2.4em no-repeat,
        linear-gradient(to bottom, rgba(122, 58, 20, 0.6), transparent 80%) calc(100% - 0.62em) 0.75em / 0.2em 1.6em no-repeat,
        radial-gradient(ellipse 1.6em 0.6em at 20% 100%, rgba(122, 58, 20, 0.6), transparent 70%),
        radial-gradient(ellipse 1.2em 0.5em at 85% 0%, rgba(122, 58, 20, 0.45), transparent 70%),
        radial-gradient(circle at 0.62em 0.6em, #5a2a10 0.14em, transparent 0.16em),
        radial-gradient(circle at calc(100% - 0.62em) 0.6em, #5a2a10 0.14em, transparent 0.16em),
        radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(110, 74, 30, 0.45) 100%),
        linear-gradient(170deg, #e6d4a6, #c9ad74);
    box-shadow: inset 0 0 0 0.14em #5b3517, inset 0 0 0 0.27em #e4d0a0, inset 0 0 0 0.37em #c45f1c, 0 0.5em 1em rgba(0, 0, 0, 0.6);
    color: #3a2412;
    text-align: center;
    font-weight: 700;
    font-size: 0.95em;
    transform: rotate(-8deg);
    transform-origin: calc(100% - 1.46em) -1em;
}

.hw-leuchtschild .hw-weiter { color: #a4481a; }

.hw-leuchtschild .hw-tafel::before,
.hw-leuchtschild .hw-tafel::after { content: ""; position: absolute; width: 0.12em; background: #4b4038; }

/* links nur noch ein abgerissener Stummel, rechts der Draht, an dem alles hängt */

.hw-leuchtschild .hw-tafel::before { left: 1.4em; top: -0.3em; height: 0.32em; }

.hw-leuchtschild .hw-tafel::after { right: 1.4em; top: -1em; height: 1.05em; }

/* Abflugtafel: Fallblätter, Tag und Uhrzeit in einer Reihe; Zeichen schmal gezogen, die Höhe bleibt lesbar */

.hw-abflugtafel { --hw-blatt: 10.4px; --hw-schrift: 19px; --hw-zug: 0.66; --hw-zug-m: 0.57; --hw-zug-w: 0.49; transform: rotate(-1.5deg); transform-origin: 50% 0; }

.hw-abflugtafel .hw-stangen::before,
.hw-abflugtafel .hw-stangen::after {
    content: "";
    position: absolute;
    bottom: 100%;
    width: 0.18em;
    height: 3.2em;
    background: linear-gradient(90deg, #2a2d32, #6a6e75 50%, #2a2d32);
    -webkit-mask: linear-gradient(to top, #000 50%, transparent);
    mask: linear-gradient(to top, #000 50%, transparent);
}

.hw-abflugtafel .hw-stangen::before { left: 1.6em; }

.hw-abflugtafel .hw-stangen::after { right: 1.6em; }

.hw-tafel-gehaeuse {
    display: block;
    padding: 0.35em 0.35em 0;
    background: linear-gradient(#24262b, #16181b);
    border: 0.12em solid #3b3e44;
    border-radius: 0.25em;
    box-shadow: 0 0.7em 1.4em rgba(0, 0, 0, 0.7);
}

.hw-tafel-kopf { display: flex; justify-content: space-between; padding: 0 0.1em 0.3em; color: #a9a59c; font-size: 0.68em; font-weight: 700; }

.hw-tafel-kopf span:first-child { color: var(--sh-rot-hell); }

.hw-tafel-kopf b { color: #f2eee4; margin-left: 0.2em; }

.hw-reihe { display: flex; gap: 1px; margin-bottom: 2px; }

.hw-blatt {
    display: block;
    width: var(--hw-blatt);
    height: calc(var(--hw-schrift) * 1.42);
    overflow: hidden;
    background: linear-gradient(#202124 0 49%, #0a0a0b 49% 51%, #17181a 51%);
    border-radius: 0.1em;
    color: #f2eee4;
    font-size: var(--hw-schrift);
    font-weight: 400;
    line-height: calc(var(--hw-schrift) * 1.42);
    text-align: center;
}

.hw-blatt b { display: block; font-weight: inherit; transform: scaleX(var(--hw-zug)); }

/* M und W sind breiter als ihr Blatt und wurden abgeschnitten: stärker gestaucht (Sylvia, 21.11.2026, Handy) */

.hw-blatt.hw-m b { transform: scaleX(var(--hw-zug-m)); }

.hw-blatt.hw-w b { transform: scaleX(var(--hw-zug-w)); }

.hw-blatt.hw-dreht { color: #9a968c; }

.hw-reihe.hw-frei .hw-blatt { color: var(--sh-gold-hell); }

.hw-reihe.hw-voll .hw-blatt { color: #ff5a4a; }

.hw-tafel-fuss {
    display: block;
    margin: 0.25em -0.35em 0;
    padding: 0.5em 0.6em;
    border-top: 0.08em solid #3b3e44;
    color: var(--sh-gold-text);
    font-size: 0.8em;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 359px) {
  .hw-abflugtafel { font-size: 13.5px; --hw-blatt: 9.1px; --hw-schrift: 18.5px; --hw-zug: 0.6; --hw-zug-m: 0.5; --hw-zug-w: 0.43; }
}

@media (min-width: 640px) {
  .hw-abflugtafel { --hw-blatt: 15.4px; --hw-schrift: 26px; --hw-zug: 0.68; --hw-zug-m: 0.64; --hw-zug-w: 0.55; }
}

/* Haftnotiz, leicht schief aufgeklebt, die Ecke unten rechts hebt sich */

.hw-haftnotiz { width: 10.6em; transform: rotate(-4deg); }

.hw-zettel {
    position: relative;
    display: block;
    padding: 1em 0.8em 1.1em 0.9em;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.07) 0, rgba(0, 0, 0, 0) 1.4em),
        linear-gradient(165deg, #fff27a 0%, #fbe45a 60%, #f2d544 100%);
    color: #1b2440;
    box-shadow: 0 0.12em 0.25em rgba(0, 0, 0, 0.35);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.2em), calc(100% - 2.6em) 100%, 0 100%);
}

.hw-haftnotiz::after {
    content: "";
    position: absolute;
    right: 0.6em;
    bottom: -0.2em;
    z-index: -1;
    width: 3em;
    height: 2em;
    background: radial-gradient(ellipse at 70% 60%, rgba(0, 0, 0, 0.55), transparent 70%);
    transform: rotate(8deg);
}

.hw-ecke {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 2.6em;
    height: 2.2em;
    background: linear-gradient(135deg, #d9bf3a 0%, #f7e06a 46%, rgba(0, 0, 0, 0) 50%);
    box-shadow: -0.15em -0.15em 0.35em rgba(0, 0, 0, 0.25);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform-origin: 0 0;
}

.hw-hand { display: block; height: 1.6em; max-width: 100%; }

.hw-hand.hw-gross { font-size: 1.12em; margin-bottom: 0.15em; }

.hw-hand.hw-klein { font-size: 0.85em; margin-top: 0.25em; }

.hw-haftnotiz .hw-klein { color: #b3140c; }

/* Wort mit einem Zeichen, das nicht gezeichnet ist: in Verdana, so groß wie die Handschrift */

.hw-hand-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.35em; min-height: 1.6em; }

.hw-hand-zeile .hw-hand { display: inline-block; }

.hw-hand-ersatz { font-weight: 700; font-size: 1.05em; }

/* Maklerschild an einem Ausleger vom Bildrand, darunter das Terminschild */

.hw-maklerschild { width: 13em; }

.hw-makler-arm {
    display: block;
    height: 0.5em;
    background: linear-gradient(#e9e6df, #9a968d);
    box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.6);
}

.hw-links .hw-makler-arm { margin-right: 2.4em; border-radius: 0 0.25em 0.25em 0; }

.hw-rechts .hw-makler-arm { margin-left: 2.4em; border-radius: 0.25em 0 0 0.25em; }

.hw-makler-haengt { position: relative; display: block; width: 10.6em; margin-left: 1.2em; padding-top: 0.7em; transform-origin: 50% 0; }

.hw-makler-haengt::before,
.hw-makler-haengt::after { content: ""; position: absolute; top: 0; width: 0.14em; height: 0.7em; background: #c8c4bb; }

.hw-makler-haengt::before { left: 1.6em; }

.hw-makler-haengt::after { right: 1.6em; }

.hw-makler-schild {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f7f5f0;
    color: #15171a;
    border-radius: 0.2em;
    box-shadow: 0 0.6em 1.2em rgba(0, 0, 0, 0.65);
}

.hw-makler-band { display: block; padding: 0.35em 0.6em; background: #c4160e; color: #fff; font-weight: 700; font-size: 1.05em; text-align: center; letter-spacing: 0.04em; }

.hw-makler-koerper { display: block; padding: 0.5em 0.6em 0.6em; text-align: center; }

.hw-makler-koerper b { display: block; }

.hw-makler-koerper span { display: block; margin-top: 0.15em; font-size: 0.72em; color: #4a4e55; }

.hw-makler-vergeben {
    position: absolute;
    left: -1em;
    right: -1em;
    top: 2.3em;
    padding: 0.15em 0;
    background: #15171a;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transform: rotate(-12deg);
}

.hw-makler-reiter {
    position: relative;
    display: block;
    margin-top: 0.5em;
    padding: 0.45em 0.5em 0.5em;
    background: #15171a;
    color: #fff;
    text-align: center;
    border-radius: 0.15em;
    box-shadow: 0 0.4em 0.9em rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.hw-makler-reiter::before,
.hw-makler-reiter::after { content: ""; position: absolute; top: -0.5em; width: 0.12em; height: 0.5em; background: #c8c4bb; }

.hw-makler-reiter::before { left: 1.4em; }

.hw-makler-reiter::after { right: 1.4em; }

.hw-makler-reiter .hw-weiter { color: #ff8a80; }

.hw-maklerschild.hw-voll .hw-makler-reiter { font-size: 0.9em; }

/* Bewegung: träges Flackern der brennenden Röhre, leichtes Schwingen der Schilder, die Ecke der Haftnotiz hebt sich
   ab und zu. Das Bild selbst flackert nicht (Sylvia, 16.11.2026). Am kaputten Leuchtschild (19.11.2026) stottert ein
   Buchstabe unregelmäßig, drei Glühbirnen haben Wackelkontakt, das schiefe Schild pendelt um die rechte Kette. Bei
   „Bewegung reduzieren“ steht alles still. */

@media (prefers-reduced-motion: no-preference) {
  .hw-flacker { animation: hw-flacker 9s linear infinite; }

  .hw-schild-schief { animation: hw-schwingen-schief 8s ease-in-out infinite; transform-origin: 66px 4px; transform-box: view-box; }

  .hw-stottern { animation: hw-stottern 6.7s linear infinite; }

  .hw-zucken { animation: hw-zucken 5.3s linear infinite; }

  .hw-zucken.hw-z2 { animation-delay: -2.4s; }

  .hw-zucken.hw-z3 { animation-delay: -4.1s; }

  .hw-makler-haengt { animation: hw-schwingen 7.5s ease-in-out infinite; }

  .hw-ecke { animation: hw-ecke 6s ease-in-out infinite; }
}

@keyframes hw-flacker {
    0%, 58% { opacity: 1; }
    60% { opacity: 0.25; }
    63% { opacity: 0.9; }
    65% { opacity: 0.35; }
    69%, 100% { opacity: 1; }
}

@keyframes hw-schwingen {
    0%, 100% { transform: rotate(0.6deg); }
    50% { transform: rotate(-0.6deg); }
}

@keyframes hw-schwingen-schief {
    0%, 100% { transform: rotate(0.5deg); }
    50% { transform: rotate(-0.9deg); }
}

@keyframes hw-stottern {
    0%, 8% { opacity: 1; }
    9% { opacity: 0.12; }
    10% { opacity: 0.85; }
    11.5% { opacity: 0.15; }
    13%, 40% { opacity: 1; }
    41% { opacity: 0.3; }
    42.5%, 69% { opacity: 1; }
    70%, 74% { opacity: 0.08; }
    75% { opacity: 0.8; }
    76% { opacity: 0.18; }
    78%, 100% { opacity: 1; }
}

@keyframes hw-zucken {
    0%, 20% { opacity: 1; }
    21%, 24% { opacity: 0.15; }
    25%, 61% { opacity: 1; }
    62% { opacity: 0.3; }
    63% { opacity: 1; }
    64%, 70% { opacity: 0.1; }
    71%, 100% { opacity: 1; }
}

@keyframes hw-ecke {
    0%, 70%, 100% { transform: none; }
    80% { transform: scale(1.12); }
}

.ws-stimmen {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.ws-stimmen blockquote {
    padding-left: 14px;
    border-left: 3px solid var(--sh-rot);
    font-size: 1.05rem;
    line-height: 1.45;
}

.ws-galerie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ws-galerie figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
}

.ws-galerie .lebendig > img:not(.zeiger) {
    animation-name: ws-zoom-leicht;
}

.ws-galerie .lebendig.gang > img {
    animation: ws-gang 26s ease-in-out infinite alternate;
}

.ws-galerie .lebendig.naeher > img {
    animation: sh-naeher 24s ease-in-out infinite alternate;
}

.ws-galerie .lebendig.still > img:not(.zeiger) {
    animation: none;
}

/* Gang: langsame Fahrt ins Bild, als ginge man auf die Tür zu (Sylvia, 21.10.2026) */

@keyframes ws-gang {
    from { transform: scale(1) translateY(0); }
    50% { transform: scale(1.16) translateY(0.6%); }
    to { transform: scale(1.34) translateY(0); }
}

@media (min-width: 640px) {
  .ws-karten-zwei {
        grid-template-columns: 1fr 1fr;
    }

  .ws-galerie {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

  .ws-stimmen {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.zl-innen {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.zl-oben .zl-innen {
    top: calc(var(--zl-abstand) * -1);
}

.zl-unten .zl-innen {
    top: var(--zl-abstand);
}

.zl-rechner {
    display: none;
}

@media (min-width: 640px) {
  .zl-handy {
        display: none;
    }

  .zl-rechner {
        display: block;
    }
}

@media (prefers-reduced-motion: no-preference) {
  .zl-signal.zl-warte .zl-ring,
    .zl-signal.lauf .zl-ring {
        animation: zl-ring 4s ease-out 1 both;
        transform-box: fill-box;
        transform-origin: center;
    }

  .zl-signal.zl-warte .zl-flamme,
    .zl-signal.lauf .zl-flamme {
        animation: zl-an 3s ease-out 1 both;
    }
}

@keyframes zl-an {
    from { opacity: 0.15; }
}

@keyframes zl-ring {
    from { transform: scale(0.4); opacity: 0.8; }
    to { transform: scale(1.6); opacity: 0; }
}

/* Galerie vergrößern (WS30, Sylvia, 21.11.2026): Knopf über jedem Bild, Vollbild-Fenster mit Pfeilen. Der Knopf zeigt sich
   erst, wenn das Skript läuft. */

.ws-galerie-feld {
    position: relative;
}

.ws-galerie-knopf {
    display: none;
}

.ws-galerie-an .ws-galerie-knopf {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

.ws-galerie-knopf:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

html.ws-galerie-offen {
    overflow: hidden;
}

.ws-galerie-fenster {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #ece6da;
}

.ws-galerie-fenster[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-galerie-fenster::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.ws-galerie-gross {
    margin: 0;
    max-width: 100vw;
    text-align: center;
}

.ws-galerie-gross img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 82vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 6px;
}

.ws-galerie-zu,
.ws-galerie-pfeil {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
}

.ws-galerie-zu {
    top: 12px;
    right: 12px;
    font-size: 2rem;
}

.ws-galerie-pfeil {
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    font-size: 2.2rem;
}

.ws-galerie-zurueck {
    left: 8px;
}

.ws-galerie-weiter {
    right: 8px;
}

@media (max-width: 639px) {
  .ws-galerie-gross img {
        max-width: 100vw;
        border-radius: 0;
    }

  .ws-galerie-pfeil {
        top: auto;
        bottom: 18px;
        margin-top: 0;
    }
}

/* Am Handy steht „Termin finden“ schon in der festen Leiste unten (gleiches Ziel): unter der Preistabelle nicht doppelt
   (Sylvia, 21.11.2026). Die Leiste erscheint genau unter 640 px, wenn die Seite sie hat (ws-mit-leiste). */

@media (max-width: 639px) {
  .ws-mit-leiste .ws-preise-knopf {
        display: none;
    }
}
