/* ITMAT.de – Bausteine der Werkzeuge (gemeinsam für SEO- und IT-Werkzeuge) */

:root {
  --t-ok: var(--ok);
  --t-ok-bg: #e1f2ea;
  --t-warn: var(--warn);
  --t-warn-bg: #fbf2dc;
  --t-bad: var(--bad);
  --t-bad-bg: #fbeae6;
  --t-soft: #eef1f5;
}

/* Werkzeug-Fläche */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); }
.tool h2 { font-size: 1.45rem; font-stretch: 88%; margin-bottom: 8px; }
.tool h3 { font-size: 1.15rem; font-stretch: 90%; margin: 26px 0 10px; }
.tool h4 { font-size: 1rem; margin: 0 0 10px; }
.tool p { margin-bottom: 0; }
.tl-desc { color: var(--muted); max-width: 46em; }
.tl-desc strong { color: var(--ink); }
.tool code { font-family: var(--f-mono); font-size: .9em; background: var(--t-soft); padding: 1px 6px; border-radius: 3px; overflow-wrap: anywhere; }
.tool kbd { font-family: var(--f-mono); font-size: .85em; background: var(--surface); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-sm); padding: 1px 6px; }

/* Eingabefelder */
.tool input[type="text"], .tool input[type="url"], .tool input[type="number"], .tool input[type="password"], .tool input[type="date"], .tool input[type="datetime-local"], .tool input[type="time"], .tool input[type="email"], .tool input[type="tel"], .tool input[type="color"], .tool textarea, .tool select {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 10px 12px;
}
.tool textarea { resize: vertical; line-height: 1.5; }
.tool input:focus, .tool textarea:focus, .tool select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand); }

/* Formular */
.f-grid { display: grid; gap: 16px; margin-top: 22px; }
.f-grid.c2 { grid-template-columns: 1fr 1fr; }
.f-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .95rem; }
.f-field > span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.f-field small { font-weight: 400; color: var(--muted); }
.f-field textarea { min-height: 150px; font-family: var(--f-mono); font-size: .9rem; }
.f-field textarea.f-text { font-family: var(--f-body); font-size: 1rem; min-height: 0; }
.f-field input[type="range"] { accent-color: var(--ink); width: 100%; padding: 0; }
.f-mono { font-family: var(--f-mono) !important; }
.f-check { display: flex; gap: 10px; align-items: center; font-size: .95rem; cursor: pointer; }
.f-check input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.f-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Schaltflächen */
.tool .button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--white);
  border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 9px 16px; min-height: 44px;
}
.tool .button:hover { background: var(--ink-2); border-color: var(--ink-2); }
.tool .button.outline { background: transparent; color: var(--ink); }
.tool .button.outline:hover { background: var(--marker-soft); }
.tool .button[disabled] { opacity: .55; cursor: not-allowed; }
.tool .button[hidden] { display: none; }

