/* Gemeinsamer Rahmen, tafeleigene Raumanpassung auf dem gesicherten Live-Stand. */
html.raum-effizient .app.tk { padding: 12px 20px 0; gap: 8px; }
html.raum-effizient .app.tk .tk-auftrag { display:block; padding:0; background:none; border:0; }
html.raum-effizient .app.tk .tk-auftrag .card-head { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; min-height:52px; }
.tk-auftrag .card-title { flex:1 1 260px; margin:0; font-size:clamp(20px,2.6vmin,32px); line-height:1.2; white-space:normal; }
.tk-auftrag .card-icon { display:none; }
.tk-auftrag .card-tools { display:flex; gap:8px; align-items:center; }
.tk-auftrag .sz-knoepfe { display:flex; gap:8px; }
.tk-auftrag .sz-knopf, .tk-auftrag .card-tool { width:48px; height:48px; min-width:48px; min-height:48px; margin:0; }
.tk-auftrag .sz-knopf svg { width:28px; height:28px; }
.tk-auftrag .progress { order:3; }
html.raum-effizient .app.tk .card-game { display:grid; grid-template-rows:minmax(0,1fr); border:0; background:transparent; box-shadow:none; padding:0; overflow:visible; }
html.raum-effizient .app.tk .tk-bedienung { display:block; }
html.raum-effizient .app.tk .tk-leiste { position:relative; height:auto!important; min-height:76px; padding:8px 0 20px; align-items:center; }
html.raum-effizient .tk-leiste .chip-btn.icon-only { width:48px; height:48px; }
html.raum-effizient .tk-leiste-recht { margin-left:auto; }
html.raum-effizient .tk-auge { margin-left:12px; }
.tk-fenster-inhalt .menu-cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.tk-fenster-inhalt .menu-side { min-width:0; }
.tk-fenster-inhalt .tk-wahl-gruppe { display:block; }
.tk-fenster-inhalt .segmented, .tk-fenster-inhalt .menu-seg { display:flex; flex-wrap:wrap; gap:6px; }
.tk-fenster-inhalt button { min-height:44px; }
html.raum-effizient .explore { container-type:size; grid-template-rows:auto minmax(0,1fr) auto auto auto auto; gap:6px; }
html.raum-effizient .explore-top { position:static; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:12px; }
html.raum-effizient .explore-top p { display:none; }
html.raum-effizient .explore-scene { width:min(100cqw,calc((100cqh - 210px)*600/330)); height:auto; aspect-ratio:600/330; align-self:center; justify-self:center; max-height:none; }
html.raum-effizient .explore-counts { width:100%; justify-content:space-around; }
html.raum-effizient .explore-stock { width:100%; max-width:none; }
html.raum-effizient .explore-cookie { min-width:44px; min-height:44px; }
html.raum-effizient .explore-cookie.on-pan { min-width:0; min-height:0; }
html.raum-effizient .explore-count b { font-size:clamp(26px,3.5vmin,42px); }
html.raum-effizient .explore-count span { font-size:clamp(14px,1.8vmin,20px); }
html.raum-effizient .explore-result { min-height:1.5em; font-size:clamp(15px,1.8vmin,24px); }
html.raum-effizient .explore-tip { font-size:clamp(13px,1.5vmin,18px); }
@media(max-width:640px),(max-width:900px) and (orientation:portrait) {
 html.raum-effizient .app.tk { height:auto!important; min-height:100dvh; grid-template-rows:auto auto auto!important; padding:12px 20px var(--raum-mobile-leiste,128px)!important; overflow:visible; }
 html.raum-effizient .app.tk .tk-flaeche { min-height:0; }
 html.raum-effizient .app.tk .tk-flaeche>.sheet { height:auto!important; }
 html.raum-effizient .app.tk .card-game { height:auto; }
 html.raum-effizient .app.tk .tk-leiste { position:fixed; left:20px; right:20px; bottom:0; width:auto; min-height:76px; background:var(--page,#f4f5f9); flex-wrap:wrap; }
 html.raum-effizient .tk-leiste-recht { order:3; flex-basis:100%; justify-content:center; margin:0; }
 html.raum-effizient .tk-auge { margin-left:auto; }
 html.raum-effizient .explore { container-type:inline-size; grid-template-rows:auto auto auto auto auto auto; }
 html.raum-effizient .explore-scene { width:100%; height:auto; }
 html.raum-effizient .explore-stock { align-items:flex-start; border-radius:14px; }
 html.raum-effizient .explore-stock-cookies { flex:1; }
 html.raum-effizient .stage { grid-template-rows:auto; gap:12px; }
 html.raum-effizient .arena { height:clamp(160px,42vw,360px); }
 .tk-auftrag .card-title { flex-basis:100%; }
 .tk-auftrag .progress { flex-basis:100%; justify-content:center; }
 .tk-fenster-inhalt .menu-cols { grid-template-columns:1fr; }
 .tk-fenster { max-height:calc(100dvh - 32px); }
 html.tk-ruhe.raum-effizient .app.tk { padding-bottom:64px!important; }
 html.tk-ruhe.raum-effizient .tk-auge { position:fixed; right:20px; bottom:20px; }
}
html.tk-ruhe.raum-effizient .app.tk { grid-template-rows:auto minmax(0,1fr) 0!important; }
/* Raumregeln haben modulbezogene Selektoren: gezielt für diese Tafel übersteuern. */
html.raum-effizient[data-raum-modul="groesser-kleiner"] .app.tk .tk-auftrag { box-shadow:none; backdrop-filter:none; border-radius:0; }
html.raum-effizient[data-raum-modul="groesser-kleiner"] .tk-auftrag .card-head { width:100%; }
html.raum-effizient[data-raum-modul="groesser-kleiner"] .tk-auftrag .card-title { font-size:clamp(20px,2.6vmin,32px)!important; }
html.raum-effizient[data-raum-modul="groesser-kleiner"] .app.tk .tk-bedienung>.tk-leiste { position:relative; inset:auto; width:100%; min-height:76px!important; padding:8px 0 20px; }
html.raum-effizient[data-raum-modul="groesser-kleiner"] .explore-scene { width:min(100cqw,calc(163cqh - 360px)); height:auto; aspect-ratio:600/330; }
html.raum-effizient[data-raum-modul="groesser-kleiner"] .tk-auftrag .sz-knopf { border:1px solid var(--line,#d9d4df); border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; padding:8px; }
html.raum-effizient[data-raum-modul="groesser-kleiner"] .tk-auftrag .sz-knopf.is-haupt { background:var(--rose,#984c67); color:#fff; }
@media(max-width:640px),(max-width:900px) and (orientation:portrait) {
 html.raum-effizient[data-raum-modul="groesser-kleiner"] .explore-scene { width:100%; margin-bottom:clamp(20px,4vw,38px); }
 html.raum-effizient[data-raum-modul="groesser-kleiner"] .app.tk .tk-bedienung>.tk-leiste { position:fixed; inset:auto 20px 0; width:auto; }
}
html.raum-effizient.tk-ruhe[data-raum-modul="groesser-kleiner"] .app.tk .tk-bedienung>.tk-leiste { position:fixed; inset:auto 20px 20px auto; width:48px; min-height:48px!important; padding:0; }
html.raum-effizient[data-raum-modul="groesser-kleiner"] .tk-leiste { margin-inline:0; }
@media(max-width:640px),(max-width:900px) and (orientation:portrait) {
 html.raum-effizient[data-raum-modul="groesser-kleiner"] .app.tk { align-content:start; }
 html.raum-effizient[data-raum-modul="groesser-kleiner"] .explore.raum-mobile-grafik,
 html.raum-effizient[data-raum-modul="groesser-kleiner"] .stage.raum-mobile-grafik { height:auto!important; min-height:0!important; }
 html.raum-effizient[data-raum-modul="groesser-kleiner"] .explore-scene { max-height:none; }
}
.tk-auftrag>.card-head>.progress { width:auto; }
@media(max-width:900px) and (orientation:portrait), (max-width:640px) {
 .tk-auftrag>.card-head>.progress { flex:1 1 100%; margin:0; justify-content:center; }
 .tk-fenster [data-modes] .bis { display:inline; }
}
/* Untere Leiste zeigt nur Symbole (Alex, 14.10.2026): Text „Einstellungen“ erschien über 1460 px Breite (App, Großbild). */
.tk-leiste .chip-btn .chip-label { display:none!important; }
.tk-leiste [data-menu-toggle] { width:var(--tk-ziel,48px); min-width:var(--tk-ziel,48px); padding:0; justify-content:center; }

/* Zeichen setzen: Rückmeldung über den Knöpfen < = > (layout-korrektur.js setzt --gk-heben). Komplettscan 16.10.2026. */
.app.tk .tk-flaeche > .tk-rueckmeldung.gk-ueber-zeichen { translate: 0 calc(-1 * var(--gk-heben, 0px)); }
