/* TRIZ Cockpit - was nur dieses Werkzeug betrifft. Die Hausgestaltung steht in
   house.css (geteilte Datei, wortgleich in allen Werkzeugen). Farben kommen aus
   deren Variablen; hier stehen keine eigenen Farbwerte fuer Bedienelemente. */

[hidden] { display: none !important; }

body { padding: 20px 20px 0; height: 100vh; display: flex; flex-direction: column; }
/* Kopf in einer Zeile: Titel links, rechts Datei, Verlauf, Einstellungen und
   Sprache. Eine eigene .header-controls-Zeile wie in CECA braucht das Cockpit
   nicht - die Werkzeugknoepfe stehen in der Arbeitsflaeche. */
.app-header { flex: none; }
.app-header .page-header { margin-bottom: 0; }
.app-header .app-subtitle { margin-bottom: 10px; }
/* Speicherstand klein unter den Knoepfen, rechtsbuendig - in der Hoehe des
   Untertitels, kostet also keine eigene Zeile. */
.app-header .page-tools { position: relative; }
.app-header .speicher-stand { position: absolute; right: 0; top: 100%; margin-top: 4px; padding: 0; white-space: nowrap; }

/* --- Knoepfe (wie in triz-ceca) ------------------------------------------ */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 6px; }
.knopfreihe.gruppen { gap: 8px 26px; }
.knopfgruppe { display: flex; flex-wrap: wrap; gap: 6px; }
.btn {
  font: inherit; font-size: 13px;
  padding: 6px 11px;
  border: 1px solid var(--tcg-rahmen);
  background: #fff;
  color: var(--tcg-schwarz);
  border-radius: 5px;
  cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--tcg-blau-hauch); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primaer { background: var(--tcg-blau-text); border-color: var(--tcg-blau-text); color: #fff; }
.btn.primaer:hover { background: var(--tcg-blau-hover); }
.btn.ghost { background: transparent; }
.btn.winzig { padding: 3px 8px; font-size: 12px; }
.speicher-stand {
  font: inherit; font-size: 12px; color: #666; background: none; border: none;
  padding: 4px 2px; align-self: center; text-align: left;
}
.speicher-stand:not(:disabled) { cursor: pointer; text-decoration: underline dotted; }
.speicher-stand.warnung { color: var(--tcg-rot-text); }

/* --- Aufbau: Navigation links, Arbeitsflaeche rechts ---------------------- */
.aufbau { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); border-top: 1px solid var(--tcg-rahmen); }
.navigation { overflow: auto; border-right: 1px solid var(--tcg-rahmen); padding: 6px 0 20px; }
.nav-bereich { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tcg-titel); padding: 14px 12px 4px; }
.nav-eintrag { display: flex; align-items: center; gap: 8px; padding: 6px 12px; color: var(--tcg-schwarz); text-decoration: none; font-size: 15px; }
.nav-eintrag:hover { background: var(--tcg-blau-hauch); }
.nav-eintrag.aktiv { background: var(--tcg-blau-hauch); box-shadow: inset 3px 0 0 var(--tcg-blau-text); font-weight: 700; }
.nav-symbol { width: 20px; text-align: center; color: var(--tcg-blau-text); }
.nav-zahl { margin-left: auto; font-size: 12px; background: var(--tcg-blau-text); color: #fff; border-radius: 999px; padding: 0 7px; }
/* In der Navigation zaehlen die Zahlen Aufgaben - eigene Farbe, damit sie sich
   von der Zahl der Ideen (blau, oben am Knopf Ideas) abheben. */
.navigation .nav-zahl { background: #fbe3c4; color: #8a4b00; font-weight: 700; }
#arbeit { overflow: auto; padding: 16px 24px 48px; }

/* --- Arbeitsflaeche ------------------------------------------------------- */
.werkzeug-titel { margin: 0 0 10px; font-size: 1.5rem; color: var(--tcg-schwarz); }
.werkzeug-titel .info-icon { cursor: pointer; }
.hilfetext { background: var(--tcg-blau-hauch); border-radius: 6px; padding: 8px 12px; margin: 0 0 14px; max-width: 900px; }
#arbeit h3 { font-size: 1rem; color: var(--tcg-titel); margin: 22px 0 8px; }
.leise { color: #666; font-size: 13px; }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; max-width: 900px; }
.formular label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; }
.formular label.breit { grid-column: 1 / -1; }
.formular input, .formular textarea, .tabelle.eingabe input, .tabelle.eingabe select {
  font: inherit; font-size: 15px; font-weight: 400; padding: 6px 8px;
  border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; color: var(--tcg-schwarz); width: 100%; min-width: 0;
}
.formular input:focus, .formular textarea:focus, .tabelle.eingabe input:focus, .tabelle.eingabe select:focus {
  outline: none; border-color: var(--tcg-blau); box-shadow: 0 0 0 2px rgba(91, 145, 195, 0.35);
}

.tabelle { border-collapse: collapse; font-size: 14px; }
.tabelle th, .tabelle td { border-bottom: 1px solid var(--tcg-rahmen); padding: 6px 10px; text-align: left; vertical-align: top; }
.tabelle thead th { background: var(--tcg-rahmen); color: var(--tcg-titel); font-size: 13px; }
.tabelle.eingabe td { padding: 4px 6px; }
.tabelle.eingabe input.kurz { width: 96px; }
.zeile-weg { border: none; background: none; color: #666; font-size: 17px; cursor: pointer; }
.zeile-weg:hover { color: var(--tcg-rot-text); }

/* --- Fenster --------------------------------------------------------------- */
dialog.fenster { border: 1px solid var(--tcg-rahmen); border-radius: 8px; padding: 18px 22px; width: min(640px, 92vw); max-height: 86vh; font-family: var(--tcg-schrift); color: var(--tcg-schwarz); }
dialog.fenster::backdrop { background: rgba(26, 23, 27, .35); }
dialog.fenster h2 { margin: 0 0 6px; font-size: 1.3rem; }
dialog.fenster h3 { margin: 16px 0 4px; font-size: 1rem; color: var(--tcg-titel); }
.fenster-knoepfe { text-align: right; margin: 16px 0 0; }
.sicherung { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--tcg-rahmen); }
.sicherung-kopf { font-size: 12px; color: #666; }
.sicherung-titel { font-size: 13.5px; }

@media (max-width: 760px) {
  body { height: auto; display: block; padding: 12px; }
  .aufbau { display: block; }
  .navigation { border-right: none; border-bottom: 1px solid var(--tcg-rahmen); }
  .formular { grid-template-columns: 1fr; }
}

/* --- Werkzeugleiste, Karten der Aufgaben und Ideen ------------------------ */
.werkzeugleiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; max-width: 980px; }
.werkzeugleiste .breit { flex: 3; min-width: 260px; }
.werkzeugleiste input, .werkzeugleiste select, .aufgabe select, .aufgabe textarea, .idee-karte select, .idee-karte textarea, .ideenfenster textarea, .ideenfenster select,
.baustein input, .baustein textarea {
  font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; color: var(--tcg-schwarz);
}
.sp { flex: 1; }
.aufgabe { border: 1px solid var(--tcg-rahmen); border-left: 4px solid var(--tcg-blau); border-radius: 6px; padding: 8px 12px; margin: 8px 0; max-width: 980px; background: #fff; }
.aufgabe.status-schluessel { border-left-color: var(--tcg-rot-text); }
.aufgabe.status-geloest { border-left-color: var(--tcg-gruen-text); opacity: .8; }
.aufgabe.status-verworfen { border-left-color: var(--tcg-grau); opacity: .6; }
.aufgabe-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.aufgabe-kopf label { font-size: 13px; color: #666; }
.aufgabe-herkunft { font-size: 12.5px; color: #666; }
.aufgabe-frage { font-weight: 700; font-size: 15.5px; margin: 4px 0; }
.aufgabe-frage-feld { width: 100%; font-weight: 700 !important; margin: 6px 0 4px; }
.aufgabe-text { font-size: 14px; margin-bottom: 4px; }
.aufgabe-fuss { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--tcg-rahmen); }
.aufgabe-fuss .klappe { background: none; border: 1px solid transparent; border-radius: 4px; padding: 2px 6px; font: inherit; font-size: 13px; color: var(--tcg-blau-text); cursor: pointer; }
.aufgabe-fuss .klappe::after { content: " ▸"; }
.aufgabe-fuss .klappe[aria-expanded="true"]::after { content: " ▾"; }
.aufgabe-fuss .klappe[aria-expanded="true"], .aufgabe-fuss .klappe:hover { border-color: var(--tcg-rahmen); }
.aufgabe-fuss .punkt { color: var(--tcg-blau); }
.aufgabe-fuss .loesen-mit { font-size: 13px; }
.aufgabe-klappe { margin-top: 6px; }
.aufgabe-klappe textarea { width: 100%; }
.idee-karte { border: 1px solid var(--tcg-rahmen); border-left: 3px solid var(--tcg-blau-text); border-radius: 0 6px 6px 0; padding: 6px 10px; margin: 8px 0; max-width: 980px; background: #fff; }
.idee-zeit { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #666; }
.idee-text { font-size: 14px; margin: 4px 0; white-space: normal; }
.idee-bearbeiten { width: 100%; margin: 4px 0; }
.idee-fuss { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: #666; }
.idee-fuss select { max-width: 320px; font-size: 12.5px; }
.idee-loest { font-size: 12.5px; color: var(--tcg-gruen-text); }
.ideen-hinweis { margin: 4px 0; padding: 4px 8px; border-left: 3px solid var(--tcg-blau); background: var(--tcg-blau-hauch); font-size: 13px; white-space: pre-line; display: flex; gap: 6px; }
.ideen-hinweis span { flex: 1; }

/* --- Ideenfenster rechts -------------------------------------------------- */
.ideenfenster { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; border-left: 1px solid var(--tcg-rahmen);
  box-shadow: -6px 0 24px rgba(26, 23, 27, .15); display: none; flex-direction: column; z-index: 20; }
body.ideen-offen .ideenfenster { display: flex; }
.ideen-kopf { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--tcg-rahmen); color: var(--tcg-titel); }
.ideen-neu { padding: 10px 14px; border-bottom: 1px solid var(--tcg-rahmen); display: flex; flex-direction: column; gap: 8px; }
.ideen-neu textarea { width: 100%; }
.ideen-zuordnung { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12.5px; color: #666; }
.ideen-zuordnung select { max-width: 100%; font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--tcg-blau-hauch); color: var(--tcg-schwarz); border-radius: 999px; padding: 1px 4px 1px 9px; }
.chip button { border: none; background: none; color: #666; cursor: pointer; }
.ideen-knoepfe { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.ideen-liste { overflow: auto; padding: 4px 14px 20px; }
.idee-karte.klein { margin: 6px 0; }

/* --- Report ---------------------------------------------------------------- */
.bericht { max-width: 980px; }
.bericht h1 { font-size: 1.8rem; margin: 10px 0 2px; }
.bericht-stand { color: #666; font-size: 13px; margin: 0 0 12px; }
.bericht-teil h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.25rem; border-bottom: 1px solid var(--tcg-rahmen); padding-bottom: 4px; margin: 26px 0 10px; }
.bericht-teil.aus { opacity: .55; } .bericht-teil.aus h2 { display: inline; border: none; font-size: 1rem; margin-right: 10px; }
.bericht-aufgabe { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 8px 12px; margin: 8px 0; break-inside: avoid; }
.bericht-idee { border-left: 3px solid var(--tcg-blau-text); padding: 2px 0 2px 10px; margin: 6px 0; }
.bericht-notiz { font-size: 13.5px; background: var(--tcg-blau-hauch); border-radius: 4px; padding: 4px 8px; margin: 4px 0; }
.baustein { margin: 12px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--tcg-blau); }
.baustein h3 { margin: 4px 0 !important; }
.baustein.bearbeiten { display: flex; flex-direction: column; gap: 6px; }
.baustein-knoepfe { display: flex; gap: 6px; }
.baustein-neu { display: block; margin: 8px 0; color: #666; border-style: dashed; }

/* --- Navigation: weitere Werkzeuge, Projektart ---------------------------- */
.nav-eintrag.weitere { color: #666; font-size: 14px; }
.nav-eintrag.weitere .nav-symbol { color: #666; }
.nav-lektion { display: block; margin: -4px 0 4px 40px; font-size: 12px; color: var(--tcg-blau-text); }
.projektart { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; max-width: 900px; }
.projektart select { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; }
.projektart-werkzeuge { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }

/* --- Navigation: Unterseiten eines Werkzeugs -------------------------------- */
.nav-klappe { margin-left: auto; width: 20px; text-align: center; color: #666; border-radius: 4px; }
.nav-zahl + .nav-klappe { margin-left: 4px; }
.nav-klappe:hover { background: var(--tcg-rahmen); color: var(--tcg-schwarz); }
.nav-eintrag.nav-unter { padding: 4px 12px 4px 40px; font-size: 14px; }
.nav-eintrag.nav-unter.tiefe-2 { padding-left: 56px; font-size: 13px; color: #555; }
.nav-eintrag.nav-unter.tiefe-2::before { content: "✂ "; color: #999; }

/* --- Funktionsanalyse ------------------------------------------------------- */
/* Farben der Elemente wie im Nachbau (kraeftig, auf einen Blick unterscheidbar). */
:root {
  --fa-komp: #99ccff; --fa-komp-rand: #0066cc;
  --fa-super: #ff9900; --fa-super-rand: #cc6600;
  --fa-ziel: #ffff00; --fa-ziel-rand: #cccc00;
  --fa-tinte: #10202f; --fa-nuetzlich: #0050c8; --fa-schaedlich: #e02020; --fa-gruen: #1a9a3a; --fa-grau: #aaa;
}
.fa-system { margin: 0 0 8px; font-size: 14px; }
.fa-flaeche { position: relative; border: 1px solid var(--tcg-rahmen); border-radius: 6px; overflow: auto; max-height: 62vh; background: #fff; touch-action: none; }
.fa-flaeche.nur-lesen { touch-action: auto; }
.fa-svg { display: block; font-family: var(--tcg-schrift); font-size: 13.5px; user-select: none; -webkit-user-select: none; }
.fa-el .form { stroke-width: 1.4; }
.fa-el.a-komponente .form { fill: var(--fa-komp); stroke: var(--fa-komp-rand); }
.fa-el.a-supersystem .form { fill: var(--fa-super); stroke: var(--fa-super-rand); }
.fa-el.a-ziel .form { fill: var(--fa-ziel); stroke: var(--fa-ziel-rand); }
.fa-el text { fill: var(--fa-tinte); pointer-events: none; }
.fa-flaeche:not(.nur-lesen) .fa-el { cursor: grab; }
.fa-el.gewaehlt .form { stroke: #003a8c; stroke-width: 3; }
.fa-el.getrimmt .form { fill: #d9d9d9; stroke: #9a9a9a; stroke-dasharray: 5 4; }
.fa-el.getrimmt text { fill: #8a8a8a; text-decoration: line-through; }
.fa-el.neu .form { stroke: var(--fa-gruen); stroke-width: 3; }
.fa-griff { cursor: crosshair; } .fa-griff circle { fill: #003a8c; } .fa-griff text { fill: #fff; font-weight: 700; pointer-events: none; }
.fa-kante .linie { fill: none; stroke: var(--fa-nuetzlich); stroke-width: 1.6; }
.fa-kante text { fill: var(--fa-nuetzlich); }
.fa-ende { fill: #fff; stroke: #003a8c; stroke-width: 2.5; cursor: crosshair; }
.fa-kopf { cursor: pointer; } .fa-kopf text { font-size: 13px; fill: var(--fa-tinte); } .fa-kopf .k-klein { font-size: 10.5px; fill: #555; }
.fa-kopf .k-sys { fill: var(--fa-komp); stroke: var(--fa-komp-rand); } .fa-kopf .k-pfeil { fill: #dbe9fb; stroke: var(--fa-nuetzlich); } .fa-kopf .k-ziel { fill: var(--fa-ziel); stroke: var(--fa-ziel-rand); }
.fa-matrix th .fa-mweg { visibility: hidden; font-size: 14px; } .fa-matrix th:hover .fa-mweg { visibility: visible; }
.fa-traeger th { background: #f4f4f4; } .fa-traeger input { font-weight: 700; }
.fa-kante .treffer { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; }
.fa-kante.k-ungenuegend .linie { stroke-dasharray: 6 5; }
.fa-kante.k-uebermaessig .linie { stroke-width: 4.2; }
.fa-kante.k-schaedlich .linie { stroke: var(--fa-schaedlich); }
.fa-kante.getrimmt .linie { stroke: var(--fa-grau); stroke-dasharray: 3 4; stroke-width: 1.2; }
.fa-kante.uebertragen .linie { stroke: var(--fa-gruen); stroke-width: 2.4; }
.fa-kante.gewaehlt .linie { stroke: #003a8c; stroke-width: 3; }
.fa-kante .schild { fill: #fff; stroke: none; opacity: .92; cursor: pointer; }
.fa-kante.gewaehlt .schild { stroke: #003a8c; opacity: 1; }
.fa-kante text { fill: var(--fa-tinte); font-size: 12px; pointer-events: none; }
.fa-kante.k-schaedlich text { fill: var(--fa-schaedlich); }
.fa-kante.uebertragen text { fill: var(--fa-gruen); font-weight: 700; }
.fa-kante.getrimmt text { fill: var(--fa-grau); text-decoration: line-through; }
.sp-n { fill: var(--fa-nuetzlich); } .sp-s { fill: var(--fa-schaedlich); } .sp-g { fill: var(--fa-gruen); } .sp-t { fill: var(--fa-grau); }
/* Die Hilfslinie beim Ziehen einer neuen Aktion darf keine Klicks schlucken -
   sonst liegt beim Loslassen sie unter dem Zeiger statt des Zielelements. */
.fa-hilfslinie { stroke: #003a8c; stroke-width: 2; stroke-dasharray: 4 4; pointer-events: none; }
.fa-direkt { position: absolute; z-index: 3; font: inherit; font-size: 14px; padding: 4px 6px; border: 2px solid #003a8c; border-radius: 4px; background: #fff; text-align: center; box-sizing: border-box; }
.fa-menue { position: fixed; z-index: 50; background: #fff; border: 1px solid var(--tcg-rahmen); border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); padding: 4px; min-width: 190px; display: flex; flex-direction: column; }
.fa-menue button { font: inherit; font-size: 14px; text-align: left; background: none; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; color: var(--tcg-schwarz); }
.fa-menue button:hover, .fa-menue button:focus { background: var(--tcg-blau-hauch); outline: none; }
.fa-menue button.an { font-weight: 700; }
.fa-menue hr { border: none; border-top: 1px solid var(--tcg-rahmen); margin: 4px 0; }
.fa-legende { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: #555; margin: 8px 0; }
.fa-legende span { display: inline-flex; align-items: center; gap: 6px; }
.fa-legende .lf, .fa-marke { display: inline-block; width: 22px; height: 13px; border: 1.4px solid; border-radius: 3px; flex: none; }
.fa-legende .lf.a-komponente, .fa-marke.a-komponente { background: var(--fa-komp); border-color: var(--fa-komp-rand); }
.fa-legende .lf.a-supersystem, .fa-marke.a-supersystem { background: var(--fa-super); border: none; clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%); }
.fa-legende .lf.a-ziel, .fa-marke.a-ziel { background: var(--fa-ziel); border-color: var(--fa-ziel-rand); border-radius: 7px; }
.fa-legende .lf.getrimmt { background: #d9d9d9; border-color: #9a9a9a; border-style: dashed; }
.fa-legende .ll { display: inline-block; width: 26px; border-top: 1.6px solid var(--fa-nuetzlich); }
.fa-legende .ll.k-ungenuegend { border-top-style: dashed; }
.fa-legende .ll.k-uebermaessig { border-top-width: 4px; }
.fa-legende .ll.k-schaedlich { border-top-color: var(--fa-schaedlich); }
.fa-legende .ll.getrimmt { border-top: 2px dotted var(--fa-grau); }
.fa-legende .ll.uebertragen { border-top: 2.4px solid var(--fa-gruen); }

/* Komponentenanalyse */
.fa-aufbau-kopf { margin-bottom: 6px; }
.fa-hf { display: flex; gap: 8px; } .fa-hf input { flex: 1; }
.fa-aufbau { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 10px 24px; }
.fa-aufbau-zeile { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.fa-aufbau-zeile input, .fa-aufbau-zeile select, .fa-aufbau-neu { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; }
.fa-aufbau-zeile input { flex: 1; min-width: 0; }
.fa-aufbau-neu { width: 100%; margin-top: 4px; border-style: dashed; box-sizing: border-box; }
@media (max-width: 760px) { .fa-aufbau { grid-template-columns: 1fr; } }

.fa-pruefer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--tcg-rahmen); border-radius: 6px; background: #fafafa; max-width: 1100px; font-size: 14px; }
.fa-pruefer label { display: inline-flex; align-items: center; gap: 6px; }
.fa-pruefer input:not([type=range]), .fa-pruefer select, .fa-pruefer textarea, .fa-mfunktion input, .fa-mfunktion select, .fa-speichern input, .fa-bedingungen input:not([type=radio]), .fa-bedingungen select {
  font: inherit; font-size: 14px; padding: 4px 7px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; color: var(--tcg-schwarz);
}
.fa-pruefer input.kurz { width: 90px; }
.fa-satz { display: inline-flex; align-items: center; gap: 8px; }
.fa-neue-aktion { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fa-regler b { min-width: 2.2em; }
.fa-bedeutung { flex-basis: 100%; border-top: 1px dashed var(--tcg-rahmen); padding-top: 8px; }
.fa-bedeutung > summary { cursor: pointer; color: var(--tcg-blau-text); font-size: 14px; margin-bottom: 6px; }
.fa-bedeutung-kopf { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.fa-ziel { display: grid !important; grid-template-columns: minmax(120px, 260px) minmax(120px, 220px) 3em; align-items: center; gap: 0 8px; margin: 4px 0; }
.fa-ziel .fa-skala { grid-column: 2; grid-row: 2; justify-content: space-between; }
.fa-skala { display: flex; gap: 10px; font-size: 11.5px; color: #666; } .fa-skala i { font-style: normal; }
.fa-summe { margin-top: 6px; font-weight: 700; }
.fa-notiz { flex-basis: 100%; } .fa-notiz textarea { flex: 1; }

.fa-tabelle th small, .fa-komponenten th small { display: block; font-weight: 400; color: #666; font-size: 12px; }
.fa-rang { font-weight: 700; } .fa-rang.k-schaedlich { color: var(--tcg-rot-text); }
.fa-matrix-rahmen { overflow: auto; max-width: 100%; }
.fa-matrix th, .fa-matrix td { text-align: center; min-width: 54px; }
.fa-matrix tbody th { text-align: left; }
.fa-matrix th.a-komponente { background: var(--fa-komp); color: var(--fa-tinte); }
.fa-matrix th.a-supersystem { background: var(--fa-super); color: var(--fa-tinte); }
.fa-matrix th.a-ziel { background: var(--fa-ziel); color: var(--fa-tinte); }
.fa-zelle { cursor: pointer; font-size: 16px; } .fa-zelle.ja { background: #eef7e6; } .fa-zelle.nein { background: #f2f2f2; }
.fa-zelle:hover, .fa-zelle.offen { background: var(--tcg-blau-hauch); outline: 2px solid var(--tcg-blau); outline-offset: -2px; }
.fa-diag { background: #ddd; }
.fa-pfeil { font-weight: 700; color: var(--fa-nuetzlich); margin: 0 2px; } .fa-pfeil.s { color: var(--fa-schaedlich); }
.fa-nein { color: #777; font-weight: 700; } .fa-plus { color: var(--tcg-gruen-text); font-weight: 700; }
.fa-meditor { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 10px 12px; margin: 10px 0; max-width: 900px; }
.fa-meditor-kopf { display: flex; justify-content: space-between; align-items: center; }
.fa-mwahl { display: flex; gap: 16px; margin: 6px 0 10px; font-size: 14px; }
.fa-mrichtung { margin: 8px 0; }
.fa-mfunktion { display: flex; gap: 6px; align-items: center; margin: 4px 0; } .fa-mfunktion input { flex: 1; max-width: 380px; }

.fa-balken { display: inline-block; width: 110px; height: 10px; background: #eee; border-radius: 5px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.fa-balken i { display: block; height: 100%; background: var(--tcg-blau); } .fa-balken.p i { background: var(--tcg-rot-text); }
.fa-zahl { font-variant-numeric: tabular-nums; }
.fa-formel { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--tcg-blau-hauch); padding: 3px 8px; border-radius: 4px; }
.fa-trimmliste { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.fa-trimmliste a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--tcg-rahmen); border-radius: 6px; color: var(--tcg-schwarz); text-decoration: none; }
.fa-trimmliste a:first-child { border-color: var(--tcg-blau-text); }
.fa-trimmliste a:hover { background: var(--tcg-blau-hauch); }
.fa-trimmliste span { color: #666; font-size: 13px; }
.fa-trimmen { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.fa-bedingungen { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 10px 12px; font-size: 14px; max-height: 70vh; overflow: auto; }
.fa-bedingungen fieldset { border: 1px solid var(--tcg-rahmen); border-radius: 5px; margin: 6px 0; padding: 6px 10px; }
.fa-bedingungen legend { padding: 0 4px; }
.fa-bedingungen label { display: block; margin: 3px 0; }
.fa-bedingungen select, .fa-bedingungen .fa-neuname { max-width: 180px; }
.fa-zwischen { font-weight: 700; color: var(--tcg-titel); margin: 10px 0 2px; }
.fa-speichern { display: flex; gap: 6px; margin-top: 10px; } .fa-speichern input { flex: 1; }
.fa-statinfo { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; font-size: 13.5px; }
.fa-stats { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; max-width: 620px; }
.fa-stat { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: 13px; }
.fa-stat > div > div { position: relative; height: 18px; margin: 1px 0; }
.fa-stat i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.fa-stat i.vorher { background: #e6e6e6; } .fa-stat i.nachher { background: var(--tcg-blau-hauch); border: 1px solid var(--tcg-blau); }
.fa-stat span { position: relative; padding-left: 6px; line-height: 18px; }
.fa-varianten, .fa-aufgaben { margin: 4px 0; padding-left: 20px; }
.fa-bild { overflow: auto; } .fa-bild svg { max-width: 100%; height: auto; }
@media (max-width: 980px) { .fa-trimmen { grid-template-columns: 1fr; } }

/* Funktionsanalyse: kompakte Tabelle, freie Hauptfunktion, Wertdiagramm */
.fa-tabelle.kompakt td { padding: 2px 6px; vertical-align: middle; }
.fa-tabelle.kompakt th small { display: block; font-weight: 400; color: #666; font-size: 12px; }
.fa-tabelle.kompakt .zelle { font: inherit; font-size: 14px; border: 1px solid transparent; background: transparent; padding: 3px 4px; border-radius: 3px; color: var(--tcg-schwarz); max-width: 220px; }
.fa-tabelle.kompakt .zelle:hover { border-color: var(--tcg-rahmen); }
.fa-tabelle.kompakt .zelle:focus { border-color: var(--tcg-blau); background: #fff; outline: none; }
.fa-tabelle.kompakt tfoot td { border-top: 2px solid var(--tcg-rahmen); padding-top: 6px; }
.fa-tabelle.kompakt tfoot input, .fa-tabelle.kompakt tfoot select { font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; }
.fa-kante.frei .linie { stroke-dasharray: 2 3; }
.fa-ende.frei { fill: var(--fa-ziel); stroke: #003a8c; stroke-width: 2.5; animation: fa-puls 1.6s ease-in-out infinite; }
@keyframes fa-puls { 50% { stroke-width: 5; } }
.fa-flaeche.verschiebbar .fa-el, #faTrimmBild .fa-el { cursor: grab; }
.fa-kosten { width: 80px !important; flex: none !important; text-align: right; }
.fa-kosten-kopf { float: right; margin-right: 34px; font-weight: 400; }
.fa-wert { max-width: 100%; height: auto; font-family: var(--tcg-schrift); }
.fa-wert .achse { stroke: #333; stroke-width: 1.5; } .fa-wert .mitte { stroke: #ccc; stroke-dasharray: 5 5; } .fa-wert .diag { stroke: #999; }
.fa-wert .skala { font-size: 11px; fill: #666; } .fa-wert .achsname { font-size: 12.5px; fill: #333; } .fa-wert .fa-wfeld { font-size: 12px; fill: #888; }
.fa-wpunkt text { font-size: 12px; fill: var(--fa-tinte); }
.fa-wpunkt.q-ziel circle { fill: #1a9a3a; } .fa-wpunkt.q-kosten circle { fill: #ff9900; } .fa-wpunkt.q-funktion circle { fill: #0099ff; } .fa-wpunkt.q-trimmen circle { fill: #e02020; }

/* Ansicht: Funktionsraenge und Balken F/P/C */
.fa-ansicht { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13.5px; margin: 8px 0 0; }
.fa-ansicht label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.fa-balkenlegende { display: inline-flex; align-items: center; gap: 5px; color: #555; font-size: 12.5px; }
.fa-balkenlegende i { display: inline-block; width: 14px; height: 6px; border-radius: 1px; margin-left: 6px; }
.fa-rangmarke { font-weight: 700; fill: #6a3db8; }
.fa-balken .hg { fill: #e8e8e8; }
.fa-balken .b-f, .fa-balkenlegende .b-f { fill: var(--fa-gruen); background: var(--fa-gruen); }
.fa-balken .b-p, .fa-balkenlegende .b-p { fill: var(--fa-schaedlich); background: var(--fa-schaedlich); }
.fa-balken .b-c, .fa-balkenlegende .b-c { fill: #ff9900; background: #ff9900; }

/* Erweiterte Link-Analyse */
.fa-pdot { fill: #fff; stroke: var(--fa-nuetzlich); stroke-width: 1.6; cursor: pointer; } .fa-pdot.abw { fill: var(--fa-nuetzlich); } .fa-pdot:hover { stroke-width: 3; } .fa-kante.k-schaedlich .fa-pdot { stroke: var(--fa-schaedlich); } .fa-kante.k-schaedlich .fa-pdot.abw { fill: var(--fa-schaedlich); }
.fa-vlink { font-size: 13px; text-decoration: none; color: var(--tcg-blau-text); }
.fa-vkopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 12px; max-width: 1100px; }
.fa-vbox { border: 1.4px solid var(--fa-komp-rand); background: var(--fa-komp); border-radius: 4px; padding: 4px 12px; font-weight: 700; }
.fa-vpfeil { color: var(--fa-nuetzlich); font-weight: 700; } .fa-vpfeil.s { color: var(--fa-schaedlich); }
.fa-vraster { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; max-width: 1100px; align-items: start; }
.fa-vlinks { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fa-vpar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border-radius: 4px; padding: 2px; }
.fa-vpar-offen { flex-basis: 100%; font-size: 12.5px; color: #8a5a00; padding-left: 2px; } .fa-vpar.an { background: var(--tcg-blau-hauch); }
.fa-vpar input, .fa-vneu, .fa-vlinks textarea, .fa-blatt input:not([type=range]):not([type=radio]):not([type=checkbox]) { font: inherit; font-size: 14px; padding: 4px 7px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; }
.fa-vpar input { flex: 1; min-width: 0; } .fa-vneu { border-style: dashed; }
.fa-vgrad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px dashed var(--tcg-rahmen); padding-top: 8px; margin-top: 4px; } .fa-vgrad.aus { opacity: .5; }
.fa-vgrad input[type=range] { flex: 1; } .fa-vgrad .fa-skala { flex-basis: 100%; justify-content: space-between; }
.fa-vlinks .fa-notiz { display: flex; flex-direction: column; gap: 3px; }
.fa-blaetter { display: flex; gap: 4px; border-bottom: 1px solid var(--tcg-rahmen); }
.fa-blaetter button { font: inherit; font-size: 14px; border: 1px solid var(--tcg-rahmen); border-bottom: none; background: #f6f6f6; padding: 5px 14px; border-radius: 5px 5px 0 0; cursor: pointer; }
.fa-blaetter button.an { background: #fff; font-weight: 700; color: var(--tcg-blau-text); margin-bottom: -1px; }
.fa-blatt { border: 1px solid var(--tcg-rahmen); border-top: none; padding: 10px 12px; font-size: 14px; }
.fa-vzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0; } .fa-vzeile > span:first-child { min-width: 100px; flex: none; font-weight: 700; }
.fa-vzeile { flex-wrap: nowrap; } .fa-vzeile input[type=range] { flex: 1; min-width: 100px; max-width: 260px; } .fa-vzeile input.kurz { width: 90px; } .fa-vzeile input.breit { flex: 1; min-width: 200px; }
.fa-rwert { min-width: 2.2em; }
.fa-kurven { display: flex; flex-wrap: wrap; gap: 14px; }
.fa-kurve { margin: 0; } .fa-kurve figcaption { font-weight: 700; font-size: 13px; } .fa-kurve svg { width: 300px; height: auto; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; }
.fa-kurve.aus { opacity: .45; }
.fa-kurve .achse { stroke: #333; } .fa-kurve .achsname { font-size: 11px; fill: #555; } .fa-kurve .achsname.leer { fill: #aaa; font-style: italic; }
.fa-kurve polyline { fill: none; stroke: var(--fa-nuetzlich); stroke-width: 2; } .fa-kurve circle { fill: #fff; stroke: var(--fa-nuetzlich); stroke-width: 2; cursor: ns-resize; }
.fa-kurve .abw { stroke: #bcd3f2; stroke-width: 6; stroke-linecap: round; }
@media (max-width: 860px) { .fa-vraster { grid-template-columns: 1fr; } }

/* --- Kreativwerkzeuge: Aufgabenleiste, Prinzipien, Widersprueche ----------- */
.aufgabenleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--tcg-blau-hauch); border: 1px solid var(--tcg-blau); border-radius: 6px; padding: 8px 12px; margin: 0 0 12px; max-width: 1100px; }
.aufgabenleiste-titel { font-weight: 700; color: var(--tcg-titel); }
.aufgabenleiste select { flex: 1; min-width: 240px; font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; }
.prinzipien { display: flex; flex-direction: column; gap: 6px; max-width: 1100px; }
.prinzip { border: 1px solid var(--tcg-rahmen); border-radius: 6px; background: #fff; }
.prinzip summary { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; list-style: none; }
.prinzip summary::-webkit-details-marker { display: none; }
.prinzip summary::before { content: "▸"; color: #666; } .prinzip[open] summary::before { content: "▾"; }
.prinzip-nr { min-width: 26px; text-align: center; font-weight: 700; background: var(--tcg-blau-text); color: #fff; border-radius: 4px; padding: 1px 4px; font-size: 13px; }
.prinzip-name { font-weight: 700; }
.prinzip-inhalt { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 14px; padding: 4px 14px 12px; border-top: 1px solid var(--tcg-rahmen); }
.prinzip-bild { padding-top: 10px; color: var(--tcg-blau-text); }
.prinzip-inhalt h4 { margin: 10px 0 4px; font-size: 13px; color: var(--tcg-titel); text-transform: uppercase; letter-spacing: .04em; }
.teilprinzipien, .beispiele { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.teilprinzipien li, .beispiele li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--tcg-rahmen); }
.teilprinzipien li span, .beispiele li span { flex: 1; }
.beispiele li span { color: #444; font-size: 13.5px; }
.teilprinzipien li .btn, .beispiele li .btn { flex: none; }
.prinzip-symbol { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; color: var(--tcg-blau-text); }
.prinzip-symbol .f { fill: var(--tcg-blau); stroke: var(--tcg-blau-text); }
.prinzipien.klein .prinzip summary { padding: 4px 8px; font-size: 14px; }
.quellen { margin-top: 14px; font-size: 12px; }
.mx-liste { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.mx-aufgabe { margin: 4px 0 10px; }
.mx-tws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; max-width: 1100px; }
.mx-tw { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 8px 12px; background: #fff; }
.mx-tw.gewaehlt { border-color: var(--tcg-blau-text); box-shadow: inset 3px 0 0 var(--tcg-blau-text); }
.mx-tw h4 { margin: 0 0 6px; } .mx-tw p { margin: 6px 0 0; }
.mx-zeile { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; margin: 4px 0; }
.mx-zeile span { font-weight: 700; font-size: 13px; color: var(--tcg-titel); }
.mx-zeile .mx-dann { color: var(--tcg-gruen-text); } .mx-zeile .mx-aber { color: var(--tcg-rot-text); }
.mx-zeile input, .mx-konkret input, .mx-checkliste input { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; }
.mx-konkret { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.mx-konkret .besser { color: var(--tcg-gruen-text); } .mx-konkret .schlechter { color: var(--tcg-rot-text); }
.mx-ansicht { display: inline-flex; }
/* Wie im Matrix Analyzer: Orange markiert die Auswahl (auf der blauen Heatmap das einzige, was sich abhebt). */
.mx-gewaehlt { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 8px; padding: 8px 10px; background: #fff3e0; border: 1px solid #ff9800; border-radius: 4px; font-size: 13px; max-width: 1100px; }
.mx-gewaehlt b.verbessern { color: var(--tcg-gruen-text); } .mx-gewaehlt b.verschlechtern { color: var(--tcg-rot-text); }
.mx-tag { display: inline-flex; align-items: center; gap: 4px; margin: 2px 5px 2px 0; padding: 3px 4px 3px 8px; background: #ff9800; color: #fff; border-radius: 3px; font-size: 12px; }
.mx-tag button { border: none; background: none; color: #fff; cursor: pointer; font-size: 14px; }
.mx-legende { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: 12px; background: #f9f9f9; border-radius: 4px; padding: 8px 10px; margin: 6px 0 10px; }
.mx-legende b { flex-basis: 100%; } .mx-legende span { display: inline-flex; align-items: center; gap: 5px; } .mx-legende i { width: 14px; height: 14px; border: 1px solid #ccc; }
.mx-rahmen { overflow: visible; }
.mx-matrix { border-collapse: collapse; font-size: 11px; table-layout: fixed; }
.mx-matrix th, .mx-matrix td { border: 1px solid #ccc; padding: 4px; text-align: center; vertical-align: middle; height: 32px; box-sizing: border-box; }
.mx-matrix thead tr { height: 60px; }
.mx-matrix th.mx-ecke { width: 180px; min-width: 180px; background: #f0f0f0; font-weight: 400; color: #888; text-align: left; vertical-align: top; }
.mx-matrix th.mx-zkopf { width: 180px; min-width: 180px; max-width: 220px; background: #f0f0f0; text-align: left; font-weight: 400; cursor: pointer; }
.mx-matrix th.mx-spalte { width: 80px; min-width: 80px; max-width: 80px; background: #f0f0f0; font-weight: 400; cursor: pointer; word-break: break-word; white-space: normal; }
.mx-matrix td { width: 80px; min-width: 80px; max-width: 80px; background: #fefefe; word-break: break-word; white-space: normal; }
.mx-matrix th.gewaehlt { background: #ffcc80 !important; border: 2px solid #ff9800 !important; }
.mx-matrix td.treffer { background: #ff9800; color: #fff; border: 2px solid #e65100; font-weight: 700; }
.mx-listen { display: flex; gap: 18px; flex-wrap: wrap; max-width: 1100px; }
.mx-listspalte { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mx-listspalte label { font-weight: 700; } .mx-listspalte label.verbessern { color: var(--tcg-gruen-text); } .mx-listspalte label.verschlechtern { color: var(--tcg-rot-text); }
.mx-listspalte select { width: 100%; padding: 4px; border: 1px solid #ddd; border-radius: 4px; font: inherit; font-size: 14px; background: #fff; }
.mx-listspalte select:focus { outline: none; border-color: var(--tcg-blau); box-shadow: 0 0 0 2px rgba(91, 145, 195, 0.35); }
.mx-listspalte option:checked { background: #ff9800 linear-gradient(#ff9800, #ff9800) !important; color: #fff !important; font-weight: 700; }
.mx-listspalte option.mx-kat { font-weight: 700; color: #333; }
.mx-pwahl-titel { font-weight: 700; margin: 8px 0; }
.mx-pwahl { border-collapse: collapse; margin-bottom: 12px; font-size: 13px; }
.mx-pwahl td { border: 1px solid #ccc; width: 34px; height: 30px; text-align: center; cursor: pointer; }
.mx-pwahl td:hover { background: var(--tcg-blau-hauch); }
.mx-pwahl td.an { background: #ff9800; color: #fff; font-weight: 700; }
.mx-nachbarn { display: block; margin: 0 0 10px; font-size: 14px; }
.mx-heat-rahmen { overflow: visible; }
.mx-heat { border-collapse: collapse; table-layout: fixed; font-size: 10px; }
.mx-heat th, .mx-heat td { border: 1px solid #ccc; text-align: center; vertical-align: middle; box-sizing: border-box; }
.mx-heat.kompakt th, .mx-heat.kompakt td { width: 24.5px; min-width: 24.5px; max-width: 24.5px; height: 24.5px; padding: 0; line-height: 1; font-weight: 400; }
.mx-heat.kompakt th.mx-ecke { font-size: 8px; color: #888; }
.mx-heat:not(.kompakt) th { width: 80px; min-width: 80px; padding: 4px; font-weight: 400; white-space: normal; word-break: break-word; }
.mx-heat:not(.kompakt) tbody th { width: 180px; min-width: 180px; text-align: left; }
.mx-heat:not(.kompakt) td { width: 64px; min-width: 64px; height: 32px; font-weight: 700; }
.mx-heat td { cursor: pointer; }
.mx-heat td.gewaehlt { outline: 3px solid #00c853; outline-offset: -3px; }
.mx-heat-info { margin-top: 10px; padding: 10px; background: #f5f5f5; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.mx-heat-ansicht { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0; font-size: 14px; }
tr.mx-eigen td { background: #e9f8ee; font-weight: 700; }
.prinzip-symbol text { fill: currentColor; stroke: none; font-size: 10px; font-weight: 700; font-family: var(--tcg-schrift); }
@media (max-width: 760px) { .mx-tws { grid-template-columns: 1fr; } }
.mx-satz { display: flex; flex-direction: column; gap: 6px; max-width: 900px; margin-bottom: 8px; }
.mx-satz label { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 8px; }
.mx-satz span { font-weight: 700; color: var(--tcg-titel); }
.mx-satz input, .pw-satz input, .pw-weg textarea, .mx-seiten select { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; background: #fff; }
.mx-seiten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 1100px; }
.mx-seiten .chip { margin: 2px 4px 2px 0; }
.mx-seiten select { display: block; margin-top: 6px; width: 100%; }
.hinweisbox { background: #fff7e6; border: 1px solid #f0c36d; border-radius: 6px; padding: 8px 12px; max-width: 900px; }
.pw-satz { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 10px 12px; max-width: 1100px; background: #fafafa; }
.pw-satz > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0; }
.pw-satz input { flex: 1; min-width: 160px; }
.pw-wort { font-weight: 700; color: var(--tcg-titel); text-transform: uppercase; font-size: 13px; }
.pw-und { font-weight: 700; color: var(--tcg-titel); margin: 6px 0 !important; }
.pw-param { font-style: italic; }
.pw-wege { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; max-width: 1100px; }
.pw-weg { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 8px 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.pw-weg-kopf { display: flex; align-items: center; gap: 8px; }
.pw-weg .leise { margin: 0; }
.pw-weg textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 760px) { .mx-seiten { grid-template-columns: 1fr; } }

/* --- Effekte ------------------------------------------------------------------ */
.ef-zwei { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.ef-rahmen { overflow: visible; }
.ef-raster { border-collapse: collapse; font-size: 13px; }
.ef-raster th, .ef-raster td { border: 1px solid var(--tcg-rahmen); padding: 3px 8px; }
.ef-raster thead th { background: var(--tcg-rahmen); color: var(--tcg-titel); font-size: 12px; position: sticky; top: 0; }
.ef-raster tbody th { text-align: left; font-weight: 400; white-space: nowrap; }
.ef-raster tr.ef-gruppe th { background: #f4f4f4; color: var(--tcg-titel); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ef-raster td { width: 44px; text-align: center; cursor: pointer; color: #999; }
.ef-raster td.voll { background: var(--tcg-blau-hauch); color: var(--tcg-blau-text); font-weight: 700; }
.ef-raster td:hover, .ef-raster td.offen { outline: 2px solid var(--tcg-blau-text); outline-offset: -2px; }
.ef-zelle { position: sticky; top: 0; }
.ef-zelle-kopf { display: flex; justify-content: space-between; align-items: center; } .ef-zelle-kopf h3 { margin: 0 !important; }
.ef-karte { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 8px 12px; margin: 8px 0; background: #fff; font-size: 14px; max-width: 900px; }
.ef-karte p { margin: 4px 0; }
.ef-karte-kopf { display: flex; align-items: baseline; gap: 10px; }
.ef-art { font-size: 12px; color: #666; }
.ef-auch .chip, .ef-zelle .chip { border: none; font: inherit; font-size: 12.5px; cursor: pointer; padding: 2px 8px; margin: 2px 2px; }
.ef-auch .chip:hover, .ef-zelle .chip:hover { background: var(--tcg-blau); color: #fff; }
.ef-in { font-size: 12px; color: var(--tcg-blau-text); }
.ef-zelle .chip button { border: none; background: none; cursor: pointer; color: #666; }
.ef-quellen { font-size: 12px; color: #666; word-break: break-all; }
.ef-extern { margin: 0 0 12px; padding: 8px 10px; background: #f6f6f6; border-radius: 6px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
@media (max-width: 1100px) { .ef-zwei { grid-template-columns: 1fr; } .ef-zelle { position: static; } }

/* --- Standardloesungen (nach triz-standard-solutions) ------------------------- */
.st-block { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 10px 12px; margin: 0 0 12px; background: #fff; }
.st-block h3 { margin: 0 0 8px !important; display: flex; align-items: center; gap: 6px; }
.st-block textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--tcg-rahmen); border-radius: 4px; resize: vertical; }
.st-arbeit { display: grid; grid-template-columns: minmax(300px, 2fr) 3fr; gap: 12px; align-items: start; }
.st-element { display: grid; grid-template-columns: 34px minmax(90px, 1fr) auto 118px 24px; gap: 7px; align-items: center; padding: 3px 0; }
.st-element input, .st-element select { width: 100%; padding: 5px 8px; border: 1px solid #ddd; border-radius: 4px; font: inherit; font-size: 13.5px; background: #fff; box-sizing: border-box; }
.st-symbol, .st-marke { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 700; flex: none; }
.st-symbol.stoff, .st-marke.stoff, .st-knoten.stoff { background: #ED7D31; }
.st-symbol.feld, .st-marke.feld, .st-knoten.feld { background: #5B9BD5; }
.st-marke.geist { position: fixed; transform: translate(-50%, -50%); pointer-events: none; z-index: 60; opacity: .85; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.st-segment { display: flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.st-segment button { padding: 5px 10px; border: none; background: #fff; color: #555; font: inherit; font-size: 12.5px; cursor: pointer; }
.st-segment button.an { background: var(--tcg-blau-text); color: #fff; font-weight: 700; }
.st-buehne { display: grid; grid-template-columns: 128px 1fr; gap: 12px; }
.st-palette { border-right: 1px solid #eee; padding-right: 10px; }
.st-palette-titel { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #999; font-weight: 700; }
.st-palette-eintrag { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; cursor: grab; touch-action: none; font-size: 12.5px; color: #555; }
.st-flaeche { position: relative; min-height: 260px; border: 1px dashed #ddd; border-radius: 6px; background: #fcfcfc; overflow: hidden; }
.st-flaeche.heiss { border-color: var(--tcg-blau-text); background: #f5faff; }
.st-flaeche-leer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: #bbb; font-size: 13.5px; pointer-events: none; }
.st-flaeche-hinweise { position: absolute; left: 8px; right: 8px; bottom: 5px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: #aaa; pointer-events: none; }
.st-flaeche-hinweise .rechts { margin-left: auto; }
.st-draehte { position: absolute; left: 0; top: 0; }
.st-treffer { cursor: pointer; pointer-events: stroke; }
.st-griff { fill: #fff; stroke: #41719C; stroke-width: 2; cursor: grab; } .st-griff.gebunden { fill: #41719C; }
.band { pointer-events: none; }
.st-knoten { position: absolute; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; cursor: grab; touch-action: none; user-select: none; z-index: 2; }
.st-knoten-symbol { font-size: 13px; font-weight: 700; }
.st-knoten-name { position: absolute; top: 64px; color: #555; font-size: 11.5px; white-space: nowrap; }
.st-knoten-weg { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(0,0,0,.28); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; padding: 0; }
.st-knoten-weg:hover { background: #FF3B30; }
.st-spalten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 4px; }
.st-spalte, .st-ergebnisblock { border: 1px solid var(--tcg-rahmen); border-radius: 6px; overflow: hidden; background: #fff; }
.st-spalte h4, .st-ergebnisblock h4 { margin: 0; padding: 9px 12px; background: var(--tcg-rahmen); color: var(--tcg-titel); font-size: 14px; }
.st-spalte-inhalt { padding: 10px; max-height: 46vh; overflow-y: auto; }
.st-karte { border-radius: 6px; padding: 10px; margin-bottom: 8px; cursor: pointer; font-weight: 600; font-size: 14px; border: 2px solid #ccc; background: #fff; transition: opacity .15s; }
.st-karte:hover { background: #f7f7f7; } .st-karte.gedimmt { opacity: .3; }
.st-nr { font-weight: 700; color: var(--tcg-titel); font-size: 13px; }
.st-meta { font-weight: 400; color: #777; font-size: 12px; margin-top: 4px; }
.st-ablauf { margin-top: 12px; font-size: 11.5px; color: #888; font-style: italic; }
.st-notiz { color: #888; font-size: 13px; }
.st-kartenbild { margin: 8px 0 0; border: 1px solid #e6e6e6; border-radius: 3px; overflow: hidden; }
.st-kartenbild img, .st-loesungsbild img { display: block; width: 100%; height: auto; cursor: zoom-in; user-select: none; }
.st-kartenbild.sf, .st-loesungsbild.sf { border: none; }
.st-kartenbild.sf img, .st-loesungsbild.sf img { width: 75%; aspect-ratio: 2 / 1; object-fit: contain; margin: 0 auto; }
.st-hinweis { font-size: 12.5px; color: #555; margin-bottom: 10px; }
.st-abzeichen { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--tcg-blau-text); color: #fff; font-size: 10.5px; font-weight: 700; }
details.st-hilfsgruppe { margin-bottom: 10px; } details.st-hilfsgruppe > summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: #555; }
details.st-hilfsgruppe.empfohlen > summary { color: var(--tcg-titel); }
.st-hilfe { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; padding: 5px 8px; margin: 4px 0; border: 1px solid #ccc; border-left-width: 3px; border-radius: 4px; cursor: pointer; }
.st-hilfe.gewaehlt { background: var(--tcg-blau-hauch); font-weight: 700; }
.st-hilfsgruppe h4 { font-size: 13.5px; margin: 0 0 6px; }
.st-hilfe-einfach { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13.5px; }
.st-ergebnis { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; margin-top: 16px; align-items: start; }
.st-ergebnis-inhalt { padding: 14px; max-height: 40vh; overflow-y: auto; font-size: 14px; }
.st-loesung-kopf { border-left: 4px solid #ccc; padding-left: 10px; margin-bottom: 10px; }
.st-pfad { font-size: 12px; color: #777; }
.st-loesung-titel { font-size: 15px; font-weight: 700; color: var(--tcg-titel); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-spalten2 { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.st-textspalte { flex: 1 1 260px; min-width: 0; }
.st-text { margin: 0 0 8px; }
.st-satz { margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.st-loesungsbild { flex: 0 1 340px; margin: 0; border: 1px solid #e6e6e6; border-radius: 4px; overflow: hidden; }
.st-loesungsbild.klein { flex-basis: 240px; margin-top: 8px; }
.st-variante, .st-hilfsblock { border-top: 1px solid #e6e6e6; margin-top: 12px; padding-top: 10px; }
.st-variante-titel { font-weight: 700; color: var(--tcg-titel); margin-bottom: 4px; }
.st-unterkopf { font-size: 13.5px; color: var(--tcg-titel); margin: 12px 0 6px; }
.st-notizen, .st-beispiele { margin: 0; padding-left: 18px; } .st-notizen li, .st-beispiele li { margin-bottom: 5px; }
.st-notation { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #555; }
.st-ideen { margin-top: 14px; }
.st-ideen-knoepfe { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
dialog.st-lupe { border: none; border-radius: 8px; padding: 12px; max-width: 92vw; max-height: 92vh; text-align: right; }
dialog.st-lupe img { display: block; max-width: 88vw; max-height: 80vh; margin-bottom: 8px; }
dialog.st-lupe::backdrop { background: rgba(0,0,0,.45); }
@media (max-width: 1000px) { .st-arbeit, .st-ergebnis { grid-template-columns: 1fr; } .st-spalten { grid-template-columns: 1fr 1fr; } }

@media print {
  .app-header, .navigation, .nicht-drucken, .ideenfenster, dialog { display: none !important; }
  html, body { height: auto; display: block; padding: 0; }
  .aufbau { display: block; border: none; }
  #arbeit { overflow: visible; padding: 0; }
  .bericht { max-width: none; }
  .baustein { border-left: none; padding-left: 0; }
}

/* --- Ursache-Wirkungs-Analyse (aus triz-ceca) ------------------------------ */
.ce-leiste .ce-luecke { width: 18px; }
.ce-leiste .btn.aktiv { background: var(--tcg-blau-text); border-color: var(--tcg-blau-text); color: #fff; }
.ce-anleitung { font-size: 12px; color: #5a6478; margin: 0 0 8px; max-width: 1100px; }
.flaeche-rahmen { position: relative; }
.flaeche-rahmen:fullscreen { background: #fff; padding: 6px; }
.flaeche-behaelter { background: #fafbfd; border: 1px solid var(--tcg-rahmen); border-radius: 8px; overflow: auto; height: 480px; }
.flaeche { display: block; }
.flaeche-behaelter.schiebebereit, .flaeche-behaelter.schiebebereit * { cursor: grab !important; }
.flaeche-behaelter.schiebt, .flaeche-behaelter.schiebt * { cursor: grabbing !important; }
.ansicht-leiste { position: absolute; top: 8px; right: 22px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; align-items: center;
  max-width: calc(100% - 40px); background: rgba(255,255,255,.94); border: 1px solid var(--tcg-rahmen); border-radius: 7px; padding: 4px; box-shadow: 0 2px 8px rgba(20,26,36,.08); }
.ansicht-leiste .zoomwert { min-width: 58px; }
.ansicht-leiste .btn.an { background: var(--tcg-blau-text); border-color: var(--tcg-blau-text); color: #fff; }
.uebersicht { position: absolute; right: 22px; bottom: 22px; z-index: 5; width: 230px; height: 160px; background: #fff; border: 1px solid #c8cfda;
  border-radius: 7px; box-shadow: 0 4px 14px rgba(20,26,36,.14); overflow: hidden; cursor: pointer; }
.knoten .koerper { cursor: move; }
.knoten:hover .koerper { filter: brightness(.975); }
.randgriff { cursor: crosshair; }
.knoten:hover .randgriff { stroke: rgba(26, 111, 212, .22); }
.kante-greifer { cursor: pointer; }
.endgriff { cursor: grab; }
.endgriff:hover { fill: #c0392b; }
.kante-weg { cursor: pointer; }
.kante-weg:hover circle { fill: #fdeeee; }
.ce-menue { position: fixed; z-index: 60; background: #fff; border: 1px solid #c8cfda; border-radius: 7px; box-shadow: 0 6px 20px rgba(20,26,36,.16); padding: 5px; min-width: 210px; max-width: 340px; }
.ce-menue .menue-kopf { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8a94a6; padding: 7px 9px 3px; }
.ce-menue .menue-eintrag { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; padding: 6px 9px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; color: inherit; }
.ce-menue .menue-eintrag:hover { background: var(--tcg-blau-hauch); }
.ce-menue .menue-eintrag.aktiv { background: var(--tcg-blau-hauch); font-weight: 600; }
.ce-menue .menue-eintrag.gefahr { color: #b02a2a; }
.ce-menue .menue-eintrag.gefahr:hover { background: #fdeeee; }
.ce-menue .menue-gesperrt { font-size: 12px; color: #8a7000; padding: 6px 9px; line-height: 1.4; }
.ce-editor { position: fixed; z-index: 40; font: inherit; font-size: 13px; text-align: center; border: 2px solid var(--tcg-blau-text); border-radius: 7px; padding: 6px; resize: none; box-sizing: border-box; background: #fff; }
dialog.ce-fenster { width: min(760px, 92vw); }
.ce-aufgabe { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 7px 9px; margin-bottom: 6px; background: #fbfcfe; }
.ce-aufgabe.schluessel { border-color: var(--tcg-blau-text); background: var(--tcg-blau-hauch); }
.ce-aufgabe textarea, .ce-feld textarea, .ce-textausgabe { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--tcg-rahmen); border-radius: 5px; resize: vertical; }
.ce-textausgabe { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.45; }
.ce-herkunft { font-size: 11.5px; color: #8a94a6; margin-top: 3px; }
.ce-fuss { display: flex; gap: 10px; align-items: center; margin-top: 5px; font-size: 12px; }
.ce-feld { display: block; margin: 10px 0; }
.ce-feld > span { display: block; font-size: 12px; color: #5a6478; margin-bottom: 4px; }
.ce-fa-liste { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.ce-fa-zeile { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--tcg-rahmen); }
.ce-fa-art { font-size: 12px; }
.ce-fa-schaedlich { color: #c0392b; }
.ce-fa-ungenuegend, .ce-fa-uebermaessig { color: #1a6fd4; }
.ce-bericht-baum svg { width: 100%; height: auto; max-height: 180mm; display: block; }
#druckansicht { display: none; }
@media print {
  body.ce-druck > *:not(#druckansicht) { display: none !important; }
  #druckansicht { display: block; color: #222; font-size: 10.5pt; }
  #druckansicht h1 { font-size: 15pt; margin: 0 0 2mm; }
  #druckansicht .druck-stand { color: #5a6478; margin: 0 0 4mm; font-size: 9pt; }
  #druckansicht .druck-baum svg { width: 100%; height: auto; display: block; }
  #druckansicht .druck-legende { display: flex; flex-wrap: wrap; gap: 4mm; margin-top: 3mm; font-size: 8.5pt; color: #5a6478; }
  #druckansicht .druck-art { display: inline-flex; align-items: center; gap: 1.5mm; }
  #druckansicht .druck-farbe { display: inline-block; width: 4mm; height: 3mm; border: 1px solid #9aa4b4; border-radius: 1mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #druckansicht .druck-aufgaben { break-before: page; }
  #druckansicht h2 { font-size: 13pt; margin: 0 0 3mm; }
  #druckansicht h3 { font-size: 11pt; margin: 4mm 0 2mm; }
  #druckansicht ol { margin: 0; padding-left: 6mm; }
  #druckansicht li { margin-bottom: 2.5mm; break-inside: avoid; }
  #druckansicht .druck-aus { color: #5a6478; font-size: 9pt; }
  #druckansicht svg *, .ce-bericht-baum svg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ce-menue, .ce-editor { display: none !important; }
}

/* --- Prozessanalyse ------------------------------------------------------- */
:root { --pz-produktiv: #0050c8; --pz-bereitstellend: #1a9a3a; --pz-korrigierend: #b06a00; --pz-schaedlich: #e02020; }
.pz-svg { display: block; font-family: var(--tcg-schrift); font-size: 13px; user-select: none; -webkit-user-select: none; }
.pz-op .form { fill: #eef5fd; stroke: #0066cc; stroke-width: 1.4; }
.pz-flaeche:not(.nur-lesen) .pz-op, #pzTrimmBild .pz-op, #pzVBild .pz-op { cursor: grab; }
.pz-op .nr { font-size: 11px; fill: #555; }
.pz-op .name { font-weight: 700; fill: var(--fa-tinte); }
.pz-op .trenn { stroke: #b9d3ee; }
.pz-op.gewaehlt .form { stroke: #003a8c; stroke-width: 3; }
.pz-op.getrimmt .form { fill: #e4e4e4; stroke: #9a9a9a; stroke-dasharray: 5 4; }
.pz-op.getrimmt text { fill: #8a8a8a; }
.pz-op.getrimmt .name { text-decoration: line-through; }
.pz-op.neu .form { stroke: var(--fa-gruen); stroke-width: 3; }
.pz-fn { font-size: 12.5px; }
.pz-fn.a-produktiv, .a-produktiv { fill: var(--pz-produktiv); color: var(--pz-produktiv); }
.pz-fn.a-bereitstellend, .a-bereitstellend { fill: var(--pz-bereitstellend); color: var(--pz-bereitstellend); }
.pz-fn.a-korrigierend, .a-korrigierend { fill: var(--pz-korrigierend); color: var(--pz-korrigierend); }
.pz-fn.a-schaedlich, .a-schaedlich { fill: var(--pz-schaedlich); color: var(--pz-schaedlich); }
.pz-fn.getrimmt { fill: #9a9a9a; text-decoration: line-through; }
.pz-fn.verschoben { font-weight: 700; text-decoration: underline; }
.pz-fn.waehlbar, .pz-ltabelle .pz-waehlen, #pzLBild .pz-fn { cursor: pointer; }
.pz-fn.blass { opacity: .35; } .pz-fn.heiss { font-weight: 700; }
.pz-leer { font-size: 12px; fill: #999; font-style: italic; }
.pz-folge .linie { stroke: #445; stroke-width: 1.6; } .pz-folge .treffer { stroke: transparent; stroke-width: 14; cursor: pointer; }
.pz-folge.gewaehlt .linie { stroke: #c0392b; stroke-width: 2.4; } .pz-folge.getrimmt .linie { stroke: #bbb; stroke-dasharray: 5 4; }
.pz-svg .s-folge { fill: #445; } .pz-svg .s-rot { fill: #c0392b; }
.pz-svg .s-produktiv { fill: var(--pz-produktiv); } .pz-svg .s-bereitstellend { fill: var(--pz-bereitstellend); } .pz-svg .s-korrigierend { fill: var(--pz-korrigierend); }
.pz-link { fill: none; stroke-width: 1.4; pointer-events: stroke; }
.pz-link.a-produktiv { stroke: var(--pz-produktiv); } .pz-link.a-bereitstellend { stroke: var(--pz-bereitstellend); } .pz-link.a-korrigierend { stroke: var(--pz-korrigierend); }
.pz-link.aus { stroke-width: 2.8; } .pz-link.ein { stroke-width: 2; stroke-dasharray: 6 4; } .pz-link.blass { opacity: .15; }
.pz-griff { cursor: crosshair; } .pz-griff circle { fill: #003a8c; } .pz-griff text { fill: #fff; font-weight: 700; pointer-events: none; }
.pz-hilfslinie { stroke: #003a8c; stroke-width: 1.6; stroke-dasharray: 5 4; pointer-events: none; }
.pz-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin: 6px 0; align-items: center; }
.pz-lg { display: inline-block; width: 18px; height: 12px; margin-right: 5px; vertical-align: -1px; border: 1.4px solid #0066cc; background: #eef5fd; border-radius: 2px; }
.pz-lg.getrimmt { background: #e4e4e4; border: 1.4px dashed #9a9a9a; }
.pz-lgf.getrimmt { color: #9a9a9a; text-decoration: line-through; } .pz-lgf.verschoben { font-weight: 700; text-decoration: underline; }
.pz-tafel { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 6px; max-width: 980px; }
.pz-tafel label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.pz-tafel #pzOpName { width: 220px; } .pz-tafel #pzOpKosten { width: 90px; }
.pz-funktionen { max-width: 980px; } .pz-funktionen input:not([type=range]) { width: 100%; }
.pz-grad { white-space: nowrap; } .pz-grad input { width: 110px; vertical-align: middle; } .pz-grad span { font-size: 12.5px; margin-left: 6px; display: inline-block; min-width: 90px; }
.pz-ltabelle { max-width: 1100px; } .pz-ltabelle .pz-waehlen.heiss { font-weight: 700; background: var(--tcg-blau-hauch); }
.pz-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--tcg-rahmen); border-radius: 999px; padding: 1px 4px 1px 9px; margin: 2px 4px 2px 0; font-size: 12.5px; }
.pz-chip button { border: 0; background: none; cursor: pointer; color: #888; font-size: 14px; } .pz-chip button:hover { color: var(--tcg-rot-text); }

/* --- Feature Transfer ------------------------------------------------------ */
.ft-parameter { max-width: 760px; } .ft-parameter input:not([type=number]) { width: 100%; } .ft-parameter input[type=number] { width: 70px; }
.ft-rahmen { overflow-x: auto; max-width: 100%; }
.ft-objekte th small { display: block; font-weight: 400; color: #666; font-size: 11.5px; }
.ft-objekte input:not([type=radio]) { width: 100%; min-width: 70px; } .ft-objekte td:nth-child(2) input { min-width: 160px; }
.ft-objekte tr.ft-gewaehlt td { background: var(--tcg-blau-hauch); }
.ft-diagnose { margin: 4px 0 12px; padding-left: 20px; max-width: 900px; } .ft-diagnose li { margin: 4px 0; }
.ft-wahl { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; }
.ft-wahl label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.ft-wahl b { font-size: 15px; padding: 4px 0; }
.ft-assistent { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.ft-assistent label { display: flex; flex-direction: column; gap: 4px; }
.ft-assistent small { color: #666; font-size: 12.5px; }
.ft-konzept { background: var(--tcg-blau-hauch); border-radius: 6px; padding: 10px 12px; max-width: 900px; }
.ft-notiz { display: flex; flex-direction: column; gap: 4px; max-width: 900px; font-weight: 700; font-size: 13px; }
.ft-notiz textarea { font: inherit; font-weight: 400; padding: 6px 8px; }

/* --- Aufgabenliste: Sprungleiste und zuklappbare Gruppen --------------------- */
.aufgaben-sprung { position: sticky; top: -16px; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: #fff;
  padding: 8px 0; margin: 0 0 6px; border-bottom: 1px solid var(--tcg-rahmen); font-size: 13.5px; }
.aufgaben-sprung a { color: var(--tcg-schwarz); text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.aufgaben-sprung a:hover { color: var(--tcg-blau-text); text-decoration: underline; }
.aufgaben-sprung .nav-zahl { margin-left: 0; background: #fbe3c4; color: #8a4b00; font-weight: 700; }
.aufgaben-sprung input[type=search] { width: 200px; }
.aufgaben-gruppe { scroll-margin-top: 56px; }
.gruppen-kopf { cursor: pointer; user-select: none; }
.gruppen-kopf .pfeil { display: inline-block; width: 14px; color: var(--tcg-blau-text); }
.gruppen-kopf:hover { color: var(--tcg-blau-text); }

/* --- Lizenz ------------------------------------------------------------------ */
.lizenz-stand { margin-left: 10px; font-size: 12px; padding: 1px 8px; border-radius: 999px; text-decoration: none; border: 1px solid var(--tcg-rahmen); color: var(--tcg-schwarz); }
.lizenz-stand.art-voll { border-color: var(--tcg-gruen-text); color: var(--tcg-gruen-text); }
.lizenz-sperre, .lizenz-hinweis { background: #fdf1e2; border-left: 3px solid #c77700; padding: 8px 12px; border-radius: 4px; font-size: 14px; max-width: 980px; }
#arbeit.gesperrt input:disabled, #arbeit.gesperrt textarea:disabled, #arbeit.gesperrt select:disabled { opacity: .7; }
.aufgabe.gesperrt-frei { opacity: .55; }
.aufgabe.gesperrt-frei .aufgabe-fuss { gap: 6px; }
.lizenz-anmelden { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.lizenz-anmelden label, .lizenz-schluessel { display: flex; flex-direction: column; gap: 3px; font-size: 13px; flex: 1; }
.lizenz-schluessel textarea { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; width: 100%; box-sizing: border-box; }
.fenster-knoepfe.links { text-align: left; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lizenz-rueckfall { margin-top: 10px; font-size: 13px; } .lizenz-rueckfall summary { cursor: pointer; color: #555; }
.lizenz-stand.art-warnung { border-color: #c77700; color: #8a5300; background: #fdf1e2; }
.lizenz-warnung { margin-bottom: 12px; }
dialog.fenster .fenster-kopf { position: sticky; top: -18px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -18px -22px 6px; padding: 14px 22px 8px; background: #fff; border-bottom: 1px solid var(--tcg-rahmen); }
dialog.fenster .fenster-kopf h2 { margin: 0; }
.fenster-x { border: none; background: none; font-size: 26px; line-height: 1; padding: 2px 8px; border-radius: 6px; cursor: pointer; color: #555; }
.fenster-x:hover, .fenster-x:focus-visible { background: #eee; color: var(--tcg-schwarz); }
.sicherung-mehr summary { cursor: pointer; color: #555; font-size: 13px; padding: 6px 0; }
.bsp-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 2px 0 6px; }
.bsp-karte { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--tcg-rahmen); border-radius: 6px; background: #fff; overflow: hidden; }
.bsp-bild { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-bottom: 1px solid var(--tcg-rahmen); }
.bsp-karte figcaption { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 7px 9px 4px; font-size: 13px; line-height: 1.4; color: #333; }
.bsp-nachweis { font-size: 10.5px; color: #777; }
.bsp-fuss { padding: 0 9px 8px; }
.bsp-karte.ohne-bild figcaption { padding-top: 10px; }
.update-hinweis { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 6px 16px; background: #e8f1fb; border-bottom: 1px solid var(--tcg-rahmen); font-size: 14px; }
.update-hinweis span { flex: 1; }
.update-hinweis .fenster-x { font-size: 20px; }
.update-schalter { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 6px 0 2px; }
dialog.bedingungen { width: min(760px, 94vw); }
dialog.bedingungen h3 { margin-top: 18px; }
dialog.bedingungen p, dialog.bedingungen li { font-size: 14px; line-height: 1.5; }
dialog.bedingungen ul { padding-left: 20px; }
.pz-empfehlung { min-width: 130px; }
.pz-empfehlung .btn { margin-top: 3px; }
.pz-feld { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 999px; margin: 0 6px 2px 0; border: 1px solid var(--tcg-rahmen); white-space: nowrap; }
.pz-feld.q-ziel { color: var(--tcg-gruen-text); border-color: var(--tcg-gruen-text); }
.pz-feld.q-trimmen { color: var(--tcg-rot-text); border-color: var(--tcg-rot-text); }
.pz-feld.q-kosten, .pz-feld.q-kostenProbleme, .pz-feld.q-probleme { color: #8a5300; border-color: #c77700; }
.pz-feld.q-funktion { color: var(--tcg-blau-text); border-color: var(--tcg-blau-text); }
.pz-wa-da { font-size: 12px; color: #555; }

/* KI-Hilfe: schwebt ueber der Seite, ohne sie zu sperren - man soll sehen, was
   schon im Modell steht. Die Kopfzeile ist der Griff zum Verschieben. */
.ki-fenster { position: fixed; top: 140px; right: 24px; z-index: 60; width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 160px); display: flex; flex-direction: column; background: #fff; font-family: var(--tcg-schrift); color: var(--tcg-schwarz);
  border: 1px solid #d5dbe5; border-radius: 10px; box-shadow: 0 8px 28px rgba(20, 26, 36, .28); }
.ki-fenster[hidden] { display: none; }
.ki-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid #eef1f6; cursor: move; user-select: none; -webkit-user-select: none; }
.ki-kopf h2 { font-size: 16px; margin: 0; }
.ki-kopf button { cursor: pointer; }
.ki-koerper { padding: 8px 14px 14px; overflow-y: auto; }
.ki-punkt { margin: 4px 0 10px; }
.ki-kontingent { font-size: 12px; color: #5a6478; margin: 8px 0 0; }
.ki-kontingent.leer { color: #c0392b; }
.ki-meldung { font-size: 13px; color: #34495e; background: #f3f6fb; border-radius: 6px; padding: 8px 10px; margin: 10px 0; }
.ki-vorschlag { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid #eef1f6; cursor: pointer; }
.ki-vorschlag input { margin-top: 3px; flex: none; }
.ki-feld { display: inline-block; font-size: 11px; font-weight: 600; color: #1a6fd4; background: #e8f0fb; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.ki-feld.ki-vorhanden { color: #2e7d32; background: #e6f4e7; }
.ki-text { font-size: 13.5px; }
.ki-warum { font-size: 12px; color: #5a6478; margin-top: 3px; line-height: 1.4; }
.ki-pfeil { color: #2e7d32; }
.ki-kopie { width: 100%; box-sizing: border-box; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; margin-top: 4px; }
.ki-datenschutz { font-size: 11px; color: #8a94a6; margin: 14px 0 0; line-height: 1.4; }
@media print { .ki-fenster { display: none !important; } }
.ki-feld.ki-stufe-near { color: #2e7d32; background: #e6f4e7; }
.ki-feld.ki-stufe-bold { color: #8a5300; background: #fdf0dc; }
.ki-feld.ki-stufe-wild { color: #8e24aa; background: #f5e6f8; }
.ki-feld.ki-seite-verbessern { color: #1a6fd4; background: #e8f0fb; }
.ki-feld.ki-seite-verschlechtern { color: #c0392b; background: #fbe9e7; }

/* Trends der Technikevolution */
.tr-icon { flex: none; vertical-align: middle; }
.tr-problem { border: 1px solid var(--tcg-rahmen); border-radius: 8px; padding: 10px 14px; margin: 10px 0 14px; background: #f8fafc; }
.tr-problem-kopf { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.tr-feld { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #555; flex: 1; min-width: 150px; }
.tr-feld input { font-size: 14px; }
.tr-feld-ziel { margin-bottom: 6px; }
.tr-kette { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.tr-pfeil { padding-bottom: 6px; color: #8a94a6; }
.tr-wert { color: var(--tcg-blau-text, #1a6fd4); }
.tr-platz { color: #8a94a6; font-style: italic; }
.tr-wahl { display: inline-flex; align-items: center; gap: 4px; border: none; border-bottom: 1px dashed #1a6fd4; background: #eef4fc; color: #1a5fb4; padding: 0 4px; border-radius: 3px; font: inherit; cursor: pointer; }
.tr-wahl.gesetzt { background: #e6f4e7; border-bottom-color: #2e7d32; color: #22602a; }
.tr-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.tr-karte { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--tcg-rahmen); border-radius: 8px; padding: 12px; color: inherit; text-decoration: none; background: #fff; }
.tr-karte:hover { border-color: #1a6fd4; box-shadow: 0 2px 8px rgba(26, 111, 212, .12); }
.tr-karte p { margin: 0; font-size: 13px; color: #444; }
.tr-nr { font-size: 12px; font-weight: 700; color: #1a6fd4; }
.tr-karten-icons { display: flex; gap: 4px; }
.tr-blaettern { font-size: 13px; }
.tr-kurz { font-size: 15px; }
.tr-untertrend { margin: 20px 0 8px; }
.tr-untertrend h3 { margin-bottom: 4px; }
.tr-band { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 10px; }
.tr-band-stufe { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; max-width: 110px; padding: 4px 6px; border: 1px solid var(--tcg-rahmen); border-radius: 6px; background: #fff; font-size: 11.5px; line-height: 1.2; text-align: center; cursor: pointer; }
.tr-band-stufe.vorbei { opacity: .5; }
.tr-band-stufe.heute { border-color: #2e7d32; background: #e6f4e7; font-weight: 600; }
.tr-band-nr { font-weight: 700; color: #1a6fd4; }
.tr-band-pfeil { color: #8a94a6; }
.tr-stufen { list-style: none; padding: 0; margin: 0; }
.tr-stufe { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid #eef1f6; }
.tr-stufe.vorbei { opacity: .55; }
.tr-stufe.heute { background: #f2f9f2; }
.tr-stufe.naechste { background: #fff7e6; border-left: 3px solid #f0a030; }
.tr-stufe-nr { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #e8f0fb; color: #1a6fd4; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tr-stufe-text { flex: 1; }
.tr-stufe-name { font-weight: 600; font-size: 14px; }
.tr-marke { margin-left: 8px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #fdf0dc; color: #8a5300; }
.tr-stufe.heute .tr-marke { background: #e6f4e7; color: #22602a; }
.tr-rat { font-size: 14px; line-height: 1.5; margin-top: 2px; }
.tr-stufe-knoepfe { display: flex; gap: 6px; flex: none; }
.tr-pop { position: fixed; z-index: 70; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid #d5dbe5; border-radius: 10px; box-shadow: 0 8px 28px rgba(20, 26, 36, .28); padding: 10px 14px; }
.tr-pop[hidden] { display: none; }
.tr-pop-kopf { display: flex; justify-content: space-between; align-items: center; }
.tr-optionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.tr-option { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 8px; border: 1px solid #e3e8ef; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; line-height: 1.25; text-align: left; }
/* Lange Namen ("elektro-/magnetorheologische Fluessigkeit") brechen im Knopf um, statt ueber den Rand zu laufen. */
.tr-option > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
button.tr-option { cursor: pointer; }
button.tr-option:hover, .tr-form:hover { border-color: #1a6fd4; }
.tr-option.an, .tr-form.an { border-color: #2e7d32; background: #e6f4e7; }
.tr-felder { display: flex; flex-direction: column; gap: 6px; }
.tr-feldgruppe { display: flex; gap: 8px; align-items: center; padding: 3px 0; border-bottom: 1px solid #f0f2f6; }
.tr-feldgruppe > .tr-option { flex: none; width: 170px; }
.tr-formen { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 560px) { .tr-feldgruppe { flex-wrap: wrap; } }
.tr-form { font: inherit; font-size: 12px; padding: 2px 8px; border: 1px solid #e3e8ef; border-radius: 999px; background: #f8fafc; }
button.tr-form { cursor: pointer; }
.tr-tafel { margin: 16px 0 22px; }
@media print { .tr-stufe-knoepfe, .tr-problem input { display: none; } }
.tr-karte-kopf { display: flex; gap: 10px; align-items: center; }
.tr-karte-kopf > div { display: flex; flex-direction: column; }
.tr-stufe-bild { flex: none; width: 40px; display: inline-flex; justify-content: center; }
.tr-band-stufe .tr-icon { margin-bottom: 1px; }
.tr-reiter { margin: 6px 0; flex-wrap: wrap; }
.tr-reiter button { font-size: 12px; }
span.tr-band-stufe { cursor: default; }

/* === Mobile Bedienung und ruhigere Oberflaeche - Beitrag von Anil Singh (November 2026) ===
   Reine Zusatzschicht: ueberschreibt nur Darstellung, keine Programmlogik. */
:root { --kopf-h: 56px; --schatten: 0 1px 2px rgba(26,23,27,.06), 0 2px 10px rgba(26,23,27,.05); }
html { -webkit-text-size-adjust: 100%; }
body { height: 100vh; height: 100dvh; -webkit-tap-highlight-color: transparent; }
#arbeit:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tcg-blau-text); outline-offset: 2px; border-radius: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--tcg-blau-text); color: #fff; padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.skip-link:focus { left: 8px; }
* { scrollbar-width: thin; scrollbar-color: #c9ced4 transparent; }

/* Kopf */
.app-header { border-bottom: 1px solid var(--tcg-rahmen); padding-bottom: 8px; margin-bottom: 0; }
.app-header .page-header { align-items: center; gap: 8px 16px; }
.app-header .app-subtitle { margin-bottom: 0; }
.app-header .page-tools { gap: 12px; }
.tools-panel { display: contents; }
.quick { display: flex; gap: 6px; align-items: center; }
.aktueller-titel { display: none; }
.icon-btn { display: none; width: 42px; height: 42px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--tcg-rahmen); background: #fff; color: var(--tcg-blau-text); border-radius: 10px; cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--tcg-blau-hauch); }
.nav-scrim { display: none; }

/* Knoepfe */
.btn { border-radius: 8px; min-height: 34px; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
#btnSpeichern { background: var(--tcg-blau-text); border-color: var(--tcg-blau-text); color: #fff; font-weight: 700; }
#btnSpeichern:hover:not(:disabled) { background: var(--tcg-blau-hover); border-color: var(--tcg-blau-hover); }
#btnIdeen { background: var(--tcg-blau-hauch); border-color: var(--tcg-blau); font-weight: 700; }
.control select { min-height: 34px; border-radius: 8px; }

/* Navigation */
.navigation { background: #fafbfc; padding: 8px 8px 24px; }
.nav-bereich { padding: 18px 10px 4px; }
.nav-eintrag { border-radius: 8px; margin: 1px 0; padding: 7px 10px; }
.nav-eintrag.aktiv { background: var(--tcg-blau-hauch); box-shadow: inset 3px 0 0 var(--tcg-blau-text); }
.nav-eintrag.nav-unter { padding-left: 38px; }

/* Arbeitsflaeche */
#arbeit { padding: 20px 28px 64px; scroll-padding-top: 12px; }
.werkzeug-titel { font-size: 1.6rem; margin-bottom: 12px; }
.hilfetext { border-left: 3px solid var(--tcg-blau); line-height: 1.5; white-space: pre-line; }
.aufgabe, .idee-karte, .st-block, .ef-karte, .pw-weg, .mx-tw, .tr-karte, .prinzip { border-radius: 10px; box-shadow: var(--schatten); }
.idee-karte { border-radius: 0 10px 10px 0; }
.aufgabe, .idee-karte, .ef-karte { padding-top: 10px; padding-bottom: 10px; }
.tr-karte, .st-karte { transition: box-shadow .15s, border-color .15s; }
.formular input, .formular textarea, .tabelle.eingabe input, .tabelle.eingabe select { border-radius: 8px; padding: 8px 10px; }
.tabelle thead th { position: sticky; top: 0; }
dialog.fenster { border-radius: 14px; box-shadow: 0 20px 60px rgba(26,23,27,.3); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .nav-scrim, .icon-btn, .skip-link, .tools-panel, .quick { display: none !important; } }

/* ============================ Handy und Tablet hochkant ============================ */
@media (max-width: 900px) {
  body { height: auto; display: block; padding: 0 0 env(safe-area-inset-bottom); }
  body.nav-offen, body.ideen-offen { overflow: hidden; }

  .app-header { position: sticky; top: 0; z-index: 30; background: #fff; margin: 0;
    padding: calc(env(safe-area-inset-top) + 6px) calc(env(safe-area-inset-right) + 10px) 6px calc(env(safe-area-inset-left) + 10px); }
  .app-header .page-header { position: relative; flex-wrap: nowrap; gap: 8px; }
  .app-header .page-tools { position: static; margin-left: auto; gap: 6px; flex-wrap: nowrap; padding: 0; }
  .page-title-block { flex: 1 1 auto; min-width: 0; }
  .app-header h1 { font-size: 1.1rem; margin: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-header .app-subtitle { margin: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #appVon { display: none; }
  .aktueller-titel { display: inline; color: #555; }
  .lizenz-stand { margin-left: 6px; }
  .icon-btn { display: inline-flex; }
  .nav-toggle { margin-right: 0; }

  .tools-panel { display: none; position: absolute; left: calc(-1 * env(safe-area-inset-left) - 10px); right: calc(-1 * env(safe-area-inset-right) - 10px); top: calc(100% + 7px);
    background: #fff; border-bottom: 1px solid var(--tcg-rahmen); box-shadow: 0 12px 28px rgba(26,23,27,.18);
    padding: 12px 14px 14px; flex-direction: column; gap: 12px; }
  body.tools-offen .tools-panel { display: flex; }
  .tools-panel .knopfreihe.gruppen { flex-direction: column; gap: 8px; }
  .tools-panel .knopfgruppe { flex-wrap: nowrap; width: 100%; }
  .tools-panel .knopfgruppe .btn { flex: 1; }
  .tools-panel .control { justify-content: space-between; }
  .tools-panel .control select { flex: 1; max-width: 60%; }
  .app-header .speicher-stand { position: static; display: block; white-space: normal; margin: 0; }

  .aufbau { display: block; border-top: 0; }
  .navigation { position: fixed; z-index: 45; top: 0; bottom: 0; left: 0; width: min(88vw, 330px); background: #fff; border: 0;
    padding: calc(env(safe-area-inset-top) + 10px) 8px calc(env(safe-area-inset-bottom) + 24px); overscroll-behavior: contain;
    transform: translateX(-102%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
  body.nav-offen .navigation { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: 8px 0 32px rgba(26,23,27,.3); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(26,23,27,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-offen .nav-scrim { opacity: 1; pointer-events: auto; }
  .nav-eintrag { min-height: 44px; font-size: 16px; }
  .nav-eintrag.nav-unter { min-height: 40px; padding-left: 40px; font-size: 15px; }
  .nav-eintrag.nav-unter.tiefe-2 { padding-left: 56px; }
  .nav-klappe { width: 40px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-lektion { margin-left: 40px; }

  #arbeit { overflow: visible; padding: 14px calc(env(safe-area-inset-right) + 12px) 72px calc(env(safe-area-inset-left) + 12px); }
  .werkzeug-titel { font-size: 1.3rem; }
  .update-hinweis { margin-top: 0; padding: 6px 12px; font-size: 13px; }

  /* Eingaben: 16 px verhindert das Hineinzoomen auf iOS; Ziele mindestens 40 px */
  #arbeit input:not([type=checkbox]):not([type=radio]):not([type=range]), #arbeit select, #arbeit textarea,
  .ideenfenster textarea, .ideenfenster select, dialog input, dialog textarea, .ki-fenster textarea { font-size: 16px !important; }
  #arbeit input:not([type=checkbox]):not([type=radio]):not([type=range]), #arbeit select { min-height: 40px; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  .btn { min-height: 40px; font-size: 14px; padding: 7px 13px; }
  .btn.winzig { min-height: 34px; padding: 4px 11px; font-size: 13px; }
  .zeile-weg { min-width: 40px; min-height: 40px; font-size: 20px; }
  .fenster-x { min-width: 44px; min-height: 44px; }
  .screen-toggle { max-width: 100%; overflow-x: auto; }
  .screen-toggle button { min-height: 40px; padding: 0.45rem 0.8rem; white-space: nowrap; }

  .formular { grid-template-columns: 1fr; }
  .werkzeugleiste { gap: 8px; }
  .werkzeugleiste .breit { flex: 1 1 100%; min-width: 0; }
  .aufgabenleiste { padding: 8px 10px; }
  .aufgabenleiste select { flex: 1 1 100%; min-width: 0; }
  .aufgaben-sprung { top: var(--kopf-h); margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; z-index: 5; }
  .aufgaben-sprung input[type=search] { width: 100%; }
  .aufgabe-kopf, .aufgabe-fuss { gap: 8px; }
  .idee-fuss select { max-width: 100%; }

  /* Breite Tabellen und Raster scrollen in sich, nie die ganze Seite */
  .tabelle { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mx-rahmen, .mx-heat-rahmen, .ef-rahmen, .ft-rahmen, .fa-matrix-rahmen { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .mx-matrix th.mx-ecke, .mx-matrix th.mx-zkopf { width: 130px; min-width: 130px; }
  .mx-tws, .mx-seiten { grid-template-columns: 1fr; }
  .mx-listspalte { flex-basis: 100%; }
  .mx-pwahl { width: 100%; }
  .mx-pwahl td { width: auto; height: 38px; }
  .ef-zwei { grid-template-columns: 1fr; }
  .ef-zelle { position: static; }
  .pw-wege, .tr-karten { grid-template-columns: 1fr; }
  .pw-satz input { min-width: 0; flex: 1 1 100%; }
  .prinzip summary { flex-wrap: wrap; gap: 6px 8px; padding: 10px; }
  .prinzip-inhalt { grid-template-columns: 1fr; padding: 4px 12px 12px; }
  .prinzip-bild { display: none; }
  .teilprinzipien li, .beispiele li { flex-wrap: wrap; }
  .bsp-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-stufe { flex-wrap: wrap; }
  .tr-stufe-knoepfe { width: 100%; padding-left: 32px; }
  .tr-kette { flex-direction: column; align-items: stretch; }
  .tr-pfeil { display: none; }
  .tr-feld { min-width: 0; }

  /* Standardloesungen, Funktions- und Prozessanalyse */
  .st-arbeit, .st-ergebnis, .st-spalten { grid-template-columns: 1fr; }
  .st-buehne { grid-template-columns: 1fr; }
  .st-palette { border-right: 0; border-bottom: 1px solid #eee; padding: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .st-palette-titel { flex-basis: 100%; margin: 0; }
  .st-palette-eintrag { margin: 0; }
  .st-spalte-inhalt, .st-ergebnis-inhalt { max-height: none; }
  .st-element { grid-template-columns: 34px minmax(0, 1fr) 40px; }
  .st-element > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .st-element > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .st-element > :nth-child(5) { grid-column: 3; grid-row: 1; }
  .st-element > :nth-child(3) { grid-column: 2 / 4; grid-row: 2; }
  .st-element > :nth-child(4) { grid-column: 2 / 4; grid-row: 3; }
  .st-knoten { width: 64px; height: 64px; }
  .fa-flaeche { max-height: 70vh; }
  .flaeche-behaelter { height: min(480px, 62vh); }
  .ansicht-leiste { right: 8px; max-width: calc(100% - 16px); }
  .uebersicht { width: 150px; height: 100px; right: 10px; bottom: 10px; }
  .fa-ziel { grid-template-columns: 1fr !important; }
  .fa-vzeile { flex-wrap: wrap; }
  .fa-vzeile input.breit { min-width: 0; }
  .fa-pruefer { padding: 8px 10px; }
  .fa-kurve svg { width: 100%; max-width: 300px; }
  .pz-tafel #pzOpName { width: 100%; }
  .pz-funktionen { overflow-x: auto; }

  /* Fenster werden zu Blaettern von unten */
  dialog.fenster, dialog.bedingungen, dialog.ce-fenster { width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px); }
  dialog.fenster .fenster-kopf { top: -16px; margin: -16px -16px 6px; padding: 10px 8px 8px 16px; }
  dialog.st-lupe { max-width: 100vw; border-radius: 12px; }
  dialog.st-lupe img { max-width: 92vw; }
  .ideenfenster { z-index: 50; width: 100vw; padding-bottom: env(safe-area-inset-bottom); }
  .ideen-kopf { padding: calc(env(safe-area-inset-top) + 8px) 8px 8px 14px; }
  .ki-fenster { left: 8px !important; right: 8px !important; top: auto !important; bottom: calc(env(safe-area-inset-bottom) + 8px); width: auto; max-height: 82vh; max-height: 82dvh; }
  .ki-kopf { cursor: default; }
  .tr-pop { max-height: 80vh; }
  .tr-optionen { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .tr-feldgruppe > .tr-option { width: 100%; }
  .fa-menue, .ce-menue { max-width: calc(100vw - 16px); }
  .fa-menue button, .ce-menue .menue-eintrag { min-height: 40px; }
}
@media (max-width: 420px) {
  .btn { padding: 7px 11px; }
  .bsp-raster { grid-template-columns: 1fr; }
  .st-spalten { grid-template-columns: 1fr; }
}
.neuigkeiten { margin: 4px 0 10px; padding: 8px 12px; border: 1px solid var(--tcg-rahmen); border-radius: 8px; background: #f8fafc; }
.neuigkeiten summary { cursor: pointer; }
.neuigkeiten ul { margin: 6px 0 4px; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.neuigkeiten-alt { margin-top: 4px; }

/* Idealitaet */
.il-reiter { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--tcg-rahmen); margin: 6px 0 12px; }
.il-reiter a { padding: 6px 14px; border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; text-decoration: none; color: var(--tcg-blau-text); }
.il-reiter a.an { border-color: var(--tcg-rahmen); background: #fff; color: var(--tcg-schwarz); font-weight: 600; margin-bottom: -1px; }
.il-satz { line-height: 2.1; border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 10px 12px; max-width: 1100px; font-size: 1.05em; }
.il-satz input { field-sizing: content; min-width: 14ch; max-width: 100%; font-weight: 600; }
.il-fragen { display: grid; gap: 8px; max-width: 1100px; }
.il-frage { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.il-frage.il-ue { grid-template-columns: 230px minmax(0, 1fr) auto; }
.il-frage b { font-weight: 600; padding-top: 4px; }
.il-frage textarea, .il-zeile input, .il-neu input { font: inherit; }
.il-frage textarea { width: 100%; resize: vertical; }
.il-bilanz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1100px; }
.il-spalte { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 8px 12px; min-width: 0; }
.il-spalte h3 { margin: 4px 0 8px; }
.il-spalte h3 .leise { font-size: 0.75em; font-weight: 400; }
.il-nutzen h3 { color: var(--tcg-gruen-text); }
.il-aufwand h3 { color: var(--tcg-rot-text); }
.il-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 6px; padding: 6px 0; border-top: 1px solid var(--tcg-rahmen); }
.il-zeile:first-of-type { border-top: none; }
.il-zeile input { width: 100%; }
.il-zeile-fuss { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.9em; }
.il-zeile-fuss select { font-size: 0.95em; }
.il-quelle { font-size: 0.85em; color: var(--tcg-blau-text); }
.il-richtung { font: inherit; font-size: 0.95em; border: 1px solid var(--tcg-blau); color: var(--tcg-blau-text); background: #fff; border-radius: 12px; padding: 1px 10px; cursor: pointer; }
.il-richtung.an { background: var(--tcg-blau-hauch); font-weight: 600; }
.il-richtung.an::before { content: "✓ "; }
.il-neu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.il-neu input { flex: 1 1 160px; min-width: 0; }
.il-strategien { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; max-width: 1100px; padding-left: 18px; }
@media (max-width: 760px) {
  .il-bilanz, .il-strategien { grid-template-columns: minmax(0, 1fr); }
  .il-frage, .il-frage.il-ue { grid-template-columns: minmax(0, 1fr); }
}

/* System Operator */
.so-huelle { overflow-x: auto; padding-bottom: 6px; }
.so-raster { display: grid; gap: 6px; align-items: stretch; }
.so-zk { display: grid; gap: 3px; align-content: end; text-align: center; font-weight: 600; font-size: 0.9em; }
.so-zk.jetzt { color: var(--tcg-blau-text); }
.so-zk input { font: inherit; font-weight: 400; text-align: center; border: 1px dashed var(--tcg-rahmen); border-radius: 4px; padding: 2px 4px; width: 100%; }
.so-ek { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; font-weight: 600; font-size: 0.9em; padding-right: 4px; gap: 2px; }
.so-ek.system { color: var(--tcg-blau-text); }
.so-weg { font: inherit; font-size: 0.8em; font-weight: 400; border: none; background: none; color: #666; text-decoration: underline; cursor: pointer; padding: 0; }
.so-zelle { position: relative; border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 7px; min-height: 104px; display: flex; flex-direction: column; gap: 5px; background: #fff; min-width: 0; }
.so-zelle.mitte { background: var(--tcg-blau-hauch); border-color: var(--tcg-blau); }
.so-zelle.dran { outline: 2px solid #e2c46a; outline-offset: 1px; }
.so-zelle.aussen { border-style: dashed; }
.so-huelle.anti .so-zelle.mitte { background: #f6eef9; border-color: #8a4b9e; }
.so-schritt { position: absolute; top: 5px; right: 7px; font-size: 0.75em; color: #666; }
.so-frage { font-size: 0.82em; color: #666; padding-right: 52px; }
.so-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.so-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 0.9em; border: 1px solid var(--tcg-rahmen); border-radius: 12px; padding: 1px 4px 1px 9px; background: #fff; max-width: 100%; }
.so-chip > span { overflow-wrap: anywhere; }
.so-chip.ki { border-color: var(--tcg-blau); }
.so-chip button { font: inherit; border: none; background: none; color: #666; cursor: pointer; padding: 0 3px; line-height: 1; }
.so-neu { display: flex; gap: 4px; margin-top: auto; }
.so-neu input { flex: 1; min-width: 0; font: inherit; font-size: 0.9em; }
.so-aufgabe { align-self: flex-start; }
.so-plus { font: inherit; font-size: 0.85em; border: 1px dashed var(--tcg-blau); color: var(--tcg-blau-text); background: #fff; border-radius: 6px; cursor: pointer; padding: 4px 6px; }
.so-plus.spalte { writing-mode: vertical-rl; transform: rotate(180deg); }
.so-antikopf { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 10px; align-items: center; max-width: 1000px; padding: 8px 12px; border: 1px solid #8a4b9e; background: #f6eef9; border-radius: 6px; margin: 8px 0; }
.so-antikopf p { grid-column: 1 / -1; margin: 0; font-size: 0.85em; color: #555; }
.so-antiwahl { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.so-bericht td, .so-bericht th { vertical-align: top; }
@media (max-width: 760px) { .so-antikopf { grid-template-columns: minmax(0, 1fr); } }

/* IER und Ressourcen */
.ier-ier { border: 1px solid var(--tcg-gruen-text); background: #eef5e4; border-radius: 6px; padding: 8px 12px; max-width: 1000px; }
.ier-ier b { color: var(--tcg-gruen-text); }
.ier-ringe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0 4px; max-width: 1000px; }
.ier-ring { font: inherit; border: none; cursor: pointer; padding: 9px 8px 7px; text-align: left; position: relative; display: grid; gap: 1px; min-width: 0; color: #fff; }
.ier-ring b { font-size: 0.95em; } .ier-ring span { font-size: 0.8em; }
.ier-ring.r0 { background: #3d6f9e; border-radius: 6px 0 0 6px; } .ier-ring.r1 { background: #5b91c3; }
.ier-ring.r2 { background: #8fb4d6; color: var(--tcg-schwarz); } .ier-ring.r3 { background: #c3d6e8; color: var(--tcg-schwarz); border-radius: 0 6px 6px 0; }
.ier-ring.an { outline: 3px solid #e2c46a; outline-offset: -3px; }
.ier-ring:focus-visible { outline: 3px solid var(--tcg-schwarz); outline-offset: -3px; }
.ier-zahl { position: absolute; top: 6px; right: 8px; font-weight: 700; background: #fff; color: var(--tcg-schwarz); border-radius: 10px; padding: 0 7px; }
.ier-ringhinweis { margin: 0 0 10px; }
.ier-check { display: grid; gap: 10px; max-width: 1000px; }
.ier-art { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 8px 12px; }
.ier-art h4 { margin: 0 0 2px; }
.ier-art > .leise { margin: 0 0 8px; }
.ier-res-liste { display: grid; gap: 6px; }
.ier-res { border: 1px solid var(--tcg-rahmen); border-radius: 6px; padding: 6px 8px; display: grid; gap: 4px; }
.ier-res.offen { border-color: var(--tcg-gruen-text); background: #eef5e4; }
.ier-res-kopf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ier-res-kopf b { margin-right: auto; }
.ier-kosten { display: inline-flex; border: 1px solid var(--tcg-rahmen); border-radius: 12px; overflow: hidden; }
.ier-kosten button { font: inherit; font-size: 0.8em; border: none; background: #fff; color: #666; padding: 1px 8px; cursor: pointer; }
.ier-kosten button.an { background: var(--tcg-blau-text); color: #fff; }
.ier-satz { margin: 0; }
.ier-idee { display: flex; gap: 6px; align-items: flex-start; }
.ier-idee textarea { flex: 1; font: inherit; resize: vertical; }
.ier-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ier-vorschlag { font: inherit; font-size: 0.85em; border: 1px dashed var(--tcg-blau); color: var(--tcg-blau-text); background: #fff; border-radius: 12px; padding: 1px 9px; cursor: pointer; }
.ier-neu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ier-neu input { flex: 1 1 180px; min-width: 0; font: inherit; }
.ier-tafel { border: 1px dashed var(--tcg-blau); border-radius: 6px; padding: 8px; margin-top: 6px; background: var(--tcg-blau-hauch); }
.ier-tafel p { margin: 8px 0 0; }
.ier-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.ier-kachel { font: inherit; font-size: 0.85em; border: 1px solid var(--tcg-rahmen); border-radius: 6px; background: #fff; padding: 6px; cursor: pointer; display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--tcg-schwarz); }
.ier-kachel > span { overflow-wrap: anywhere; }
.ier-kachel:hover, .ier-vorschlag:hover, .ier-form:hover { background: var(--tcg-blau-hauch); }
.ier-reiter { margin-bottom: 8px; flex-wrap: wrap; }
.ier-gruppen { display: grid; gap: 6px; }
.ier-gruppe { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px; align-items: start; }
.ier-formen { display: flex; flex-wrap: wrap; gap: 4px; }
.ier-form { font: inherit; font-size: 0.82em; border: 1px solid var(--tcg-rahmen); background: #fff; border-radius: 12px; padding: 1px 8px; cursor: pointer; }
.ier-ueber { overflow-x: auto; max-width: 1000px; }
.ier-projekt { margin-top: 12px; max-width: 1000px; }
.ier-projekt ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
@media (max-width: 620px) {
  .ier-ringe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ier-ring.r0, .ier-ring.r3 { border-radius: 0; }
  .ier-gruppe { grid-template-columns: minmax(0, 1fr); }
}
