/* public/solo/start/start.css
   Startseite: dunkler Streifen oben wie die Spielleiste der Kapitel, Grund wie Frau Hubers Tageskarte (#FFF8E6), der Bauplan am PC als dunkler
   Streifen wie ihr Kalender in Level 1 (heute weiß, Hämmo sitzt drauf), am Handy als Liste. Handy zuerst, ab 900 px nebeneinander. */
.st-seite { background: #FFF8E6; }
#start { min-height: 100dvh; display: flex; flex-direction: column; }
.st-band { display: flex; align-items: center; gap: 12px; background: var(--tinte); color: #fff; min-height: 60px;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.st-marke { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.st-marke img { width: 38px; height: 38px; background: #FFF8E6; border-radius: 9px; padding: 2px; }
.st-marke b { font-family: var(--titel); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.st-band-rechts > * { white-space: nowrap; }
.st-fuer { display: none; }
.st-fuss-lk a { color: var(--haemmo); font-weight: 700; }
.st-zu-text { font-weight: 400; }
.st-band-rechts { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.st-band-rechts a { color: rgba(255, 255, 255, .82); }
.st-chip { font: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 14px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .13); color: #fff; cursor: pointer; }
.st-chip i, .st-klasse i { font-style: normal; color: var(--akzent); font-weight: 800; }
.st-chip[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--akzent); }

.st-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 36px max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 26px; align-content: start; }
.st-held { display: grid; gap: 18px; }
.st-held-text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.st-pille { font-family: var(--titel); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--tinte);
  padding: 5px 13px; border-radius: 999px; }
.st-held h1 { font-size: 2.15rem; font-weight: 800; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.st-lead { font-size: 1.05rem; max-width: 46ch; margin: 0; }
.st-klasse { margin: 0; font-weight: 700; }

.st-code, .st-weiter { width: 100%; max-width: 640px; background: var(--papier); border: 2.5px solid var(--tinte); border-radius: 18px; padding: 16px 18px; display: grid; gap: 10px; }
.st-label { font-family: var(--schrift); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tinte-weich); font-weight: 700; margin: 0; }
.st-code h2:not(.st-label) { font-size: 1.3rem; margin: 0; text-wrap: balance; }
.st-code p { margin: 0; }
.st-code-warnung { border-color: var(--gefahr); box-shadow: inset 6px 0 0 var(--gefahr); }
.st-alt { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-weight: 700; color: var(--tinte-weich); }
.st-klein { font-size: .92rem; color: var(--tinte-weich); max-width: 60ch; }
.st-leise { justify-self: start; font: inherit; font-weight: 700; background: none; border: 0; padding: 6px 0; min-height: 44px; color: var(--haemmo); text-decoration: underline; cursor: pointer; text-align: left; }
.st-weiter { color: var(--tinte); text-decoration: none; justify-items: start; gap: 4px; }
.st-weiter small { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tinte-weich); font-weight: 700; }
.st-weiter b { font-family: var(--titel); font-weight: 800; font-size: 1.5rem; }
.st-weiter-knopf { margin-top: 8px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--tinte); color: #fff;
  font-family: var(--titel); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 3px var(--akzent); }
