/* werkzeugkasten.css – inchstones.ch Werkzeugkasten (öffentlich und Vorschau im Admin) · Version 0.11.2
   V0.11.2: Hauptbild: breite Bilder über die volle Breite (.wk-bild-breit), andere bis 70 % der Fensterhöhe bzw. 36 rem.
   V0.11.1: Rahmen um den ganzen Punkt (nur die Hauptpunkte, «>» statt Nachfahren), Unterpunkte als orange Bulletpoints ohne Zähler und Rahmen, Hauptpunkt der Checkliste als orange Kästchen.
   V0.11.0: Schritte ohne Rahmen; Checkliste und Modell mit Bulletpoints (.wk-punktliste) statt «?»-Kreisen; Zitat nur mit Strich links.
   V0.10.0: Aufzählungen (.wk-punkte, .wk-text), Text eines Schritts immer in .wk-schritt-text.
   V0.9.0: Übersicht: Filter-Chips (.wk-chip), Suche zum Aufklappen (.wk-suche-box), Gruppen nach Kategorie; Kacheln entfallen.
   V0.8.0: Bild neben dem Ablauf (.wk-ablauf, bleibt beim Scrollen sichtbar) und ein Bild bei einem Schritt (.wk-mit-bild).
   V0.7.0: Bilder im Overlay vergrössern (:target, ohne JavaScript), Vorschaubild bei Downloads.
   V0.5.0: Seitenband: «inchstones.ch» und Slogan als eine senkrechte Zeile oben (Slogan nur bei genug Höhe), ID waagrecht unten; Eigenentwicklung.
   V0.4.0: Werkzeugseite mit Seitenband (ID, Slogan, inchstones.ch), Pillen, Bild in begrenzter Höhe, Schritte als Kärtchen, Download, Hinweis «Gibt es auch zum Anfassen», Einstieg mit Kacheln, Druckansicht.
   Ergänzung zu inchstones_basis.css und portal.css; keine externen Schriften oder Skripte. */