/* Umschalter */
.tool .seg { display: inline-flex; align-self: flex-start; max-width: 100%; gap: 0; margin: 0; border: 2px solid var(--ink); flex-wrap: nowrap; border-radius: var(--r-sm); overflow: hidden; }
.tool .seg button { border: 0; border-radius: 0; background: transparent; color: var(--ink); padding: 9px 18px; font-size: .92rem; font-weight: 600; }
.tool .seg button + button { border-left: 2px solid var(--ink); }
.tool .seg button { cursor: pointer; }
.tool .seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* Ausgaben */
.out { margin-top: 22px; }
.out-code {
  display: block; width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: #e6ebf5;
  font: .98rem/1.6 var(--f-mono); overflow-wrap: anywhere; white-space: pre-wrap; min-height: 3.2em;
}
.out-big { font-size: 1.3rem; letter-spacing: .02em; }
.copy-row { display: flex; gap: 10px; align-items: stretch; }
.copy-row > input, .copy-row > .out-code { flex: 1 1 auto; min-width: 0; width: auto !important; }
.copy-row > .button { flex: 0 0 auto; }
.tl-msg { margin-top: 12px; font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.tl-msg.err { color: var(--t-bad); }
.tl-note { margin-top: 24px; padding: 14px 18px; border-left: 5px solid var(--marker); background: var(--paper); font-size: .93rem; line-height: 1.65; }
.tl-note.warn { border-left-color: var(--t-warn); background: var(--t-warn-bg); }
.tl-note a { color: var(--ink); }

.tmeter { height: 8px; border-radius: var(--r-sm); background: #e3e7e0; overflow: hidden; margin-top: 14px; }
.tmeter span { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }

.kv { display: grid; grid-template-columns: minmax(150px, 260px) 1fr; border-top: 1px solid var(--line); margin: 18px 0 0; }
.kv dt, .kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.55; }
.kv dt { color: var(--muted); padding-right: 16px; }
.kv dd { overflow-wrap: anywhere; }

.b { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: .78rem; font-weight: 700; vertical-align: middle; }
.b-ok { background: var(--t-ok-bg); color: var(--t-ok); }
.b-warn { background: var(--t-warn-bg); color: var(--t-warn); }
.b-bad { background: var(--t-bad); color: var(--white); }
.b-info { background: var(--t-soft); color: var(--ink-2); }

.tool .checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; border: 0; }
.tool .checks li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--t-ok); border-radius: var(--r-sm);
  background: var(--white); font-size: .93rem; line-height: 1.55;
}
.tool .checks li strong { display: block; margin-bottom: 2px; }
.tool .checks li.warn { border-left-color: var(--t-warn); background: var(--t-warn-bg); }
.tool .checks li.bad { border-left-color: var(--t-bad); background: var(--t-bad-bg); }
.tool .checks li.info { border-left-color: #9aa3b5; }
.tool .checks .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--t-ok); color: var(--white); }
.tool .checks li.warn .ic { background: var(--t-warn); }
.tool .checks li.bad .ic { background: var(--t-bad); }
.tool .checks li.info .ic { background: #9aa3b5; }

.tool details summary { cursor: pointer; }

/* Hash */
.hs-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 22px; padding: 30px 20px; border: 2px dashed var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); text-align: center; cursor: pointer;
}
.hs-drop:hover, .hs-drop.over { border-color: var(--ink); background: var(--marker-soft); }
.hs-drop:focus-within { box-shadow: 0 0 0 3px var(--marker); }
.hs-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hs-ic { font-size: 1.8rem; line-height: 1; }
.hs-drop small { color: var(--muted); }
.hs-match { background: var(--t-ok-bg) !important; }
.kv .copy-row { align-items: center; }
.kv .copy-row .button { min-height: 34px; padding: 4px 10px; font-size: .85rem; }

/* Subnetz */
.sn-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); }
.sn-tbl { border-collapse: collapse; width: 100%; font-size: .88rem; font-family: var(--f-mono); }
.sn-tbl th, .sn-tbl td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sn-tbl th { font-family: var(--f-body); font-size: .82rem; color: var(--muted); background: var(--paper); position: sticky; top: 0; }

/* Bandbreite */
.bw-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.bw-p { font: inherit; font-size: .88rem; cursor: pointer; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); border-radius: 999px; padding: 5px 12px; }
.bw-p:hover { background: var(--marker-soft); border-color: var(--ink); }

/* QR-Code */
.qr-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: 8px; align-items: start; }
.qr-prev { display: flex; flex-direction: column; align-items: center; margin-top: 22px; }
.qr-card { background: var(--white); border: 2px solid var(--ink); padding: 16px; text-align: center; box-shadow: 8px 8px 0 var(--marker); }
.qr-card canvas { display: block; width: 260px; height: 260px; image-rendering: pixelated; }
.qr-cap { margin-top: 10px; font-weight: 600; max-width: 260px; overflow-wrap: anywhere; }
.qr-cap small { display: block; font-weight: 400; color: var(--muted); }
.qr-prev .f-btns { justify-content: center; }

