/* Dieselbe räumliche Aufteilung wie in den übrigen Weihnachtswerkstätten. */
.plaetzchen { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 10px; box-sizing: border-box; padding: 12px 16px 10px; overflow: auto; color: #fff7e5; background: radial-gradient(ellipse at 35% 20%,#35514b,#152e36 60%,#101d35); }
.plaetzchen-kopf { min-width: 0; }
.plaetzchen-kopf > span { color: #f7d796; letter-spacing: .13em; font-size: .75rem; font-weight: 800; }
#app .plaetzchen-kopf h1 { margin: 3px 0; font-size: clamp(1.55rem,3vw,2.3rem); }
.plaetzchen-kopf p { margin: 0; }
.plaetzchen-inhalt { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: 14px; min-height: 0; }
.plaetzchen-bild { min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 22px; border: 1px solid #e2c18588; background: #5a4335; box-shadow: 0 12px 36px #0005; }
.plaetzchen-bild svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.plaetzchen-panel { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(12px,2vw,24px); border-radius: 22px; border: 1px solid #e2c18588; background: #0b1b2add; box-shadow: 0 12px 36px #0004; }
.plaetzchen-zaehler { margin: 0 0 5px; color: #f6d592; font-weight: 800; }
#app .plaetzchen-panel h2 { margin: 0; font-size: clamp(1.3rem,2.3vw,2rem); }
.plaetzchen-status { min-height: 1.5em; margin: 8px 0 12px; }
.plaetzchen-dose .plaetzchen-zaehler { color: #ffe9a8; }
.plaetzchen-dose .plaetzchen-status { color: #fff6d8; font-weight: 700; }
.plaetzchen-dose .plaetzchen-panel { border-color: #ffe9a8; background: #2a4a32cc; }
.plaetzchen-auswahl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
#app .plaetzchen .plaetzchen-knopf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 96px; padding: 8px; color: #fff9e9; background: #243d58; border: 2px solid #e9cb88; border-radius: 16px; font-weight: 800; overflow-wrap: anywhere; }
#app .plaetzchen .plaetzchen-knopf:hover { background: #365878; border-color: #fff1c2; }
#app .plaetzchen .plaetzchen-knopf:focus-visible { outline: 4px solid white; outline-offset: 2px; }
.plaetzchen-knopf > svg { width: 50px; height: 43px; }
.plaetzchen-farbpunkt { width: 38px; height: 38px; border: 3px solid #fff8e6; border-radius: 50%; background: var(--glasur); box-shadow: 0 3px 6px #0005; }
.plaetzchen-muster { color: #ffde8a; font-size: 2rem; line-height: 1; }
.plaetzchen-fuss { display: flex; align-items: end; gap: 8px; }
#app .plaetzchen-fuss .plaetzchen-knopf { min-width: 220px; min-height: 112px; }
@media (max-height: 650px) { .plaetzchen-kopf p { display: none; } .plaetzchen-status { margin: 4px 0 8px; } }
@media (max-width: 700px) { .plaetzchen { position: relative; inset: auto; min-height: 100dvh; grid-template-rows: auto minmax(0,1fr) auto; } .plaetzchen-inhalt { grid-template-columns: 1fr; grid-template-rows: minmax(240px,48vh) auto; min-height: auto; } .plaetzchen-bild { min-height: 240px; } .plaetzchen-fuss { flex-wrap: wrap; } #app .plaetzchen-fuss .plaetzchen-knopf { min-width: 120px; flex: 1 1 150px; min-height: 96px; } #app .plaetzchen-fuss .plaetzchen-knopf[data-plaetzchen="zurueck"] { min-width: 176px; min-height: 96px; } }
@media (max-width: 390px) { .plaetzchen-auswahl { grid-template-columns: 1fr; } .plaetzchen-auswahl .plaetzchen-knopf { flex-direction: row !important; } }
@media (max-height: 450px) and (min-width: 701px) { .plaetzchen { position: relative; min-height: 100dvh; grid-template-rows: auto minmax(240px,1fr) auto; } #app .plaetzchen .plaetzchen-knopf { min-width: 120px; min-height: 96px; } #app .plaetzchen-fuss .plaetzchen-knopf { min-width: 220px; min-height: 96px; } }
body.bf-cvi .plaetzchen, body.bf-cvi .plaetzchen-panel { background: #000; color: #fff; }
body.bf-cvi .plaetzchen-bild { border: 3px solid var(--bf-cvi-farbe,#ffd400); background: #000; }
body.bf-cvi #app .plaetzchen .plaetzchen-knopf { background: #000; color: #fff; border: 3px solid var(--bf-cvi-farbe,#ffd400); }

/* ------------------------------------------------------------------ 3D Vollbild */
.plaetzchen.plaetzchen-3d, .plaetzchen.plaetzchen-laedt {
  position: fixed; inset: 0; overflow: hidden;
  --pl-leiste: var(--zurueck-h, 112px);
  background: #243a42;
}
.plaetzchen-3d .plaetzchen-kopf, .plaetzchen-laedt .plaetzchen-kopf {
  position: absolute; z-index: 2; top: var(--oben, 10px); left: var(--links, 10px); right: auto;
  max-width: min(42rem, 70vw); pointer-events: none; text-shadow: 0 2px 8px #000c;
}
@media (max-height: 700px) { .plaetzchen-3d .plaetzchen-kopf p { display: none; } }
.plaetzchen-3d .plaetzchen-inhalt {
  position: absolute; inset: 0 0 calc(var(--pl-leiste) + var(--unten, 10px) + var(--luecke, 8px));
  display: block; pointer-events: none; grid-template-columns: none;
}
.plaetzchen-3d .plaetzchen-bild { display: none; }
.plaetzchen-3d .plaetzchen-panel {
  position: absolute; top: calc(var(--s-titel, 32px) + var(--s-text, 16px) * 2.2 + var(--oben, 10px));
  left: var(--links, 10px); right: auto; width: max-content; max-width: min(520px, 92vw);
  pointer-events: auto; background: var(--flaeche-glas, #0b1622d8); border-radius: 12px;
}
.plaetzchen-3d .plaetzchen-auswahl .plaetzchen-knopf,
.plaetzchen-3d .plaetzchen-fuss .plaetzchen-knopf {
  min-width: var(--knopf-b, 120px); min-height: var(--knopf-min-h, 96px);
}
.plaetzchen-3d .plaetzchen-fuss, .plaetzchen-laedt .plaetzchen-fuss {
  position: absolute; left: var(--links, 10px); right: var(--rechts, 10px); bottom: var(--unten, 10px);
  z-index: 4; margin: 0; pointer-events: auto;
}
.plaetzchen-3d .plaetzchen-fuss .plaetzchen-knopf[data-plaetzchen="zurueck"],
.plaetzchen-laedt .plaetzchen-fuss .plaetzchen-knopf[data-plaetzchen="zurueck"] {
  min-width: var(--zurueck-b, 220px); min-height: var(--zurueck-h, 112px);
}
.plaetzchen-3d-scene {
  position: absolute; inset: 0 0 calc(var(--pl-leiste) + var(--unten, 10px) + var(--luecke, 8px));
  overflow: hidden;
}
.plaetzchen-3d-scene > canvas { width: 100%; height: 100%; display: block; }

#app section.plaetzchen.keksstube {
  display:grid;position:fixed;inset:0;box-sizing:border-box;height:100dvh;min-height:0;overflow:auto;
  grid-template: auto minmax(0,1fr) auto / minmax(280px,32%) minmax(0,1fr);
  padding:clamp(7px,1vw,16px);gap:clamp(6px,1vw,14px);background:#152738;color:#fff2d9;
}
#app .keksstube .plaetzchen-kopf,#app .keksstube .plaetzchen-panel,#app .keksstube .plaetzchen-fuss {
  position:static;inset:auto;max-width:none;width:auto;margin:0;pointer-events:auto;text-shadow:none;
}
#app .keksstube .plaetzchen-kopf {grid-area:1/1;align-self:start;}
#app .keksstube .plaetzchen-kopf h1 {font-size:clamp(1.5rem,2.7vw,2.6rem);line-height:1.08;margin:0 0 4px;}
#app .keksstube .plaetzchen-kopf p {margin:0;line-height:1.23;}
#app .keksstube .plaetzchen-inhalt {display:contents;position:static;inset:auto;pointer-events:auto;}
#app .keksstube .plaetzchen-bild {
  display:block;grid-area:1/2/3/3;min-width:0;min-height:0;align-self:stretch;
  position:relative;overflow:hidden;background:#2b2523;border:1px solid #ad9365;border-radius:16px;
}
#app .keksstube .plaetzchen-3d-scene,#app .keksstube .plaetzchen-bild > svg {
  position:absolute;inset:0;width:100%;height:100%;display:block;border:0;
}
#app .keksstube .plaetzchen-panel {
  grid-area:2/1;align-self:center;justify-content:flex-start;padding:clamp(7px,1.3vw,19px);
  background:#203441;border:1px solid #a88c64;border-radius:15px;
}
#app .keksstube .plaetzchen-zaehler {margin:0 0 4px;font-size:.94rem;}
#app .keksstube .plaetzchen-panel h2 {font-size:clamp(1.15rem,2.2vw,1.72rem);line-height:1.14;}
#app .keksstube .plaetzchen-status {min-height:0;margin:5px 0 9px;line-height:1.22;}
#app .keksstube .plaetzchen-auswahl {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
#app .keksstube .plaetzchen-auswahl .plaetzchen-knopf {width:100%;min-width:0;min-height:96px;margin:0;padding:4px;line-height:1.12;}
#app .keksstube .plaetzchen-auswahl .plaetzchen-knopf:has(svg,.plaetzchen-farbpunkt,.plaetzchen-muster)::before {display:none;}
#app .keksstube .plaetzchen-fuss {grid-area:3/1/4/-1;display:flex;gap:6px;align-items:stretch;flex-wrap:nowrap;}
#app .keksstube .plaetzchen-fuss .plaetzchen-knopf {flex:0 1 200px;min-width:0;min-height:96px;margin:0;padding:5px;}
body.bf-cvi #app section.keksstube,body.bf-cvi #app .keksstube :is(.plaetzchen-bild,.plaetzchen-panel) {background:#000;color:var(--bf-cvi-farbe,#ffd400);box-shadow:none;}
@media (orientation:portrait) {
  #app section.plaetzchen.keksstube {grid-template:min-content minmax(120px,1fr) auto auto / minmax(0,1fr);}
  #app .keksstube .plaetzchen-bild {grid-area:2/1;}
  #app .keksstube .plaetzchen-panel {grid-area:3/1;}
  #app .keksstube .plaetzchen-fuss {grid-area:4/1;}
  #app .keksstube .plaetzchen-auswahl {grid-template-columns:repeat(3,minmax(0,1fr));}
  #app .keksstube .plaetzchen-auswahl:has(> :nth-child(4)) {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (orientation:landscape) and (max-height:500px) {
  #app section.plaetzchen.keksstube {grid-template-columns:minmax(295px,48%) minmax(0,1fr);gap:4px;padding:4px;}
  #app .keksstube .plaetzchen-kopf h1 {font-size:1.25rem;}
  #app .keksstube .plaetzchen-panel {padding:4px 7px;}
  #app .keksstube .plaetzchen-status {margin:2px 0 4px;font-size:.90rem;}
  #app .keksstube .plaetzchen-zaehler {font-size:.85rem;}
  #app .keksstube .plaetzchen-auswahl {gap:4px;}
  #app .keksstube .plaetzchen-auswahl .plaetzchen-knopf,#app .keksstube .plaetzchen-fuss .plaetzchen-knopf {min-height:72px!important;flex-direction:row!important;font-size:.96rem;}
  #app .keksstube .plaetzchen-auswahl svg {width:30px;height:30px;}
}

body.bf-cvi #app .keksstube .plaetzchen-bild svg {color:var(--bf-cvi-farbe,#ffd400);}
body.bf-cvi #app .keks-cvi-dekor circle,body.bf-cvi #app .keks-cvi-dekor > path {fill:currentColor;stroke:currentColor;}
body.bf-cvi #app .keks-cvi-dekor g path {fill:none;stroke:currentColor;}
