/* ── tool.css — Charakter „Keycode Info“ ──────────────────────────────────────────────────────────────
   WAS:   Akzentfarben (Türkis · Bernstein · Rosa), Raster der Tafeln, das Tastatur-Bild (Tasten absolut in Prozent
          positioniert, Schrift wächst mit der Breite über Container-Einheiten), große Tastenanzeige, Schnipsel, Verlauf.
   WARUM: Das Tool lebt vom Tastaturbild: die gedrückte Taste leuchtet auf, zuletzt gedrückte trägt einen Ring,
          schon gedrückte bleiben getönt („getestet“).
   WIE ÄNDERN: Farben nur über --a1/--a2/--a3 unten; Grundbausteine stehen in ../_werk/werk.css (gemeinsam für alle Tools).
          Tastengrößen: --u (Breite einer Taste) wird in .kc-tasten aus der Container-Breite berechnet (Daten: js/kern.js). */
:root { --a1: #2dd4bf; --a2: #fbbf24; --a3: #f472b6; --a1-tinte: #04211d; }
@media (prefers-color-scheme: light) { :root:not([data-thema="dunkel"]) { --a1: #0f9d8e; --a2: #c98a06; --a3: #d6409a; --a1-tinte: #ffffff; } }
:root[data-thema="hell"] { --a1: #0f9d8e; --a2: #c98a06; --a3: #d6409a; --a1-tinte: #ffffff; }

/* Lauf 2 (27.10.): EINE Spalte in voller Breite; die Reihenfolge steht in `order` (beide Geräte-Fassungen, eine DOM-Folge):
   Rechner: Ergebnis → Tastatur → Verlauf → Weitere Werte → JS-Schnipsel → Eingabefeld.
   Handy (pointer: coarse): Eingabefeld → Ergebnis → Verlauf → Weitere Werte → JS-Schnipsel → Tastaturbild.
   Auf-/Zuklappen von Eingabefeld und Tastaturbild je Gerät macht main.js (geraeteModus), dieselbe Bedingung wie hier. */
.kc-raster { display: flex; flex-direction: column; gap: 14px; }
.kc-gross { order: 1; } .kc-tast { order: 2; } .kc-verl { order: 3; } .kc-weitere { order: 4; } .kc-snip { order: 5; } .kc-feld { order: 6; }
@media (pointer: coarse) {
  .kc-feld { order: 0; } .kc-gross { order: 1; } .kc-verl { order: 2; } .kc-weitere { order: 3; } .kc-snip { order: 4; } .kc-tast { order: 5; }
}
/* Lauf 2 (vorher): Raster mit Bereichen "tast tast" / "gross werte" / "snip werte" / "verl feld" — Lücken und ungleich hohe Tafeln
.kc-raster { display: grid; gap: 14px; grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr);
  grid-template-areas: "tast tast" "gross werte" "snip werte" "verl feld"; align-items: start; }
.kc-gross { grid-area: gross; } .kc-tast { grid-area: tast; } .kc-feld { grid-area: feld; }
.kc-werte { grid-area: werte; } .kc-snip { grid-area: snip; } .kc-verl { grid-area: verl; }
*/
/* Kopf: Original-Icon (breit, transparent) auf neutralem Grund statt der SVG-Glyphe */
.kopf-glyphe { width: 82px; background: var(--flaeche-3); box-shadow: inset 0 0 0 1px var(--linie), 0 10px 30px -14px var(--a1); }
.kopf-glyphe img { display: block; width: 68px; height: auto; max-height: 44px; object-fit: contain; }
.kc-leise { font-size: 13.5px; color: var(--sehr-leise); }
.kc-leer { margin: 0; color: var(--sehr-leise); font-size: 15px; }
.kc-hinweis { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--leise); }
.kc-hinweis.nur-touch { display: none; }
@media (pointer: coarse) { .kc-hinweis.nur-touch { display: block; color: var(--text); } .kc-hinweis.nur-fein { display: none; } }
.kc-text-knopf { border: 1px solid var(--linie); background: var(--flaeche-2); color: var(--leise); border-radius: 10px; min-height: 36px; padding: 0 12px; font-size: 14px; font-weight: 700; }
.kc-text-knopf:hover { color: var(--text); border-color: var(--linie-stark); }
.kc-veraltet { margin-left: 8px; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--hinweis);
  background: color-mix(in srgb, var(--hinweis) 14%, transparent); vertical-align: 1px; }

/* ── Große Anzeige: Tastenkappe links, code rechts ── */
.kc-typ { margin-left: auto; font: 700 13px var(--mono); padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--a1) 16%, transparent); color: var(--a1); white-space: nowrap; }
.kc-typ:empty { display: none; }
.kc-typ.los { background: var(--flaeche-3); color: var(--leise); }
.kc-anzeige { display: flex; align-items: flex-start; gap: 24px; min-width: 0; }
.kc-links { flex: none; width: 168px; display: grid; gap: 8px; justify-items: stretch; }
.kc-key-unter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; }
.kc-key-label { font-size: 14px; font-weight: 700; color: var(--leise); }
.kc-key-unter .kopier { grid-column: 2; grid-row: 1; width: 34px; height: 34px; }
.kc-key-z { grid-column: 1 / -1; font-size: 13px; line-height: 1.35; color: var(--leise); }
.kc-hauptwerte { flex: 1; min-width: 0; display: grid; gap: 10px; }
.kc-hauptwerte .wert-zahl { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; color: var(--a1); line-height: 1.1; }
.kc-hauptwerte #w-keycode .wert-zahl { color: var(--text); }
.kc-hauptwerte .wert-label { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; white-space: normal; overflow: visible; }
.kc-kappe-gross { flex: none; width: 168px; height: 168px; border-radius: 26px; display: grid; place-items: center; padding: 8px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 30%, var(--flaeche-2)), color-mix(in srgb, var(--a1) 8%, var(--flaeche-2)));
  border: 1.5px solid color-mix(in srgb, var(--a1) 55%, transparent); border-bottom-width: 7px;
  box-shadow: 0 18px 40px -22px var(--a1), inset 0 1px 0 rgba(255, 255, 255, 0.12); overflow: hidden; }
