/* Größenvergleich: Wand, Sofa, Mensch und die vier Leinwände im selben Maßstab. */
.gr { --gr-wand: #efe6d8; --gr-boden: #d8c8ae; --gr-leiste: #f7f1e7; --gr-sofa: #a9b59e; --gr-sofa-dunkel: #8f9d84; --gr-person: #5f554d; --gr-akzent: var(--terra, #bf4e24); --gr-text: var(--tinte, #211c18); --gr-leise: var(--gedaempft, #6a5f56); }
.gr * { box-sizing: border-box; }
.gr { max-width: 860px; margin-inline: auto; }
.gr-wahl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.gr-wahl button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(33, 28, 24, .16); color: var(--gr-text); font: 700 15px "Hanken Grotesk", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.gr-wahl button[aria-pressed="true"] { background: var(--gr-text); color: #fff; box-shadow: none; }
.gr-wahl button:focus-visible { outline: 3px solid var(--gr-akzent); outline-offset: 2px; }

.gr-buehne { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #1c1b1a; container-type: inline-size; transition: aspect-ratio .6s cubic-bezier(.2, .8, .2, 1); }
.gr[data-modus="alle"] .gr-buehne { aspect-ratio: 420 / 241.5; background: #efede8; }
.gr-buehne > div { position: absolute; }
.gr-szene { inset: 0; opacity: 0; transition: opacity .75s ease; overflow: hidden; }
.gr-szene.an { opacity: 1; }
.gr-szene img { position: absolute; max-width: none; height: auto; }
.gr-alle { inset: 0; opacity: 0; pointer-events: none; transition: opacity .75s ease; }
.gr[data-modus="alle"] .gr-alle { opacity: 1; }
.gr-alle > div { position: absolute; }
.gr-vier { inset: 0; }
.gr-haupt { inset: 0; transition: opacity .5s ease; pointer-events: none; }
.gr[data-modus="alle"] .gr-haupt { opacity: 0; }
.gr-haupt .gr-lw { transform: translate(-50%, -50%); transition: left .7s cubic-bezier(.2, .8, .2, 1), top .7s cubic-bezier(.2, .8, .2, 1), width .7s cubic-bezier(.2, .8, .2, 1); }
.gr-haupt .gr-lw img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.gr-haupt .gr-lw img.an { opacity: 1; }
.gr-haupt .gr-mass { opacity: 1; }
/* Wandverlängerung: die äußerste Spalte des Fotos, breit gezogen (nur bei „Alle vier") */
.gr-pad { top: 0; bottom: 0; background-size: 6000% 100%; background-repeat: no-repeat; filter: blur(1.5px); }
.gr-pad-l { left: 0; background-position: 0% 50%; }
.gr-pad-r { right: 0; background-position: 100% 50%; }
.gr-foto { top: 0; bottom: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.gr-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gr-masslinie { position: absolute; height: 0; border-top: 3px solid #211c18; }
.gr-masslinie::before, .gr-masslinie::after { content: ""; position: absolute; top: -9px; width: 3px; height: 18px; border-radius: 2px; background: #211c18; }
.gr-masslinie::before { left: 0; } .gr-masslinie::after { right: 0; }
.gr-masslinie span { position: absolute; left: 50%; bottom: 11px; transform: translateX(-50%); padding: .15em .8em; border-radius: 999px; background: #211c18; color: #fff; font: 700 clamp(11px, 3.2cqw, 14px)/1.5 "Hanken Grotesk", system-ui, sans-serif; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.gr-bilder { position: absolute; inset: 0; }
.gr-lw { position: absolute; background: #ddd; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), .6cqw 1.2cqw 2.4cqw rgba(45, 28, 12, .38); transition: left .55s cubic-bezier(.2, .8, .2, 1), top .55s cubic-bezier(.2, .8, .2, 1), width .55s cubic-bezier(.2, .8, .2, 1), height .55s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.gr-lw img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gr-lw::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(255,255,255,.2), rgba(255,255,255,0) 40%, rgba(0,0,0,.14)); }
.gr-lw.aus { opacity: 0; pointer-events: none; }
.gr-mass { position: absolute; left: 50%; top: calc(100% + .9cqw); transform: translateX(-50%); padding: 0 .7em; border-radius: 999px; background: var(--gr-akzent); color: #fff; font: 700 clamp(9px, 2.1cqw, 13px)/1.7 "Hanken Grotesk", system-ui, sans-serif; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.gr[data-modus="alle"] .gr-mass { opacity: 1; }
.gr-text { margin: 14px 0 0; text-align: center; color: var(--gr-leise); font-size: 16px; min-height: 2.8em; }
@media (prefers-reduced-motion: reduce) { .gr-lw, .gr-mass { transition: none; } }
.gr-fussnote { margin: 4px 0 0; text-align: center; color: var(--gr-leise); font-size: 12.5px; opacity: .8; }

.gr-masslinie.unten span { bottom: auto; top: 11px; }

/* Maßpfeile an der Leinwand: Breite oben, Höhe an der Seite (Leon, 13.10.) */
.gr-pfeil { position: absolute; display: block; --p: #211c18; }
.gr-pfeil::before, .gr-pfeil::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent; }
.gr-pfeil b { position: absolute; padding: .1em .65em; border-radius: 999px; background: var(--p); color: #fff; font: 700 clamp(10px, 2.7cqw, 13px)/1.5 "Hanken Grotesk", system-ui, sans-serif; white-space: nowrap; box-shadow: 0 0 0 1.5px rgba(255,255,255,.75), 0 2px 6px rgba(0,0,0,.25); }
/* Breite UNTER der Leinwand (Leon, 14.10.): oben schnitt der Bühnenrand die Beschriftung ab, vor allem am Handy */
.gr-pfeil-b { left: 0; right: 0; top: calc(100% + clamp(7px, 1.8cqw, 12px)); height: 0; border-top: 2px solid var(--p); }
.gr-pfeil-b::before { left: 0; top: -6px; border-width: 5px 8px 5px 0; border-right-color: var(--p); }
.gr-pfeil-b::after { right: 0; top: -6px; border-width: 5px 0 5px 8px; border-left-color: var(--p); }
.gr-pfeil-b b { left: 50%; top: 6px; transform: translateX(-50%); }
.gr-pfeil-h { top: 0; bottom: 0; left: calc(100% + clamp(8px, 2cqw, 14px)); width: 0; border-left: 2px solid var(--p); }
.gr-pfeil-h::before { top: 0; left: -6px; border-width: 0 5px 8px 5px; border-bottom-color: var(--p); }
.gr-pfeil-h::after { bottom: 0; left: -6px; border-width: 8px 5px 0 5px; border-top-color: var(--p); }
.gr-pfeil-h b { left: 8px; top: 50%; transform: translateY(-50%); }
.gr-lw.links .gr-pfeil-h { left: auto; right: calc(100% + clamp(8px, 2cqw, 14px)); }
.gr-lw.links .gr-pfeil-h b { left: auto; right: 8px; }
.gr-haupt .gr-lw { overflow: visible; }
.gr-lw.oben .gr-pfeil-b { top: auto; bottom: calc(100% + clamp(7px, 1.8cqw, 12px)); }
.gr-lw.oben .gr-pfeil-b b { top: auto; bottom: 6px; }
