/* Prozesswerkstatt V2 (19.10.2026, nach Kritikrunde 1): Bearbeiten an der Karte, Wortkacheln,
   schließbares Feld, Startseite als erste Frage, „So geht’s“ ohne Vorhang. Ergänzt stil.css. */

.arbeitsflaeche { grid-template-columns: minmax(0, 1fr); }
.arbeitsflaeche.mit-feld { grid-template-columns: minmax(0, 1fr) 404px; }
@media (max-width: 1240px) { .arbeitsflaeche.mit-feld { grid-template-columns: minmax(0, 1fr) 372px; } }
@media (max-width: 979px) { .arbeitsflaeche.mit-feld { grid-template-columns: minmax(0, 1fr); } }

/* Startseite: die erste Frage */
.held-frage { padding: 48px 0 36px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hf-form h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; margin: 0 0 22px; letter-spacing: -.012em; font-weight: 800; max-width: 16ch; }
.hf-zeile { display: flex; gap: 10px; }
.hf-zeile input { font-size: 22px; font-weight: 700; padding: 16px 18px; border-radius: 14px; border-width: 2px; min-height: 64px; }
.hf-zeile .knopf.gross { min-height: 64px; border-radius: 14px; font-size: 19px; padding: 0 26px; white-space: nowrap; }
.hf-vorschlaege { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.drei-griffe { list-style: none; margin: 0; padding: 26px 22px; border-radius: 16px; background-color: var(--wand); background-image: radial-gradient(circle, var(--wand-loch) 0 1.7px, transparent 2.1px); background-size: 22px 22px; display: flex; flex-direction: column; gap: 14px; counter-reset: g; }
.drei-griffe li { display: flex; gap: 14px; align-items: center; background: var(--papier); border-radius: 8px; padding: 16px; box-shadow: var(--schatten-karte); counter-increment: g; font-size: 18px; }
.drei-griffe li::before { content: counter(g); width: 30px; height: 30px; border-radius: 50%; background: var(--akzent); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.drei-griffe .ic { width: 28px; height: 28px; color: var(--akzent); }
.teil-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.kachel.eigene { gap: 8px; }
@media (max-width: 860px) { .held-frage { grid-template-columns: 1fr; padding-top: 24px; } }
@media (max-width: 520px) { .hf-zeile { flex-direction: column; } }

/* Leiste: nie breiter als der Bildschirm */
.leiste { min-width: 0; max-width: 100vw; }
.leiste-titel { min-width: 0; }
.titel-feld { width: 100%; min-width: 0; }
.fassung-chip { flex: 0 1 auto; max-width: 48%; min-width: 0; }
@media (max-width: 640px) {
  .schritte { min-width: 0; }
  .schritte button { white-space: normal; line-height: 1.12; font-size: 13px; padding: 4px 4px; min-height: 48px; min-width: 0; text-align: center; }
  .leiste { gap: 2px; }
  .leiste-rechts .ikon-knopf { width: 44px; height: 46px; }
  .mitmach-knopf { padding: 0 10px; margin-right: 0; }
}
.mitmach-knopf { min-height: 46px; padding: 0 16px; margin-right: 4px; }
.leiste-rechts { align-items: center; }
@media (max-width: 760px) { .mitmach-knopf span { display: none; } .mitmach-knopf { padding: 0 12px; } }

/* Karte: Text direkt in der Karte */
.karte.bearbeitet { outline: 3px solid var(--akzent); outline-offset: 2px; box-shadow: 0 10px 26px rgba(12, 100, 117, .22); z-index: 5; }
.k-edit { font: inherit; font-size: 16.5px; font-weight: 700; line-height: 1.3; border: 0; background: var(--akzent-hell); border-radius: 6px; padding: 6px 8px; margin: 0 -4px; min-height: 0; flex: 1; resize: none; overflow: auto; color: var(--ink); }
.k-edit:focus { outline: none; background: #d2e8ec; }
.k-notiz { display: inline-flex; align-items: center; gap: 4px; color: var(--mensch-ink); font-weight: 700; font-size: 12.5px; min-width: 0; background: var(--zettel); padding: 2px 6px; border-radius: 3px; max-width: 100%; }
.k-notiz span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-notiz .ic { width: 15px; height: 15px; }
.k-notiz b { font-size: 11.5px; }
.k-fuss { gap: 6px; }
.karte.entscheidung .k-akteur { background: var(--ki-hell) !important; color: var(--ki) !important; }

/* „+ Schritt“ hinter der letzten Karte, ja/nein-Stummel */
.plus-weiter { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid var(--akzent); background: var(--papier); color: var(--akzent); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 8px rgba(12, 100, 117, .2); z-index: 4; }
.plus-weiter .ic { width: 26px; height: 26px; }
.plus-weiter span { font-size: 11px; font-weight: 800; line-height: 1; }
.plus-weiter:hover { background: var(--akzent); color: #fff; }
.stummel { position: absolute; min-width: 96px; height: 58px; padding: 0 12px; border-radius: 12px; border: 2px dashed currentColor; background: var(--papier); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 16px; z-index: 4; }
.stummel.lbl-ja { color: var(--moeglich); }
.stummel.lbl-nein { color: var(--grenze); }
.stummel .ic { width: 18px; height: 18px; }
.frei:not(.erste) { opacity: .45; }
.frei.erste { opacity: 1; border-color: var(--akzent); color: var(--akzent); background: rgba(255, 255, 255, .7); border-width: 2.5px; font-size: 17px; }
.frei .ic { width: 22px; height: 22px; }
/* Anschluss zum Verbinden: unten rechts an der Karte, nur an der gewählten Karte (Maus: auch beim Überfahren) */
.k-anschluss { width: 44px; height: 44px; right: -22px; top: auto; bottom: -22px; translate: none; opacity: 0; pointer-events: none; }
.karte.ausgewaehlt .k-anschluss { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .karte:hover .k-anschluss { opacity: 1; pointer-events: auto; } }
.hinweisband { top: auto; bottom: 84px; }
body:has(.rundgang2) .hinweisband { display: none; }

/* Übergang als Wortkachel */
.plakette { min-height: 56px; min-width: 60px; max-width: 170px; padding: 6px 10px; border-radius: 12px; border-width: 2px; font-size: 14.5px; }
.plakette .pl-reihe { gap: 6px; }
.plakette .pl-reihe .ic { width: 20px; height: 20px; }
.plakette .pl-reihe b { font-weight: 800; white-space: nowrap; color: var(--ink); }
.plakette.art-offen { border-style: dashed; color: var(--ink-3); background: rgba(255, 255, 255, .85); }
.plakette.art-offen .pl-reihe b { color: var(--ink-3); font-weight: 700; }
.plakette.bruch { background: var(--bruch-hell); }
.plakette.bruch .pl-reihe b { color: var(--bruch-ink); }
.plakette.art-ki { background: var(--ki); border-color: var(--ki); }
.plakette.art-ki .pl-reihe b, .plakette.art-ki .ic { color: #fff; }
.plakette.art-automatisch { background: var(--digital-hell); border-color: var(--digital); }
.plakette.breit { width: 200px; }
.pl-ind { width: 14px; height: 14px; }
.weg-label { font-size: 15px; padding: 3px 12px; border-radius: 7px; border-width: 2px; }
.weg.verlust-markiert { stroke: var(--grenze); stroke-width: 4; stroke-dasharray: none; }

/* Kartenleiste (bildschirmfest unter der Karte) */
.kartenleiste { position: absolute; left: 0; top: 0; z-index: 15; display: flex; gap: 6px; align-items: stretch; padding: 6px; background: var(--papier); border-radius: 14px; box-shadow: var(--schatten-hoch); border: 1px solid var(--linie); }
.kl-gruppe { display: flex; gap: 2px; background: var(--grau-fl); border-radius: 10px; padding: 3px; }
.kl-akteur, .kl-knopf { min-height: 52px; min-width: 56px; padding: 4px 8px; border: 0; border-radius: 9px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 750; color: var(--ink-2); }
.kl-akteur .k-akteur { width: 28px; height: 28px; border-radius: 7px; }
.kl-akteur .k-akteur .ic { width: 18px; height: 18px; }
.kl-akteur.an { background: var(--papier); color: var(--ink); box-shadow: 0 1px 3px rgba(29, 41, 48, .16); }
.kl-akteur:not(.an) .k-akteur { opacity: .55; }
.kl-knopf { border: 1.5px solid var(--linie); background: var(--papier); }
.kl-knopf .ic { width: 20px; height: 20px; }
.kl-knopf.an { border-color: var(--ki); background: var(--ki-hell); color: var(--ki); }
.kl-knopf.gefahr { color: var(--grenze); }
.kl-knopf:hover, .kl-akteur:hover { border-color: var(--akzent); }
.kl-knopf .ic + .ic { margin-top: -23px; margin-left: 14px; }

/* große Auswahlfelder (Formen, Übergang, Gefühl, Grundlage) */
.popup.gross { width: min(480px, 94vw); max-width: none; padding: 12px; gap: 10px; }
.popup.gross .pop-titel { margin: 2px 4px 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.popup.gross .pop-titel.klein { font-size: 14px; color: var(--ink-2); }
.pop-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pop-raster.zwei { grid-template-columns: repeat(2, 1fr); }
.pop-raster.drei { grid-template-columns: repeat(3, 1fr); }
.popup .pop-kachel { min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 12px; border: 2px solid var(--linie); background: var(--papier); font-size: 14px; font-weight: 700; text-align: center; color: var(--ink-2); line-height: 1.2; }
.popup .pop-kachel .ic { width: 28px; height: 28px; color: var(--akzent); }
.popup .pop-kachel.an { border-color: var(--akzent); background: var(--akzent-hell); color: var(--ink); }
.popup .pop-kachel.art-abtippen .ic, .popup .pop-kachel.art-muendlich .ic { color: var(--bruch); }
.popup .pop-kachel.art-ki .ic { color: var(--ki); }
.popup .pop-kachel.mehr { border-style: dashed; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.popup .mm-chip { min-height: 46px; display: inline-flex; padding: 0 14px; }
.pop-text { font-size: 17px; min-height: 64px; }
.pop-fuss { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.popup.gross .pop-fuss button { min-height: 48px; }
.popup.gross .pop-fuss .knopf { color: #fff; background: var(--akzent); display: inline-flex; padding: 0 20px; font-weight: 800; }
.popup.gross .pop-fuss .knopf.zweit { color: var(--ink); background: var(--papier); border: 1.5px solid var(--linie-2); }
.popup .mm-chip { border: 1.5px solid var(--linie-2); background: var(--papier); border-radius: 11px; font-weight: 650; color: var(--ink-2); }
.popup .mm-chip.an { border-color: var(--akzent); background: var(--akzent-hell); color: var(--ink); }
.popup .mm-chip:hover { background: var(--grau-fl); }
.pop-notizen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pop-notizen li { display: flex; gap: 8px; align-items: center; background: var(--zettel); padding: 4px 4px 4px 10px; border-radius: 4px; font-size: 14.5px; }
.pop-notizen li span { flex: 1; }
.pop-notizen li .ic { width: 18px; height: 18px; color: #6d5200; }
.popup.gross .pop-notizen button { min-height: 40px; padding: 0; }

/* Ansichtsleiste beschriftet */
.linsen button { flex-direction: column; gap: 2px; min-height: 52px; padding: 4px 10px; font-size: 12.5px; }
.linsen button span { display: inline !important; }
.linsen .ic { width: 22px; height: 22px; }
.zoom .beschriftet { width: auto; min-width: 52px; height: 52px; flex-direction: column; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 6px; }
.zoom .beschriftet span { font-size: 11.5px; font-weight: 750; }
@media (max-width: 1100px) { .linsen { max-width: calc(100% - 270px); } }
@media (max-width: 640px) { .zoom [data-zoom] { display: none; } .linsen button span { font-size: 11px; } }

/* Mitmachen: nie breiter als der Bildschirm (sonst zoomt das Handy heraus und die Knöpfe springen) */
.mitmachen { overflow-x: hidden; }
.mm-kopf { min-width: 0; }
.mm-kopf .knopf { flex: none; }
.mm-frage, .mm-weg, .mm-inhalt, .mm-wahl, .mm-chips, .mm-eingabe { min-width: 0; }
.mm-frage h2 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 900px) {
  .mm-haupt { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; }
  .mm-frage, .mm-weg { min-height: auto; }
}

/* Mitmachen: Weiter direkt am Feld */
.mm-eingabe { display: flex; gap: 12px; align-items: stretch; }
.mm-eingabe .mm-gross { flex: 1; }
.mm-eingabe .knopf.gross { min-height: 64px; align-self: flex-end; border-radius: 14px; font-size: 19px; padding: 0 22px; }
@media (max-width: 640px) { .mm-eingabe { flex-direction: column; } .mm-eingabe .knopf.gross { align-self: stretch; } }

/* So geht’s: Ring statt Vorhang, Karte fest unten */
.rundgang2 { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.rg2-ring { position: fixed; border-radius: 14px; border: 4px solid var(--mensch); box-shadow: 0 0 0 6px rgba(232, 116, 58, .25); transition: all .3s ease; animation: ringpuls 1.6s ease-in-out infinite; }
@keyframes ringpuls { 50% { box-shadow: 0 0 0 14px rgba(232, 116, 58, .1); } }
.rg2-karte { pointer-events: auto; position: fixed; left: 50%; bottom: 96px; translate: -50% 0; width: min(560px, calc(100vw - 24px)); background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.rg2-kick { margin: 0 0 2px; font-size: 12.5px; font-weight: 800; color: #9fd3dd; }
.rg2-titel { margin: 0 0 4px; font-size: 21px; display: flex; gap: 8px; align-items: center; }
.rg2-titel .ic { width: 24px; height: 24px; color: #7fe0b0; }
.rg2-text { margin: 0 0 12px; font-size: 16.5px; line-height: 1.4; color: #dfe7ea; }
.rg2-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rg2-knoepfe { display: flex; gap: 8px; }
.rg2-karte .knopf.zweit { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.rg2-karte.geschafft { background: var(--akzent-2); }
.rg2-karte .rg-punkte i { background: rgba(255, 255, 255, .3); }
.rg2-karte .rg-punkte i.an { background: #fff; }
.rg2-karte .rg-punkte i.war { background: #7fe0b0; }

/* Feld (rechts bzw. unten): schließbar */
.feld-seite[hidden] { display: none !important; }
@media (max-width: 979px) { .feld-seite { max-height: min(60dvh, calc(var(--vvh, 100dvh) - 64px)); } }
.thema-neu { width: auto; padding: 0 12px; display: flex; gap: 6px; align-items: center; font-weight: 750; height: 48px; }
.thema-neu span { font-size: 14px; }
@media (pointer: coarse) {
  .k-griff { opacity: .8; width: 56px; height: 56px; margin: -12px -10px -12px auto; }
  .k-anschluss { width: 56px; height: 56px; right: -28px; bottom: -28px; }
  .thema-kopf { height: 58px; }
  .thema-neu { height: 58px; padding: 0 14px; }
  .bahn-neu { height: 58px; }
}
