/* A consistent, still backdrop and large accessible controls for each place. */
.ort-ansicht {
  --ort-bild:url('bilder/weihnachtsstube.webp');
  position:fixed;inset:0;overflow:auto;min-height:100dvh;
  display:flex;flex-direction:column;padding:clamp(16px,3vw,36px);
  background:linear-gradient(180deg,#112b35b8 0%,#142f30a3 45%,#102d2de8 100%),var(--ort-bild) center/cover no-repeat;
  color:#fff9ec;
}
.ort-ansicht[data-ort="wald"] {--ort-bild:url('bilder/winterpark.webp')}
.ort-ansicht[data-ort="musik"],.ort-ansicht[data-ort="backen"] {--ort-bild:url('bilder/weihnachtszimmer.webp')}
.ort-ansicht .ort-kopf {align-self:flex-start;max-width:min(100%,720px);padding:clamp(14px,2vw,24px);background:#123b35d9;border:1px solid #f2d79b99;border-radius:24px;box-shadow:0 12px 32px #061e23aa}
.ort-ansicht .ort-kopf h1 {margin:.15em 0;color:#fff9ec;font-size:clamp(2rem,4vw,3.6rem);text-shadow:0 2px 8px #102a25}
.ort-ansicht .ort-kopf p {margin:.2em 0;color:#fff9ec}
.ort-ansicht .start-kacheln {width:100%;margin:auto 0 18px;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));align-items:stretch}
.ort-ansicht button.start-kachel {min-height:clamp(120px,23vh,220px);border:2px solid #efd292;background:linear-gradient(155deg,#245b4fe8,#183c39f2);color:#fff8ec}
.ort-ansicht button.start-kachel:nth-child(2n) {background:linear-gradient(155deg,#6b3a40ec,#402933f2)}
.ort-ansicht .ort-fuss {margin-top:0;gap:10px}.ort-ansicht .ort-fuss button.knopf {background:#fff8e9;color:#1e493e;border:2px solid #c1a269;min-height:96px;box-shadow:0 5px 0 #43372388}
@media(min-width:701px) and (min-height:451px){.ort-ansicht .ort-fuss button.knopf {min-height:var(--zurueck-h,112px);min-width:var(--knopf-b,120px)}.ort-ansicht .ort-fuss [data-action="dorf"] {min-width:var(--zurueck-b,220px)}}
.ort-ansicht button.knopf:focus-visible,.ort-ansicht button.knopf:hover {outline:4px solid #fff0a8;outline-offset:3px}
body.bf-cvi .ort-ansicht {background:#000;color:#fff}
body.bf-cvi .ort-ansicht .ort-kopf,body.bf-cvi .ort-ansicht button.knopf {background:#000;color:#fff;border-color:var(--bf-cvi-farbe,#ffd400)}
@media(max-width:650px){.ort-ansicht{position:fixed;padding:12px}.ort-ansicht .start-kacheln{grid-template-columns:repeat(2,minmax(120px,1fr));margin:14px 0}.ort-ansicht button.start-kachel{min-height:110px}.ort-ansicht .ort-fuss button.knopf{flex:1 1 120px}.ort-ansicht .ort-kopf h1{font-size:2rem}}
/* On short landscape displays all four choices and the navigation stay visible
   without requiring a scroll, while retaining Arcade's 120 × 96 px targets. */
@media (max-height:450px) and (min-width:701px) {
 .ort-ansicht {padding:10px 16px}
 .ort-ansicht .ort-kopf {padding:7px 15px;border-radius:16px}
 .ort-ansicht .ort-kopf h1 {font-size:1.6rem;line-height:1.1}
 .ort-ansicht .ort-kopf p {margin:0}
 .ort-ansicht .start-kacheln {grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin:8px 0}
 .ort-ansicht button.start-kachel,.ort-ansicht button.start-kachel:nth-child(n) {min-height:120px;max-height:160px}
 .ort-ansicht .start-zeichen {height:65px}
 .ort-ansicht .start-text {min-height:50px;padding:5px;font-size:1rem}
 .ort-ansicht .ort-fuss {margin-top:auto;gap:8px}
 .ort-ansicht .ort-fuss button.knopf {min-height:96px}
}

/* Kacheln wachsen aus dem gewählten Schild im Dorf (13.11.2026, app.js kachelnAuftreten) */
.ort-ansicht.ort-auftritt { animation: ort-einblenden .45s ease-out both; }
.ort-ansicht.ort-auftritt .ort-kopf { animation: ort-kopf-auftritt .5s .1s cubic-bezier(.2,.8,.3,1) both; }
.ort-ansicht.ort-auftritt .start-kachel { animation: ort-kachel-auftritt .62s calc(.12s + var(--auftritt-i, 0) * 80ms) cubic-bezier(.18,.9,.32,1.18) both; }
.ort-ansicht.ort-auftritt .ort-fuss { animation: ort-einblenden .4s .45s ease-out both; }
@keyframes ort-einblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes ort-kopf-auftritt { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes ort-kachel-auftritt {
  0% { opacity: 0; transform: translate(var(--auftritt-x, 0), var(--auftritt-y, 0)) scale(.12); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ort-ansicht.ort-auftritt, .ort-ansicht.ort-auftritt * { animation: none !important; } }