.kc-kappe-gross span { font: 700 82px/1 var(--titel); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kc-kappe-gross.lang span { font-size: 40px; line-height: 1.1; }
.kc-kappe-gross.klein span { font-size: 24px; }
.kc-kappe-gross.leer { background: var(--flaeche-2); border-color: var(--linie-stark); box-shadow: none; }
.kc-kappe-gross.leer span { font-size: 64px; color: var(--sehr-leise); font-weight: 400; }
.kc-anzeige-text { min-width: 0; }
/* Lauf 2: #gross-code ist jetzt der Wert in .wert (Kachel) — die alte Schrift-Regel steht darüber in .kc-hauptwerte .wert-zahl
.kc-gross-code { font: 700 clamp(26px, 2.6vw, 36px)/1.1 var(--mono); letter-spacing: -0.02em; color: var(--a1); overflow-wrap: anywhere; }
.kc-gross-code.platz { font-family: var(--titel); color: var(--text); font-size: clamp(24px, 2.4vw, 32px); }
*/
.kc-gross-zeile { color: var(--leise); font-size: 15px; }
.kc-gross-zeile:empty { display: none; }
.kc-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.kc-mod { padding: 5px 12px; border-radius: 10px; font: 700 14px var(--schrift); color: var(--sehr-leise); background: var(--flaeche-2); border: 1px solid var(--linie);
  transition: background 0.15s, color 0.15s, border-color 0.15s; }
.kc-mod.an { color: var(--a1-tinte); background: var(--a1); border-color: var(--a1); }
.kc-gross .meldung { margin-top: 12px; }

/* ── Tastatur ── */
/* Lauf 2 entfernt: Statuspille (.kc-status, .kc-punkt) und Steuerleiste (.kc-steuer) — nur der kleine Layout-Schalter .kc-layout sitzt im Kastenkopf
.kc-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--leise); }
.kc-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--sehr-leise); }
.kc-status.an { color: var(--ok); }
.kc-status.an .kc-punkt { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.kc-steuer { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 14px; }
.kc-steuer-gruppe .feld-label { margin-bottom: 4px; }
*/
.kc-layout { margin-left: auto; }
.kc-layout button { padding: 5px 12px; min-height: 34px; font-size: 14px; white-space: nowrap; }
/* Bei Rechner: Titelknopf des Tastaturbilds gesperrt (kein Kasten) — kein Pfeil, kein Zeiger */
.fb-auf:disabled { cursor: default; }
.fb-auf:disabled::after { display: none; }
.fb-faltbar .fb-inhalt { margin-top: 14px; }.kc-fang { position: relative; border-radius: 18px; padding: 14px; background: var(--flaeche-2); border: 1.5px solid var(--linie); cursor: pointer; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; }
.kc-fang.scharf { border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 22%, transparent); }
.kc-fang:focus-visible { box-shadow: var(--fokus); }
.kc-bild { position: relative; width: 100%; container-type: inline-size; }
.kc-tasten { position: absolute; inset: 0; --u: calc(100cqw / var(--breite)); transition: opacity 0.25s; }
.kc-fang.leer .kc-tasten { opacity: 0.72; }
.kc-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity 0.25s; }
.kc-fang:not(.leer) .kc-overlay { opacity: 0; }   /* Overlay nur, solange noch keine Taste erfasst wurde */
.kc-overlay-text { padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 16px; background: var(--text); color: var(--grund); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.5); }
/* Lauf 2: Handy-Overlay-Text entfällt (das Eingabefeld steht dort ohnehin zuerst) — am Handy gar kein Overlay */
@media (pointer: coarse) { .kc-overlay-text { display: none; } }