.st-weiter:hover .st-weiter-knopf, .st-weiter:focus-visible .st-weiter-knopf { background: #22335A; }

.st-figuren { display: none; }
.wieder .st-lead { display: none; }
.wieder .st-held h1 { font-size: 1.8rem; }

/* Hinweis über dem Bauplan, solange kein gültiger Code da ist */
.st-ohne { display: grid; gap: 4px; }
.st-ohne h2 { font-family: var(--titel); font-weight: 800; font-size: 1.3rem; margin: 0; text-wrap: balance; }
.st-ohne p { margin: 0; }

/* Bauplan, Handy: Liste */
.st-weg { display: grid; gap: 8px; }
.st-reihe { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-danach { margin: 8px 4px 0; font-family: var(--titel); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-weich); }
.st-station-innen { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "nr titel was" "nr unter was"; column-gap: 12px;
  align-items: center; min-height: 58px; padding: 9px 14px 9px 12px; background: var(--papier); border-radius: 14px; color: var(--tinte); text-decoration: none; }
.st-nr { grid-area: nr; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #EDF0EA; font-family: var(--titel); font-weight: 800; font-size: 1rem; }
.st-station-innen b { grid-area: titel; font-family: var(--titel); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.st-unter { grid-area: unter; font-size: .85rem; color: var(--tinte-weich); }
.st-was { grid-area: was; font-size: .85rem; font-weight: 700; color: var(--tinte-weich); display: inline-flex; align-items: center; gap: 4px; }
.st-haemmo { display: none; }
.st-station.fertig .st-nr { background: var(--gut); color: #fff; }
.st-station.jetzt .st-station-innen { box-shadow: 0 0 0 3px var(--akzent); }
.st-station.jetzt .st-nr { background: var(--tinte); color: #fff; }
.st-station.jetzt .st-was { color: var(--akzent-dunkel); }
.st-station.zu .st-station-innen { background: transparent; border: 2px dashed var(--linie); }
.st-station.zu b { color: var(--tinte-weich); }
.st-schloss { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; flex: none; }
a.st-station-innen:hover, a.st-station-innen:focus-visible { background: #F4F6F1; }

.st-fuss { display: grid; gap: 4px; font-size: .9rem; color: var(--tinte-weich); }
.st-fuss p { margin: 0; max-width: 80ch; }

@media (max-width: 420px) { .st-was { font-size: 0; gap: 0; } .st-station.jetzt .st-was, .st-station.zu .st-was { font-size: .82rem; } .st-station.zu .st-was { gap: 4px; } }

/* PC: Text links, Frau Huber und Hämmo rechts; der Bauplan als dunkler Streifen */
@media (min-width: 900px) {
  .st-band { min-height: 68px; padding-inline: max(28px, env(safe-area-inset-left, 0px)) max(28px, env(safe-area-inset-right, 0px)); }
  .st-marke b { font-size: 1.35rem; }
  .st-fuer { display: inline-flex; }
  .st-fuss-lk { display: none; }
  .st-marke img { width: 42px; height: 42px; }
  .st-main { padding-top: 40px; gap: 30px; padding-inline: max(40px, env(safe-area-inset-left, 0px)) max(40px, env(safe-area-inset-right, 0px)); }
  .st-held { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: end; gap: 40px; }
  .st-held h1 { font-size: 3.5rem; }
  .wieder .st-held h1 { font-size: 2.6rem; }
  .st-main.wieder { padding-top: 26px; }
  .wieder .st-figuren { height: 240px; }
  .wieder .st-huber { width: 190px; }
  .wieder .st-haemmo-gross { width: 96px; }
  .st-lead { font-size: 1.2rem; }
  .st-figuren { display: block; position: relative; height: 330px; }
  .st-huber { position: absolute; right: 10px; bottom: 6px; width: 250px; }
  .st-haemmo-gross { position: absolute; left: 0; bottom: 10px; width: 120px; }
  .st-tisch { position: absolute; left: -6px; right: 0; bottom: 0; height: 12px; background: #D8C7A4; border-radius: 6px; }

  .st-weg { grid-template-columns: minmax(0, 5.45fr) 34px minmax(0, 2fr); gap: 8px; background: var(--tinte); border-radius: 18px; padding: 10px; align-items: stretch; }
  /* Flex statt Raster: Die aktuelle Kachel (weiß, mit Hämmo) bekommt etwas mehr Breite, damit nichts umbricht. */
  .st-reihe { display: flex; }
  .st-reihe > .st-station { flex: 1 1 0; min-width: 0; }
  .st-reihe > .st-station.jetzt { flex-grow: 1.45; }
  .st-danach { margin: 0; color: rgba(255, 255, 255, .5); writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; align-self: center; justify-self: center; }
  .st-station, .st-station-innen { height: 100%; }
  .st-station-innen { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 112px; padding: 12px 14px; background: #24314F; color: #fff; }
  .st-nr { width: auto; height: auto; background: none; color: rgba(255, 255, 255, .55); font-size: .9rem; }
  .st-station-innen b { font-size: 1.12rem; }
  .st-unter { color: rgba(255, 255, 255, .7); font-size: .82rem; }
  .st-was { margin-top: auto; color: rgba(255, 255, 255, .72); font-size: .82rem; }
  .st-station.fertig .st-nr { background: none; color: #7FD3A0; }
  .st-station.jetzt .st-station-innen { background: var(--papier); color: var(--tinte); box-shadow: none; padding-right: 54px; }
  .st-station.jetzt .st-nr { background: none; color: var(--tinte-weich); }
  .st-station.jetzt .st-unter { color: var(--tinte-weich); }
  .st-station.jetzt .st-was { color: var(--akzent-dunkel); font-size: .9rem; }
  .st-station.jetzt .st-haemmo { display: block; position: absolute; right: 8px; top: 8px; width: 42px; }
  .st-was { white-space: nowrap; }
  .st-station.zu .st-station-innen { background: transparent; border: 2px dashed rgba(255, 255, 255, .28); }
  .st-station.zu b, .st-station.zu .st-was { color: rgba(255, 255, 255, .55); }
  a.st-station-innen:hover, a.st-station-innen:focus-visible { background: #2D3C60; }
  .st-station.jetzt a.st-station-innen:hover { background: #F4F6F1; }
}

/* Vorgeschichte (Film, /solo/prolog/) vor Kapitel 1 */
.st-prolog { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin-bottom: -4px; border-radius: 999px;
  background: var(--tinte); color: #fff; text-decoration: none; font-size: .95rem; }
.st-prolog span:first-child { color: var(--akzent, #FFC531); font-size: .8rem; }
.st-prolog span:last-child { color: rgba(255, 255, 255, .7); }
.st-prolog:hover b { text-decoration: underline; }
.st-prolog:focus-visible { outline: 3px solid var(--akzent, #FFC531); outline-offset: 2px; }

/* Schülercode (docs/solo/schuelercode/canvas.html, Bild 2): wo es im Kapitel weitergeht, Stand der Sicherung, Abmelden */
.st-weiter-ort { font-size: .95rem; color: var(--tinte-weich); }
.st-gesichert { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: .95rem; font-weight: 700; color: var(--gut, #2E7D4F); max-width: 640px; }
.st-gesichert.offen { color: var(--tinte-weich); font-weight: 400; }
.st-gesichert .st-ab { min-height: 44px; padding: 4px 0; color: var(--tinte-weich); font-weight: 400; }
.st-fehler { margin: 0; color: var(--gefahr); font-weight: 700; max-width: 640px; }
.st-leise.st-ab { color: var(--tinte-weich); font-weight: 400; }
.st-marke { flex: none; }
.st-band-rechts { min-width: 0; }
.st-chip { max-width: min(100%, 340px); min-width: 0; }
.st-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
