/* ============================================================================
   STIG ROCK, ANSICHT FUER SMARTPHONE UND TABLET
   ----------------------------------------------------------------------------
   Gilt nur mit <html class="is-mobile"> (setzt js/mobile.js auf Touch-Geraeten
   mit kleinem Bildschirm). Am Desktop greift keine dieser Regeln.

   Die Seite wird als Ganzes verkleinert (js/mobile.js), alle Masse hier sind
   deshalb in Einheiten der gedachten Desktop-Flaeche: hochkant 1280 breit,
   quer mindestens 900 hoch. Bedienelemente sind in vw/vh angegeben, damit sie
   auf dem Geraet gross genug zum Antippen bleiben.
   ========================================================================== */

/* ---- Bedienleiste des Players (nur Handy) -------------------------------- */
.mbar, .mbar-toggle { display: none; }

html.is-mobile { --mb: min(11.5vw, 12vh); }
html.is-mobile .hint { display: none; }                 /* Tastaturhinweise: am Handy ohne Nutzen */

html.is-mobile .mbar {
  display: flex; gap: calc(var(--mb) * .16);
  position: fixed; left: 50%; bottom: 3vh; transform: translateX(-50%); z-index: 40;
  transition: opacity var(--t-mid) var(--ease);
}
html.is-mobile .mbar button, html.is-mobile .mbar-toggle {
  width: var(--mb); height: var(--mb); padding: 0; display: grid; place-items: center;
  border: 1px solid var(--accent); background: rgba(10, 10, 10, .82); color: var(--accent);
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
html.is-mobile[data-theme="light"] .mbar button, html.is-mobile[data-theme="light"] .mbar-toggle { background: rgba(250, 247, 242, .9); }
html.is-mobile .mbar button svg, html.is-mobile .mbar-toggle svg { width: 52%; height: 52%; }
html.is-mobile .mbar button:active, html.is-mobile .mbar-toggle:active { background: var(--accent); color: var(--on-accent); }
html.is-mobile .mbar button.mbar__go { background: var(--accent); color: var(--on-accent); }
html.is-mobile .mbar button[hidden] { display: none; }

/* Quer gehalten fuellt die Folie den Bildschirm: die Leiste erscheint erst nach
   einem Tipp auf die kleine Taste unten links und blendet von selbst wieder aus. */
@media (orientation: landscape) {
  html.is-mobile .mbar { opacity: 0; pointer-events: none; }
  html.is-mobile body.mbar-open .mbar { opacity: 1; pointer-events: auto; }
  html.is-mobile .mbar-toggle { display: grid; position: fixed; left: 1.5vw; bottom: 3vh; z-index: 41; opacity: .5;
                                width: calc(var(--mb) * .8); height: calc(var(--mb) * .8); }
  html.is-mobile body.mbar-open .mbar-toggle { opacity: 1; }
}

/* Solange die Sprachwahl offen ist, treten Leiste und Taste zurueck (sie laegen sonst ueber den Flaggen) */
html.is-mobile body:has(#langs:not([hidden])) .mbar,
html.is-mobile body:has(#langs:not([hidden])) .mbar-toggle { display: none; }

/* ---- Sprachwahl ----------------------------------------------------------- */
html.is-mobile .langs:not(.help):not(.screens) .langs__box { width: 96vw; padding: 2.4vh 2vw 2.6vh; }
html.is-mobile #langs .langs__head { padding-bottom: 1.4vh; margin-bottom: 1.8vh; }
html.is-mobile #langs .langs__hint { display: none; }
html.is-mobile #langs .lang-btn__code { display: none; }

@media (orientation: portrait) {
  html.is-mobile #langs .langs__title { font-size: 44px; }
  html.is-mobile #langs .langs__grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  html.is-mobile #langs .lang-btn { padding: 22px 6px 18px; gap: 14px; }
  html.is-mobile #langs .lang-btn .flag { width: 132px; height: 88px; }
  html.is-mobile #langs .lang-btn__name { font-size: 31px; letter-spacing: .01em; }
}
@media (orientation: landscape) {
  html.is-mobile #langs .langs__title { font-size: 30px; }
  html.is-mobile #langs .langs__grid { gap: 10px; }
  html.is-mobile #langs .lang-btn { padding: 12px 4px 10px; gap: 8px; }
  html.is-mobile #langs .lang-btn .flag { width: 96px; height: 64px; }
  html.is-mobile #langs .lang-btn__name { font-size: 23px; letter-spacing: .01em; }
}

/* ---- Uebersicht aller Folien ---------------------------------------------- */
html.is-mobile .overview { padding: 3vh 3vw calc(var(--mb) + 6vh); }
html.is-mobile .overview__hint, html.is-mobile .ov-item__src { display: none; }
@media (orientation: portrait) {
  html.is-mobile .overview__title { font-size: 46px; }
  html.is-mobile #overview-list { grid-template-columns: 1fr; gap: 8px; }
  html.is-mobile .ov-item { grid-template-columns: 84px 1fr; gap: 20px; padding: 28px 26px; font-size: 34px; line-height: 1.25; }
  html.is-mobile .ov-item__nr { font-size: 30px; }
}
@media (orientation: landscape) {
  html.is-mobile .overview__title { font-size: 32px; }
  html.is-mobile #overview-list { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  html.is-mobile .ov-item { grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 18px; font-size: 23px; line-height: 1.25; }
  html.is-mobile .ov-item__nr { font-size: 21px; }
}

/* ---- Startseite (index.html): hochkant die zwei Kacheln gross untereinander ---- */
@media (orientation: portrait) {
  html.is-mobile body.menu { gap: 110px; }
  html.is-mobile body.menu .logo { width: 640px; }
  html.is-mobile body.menu main { grid-template-columns: minmax(0, 880px); gap: 60px; }
  html.is-mobile body.menu .tile { padding: 90px 40px 80px; }
  html.is-mobile body.menu .tile__ic { width: 340px; height: 340px; }
  html.is-mobile body.menu .tile__ic svg { width: 236px; height: 236px; }
  html.is-mobile body.menu .tile__t { margin-top: 60px; font-size: 92px; }
}