.taste { position: absolute; padding: calc(var(--u) * 0.045); }
.kappe { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: var(--flaeche); color: var(--text); border: 1px solid var(--linie-stark); border-bottom-width: calc(var(--u) * 0.07); border-radius: calc(var(--u) * 0.16);
  font-weight: 700; line-height: 1; overflow: hidden; transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.12s, box-shadow 0.2s; }
.kap-haupt { font-size: calc(var(--u) * 0.4); }
.taste.lang .kap-haupt { font-size: calc(var(--u) * 0.24); letter-spacing: 0; }
.taste.zwei .kappe { align-items: flex-start; padding-left: calc(var(--u) * 0.15); gap: calc(var(--u) * 0.03); }
.taste.zwei .kap-shift { font-size: calc(var(--u) * 0.26); color: var(--leise); font-weight: 400; }
.taste.zwei .kap-haupt { font-size: calc(var(--u) * 0.34); }
.taste[data-code="Space"] .kappe { background: var(--flaeche); }
/* L-förmiges ISO-Enter: zwei Teile ohne Naht */
.taste.teil-oben { padding-bottom: 0; } .taste.teil-oben .kappe { border-bottom: 0; border-radius: calc(var(--u) * 0.16) calc(var(--u) * 0.16) 0 0; }
.taste.teil-unten { padding-top: 0; } .taste.teil-unten .kappe { border-top: 0; border-radius: 0 0 calc(var(--u) * 0.16) calc(var(--u) * 0.16); }
/* Zustände: getestet (getönt) · zuletzt (Ring) · gedrückt (voll) */
/* Lauf 2 entfernt: Dauertönung getesteter Tasten (Tastatur-Tester-Funktion)
.taste.getestet .kappe { background: color-mix(in srgb, var(--a1) 16%, var(--flaeche)); border-color: color-mix(in srgb, var(--a1) 40%, transparent); }
*/
.taste.zuletzt .kappe { border-color: var(--a2); box-shadow: 0 0 0 calc(var(--u) * 0.045) var(--a2), 0 0 calc(var(--u) * 0.3) color-mix(in srgb, var(--a2) 55%, transparent); }
.taste.gedrueckt .kappe { background: var(--a1); color: var(--a1-tinte); border-color: var(--a1); transform: translateY(calc(var(--u) * 0.05)); box-shadow: 0 0 calc(var(--u) * 0.5) var(--a1); }
.taste.gedrueckt .kap-shift { color: var(--a1-tinte); }
/* Lauf 2 entfernt: Fußzeile mit Zähler „Getestet“
.kc-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.kc-getestet { font: 700 15px var(--mono); color: var(--leise); }
*/

/* ── Werte: Kacheln aus werk.css; die beiden Hauptwerte dürfen länger sein ── */
/* Lauf 2: Kästen „Weitere Werte“ (5 Kacheln) und Eingabefeld (1 Kachel): immer zwei gleich breite Spalten, die ungerade letzte Kachel
   füllt die ganze Zeile — keine Lücke, keine ungleichen Breiten innerhalb einer Zeile. */
.kc-weitere .werte, .kc-feld .werte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kc-weitere .wert:last-child:nth-child(odd), .kc-feld .wert:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kc-feld-werte { margin-top: 14px; }
.kc-weitere .wert, .kc-feld .wert { grid-template-columns: minmax(0, 1fr) auto; }
.kc-weitere .wert-zahl, .kc-feld .wert-zahl { white-space: pre-wrap; }
.kc-weitere .wert-label, .kc-feld .wert-label { overflow: visible; white-space: normal; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; overflow-wrap: anywhere; }