/* ── Werkzeugseite ── */
.wk-seite { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.wk-band { flex: none; width: 60px; background: var(--orange); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wk-band-zeile { flex: 1 1 0; min-height: 0; width: 100%; container-type: size; display: flex; align-items: flex-start; justify-content: center; }
.wk-band-text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: flex; align-items: center; gap: .9rem; }
.wk-band-marke { font-size: 1rem; letter-spacing: .04em; }
.wk-band-slogan { display: none; font-size: .8rem; font-weight: 400; letter-spacing: .03em; opacity: .92; }
@container (min-height: 24rem) { .wk-band-slogan { display: block; } }
.wk-band-id { font-size: .95rem; line-height: 1; white-space: nowrap; }
.wk-inhalt { flex: 1; min-width: 0; padding: 20px 24px 22px; }
.wk-meta { margin: 0; font-size: .875rem; color: var(--text-muted); }
.wk-titel { margin: 2px 0 8px; font-size: 1.75rem; line-height: 1.2; }
.wk-kurz { margin: 0 0 12px; font-size: 1.05rem; color: var(--text-muted); }
.wk-pillen { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wk-pillen li { display: inline-flex; align-items: center; gap: 6px; background: var(--orange-light); color: var(--akzent-dunkel); border: 1px solid var(--orange-border); border-radius: 8px; padding: 4px 10px; font-size: .875rem; }
.wk-pille-icon .icon { width: 16px; height: 16px; vertical-align: -3px; }
.wk-abschnitt { margin: 22px 0 8px; font-size: 1.1rem; }
.wk-bild { margin: 12px 0; }
.wk-bild img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(70vh, 36rem); object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.wk-bilder-klein { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.wk-bild-breit .wk-bild-link { display: block; }
.wk-bild-breit img { width: 100%; max-height: none; }
.wk-bild-klein { margin: 0; max-width: 150px; }
.wk-bild-klein img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; }

/* Schritte, Fragen und Gedanken als Kärtchen */
.wk-schritte, .wk-gedanken { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.wk-schritte { counter-reset: schritt; }
.wk-schritte > li, .wk-gedanken > li { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.wk-schritte > li::before { counter-increment: schritt; content: counter(schritt); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wk-punktliste > li::before { content: ""; counter-increment: none; width: 22px; height: 22px; border: 2px solid var(--orange); border-radius: 5px; background: none; box-sizing: border-box; margin-top: 3px; }
.wk-gedanken > li { font-size: 1.05rem; font-style: italic; border-left: 4px solid var(--orange); }

/* Bild neben dem Ablauf und Bilder bei Schritten */
.wk-ablauf { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.wk-ablauf-bild { margin: 0; position: sticky; top: 16px; }
.wk-ablauf-bild img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.wk-schritte li.wk-mit-bild, .wk-gedanken li.wk-mit-bild { align-items: center; }
.wk-schritt-text { flex: 1; min-width: 0; }
.wk-punkte { margin: 6px 0 2px; padding-left: 1.4em; list-style: disc; }
.wk-punkte li { padding: 1px 0; }
.wk-punkte li::marker { color: var(--orange); font-size: 1.4em; }
.wk-text { margin: 0 0 1em; }
.hinweis .wk-punkte { margin: 2px 0; }
.wk-schritt-bild { flex: none; width: 120px; }
.wk-schritt-bild img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; }

/* Downloads, Physisches, ähnliche Werkzeuge */
.wk-downloads { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.wk-downloads li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.wk-bild-link { display: inline-block; cursor: zoom-in; }
.wk-dl-vorschau { flex: none; width: 56px; cursor: zoom-in; }
.wk-dl-vorschau img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 4px; }
.wk-overlay { display: none; position: fixed; inset: 0; z-index: 1000; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: rgba(20, 24, 30, .86); cursor: zoom-out; text-decoration: none; }
.wk-overlay:target { display: flex; }
.wk-overlay img { display: block; max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: auto; background: #fff; border-radius: 6px; }
.wk-overlay-zu { color: #fff; font-weight: 600; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 8px; }
.wk-dl-icon .icon { width: 24px; height: 24px; color: var(--text-muted); }
.wk-dl-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wk-physisch { display: flex; gap: 14px; align-items: center; margin: 18px 0; }
.wk-physisch-bild { flex: none; width: 96px; }
.wk-physisch-bild img { display: block; width: 100%; height: auto; border-radius: 6px; }
.wk-eigen { margin: 14px 0 0; font-style: italic; }
.wk-literatur { margin: 0 0 8px; padding-left: 1.3em; font-size: .9rem; }
.wk-anlaesse { margin: 14px 0 0; }
.wk-aehnliche { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.wk-aehnliche a { display: flex; flex-direction: column; gap: 2px; height: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; text-decoration: none; color: inherit; }
.wk-aehnliche a:hover, .wk-aehnliche a:focus-visible { border-color: var(--orange); background: var(--orange-light); }
.wk-aktionen { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.wk-teilen { margin-top: 10px; }
.wk-teilen summary { display: inline-flex; list-style: none; cursor: pointer; }
.wk-teilen summary::-webkit-details-marker { display: none; }
.wk-teilen[open] summary { margin-bottom: 12px; }

/* ── Übersicht (Filter, Suche, Listen) ── */
.wk-suche { max-width: 36rem; margin-bottom: 8px; }
.wk-gruppe { margin: 24px 0 10px; font-size: 1.2rem; }
.wk-gruppe .klein { font-weight: 400; }
.wk-anzahl { margin: 14px 0 0; }
.wk-filter-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.wk-filter-titel { flex: none; font-weight: 600; margin-right: 4px; }
.wk-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); text-decoration: none; font-size: .95rem; }
.wk-chip:hover, .wk-chip:focus-visible { border-color: var(--orange); background: var(--orange-light); }
.wk-chip-aktiv { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.wk-chip-aktiv:hover, .wk-chip-aktiv:focus-visible { background: var(--orange); color: #fff; }
.wk-chip-zahl { font-size: .8rem; opacity: .8; }
.wk-suche-box { margin-top: 4px; }
.wk-suche-box summary { display: inline-flex; list-style: none; cursor: pointer; gap: 6px; }
.wk-suche-box summary::-webkit-details-marker { display: none; }
.wk-suche-box[open] summary { margin-bottom: 12px; }
.wk-zeilen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wk-zeile { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; text-decoration: none; color: var(--text); }
.wk-zeile:hover, .wk-zeile:focus-visible { border-color: var(--orange); background: var(--orange-light); }
.wk-zeile-id { flex: none; min-width: 3rem; padding: 4px 8px; text-align: center; background: var(--orange); color: #fff; font-weight: 700; border-radius: 6px; font-size: .9rem; }
.wk-zeile-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-zeile .wk-pillen { margin: 4px 0 0; }

/* ── Handy: Band wird zur Kopfzeile ── */
@media (max-width: 640px) {
  .wk-seite { flex-direction: column; }
  .wk-band { width: auto; flex-direction: row; padding: 8px 16px; }
  .wk-band-zeile { container-type: normal; flex: 0 1 auto; width: auto; align-items: center; }
  .wk-band-text { writing-mode: horizontal-tb; transform: none; }
  .wk-band-slogan { display: none !important; }
  .wk-inhalt { padding: 16px; }
  .wk-titel { font-size: 1.45rem; }
  .wk-downloads li { flex-wrap: wrap; }
  .wk-ablauf { grid-template-columns: 1fr; }
  .wk-ablauf-bild { position: static; max-width: 320px; }
  .wk-schritte li.wk-mit-bild { flex-wrap: wrap; }
  .wk-schritt-bild { width: 100%; max-width: 220px; margin-left: 40px; }
  .wk-physisch { flex-direction: column; align-items: flex-start; }
}

/* ── Druck: eine Seite wie eine kleine Folie ── */
@media print {
  .nav, .foot-wrap, .skip, .wk-aktionen, .wk-aehnliche, .wk-suche, .wk-overlay, .portal > p:first-child { display: none !important; }
  body { background: #fff; }
  .wk-seite { border: 0; border-radius: 0; break-inside: avoid-page; margin: 0; }
  .wk-inhalt { padding: 0 0 0 16px; }
  .wk-bild img { max-height: 11cm; }
  .wk-downloads .btn { display: none; }
}