/* Port-Scanner */
.tl-tool-head h2 { margin-bottom: 10px; }
.ps-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.ps-range { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-range legend { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.ps-range label { cursor: pointer; position: relative; }
.ps-range input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; }
.ps-range span { display: block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: .85rem; color: var(--muted); }
.ps-range span strong { display: block; color: var(--ink); font-size: .95rem; }
.ps-range input:checked + span { border-color: var(--ink); background: var(--marker-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.ps-range input:focus-visible + span { outline: 3px solid var(--marker); outline-offset: 2px; }
.ps-actions { display: flex; gap: 10px; }
.ps-progress { margin-top: 22px; }
.ps-progress[hidden] { display: none; }
.ps-bar { height: 8px; border-radius: var(--r-sm); background: #e3e7e0; overflow: hidden; }
.ps-bar span { display: block; height: 100%; width: 0; background: var(--marker); box-shadow: inset 0 -2px 0 rgba(22,35,63,.25); transition: width .2s; }
.ps-progress p { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.ps-results { margin-top: 20px; display: grid; gap: 10px; }
.ps-hit { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-left: 5px solid #9aa3b5; border-radius: var(--r-sm); background: var(--white); }
.ps-hit.hoch { border-left-color: var(--t-bad); background: var(--t-bad-bg); }
.ps-hit.mittel { border-left-color: var(--t-warn); background: var(--t-warn-bg); }
.ps-port { font: 700 1.35rem/1 var(--f-mono); }
.ps-level { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 3px; font-size: .78rem; font-weight: 700; background: var(--t-soft); color: var(--ink-2); }
.ps-hit.hoch .ps-level { background: var(--t-bad); color: var(--white); }
.ps-hit.mittel .ps-level { background: var(--t-warn); color: var(--white); }
.ps-hit h3 { font-size: 1.1rem; margin: 0 0 4px; }
.ps-hit p { font-size: .93rem; color: var(--muted); }
.ps-hit a { color: var(--ink); }
.ps-summary { padding: 14px 18px; border-radius: var(--r-sm); background: var(--t-ok-bg); font-size: .95rem; }
.ps-summary.warn { background: var(--t-bad-bg); }
.ps-info { margin-top: 26px; border-top: 1px solid var(--line); }
.ps-info summary { display: flex; justify-content: space-between; padding: 14px 0; font-weight: 700; list-style: none; }
.ps-info summary::-webkit-details-marker { display: none; }
.ps-info summary span { font-size: 1.2rem; transition: transform .2s; }
.ps-info[open] summary span { transform: rotate(45deg); }
.ps-info ul { margin: 0; padding-left: 20px; font-size: .93rem; color: var(--muted); }
.ps-info li { margin-bottom: 6px; }


/* ---------- SEO-Werkzeuge ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.field--wide { grid-column: 1 / -1; }
.field__info { font-size: .82rem; color: var(--muted); min-height: 1.3em; }
.field__info.is-warn { color: var(--bad); }
.field__info.is-ok { color: var(--ok); }
.meter { display: block; height: 6px; background: #e3e7ee; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.meter__bar { display: block; height: 100%; width: 0; background: var(--ok); transition: width .15s ease, background-color .15s; }
.meter__bar.is-short { background: #d1a10f; }
.meter__bar.is-long { background: var(--bad); }

.serp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.serp-grid .f-grid:first-child { margin-top: 0; }
.serp__preview { background: #f6f8fa; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px 22px; }
.serp__preview .seg { margin-bottom: 16px; }
.result { font-family: Arial, Helvetica, sans-serif; max-width: 600px; }
.result[data-view="mobile"] { max-width: 360px; background: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: 0 1px 6px rgba(32,33,36,.18); }
.result__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.result__fav { width: 26px; height: 26px; border-radius: 50%; background: #e8eaed; color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.result__name { display: block; font-size: 14px; color: #202124; line-height: 1.3; }
.result__crumb { display: block; font-size: 12px; color: #4d5156; line-height: 1.3; word-break: break-all; }
.result__title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 4px; overflow-wrap: anywhere; }
.result[data-view="mobile"] .result__title { font-size: 18px; }
.result__desc { font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }

.stats { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 18px 0 20px; font-size: .95rem; color: var(--muted); }
.stats b { color: var(--ink); }
.kw-out { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; font-size: .95rem; padding: 3px 8px; position: relative; z-index: 0; }
.bars li::before { content: ""; position: absolute; inset: 2px auto 2px 0; width: var(--w, 0%); background: var(--seo-bg); border-left: 3px solid var(--seo); z-index: -1; border-radius: 2px; }
.bars li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bars .empty { color: var(--muted); }
.bars .empty::before { display: none; }

.findings { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.findings li { padding: 10px 14px 10px 42px; border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: var(--r-sm); position: relative; font-size: .95rem; }
.findings li::before { position: absolute; left: 14px; top: 10px; font-weight: 700; }
.findings .ok::before { content: "✓"; color: var(--ok); }
.findings .warn { border-left-color: var(--bad); background: var(--t-bad-bg); }
.findings .warn::before { content: "!"; color: var(--bad); left: 18px; }
.findings small { display: block; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.htree { margin-top: 22px; font-size: .92rem; }
.htree ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.htree li { padding: 3px 10px; overflow-wrap: anywhere; }
.htree .lvl { display: inline-block; min-width: 2.2em; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }

.out-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.out-head span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.out-head .f-btns { margin: 0; }
pre.out-code { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; border: 0; padding: 0; }
.checks-inline legend { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; width: 100%; }

@media (max-width: 860px) {
  .f-grid.c3, .f-grid.c4 { grid-template-columns: 1fr 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .serp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .f-grid.c2, .f-grid.c3, .f-grid.c4 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .form-grid, .kw-out { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; border-bottom: 0; }
  .copy-row { flex-direction: column; }
  .f-btns .button, .ps-actions, .ps-actions .button { width: 100%; }
  .ps-hit { grid-template-columns: 1fr; gap: 6px; }
  .tool .seg { display: flex; align-self: stretch; }
  .tool .seg button { flex: 1; }
}

@media print {
  .top, .side, .foot { display: none; }
  body * { visibility: hidden; }
  .qr-card, .qr-card * { visibility: visible; }
  .qr-card { position: fixed; left: 50%; top: 20mm; transform: translateX(-50%); border: 0; box-shadow: none; }
  .qr-card canvas { width: 120mm; height: 120mm; }
  .qr-cap { font-size: 18pt; max-width: none; }
}

/* Code-Ausgabe: kein Inline-Hintergrund innerhalb des dunklen Blocks */
.out-code code { background: none; padding: 0; color: inherit; font-size: inherit; border-radius: 0; }
.tool > :first-child { margin-top: 0; }

/* ---------- Bausteine für die neuen Werkzeuge ---------- */
.tool input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }
.f-sub { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.f-sub > h3:first-child { margin-top: 0; }
.f-hidden { display: none !important; }
.big-num { font: 700 clamp(2rem, 6vw, 3.2rem)/1.1 var(--f-mono); letter-spacing: .06em; overflow-wrap: anywhere; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 18px; }
.stat { background: var(--t-soft); border-radius: var(--r-sm); padding: 12px 14px; }
.stat span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat b { display: block; font: 700 1.25rem/1.25 var(--f-display); margin-top: 2px; overflow-wrap: anywhere; }
.tbl-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.tbl { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .8rem; color: var(--muted); background: var(--t-soft); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.m, .tbl .m { font-family: var(--f-mono); font-size: .86rem; overflow-wrap: anywhere; }
.diff { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: auto; max-height: 70vh; font: .85rem/1.55 var(--f-mono); }
.diff div { display: grid; grid-template-columns: 3.2em 3.2em 1.4em 1fr; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff div > span:nth-child(-n+2) { color: var(--muted); text-align: right; padding-right: 8px; user-select: none; background: var(--t-soft); }
.diff div > span:nth-child(3) { text-align: center; user-select: none; }
.diff .add { background: #e3f4ea; }
.diff .add > span:nth-child(3) { color: var(--ok); font-weight: 700; }
.diff .del { background: #fbe9e6; }
.diff .del > span:nth-child(3) { color: var(--bad); font-weight: 700; }
.diff .gap { color: var(--muted); background: var(--t-soft); grid-template-columns: 1fr; padding: 2px 12px; font-style: italic; }
.img-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.img-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.img-list img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--t-soft); }
.img-list strong { display: block; overflow-wrap: anywhere; }
.img-list small { color: var(--muted); }
.fav-prev { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; margin-top: 18px; padding: 18px; background: var(--t-soft); border-radius: var(--r-sm); }
.fav-prev figure { margin: 0; text-align: center; font-size: .78rem; color: var(--muted); }
.fav-prev canvas { display: block; margin: 0 auto 6px; image-rendering: pixelated; background: repeating-conic-gradient(#e6e9ef 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.otp-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.otp-bar { height: 8px; border-radius: 4px; background: #e3e7ee; overflow: hidden; margin-top: 10px; }
.otp-bar span { display: block; height: 100%; background: var(--ok); transition: width 1s linear; }
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pick-list span { font: 600 1.05rem var(--f-mono); background: var(--t-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 12px; }
@media (max-width: 640px) {
  .img-list li { grid-template-columns: 56px 1fr; }
  .img-list li .button { grid-column: 1 / -1; }
  .img-list img { width: 56px; height: 56px; }
}

/* Port-Scanner: Hinweis vor dem Scan und Browser-Freigabe */
.ps-consent { margin-top: 24px; padding: 20px 22px; border: 1px solid #ecd9a6; border-left: 5px solid var(--warn); border-radius: var(--r-sm); background: var(--t-warn-bg); }
.ps-consent-h { font: 700 1.05rem var(--f-display); margin: 0 0 8px !important; }
.ps-consent ul { margin: 0 0 14px; padding-left: 20px; font-size: .93rem; line-height: 1.7; }
.ps-consent li { margin-bottom: 4px; }
.ps-consent-check { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; border-top: 1px solid #ecd9a6; font-size: .93rem; line-height: 1.55; font-weight: 600; cursor: pointer; }
.ps-consent-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--ink); }
.ps-perm { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 16px; border-radius: var(--r-sm); font-size: .93rem; line-height: 1.6; background: var(--t-ok-bg); }
.ps-perm[hidden] { display: none; }
.ps-perm b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; color: #fff; background: var(--ok); }
.ps-perm.prompt { background: var(--t-warn-bg); }
.ps-perm.prompt b { background: var(--warn); }
.ps-perm.denied { background: var(--t-bad-bg); }
.ps-perm.denied b { background: var(--bad); }

/* Hinweis-Kasten auf jeder Werkzeug-Seite */
.hint { margin: 0 0 18px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--r-sm); font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.hint p { margin: 0; }
.hint p + p { margin-top: 6px; }
.hint strong { color: var(--ink); }
.hint a, .hint__again { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hint__again { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Einmaliger Hinweis-Dialog */
.itc { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; margin: auto; padding: 32px 32px 26px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: 10px 10px 0 var(--brand); font-family: var(--f-body); }
.itc::backdrop { background: rgba(20, 32, 56, .72); backdrop-filter: blur(4px); }
.itc-eye { display: inline-block; font: 600 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--brand); padding: 6px 9px; border-radius: 3px; margin: 0 0 14px; }
.itc h2 { font: 800 clamp(1.6rem, 3vw, 2rem)/1.1 var(--f-display); font-stretch: 86%; letter-spacing: -.02em; margin: 0 0 12px; }
.itc p { font-size: .95rem; line-height: 1.65; color: var(--ink-2); margin: 0 0 10px; }
.itc ul { margin: 0 0 14px; padding-left: 20px; font-size: .93rem; line-height: 1.65; color: var(--ink-2); }
.itc li { margin-bottom: 5px; }
.itc strong { color: var(--ink); }
.itc-note { padding: 11px 14px; border-left: 4px solid var(--ink); background: var(--bg); border-radius: 3px; }
.itc-check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.55; cursor: pointer; }
.itc-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.itc-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.itc-btns a, .itc-btns button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border-radius: var(--r-sm); font: 700 .95rem var(--f-body); text-decoration: none; cursor: pointer; border: 2px solid var(--ink); }
.itc-ok { background: var(--ink); color: #fff; }
.itc-ok[disabled] { opacity: .45; cursor: not-allowed; }
.itc-back { background: transparent; color: var(--ink); }
.itc-back:hover { background: var(--brand-soft); }
.itc-small { font-size: .82rem !important; color: var(--muted) !important; margin: 14px 0 0 !important; }
.itc-small a { color: var(--ink-2); }
html.itc-open { overflow: hidden; }
@media (max-width: 560px) { .itc { padding: 24px 18px 20px; } .itc-btns a, .itc-btns button { width: 100%; } }

/* Nutzungshinweise-Seite */
.hints-dl { margin-bottom: 18px; }
.hints-dl dd { margin: 0; }

/* Datenfluss-Balken über dem Werkzeug */
.flow { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; padding: 12px 16px; border-radius: var(--r-sm); font-size: .95rem; line-height: 1.5; }
.flow strong { font-weight: 800; }
.flow .flow__ic { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.flow--local { background: #e1f2ea; color: #0b4f38; border: 1px solid #9fd4bd; }
.flow--connect { background: #fbefd2; color: #6b4600; border: 1px solid #e8c97a; }