/* ── Schnipsel ── */
.kc-snippets { display: grid; gap: 8px; }
.kc-snip-zeile { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: var(--r); background: var(--flaeche-2); border: 1px solid var(--linie); min-width: 0; }
.kc-snip-label { grid-column: 1; font-size: 13.5px; font-weight: 700; color: var(--leise); }
.kc-snip-zeile code { grid-column: 1; font: 500 15.5px/1.35 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.kc-snip-zeile .kopier { grid-column: 2; grid-row: 1 / span 2; }
.kc-snip-zeile.veraltet code { color: var(--leise); }

/* ── Verlauf ── */
.kc-verl-knoepfe .kopier.breit span, .kc-text-knopf { white-space: nowrap; }
.kc-verl-knoepfe { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.kc-verlauf { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-v { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 66px; min-height: 62px; padding: 6px 10px;
  border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche-2); transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.kc-v:hover { border-color: var(--a1); }
.kc-v:active { transform: scale(0.97); }
.kc-v.neu { border-color: color-mix(in srgb, var(--a1) 60%, transparent); background: color-mix(in srgb, var(--a1) 10%, var(--flaeche-2)); }
.kc-v-key { font: 700 20px/1 var(--titel); }
.kc-v-key.lang { font-size: 14px; }
.kc-v-code { font: 500 12px var(--mono); color: var(--leise); }
.kc-v-n { position: absolute; top: -7px; right: -5px; padding: 1px 6px; border-radius: 99px; font: 700 11.5px var(--mono); background: var(--a2); color: #231a02; }

/* ── Handy ── */
/* Lauf 2 (vorher): @media (max-width: 900px) { .kc-raster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gross" "tast" "feld" "werte" "snip" "verl"; } } */
@media (max-width: 640px) {
  .kopf-glyphe { width: 70px; }
  .kopf-glyphe img { width: 58px; max-height: 38px; }
  .kc-anzeige { gap: 14px; }
  .kc-links { width: 112px; }
  .kc-key-z { font-size: 12px; }
  .kc-hauptwerte { gap: 8px; }
  .kc-hauptwerte .wert-zahl { font-size: 24px; }
  .kc-layout button { padding: 4px 8px; }
  .kc-kappe-gross { width: 108px; height: 108px; border-radius: 20px; border-bottom-width: 5px; }
  .kc-kappe-gross span { font-size: 54px; }
  .kc-kappe-gross.lang span { font-size: 26px; }
  .kc-kappe-gross.klein span { font-size: 16px; }
  .kc-kappe-gross.leer span { font-size: 44px; }
  .kc-fang { padding: 8px; border-radius: 14px; }
  .kc-mods { margin-top: 12px; }
  .kc-snip-zeile code { font-size: 14px; }
  /* Lauf 2 entfernt: .kc-steuer, .kc-status (Mindesthöhe 2.7em) — Steuerleiste und Pille gibt es nicht mehr */
}

/* ── Über dieses Tool (Tool-Profil, SEO/GEO) — Muster pw-strength ── */
.tool-profil { margin-top: 18px; padding: 20px; border-radius: var(--r-gross); background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); min-width: 0; }
.tool-profil-titel { margin: 0 0 10px; font: 700 15px/1.2 var(--schrift); letter-spacing: 0.08em; text-transform: uppercase; color: var(--leise); display: flex; align-items: center; gap: 9px; }
.tool-profil-titel::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--a1); }
.tool-profil h3 { margin: 18px 0 8px; font: 700 16px/1.3 var(--schrift); color: var(--text); }
.tool-profil p { margin: 0 0 10px; color: var(--leise); line-height: 1.6; }
.tool-profil-einl { color: var(--text); }
.tool-profil-liste { margin: 0; padding: 0 0 0 20px; color: var(--leise); line-height: 1.55; display: grid; gap: 4px; }
.tool-profil-faq { display: grid; gap: 8px; margin-top: 8px; }
.tool-profil-faq details { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r); padding: 0 16px; }
.tool-profil-faq summary { list-style: none; cursor: pointer; padding: 13px 0; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.tool-profil-faq summary::-webkit-details-marker { display: none; }
.tool-profil-faq summary::after { content: "+"; margin-left: auto; font: 500 22px/1 var(--mono); color: var(--sehr-leise); transition: transform 0.25s var(--kurve); }
.tool-profil-faq details[open] summary::after { transform: rotate(45deg); }
.tool-profil-faq details p { margin: 0 0 14px; }
.wissen-raster { grid-template-columns: minmax(0, 1fr); }
.wissen details p + p { margin-top: -6px; }
@media (max-width: 760px) { .tool-profil { padding: 16px; border-radius: 18px; } }
