/* Sudokratie – Datei-Check
   Schriften: Space Grotesk für Überschriften, Inter für alle Texte. Monospace nur für Code. */

@font-face {
  font-family: space;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-wght-normal.woff2);
}
@font-face {
  font-family: inter-fallback;
  src: local('Arial');
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: inter;
  font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2);
}

:root {
  --bg: #0c1210;
  --deep: #090e0c;
  --panel: #121a17;
  --panel-2: #18221e;
  --line: #27322e;
  --text: #edf0ec;
  --muted: #a3b0aa;
  --accent: #07fa9d;
  --accent-rgb: 7 250 157; /* dieselbe Farbe als Tripel für Durchsichtiges: rgb(var(--accent-rgb) / .3) */
  --accent-ink: #032116;
  --risk: #ff7a4d;
  --gutter: max(24px, calc((100vw - 1240px) / 2));
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 inter, inter-fallback, Arial, sans-serif;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: space, inter, inter-fallback, Arial, sans-serif;
  line-height: 1.15;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
}
code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--accent);
  font: 0.92em Consolas, Menlo, monospace;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role=button]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 12px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font: 600 0.75rem space;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Kopfzeile */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 18, 16, .92);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font: 700 1.375rem space;
  letter-spacing: .01em;
  text-decoration: none;
}
.brand-mark {
  display: block;
  border-radius: 8px;
}
.site-head .back {
  margin-left: auto;
  color: #cdd2d0;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-head .back:hover {
  color: var(--accent);
}

/* Einstieg */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: stretch;
  padding: 36px var(--gutter) 28px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
}
.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -.02em;
}
.lead {
  max-width: 620px;
  margin-bottom: 24px;
  color: #cdd2d0;
  font-size: 1.125rem;
}
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 470px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.formats li {
  padding: 4px 12px;
  border: 1px solid #4a5356;
  border-radius: 999px;
  color: #dfe2e0;
  font-size: 0.875rem;
  font-weight: 500;
}
.tool {
  display: none;
}
.has-file .tool {
  display: block;
  margin-top: 28px;
  margin-bottom: 56px;
}
.has-file main > :not(.tool) {
  display: none;
}
#back-start {
  display: none;
}
.has-file #back-start {
  display: inline-flex;
}
.hero-drop {
  display: grid;
  gap: 12px;
}
.demo {
  position: relative;
  margin: 0;
}
.demo-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.demo-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.demo-photo {
  display: block;
  width: 100%;
  height: auto;
}
.demo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.demo-lines line {
  stroke: var(--risk);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}
.demo-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: var(--risk);
  box-shadow: 0 0 0 4px rgba(255, 122, 77, .3);
}
.pin-house {
  left: 55%;
  top: 42%;
}
.pin-glasses {
  left: 78%;
  top: 74%;
}
.demo-tag,
.demo-meta {
  position: absolute;
  border: 1px solid var(--risk);
  border-radius: 8px;
  background: rgba(12, 18, 16, .9);
  font-size: 0.75rem;
  line-height: 1.3;
}
.demo-tag {
  padding: 4px 8px;
}
.demo-tag b,
.demo-meta dt {
  color: var(--risk);
  font: 600 0.75rem/1.2 inter;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.demo-tag b {
  display: block;
}
.tag-gps {
  top: 6%;
  left: 3%;
}
.tag-owner {
  top: 6%;
  right: 3%;
}
.demo-meta {
  bottom: 4%;
  left: 3%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  max-width: 60%;
  margin: 0;
  padding: 5px 8px;
}
.demo-meta div {
  display: contents;
}
.demo-meta dd {
  margin: 0;
  white-space: nowrap;
}
.demo-tag .after,
.demo-meta .after {
  display: none;
}
.demo-switch {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  display: flex;
  gap: 3px;
  width: fit-content;
  margin: 10px auto 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.demo-switch label {
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: 600 0.8125rem inter;
}
#demo-before:checked ~ .demo-switch label[for=demo-before] {
  background: var(--risk);
  color: var(--accent-ink);
}
#demo-after:checked ~ .demo-switch label[for=demo-after] {
  background: var(--accent);
  color: var(--accent-ink);
}
.demo-radio:focus-visible ~ .demo-switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#demo-after:checked ~ .demo-stage .demo-tag,
#demo-after:checked ~ .demo-stage .demo-meta {
  border-color: var(--accent);
}
#demo-after:checked ~ .demo-stage .demo-tag b,
#demo-after:checked ~ .demo-stage .demo-meta dt,
#demo-after:checked ~ .demo-stage .after {
  color: var(--accent);
}
#demo-after:checked ~ .demo-stage .before,
#demo-after:checked ~ .demo-stage .demo-pin,
#demo-after:checked ~ .demo-stage .demo-lines {
  display: none;
}
#demo-after:checked ~ .demo-stage .after {
  display: inline;
  font-weight: 600;
}
.quick-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  border: 2px dashed #5a6467;
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.quick-drop .ico {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.quick-drop strong {
  display: block;
  font: 600 1.25rem space;
}
.quick-drop small {
  color: var(--muted);
  font-size: 0.9375rem;
}
.quick-drop:hover,
.quick-drop.drag {
  border-color: var(--accent);
  background: #17231f;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(var(--accent-rgb) / .22);
  border-radius: 0.65rem;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 450;
}
.trust-badge__icon {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
}
.trust-badge__text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
}
.trust-badge__text strong {
  color: var(--text);
  font-weight: 600;
}
.trust-badge__separator {
  color: rgb(var(--accent-rgb) / .6);
}
@media (max-width: 560px) {
  .trust-badge {
    align-items: flex-start;
    padding: 0.5rem 0.65rem;
    font-size: 0.74rem;
  }
  .trust-badge__icon {
    margin-top: 0.08rem;
  }
  .trust-badge__text {
    row-gap: 0.15rem;
  }

}
.demo-load {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font: 600 0.875rem inter;
}
.demo-load .ico {
  width: 18px;
  height: 18px;
}
.demo-load:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}
.demo-load:disabled {
  cursor: wait;
  opacity: .6;
}
.demo-load[hidden] {
  display: none;
}
@media (min-width: 981px) {
  .demo-load--mobile {
    display: none;
  }

}
.demo-inline {
  margin-left: 6px;
  padding: 4px 13px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font: 600 0.8125rem inter;
}
.demo-inline:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}
.demo-inline:disabled {
  cursor: wait;
  opacity: .6;
}
.demo-inline[hidden] {
  display: none;
}
.offline-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}
.offline-hint__lead {
  display: block;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}
.noscript-note {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--risk);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Werkzeug */
.tool {
  scroll-margin-top: 76px;
  margin: 0 var(--gutter);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}
.tool-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.tool-head h2 {
  font-size: 1.5rem;
}
.progress {
  display: flex;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.progress li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress li > b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #5d666a;
  border-radius: 50%;
  font: 600 0.9375rem space;
}
.progress li.done > b,
.progress li.active > b {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.progress li span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.progress li strong {
  font-size: 0.875rem;
  font-weight: 600;
}
.progress li small {
  color: var(--muted);
  font-size: 0.8125rem;
}
.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 340px;
  min-height: 520px;
}
.file-panel,
.findings-panel,
.personal-panel {
  min-width: 0;
}
.findings-panel {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.file-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.file-heading h3 {
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
.file-heading p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 0.875rem;
}
.preview {
  display: grid;
  place-items: center;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  overflow: hidden;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview .ico {
  width: 56px;
  height: 56px;
  color: #59636a;
}
#file-symbol {
  display: grid;
  place-items: center;
  color: #6b767b;
  font: 700 1.375rem space;
}
.file-panel dl {
  margin: 22px 0;
}
.file-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.file-panel dt {
  color: var(--muted);
}
.file-panel dd {
  margin: 0;
  text-align: right;
}
.file-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: auto;
}
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #8c9598;
  background: none;
  color: var(--text);
  cursor: pointer;
  font: 500 0.9375rem inter;
}
.link-button:hover {
  color: var(--accent);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.empty-state:hover,
.empty-state:focus-visible {
  background: #15201c;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px dashed #66707a;
  border-radius: 14px;
  color: var(--accent);
}
.empty-icon .ico {
  width: 30px;
  height: 30px;
}
.empty-state h3 {
  margin: 20px 0 6px;
  color: var(--text);
  font-size: 1.625rem;
}
.empty-state p {
  max-width: 420px;
}
.empty-state small {
  font-size: 0.8125rem;
}
.results {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.findings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.findings-head h3 {
  color: var(--accent);
  font-size: 1.75rem;
}
.findings-head > div p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.findings-head .risk {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: right;
}
.findings-head meter {
  width: 80px;
  height: 10px;
  accent-color: var(--risk);
}
.findings-head .risk b {
  color: var(--risk);
  font: 600 0.8125rem space;
}
.result-table {
  padding: 0 24px 8px;
}
.finding-row {
  display: grid;
  grid-template-columns: 34px 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.finding-row .pick input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.finding-row .forced-note {
  display: none;
}
.finding-row.forced .forced-note {
  display: block;
  color: var(--accent);
}
.finding-row.locked {
  opacity: .75;
}
.finding-row strong em {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid #5b6469;
  border-radius: 999px;
  color: var(--muted);
  font: 500 0.75rem inter;
}
.select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 24px 6px;
}
.select-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.select-bar span {
  display: flex;
  gap: 8px;
}
.select-bar button {
  padding: 6px 12px;
  border: 1px solid #5b6469;
  border-radius: 6px;
  background: none;
  color: #cfd4d2;
  cursor: pointer;
  font: 600 0.8125rem inter;
}
.select-bar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.finding-row > span {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.finding-row.risk > span {
  color: var(--risk);
}
.finding-row strong {
  display: block;
  font-size: 0.9375rem;
}
.finding-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.finding-row button {
  padding: 6px 10px;
  border: 1px solid #5b6469;
  border-radius: 6px;
  background: none;
  color: #cfd4d2;
  cursor: pointer;
  font: 600 0.75rem inter;
  letter-spacing: .04em;
}
.finding-row button:hover,
.finding-row button[aria-expanded=true] {
  border-color: var(--accent);
  color: var(--accent);
}
.finding-detail {
  grid-column: 3 / -1;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  color: #c4cac8;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.personal-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.personal-panel > header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.panel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--accent);
}
.personal-panel h3 {
  font-size: 1.375rem;
}
.personal-panel header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.personal-table {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.personal-table p {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}
.personal-table div {
  display: grid;
  grid-template-columns: 42% 58%;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}
.personal-table div:last-child {
  border: 0;
}
.personal-table span,
.personal-table b {
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
.personal-table span {
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.personal-table b {
  font-weight: 500;
}
.hint {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.hint .ico {
  margin-top: 2px;
  color: var(--accent);
}
.hint p {
  margin: 0;
  color: #c9cecc;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.personal-panel > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding: 16px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: 700 1.0625rem space;
}
.personal-panel > button:hover:not(:disabled) {
  filter: brightness(1.08);
}
.personal-panel > button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.personal-panel > small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.hint + button {
  margin-top: 20px;
}

/* Inhaltsblöcke */
.block {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--line);
}
.block.alt {
  background: var(--deep);
}
.block h2 {
  margin-bottom: 14px;
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  letter-spacing: -.01em;
}
.prose {
  max-width: 820px;
}
.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.375rem;
}
.prose p,
.prose li {
  color: #cdd2d0;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: var(--accent);
}
.note {
  max-width: 820px;
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--panel);
  color: #d5d9d7;
}
.note strong {
  color: var(--text);
}
.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.privacy {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.privacy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.3125rem;
}
.privacy h3 .ico {
  color: var(--accent);
}
.privacy ul {
  margin: 0;
  padding-left: 20px;
  color: #cdd2d0;
}
.privacy li {
  margin-bottom: 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.cards > .card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.card {
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: #17231f;
}
.card:hover .more .ico {
  transform: translateX(4px);
}
.card .more .ico {
  width: 18px;
  height: 18px;
  transition: transform .15s ease;
}
.cards-intro {
  max-width: 640px;
  margin: -8px 0 24px;
  color: var(--muted);
}
.card img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.card h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}
.card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Fußzeile */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  background: #070b09;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-foot .brand {
  font-size: 1.125rem;
}
.site-foot p {
  margin: 0;
}
.site-foot nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.site-foot nav a {
  color: #cdd2d0;
}

/* Rechtsseiten, Fehlerseite und Statistik */
.legal {
  max-width: 860px;
  margin: 56px auto;
  padding: 0 24px;
}
.legal .label {
  margin: 0 0 8px;
  color: var(--accent);
  font: 600 0.75rem space;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.legal h1 {
  margin-bottom: 28px;
  font-size: clamp(2.125rem, 5.5vw, 3.25rem);
  letter-spacing: -.02em;
}
.legal h2 {
  margin: 36px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.375rem;
}
.legal p {
  color: #cdd2d0;
}
.legal a {
  color: var(--accent);
}
.legal-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.table-wrap {
  overflow-x: auto;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.stats-table th,
.stats-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.stats-table thead th {
  color: var(--accent);
}
.stats-table th:first-child,
.stats-table td:first-child {
  text-align: left;
}
.faq-page h3 {
  margin: 26px 0 8px;
  font-size: 1.1875rem;
}
.faq-page h2 {
  margin-top: 44px;
}
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.faq-toc a {
  display: block;
  padding: 6px 14px;
  border: 1px solid #3c4a44;
  border-radius: 999px;
  color: #dfe6e2;
  font-size: 0.875rem;
  text-decoration: none;
}
.faq-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.back-link {
  margin-top: 40px;
}

/* Mittlere Breiten */
@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .findings-panel {
    border-right: 0;
  }
  .personal-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
  .personal-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .personal-table div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

}
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }
  .hero-drop {
    max-width: 520px;
  }
  .demo {
    display: none;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

/* Schmale Bildschirme */
@media (max-width: 820px) {
  .tool {
    margin: 0 16px;
  }
  .workspace {
    display: block;
  }
  .preview {
    height: 110px;
  }
  .file-panel dl {
    display: none;
  }
  .file-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 8px;
  }
  .findings-panel {
    min-height: 380px;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .personal-panel {
    border-top: 1px solid var(--line);
  }
  .personal-table {
    display: block;
  }
  .personal-table div:nth-child(odd) {
    border-right: 0;
  }
  .progress {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .block {
    padding: 48px 20px;
  }
  .finding-row {
    grid-template-columns: 32px 26px minmax(0, 1fr);
  }
  .finding-row button {
    grid-column: 3;
    justify-self: start;
    margin-bottom: 12px;
  }

}
@media (max-width: 560px) {
  .hero-drop {
    display: flex;
    flex-direction: column;
  }
  .quick-drop {
    order: -1;
  }
  :root {
    --gutter: 20px;
  }
  .site-head {
    min-height: 60px;
    gap: 12px;
  }
  .brand {
    font-size: 1.125rem;
    letter-spacing: .1em;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .lead {
    font-size: 1.0625rem;
  }
  .quick-drop {
    padding: 18px;
  }
  .site-foot nav {
    margin-left: 0;
  }

}

.contact-mail {
  margin: 8px 0 24px;
  font: 600 clamp(22px, 4vw, 30px) space;
}
.contact-mail a {
  color: var(--accent);
}

/* Seite teilen */
.head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-head {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--accent);
  cursor: pointer;
}
.share-head:hover {
  background: var(--panel);
}
.share-head .ico {
  width: 22px;
  height: 22px;
}
.share-head.is-done::after {
  content: attr(data-msg);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--bg);
  color: var(--accent);
  font: 600 0.8125rem inter;
  white-space: nowrap;
}
.share-after {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font: 500 0.875rem inter;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.share-after .ico {
  display: none;
}
.share-after:hover {
  color: var(--accent);
}
.share-after[hidden] {
  display: none;
}
.copy-field {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

/* E-Mail-Prüfer (nutzt die Arbeitsfläche des Datei-Checks: .tool, .workspace, .finding-row, .personal-panel) */
.mail-error {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--risk);
  border-radius: 8px;
  background: var(--panel);
  color: var(--risk);
  font-size: 0.875rem;
}
.qr-demo .demo-photo,
.mail-demo .demo-photo {
  border: 1px solid var(--line);
  border-radius: 14px;
}
.qr-demo .demo-switch,
.mail-demo .demo-switch {
  padding: 4px;
}
.qr-demo .demo-inline,
.mail-demo .demo-inline {
  margin: 0;
}
.mail-meta {
  padding: 14px 24px 4px;
}
.mail-meta p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.mail-meta strong {
  color: var(--text);
}
.finding-row.ok > .pick {
  color: var(--muted);
}
.finding-row strong em.flag {
  border-color: var(--risk);
  color: var(--risk);
}
.finding-detail ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.finding-detail li {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .mail-meta {
    padding-left: 16px;
    padding-right: 16px;
  }

}

/* Typische Fälle (Textlinks unter den Anleitungskarten) */
.cases {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.cases strong {
  margin-right: 8px;
  color: var(--text);
  font-weight: 600;
}
.cases a {
  display: inline-block;
  margin: 0 14px 6px 0;
  color: var(--accent);
  text-underline-offset: 3px;
}
.cases a:hover {
  color: var(--text);
}

/* Lexikon */
.lex-more {
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.875rem;
}
.lex-more a {
  color: var(--accent);
  text-underline-offset: 3px;
}

/* Fotos schwärzen (nutzt ebenfalls .tool, .workspace und .personal-panel) */
.shot-demo .demo-photo {
  border: 1px solid var(--line);
  border-radius: 14px;
}
.shot-stage {
  padding: 20px 24px;
}
.shot-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--panel-2);
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.shot-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.opt-group {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.opt-group legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--muted);
  font: 600 0.75rem inter;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pill-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill-radio label {
  position: relative;
  cursor: pointer;
}
.pill-radio input {
  position: absolute;
  opacity: 0;
}
.pill-radio span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 600 0.8125rem inter;
}
.pill-radio input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.pill-radio input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .shot-stage {
    padding: 14px 16px;
  }

}

.workspace--shot {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.workspace--shot .findings-panel {
  border-left: 0;
}
.shot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 24px 0;
}
.shot-file strong {
  display: block;
  font: 600 1.125rem space;
  overflow-wrap: anywhere;
}
.shot-meta {
  color: var(--muted);
  font-size: 0.8125rem;
}
.shot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}
@media (max-width: 1180px) {
  .workspace--shot {
    grid-template-columns: minmax(0, 1fr);
  }

}
@media (max-width: 560px) {
  .shot-bar {
    padding: 14px 16px 0;
  }

}

/* Fotos schwärzen: Verweise und Werkzeug-Karten */
.cross-link {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font: 600 0.875rem/1.4 inter;
  text-decoration: none;
}
.cross-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.cross-link[hidden] {
  display: none;
}

/* Fotos schwärzen: Bedienung läuft beim Scrollen mit (wichtig bei Hochformatfotos) */
.tool--shot {
  overflow: visible;
  overflow: clip;
}
.shot-stage .hint {
  margin-top: 14px;
}
@media (min-width: 1181px) {
  .workspace--shot .personal-panel {
    position: sticky;
    top: 84px;
    align-self: start;
  }

}
@media (max-width: 1180px) {
  .workspace--shot .personal-panel {
    position: sticky;
    bottom: 0;
    z-index: 6;
    padding: 10px 16px 12px;
    border-top: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, .4);
  }
  .workspace--shot .personal-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 0 10px;
  }
  .workspace--shot .personal-panel > fieldset:first-of-type,
  .workspace--shot .personal-panel > .symbol-box,
  .workspace--shot .personal-panel > button {
    flex: 1 1 100%;
  }
  .workspace--shot .personal-panel > header,
  .workspace--shot .personal-panel > small {
    display: none;
  }
  .workspace--shot .opt-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 6px;
  }
  .workspace--shot .opt-group legend {
    float: left;
    min-width: 42px;
    margin: 0;
  }
  .workspace--shot .personal-panel > button {
    margin-top: 0;
    padding: 11px 16px;
    font-size: 1rem;
  }

}

/* Fußzeile: Links dürfen umbrechen, sonst wird die Seite auf dem Handy seitlich scrollbar */
.site-foot nav {
  flex-wrap: wrap;
  gap: 8px 22px;
  min-width: 0;
}
.site-foot nav a {
  white-space: nowrap;
}

.shot-stage canvas.cur-move {
  cursor: move;
}
.shot-stage canvas.cur-grab {
  cursor: grab;
}
.shot-stage canvas.cur-grabbing {
  cursor: grabbing;
}

@media (max-width: 1180px) {
  .site-head {
    flex-wrap: wrap;
  }
  .head-actions {
    margin-left: auto;
  }

}
@media (max-width: 420px) {
  .site-head .brand {
    gap: 8px;
    font-size: 1rem;
    letter-spacing: .02em;
  }
  .site-head .brand-mark {
    width: 38px;
    height: 38px;
  }

}

/* Prüfprotokoll im Datei-Check */
.protocol {
  margin-top: 14px;
}
.protocol-form {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.protocol-form label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font: 600 0.75rem inter;
}
.protocol-form label:first-child {
  margin-top: 0;
}
.protocol-form input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: 0.9375rem inter;
}
.protocol-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.protocol-make {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 14px 0 6px;
  padding: 11px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font: 700 0.9375rem space;
}
.protocol-make:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}
.protocol-make:disabled {
  cursor: wait;
  opacity: .6;
}
.protocol-form > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Fotos schwärzen: Werkzeugleiste und Symbol-Auswahl */
.shot-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0;
}
.tool-btn {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font: 600 0.8125rem inter;
}
.tool-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.tool-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.tool-btn .ico {
  width: 20px;
  height: 20px;
}
.symbol-box {
  margin-top: 12px;
}
.symbol-open {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font: 600 0.875rem inter;
}
.symbol-open:hover,
.symbol-open[aria-expanded=true] {
  border-color: var(--accent);
}
.symbol-open canvas {
  width: 34px;
  height: 34px;
}
.symbol-pop {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.symbol-emoji {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font: 600 0.75rem inter;
}
.symbol-emoji input {
  width: 84px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.375rem;
  text-align: center;
}
.symbol-emoji input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
@media (max-width: 1180px) {
  .workspace--shot .symbol-box {
    margin: 0 0 6px;
  }
  .workspace--shot .symbol-pop {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    margin: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, .45);
  }
  .workspace--shot .shot-toolbar {
    margin: 4px 0 8px;
  }
  .workspace--shot .symbol-open {
    padding: 3px 10px 3px 3px;
  }

}

@media (max-width: 560px) {
  .workspace--shot .opt-group legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .workspace--shot .pill-radio {
    gap: 5px;
  }
  .workspace--shot .pill-radio span {
    padding: 5px 9px;
    font-size: 0.75rem;
  }

}
@media (max-width: 1180px) {
  .workspace--shot .shot-toolbar {
    margin-left: auto;
  }
  .workspace--shot .tool-btn {
    min-width: 36px;
    height: 36px;
  }

}
@media (max-width: 560px) {
  .workspace--shot .symbol-open span {
    font-size: 0.8125rem;
  }

}
@media (max-width: 560px) {
  .workspace--shot .shot-toolbar {
    gap: 4px;
  }
  .workspace--shot .tool-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
  }

}

/* Emoji-Auswahl */
.emoji-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.emoji-tab {
  flex: 1;
  padding: 4px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1.3;
}
.emoji-tab:hover {
  border-color: var(--line);
}
.emoji-tab.is-on {
  border-color: var(--accent);
  background: var(--panel);
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  max-height: 168px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.emoji-cell {
  padding: 3px 0;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 1.375rem;
  line-height: 1.25;
}
.emoji-cell:hover,
.emoji-cell:focus-visible {
  background: var(--panel);
  outline: 1px solid var(--accent);
}
.symbol-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}
@media (pointer: fine) {
  .symbol-hint {
    display: none;
  }

}
.opt-group[hidden] {
  display: none;
}
.shot-stage canvas.cur-nwse {
  cursor: nwse-resize;
}
.shot-stage canvas.cur-nesw {
  cursor: nesw-resize;
}
/* Am Desktop gibt es keine Emoji-Tastatur: dort nur die Auswahl, kein Eingabefeld */
@media (pointer: fine) {
  .symbol-emoji {
    display: none;
  }

}

/* Rechtsklick-Menü im Foto */
.shot-stage {
  position: relative;
}
.shot-menu {
  position: absolute;
  z-index: 20;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.shot-menu[hidden] {
  display: none;
}
.shot-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  cursor: pointer;
  font: 600 0.875rem inter;
  text-align: left;
}
.shot-menu button:hover:not(:disabled),
.shot-menu button:focus-visible {
  background: var(--panel-2);
  color: var(--accent);
  outline: none;
}
.shot-menu button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.shot-menu .ico {
  width: 18px;
  height: 18px;
}
.shot-menu kbd {
  margin-left: auto;
  color: var(--muted);
  font: 500 0.75rem inter;
}

/* Füllung, Farbe, Rand */
.color-row,
.border-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font: 600 0.8125rem inter;
}
.color-row[hidden],
.border-row[hidden] {
  display: none;
}
input[type=color] {
  width: 44px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  cursor: pointer;
}
input[type=color]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.symbol-box {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .workspace--shot .shot-options {
    flex: 1 1 100%;
    max-height: 30vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

}
.symbol-open {min-height:42px}

/* Eigener Farbwähler */
.color-row {
  flex-wrap: wrap;
}
.cpick {
  position: relative;
}
.cpick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font: 600 0.8125rem inter;
}
.cpick-btn:hover,
.cpick-btn[aria-expanded=true] {
  border-color: var(--accent);
}
.cpick-chip {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 50%;
}
.cpick-hex {
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.cpick-pop {
  width: 244px;
  max-width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.cpick-pop[hidden] {
  display: none;
}
.cpick-sv {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
}
.cpick-hue {
  display: block;
  width: 100%;
  height: 14px;
  margin: 12px 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.cpick-hue::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px #000;
  -webkit-appearance: none;
}
.cpick-hue::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px #000;
}
.cpick-presets {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cpick-preset {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.cpick-preset:hover {
  border-color: var(--text);
}
.cpick-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font: 600 0.75rem inter;
}
.cpick-text {
  width: 96px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: 500 0.875rem inter;
  text-transform: uppercase;
}
.cpick-text:focus-visible,
.cpick-btn:focus-visible,
.cpick-preset:focus-visible,
.cpick-hue:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Füllung als eine Zeile; Auswahlfenster schweben über der Seite, statt sie zu verschieben */
.pill-radio.seg {
  flex-wrap: nowrap;
  gap: 0;
}
.pill-radio.seg label {
  flex: 1 1 auto;
  margin-left: -1px;
}
.pill-radio.seg label:first-child {
  margin-left: 0;
}
.pill-radio.seg span {
  display: block;
  padding: 7px 4px;
  border-radius: 0;
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
}
.pill-radio.seg label:first-child span {
  border-radius: 999px 0 0 999px;
}
.pill-radio.seg label:last-child span {
  border-radius: 0 999px 999px 0;
}
.pill-radio.seg input:checked + span {
  position: relative;
}
.symbol-box {
  position: relative;
  margin-top: 10px;
}
.symbol-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  margin: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.symbol-pop[hidden] {
  display: none;
}
.cpick-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  margin: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.symbol-open {
  min-height: 0;
}
@media (max-width: 1180px) {
  .workspace--shot .symbol-box,
  .workspace--shot .cpick {
    position: static;
  }
  .workspace--shot .symbol-pop,
  .workspace--shot .cpick-pop {
    top: auto;
    right: 0;
    bottom: 100%;
    left: 0;
    width: auto;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, .45);
  }

}
.cpick-pop {
  width: 252px;
  max-width: none;
}
@media (max-width: 1180px) {
  .workspace--shot .cpick-pop {
    width: auto;
  }

}
@media (max-width: 1180px) {
  .workspace--shot .cpick-sv {
    height: 96px;
  }
  .workspace--shot .cpick-presets {
    grid-template-columns: repeat(auto-fill, 28px);
  }
  .workspace--shot .cpick-hue {
    margin: 10px 0;
  }

}

/* Stärke-Regler */
.level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font: 600 0.8125rem inter;
}
.level-row[hidden] {
  display: none;
}
.level-row input[type=range] {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.level-ends {
  color: var(--muted);
  font: 500 0.75rem inter;
  white-space: nowrap;
}
/* Handy und Tablet: keine Anleitung unter dem Foto, die Bedienung liegt direkt darunter */
@media (max-width: 1180px) {
  .tool--shot .shot-stage .shot-help,
  .tool--shot .shot-stage .hint {
    display: none;
  }

}

/* Fehler melden */
.report-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font: 600 0.875rem inter;
}
.report-link[hidden] {
  display: none;
}
.report-form {
  max-width: 640px;
  margin: 24px 0;
}
.report-label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 600;
}
.report-label span {
  color: var(--muted);
  font-weight: 400;
}
.report-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: 1rem/1.5 inter;
  resize: vertical;
}
.report-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.report-form button[type=submit] {
  margin-top: 16px;
}
.report-ctx {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.report-ctx ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.report-attach {
  font-weight: 600;
}
.report-done {
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
}
.report-form button[type=submit] {
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: 700 1rem inter;
}
.report-form button[type=submit]:disabled {
  opacity: .6;
  cursor: wait;
}
.report-ctx .legal-note {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none;
}

.protocol-title {
  margin: 0 0 6px;
  font: 700 0.9375rem space;
}
.protocol-form label span {
  color: var(--muted);
  font-weight: 400;
}

.protocol-dialog {
  width: min(360px, calc(100% - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
}
.protocol-dialog::backdrop {
  background: rgba(0, 0, 0, .6);
}
.protocol-dialog h4 {
  margin: 0 0 6px;
  font: 700 1.125rem space;
}
.protocol-dialog p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.875rem;
}
.protocol-dialog .protocol-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.protocol-links {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.protocol-dialog { max-height: calc(100vh - 32px); overflow-y: auto; width: min(420px, calc(100% - 32px)); }

@media (pointer: coarse) {
  .emoji-cell {
    padding: 6px 0;
    font-size: 1.625rem;
  }
  .emoji-tab {
    padding: 8px 0;
  }
  .emoji-grid {
    max-height: 190px;
  }

}

/* Fotos anonymisieren am Handy: schnell laden, schnell verdecken, schnell speichern */
.drop-touch {
  display: none;
}
@media (pointer: coarse) {
  .drop-desk {
    display: none;
  }
  .drop-touch {
    display: block;
  }

}
.more-opts summary {
  margin-top: 14px;
  color: var(--muted);
  cursor: pointer;
  font: 600 0.75rem inter;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (min-width: 1181px) {
  .more-opts summary {
    display: none;
  }

}
@media (max-width: 1180px) {
  .more-opts summary {
    margin: 0 0 6px;
  }
  .tool--shot .tool-head,
  .tool--shot .shot-file,
  .tool--shot #back-start {
    display: none;
  }
  .tool--shot .shot-bar {
    padding: 10px 16px 0;
  }

}
@media (max-width: 980px) {
  #anonymisieren-start .hero-drop {
    order: -1;
  }
  #anonymisieren-start .formats,
  #anonymisieren-start .demo-load--mobile {
    display: none;
  }

}
@media (pointer: coarse) {
  .quick-drop .drop-desk {
    display: none;
  }
  .quick-drop .drop-touch {
    display: block;
  }

}
@media (max-width: 980px) {
  #anonymisieren-start .offline-hint {
    display: none;
  }

}

/* Nichts springt: Unterzeile der Füllung hat feste Höhe, Rand liegt in einer Zeile */
.fill-sub {
  min-height: 46px;
}
.rand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.rand-line .pill-radio span {
  white-space: nowrap;
}
.border-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.border-row.is-off {
  visibility: hidden;
}
.cpick--chip .cpick-hex {
  display: none;
}
.cpick--chip .cpick-btn {
  padding: 4px;
}
.opt-rand {
  position: relative;
}
.opt-rand .cpick {
  position: static;
}
.opt-rand .cpick-pop {
  top: 100%;
  left: 0;
}
@media (max-width: 1180px) {
  .tool--shot .tool-head {
    display: block;
    padding: 12px 16px 8px;
  }
  .tool--shot .tool-head h2 {
    margin: 0 0 8px;
    font-size: 1.125rem;
  }
  .tool--shot .progress {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
  }
  .tool--shot .progress li {
    flex: 1 1 0;
    min-width: 0;
    gap: 6px;
    padding: 0;
  }
  .tool--shot .progress b {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }
  .tool--shot .progress strong {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .tool--shot .progress small {
    display: none;
  }
  .workspace--shot .opt-rand .cpick-pop {
    top: auto;
    bottom: 100%;
  }

}
@media (max-width: 1180px) {
  .workspace--shot .opt-rand {
    position: static;
  }

}

/* Handy: Ergebnis sofort sichtbar, Speichern-Knopf immer erreichbar */
@media (max-width: 820px) {
  .tool:not(.tool--shot) {
    overflow: visible;
  }
  .tool:not(.tool--shot) .tool-head {
    padding: 12px 16px 8px;
  }
  .tool:not(.tool--shot) .tool-head h2 {
    margin: 0 0 8px;
    font-size: 1.125rem;
  }
  .tool:not(.tool--shot) .progress {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .tool:not(.tool--shot) .progress li {
    gap: 5px;
    min-width: 0;
  }
  .tool:not(.tool--shot) .progress b {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }
  .tool:not(.tool--shot) .progress strong {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .tool:not(.tool--shot) .progress small {
    display: none;
  }
  .file-panel .preview,
  #choose-folder,
  #back-start,
  .personal-panel > header,
  .personal-table,
  .personal-panel .hint,
  #clean-note {
    display: none;
  }
  .file-panel {
    padding-bottom: 8px;
  }
  .findings-panel {
    min-height: 0;
  }
  .personal-panel {
    display: contents;
  }
  #clean-button {
    position: sticky;
    bottom: 12px;
    z-index: 6;
    width: calc(100% - 32px);
    margin: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
  }
  .finding-row {
    grid-template-columns: 32px 26px minmax(0, 1fr) auto;
  }
  .finding-row button {
    grid-column: auto;
    justify-self: end;
    margin: 0;
  }
  .personal-panel .protocol,
  .personal-panel .cross-link,
  .personal-panel .share-after,
  .personal-panel .report-link {
    margin-left: 16px;
    margin-right: 16px;
  }

}
@media (max-width: 820px) {
  .tool:not(.tool--shot) .progress {
    display: none;
  }
  .tool:not(.tool--shot) .tool-head {
    padding-bottom: 12px;
  }

}

/* Statistik: alles mittig in der Zeile, Zahlen und Datum nie umbrechen */
.stats-table th,
.stats-table td {
  vertical-align: middle;
  white-space: nowrap;
}
.stats-table thead th {
  line-height: 1.25;
  vertical-align: bottom;
}
.stats-table thead th small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
.stats-table td[colspan] {
  white-space: normal;
}

/* KI-Hinweis direkt am Beispielbild: immer unten rechts IM Bild. Auf der Startseite sitzt er am Bildrahmen (.demo-stage), nicht am Umschalter darunter. */
.demo {
  position: relative;
}
.demo::after,
.demo-stage::after {
  content: "✦ KI-Bild";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(7, 11, 9, .72);
  color: #e3e8e5;
  font: 600 0.75rem/1.4 inter;
  letter-spacing: .04em;
  pointer-events: none;
}
.demo:has(.demo-stage)::after {
  display: none;
}

.ki-chip {
  position: absolute;
  top: 34px;
  right: 34px;
  z-index: 4;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(7, 11, 9, .72);
  color: #e3e8e5;
  font: 600 0.75rem/1.4 inter;
  letter-spacing: .04em;
  pointer-events: none;
}
.ki-chip[hidden] {
  display: none;
}
@media (max-width: 560px) {
  .ki-chip {
    top: 24px;
    right: 24px;
  }

}

/* Deutliche Warnung im E-Mail-Prüfer */
.mail-alarm {
  margin: 20px 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--risk, #ff7a4d);
  border-radius: 12px;
  background: rgba(255, 122, 77, .1);
}
.mail-alarm[hidden] {
  display: none;
}
.mail-alarm.high {
  border-width: 2px;
  background: rgba(255, 90, 60, .16);
}
.mail-alarm strong {
  display: block;
  color: #ff9a78;
  font: 700 1.125rem/1.3 space;
}
.mail-alarm p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.mail-alarm ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.mail-alarm li {
  padding: 3px 10px;
  border: 1px solid rgba(255, 122, 77, .6);
  border-radius: 999px;
  color: #ff9a78;
  font: 600 0.75rem inter;
}
@media (max-width: 560px) {
  .mail-alarm {
    margin: 14px 16px 0;
  }

}

/* Statistik: breite Seite, Karten nebeneinander, Tabellen mit Rahmenlinien */
.legal.stats-page {
  max-width: 1280px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 20px;
}
.stats-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .stats-grid,
  .stats-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }

}
.stats-card {
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow-x: auto;
}
.stats-card h2,
.stats-card h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
}
.stats-title {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}
.stats-table.grid {
  border: 1px solid var(--line);
}
.stats-table.grid th,
.stats-table.grid td {
  padding: 7px 12px;
  border: 1px solid var(--line);
}
.stats-table.grid thead th {
  background: rgba(255, 255, 255, .04);
}
.stats-table.grid tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .02);
}
.stats-table.grid td.left {
  text-align: left;
}
.legal .stats-card h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.stats-table.grid th,
.stats-table.grid td {
  padding: 6px 9px;
}
.stats-table.grid td.left {
  white-space: normal;
}
/* „Hat geholfen? Seite teilen“ ist ein ruhiger Textlink, kein Knopf */
.personal-panel > button.share-after {
  display: inline-block;
  align-self: flex-start;
  justify-content: flex-start;
  margin-top: 18px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font: 500 0.875rem inter;
}
.personal-panel > button.share-after[hidden] {
  display: none;
}
.personal-panel > button.share-after:hover:not(:disabled) {
  filter: none;
  color: var(--accent);
}
.share-after .ico,
.personal-panel > button.share-after .ico {
  display: inline-block;
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.personal-panel > button.share-after {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #cdd2d0;
  text-decoration: none;
}
.personal-panel > button.share-after span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.personal-panel > button.share-after[hidden] {
  display: none;
}

/* Glanzstreifen auf dem hervorgehobenen Menüpunkt "Fotos anonymisieren": reines CSS, läuft alle ~4 Sekunden einmal durch */
@keyframes nav-shine {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}
@media (min-width: 1181px) {
  /* Als Kapsel, damit der Glanz eine sichtbare Fläche hat; negative Ränder halten den Abstand der Leiste gleich */

}

/* ---------- Handy-Startseite, Ergebnis, Tippziele (Kritik 2026-10-20) ---------- */
/* Ablegefeld gleich nach der Leitzeile, Beweis als kleine Vorher/Nachher-Karte, Rest danach */
.mini-demo {
  display: none;
  margin: 0;
}
@media (max-width: 980px) {
  #datei-pruefen.hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 28px;
  }
  .has-file #datei-pruefen.hero {
    display: none;
  }
  #datei-pruefen .hero-copy,
  #datei-pruefen .hero-drop {
    display: contents;
  }
  #datei-pruefen .hero-copy > *,
  #datei-pruefen .hero-drop > * {
    max-width: 560px;
    margin-top: 0;
    margin-bottom: 0;
  }
  #datei-pruefen .kicker { order: 1; }
  #datei-pruefen .hero-copy > h1 { order: 2; }
  #datei-pruefen .lead { order: 3; }
  #datei-pruefen .quick-drop { order: 4; width: 100%; }
  #datei-pruefen .mini-demo { order: 5; }
  #datei-pruefen .demo-load--mobile { order: 6; }
  #datei-pruefen .offline-hint { order: 7; }
  #datei-pruefen .noscript-note { order: 8; }
  #datei-pruefen .trust-badge { order: 9; }
  #datei-pruefen .formats { display: none; }
  #datei-pruefen .mini-demo {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
  }
  .mini-demo img {
    display: block;
    width: 112px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
  }
  .mini-demo figcaption {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.35;
  }
  .mini-demo figcaption span {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 8px;
  }
  .mini-demo figcaption b {
    color: var(--risk);
    font-weight: 600;
  }
  .mini-demo figcaption span:last-child b {
    color: var(--accent);
  }
  /* "Beispiel-Datei testen" als schlichter Textlink unter der Karte */
  #datei-pruefen .demo-load--mobile {
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  #datei-pruefen .demo-load--mobile:hover:not(:disabled) {
    background: none;
    color: var(--accent);
  }

}

/* Ergebnis: Beispiel-Hinweis und Bestätigung am Speichern-Knopf */
.demo-banner {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgb(var(--accent-rgb) / .08);
  color: var(--text);
  font-size: 0.875rem;
}
.demo-banner[hidden] {
  display: none;
}
#clean-button.is-done {
  background: #0c1210;
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  #clean-button.is-done .ico {
    animation: done-pop .32s cubic-bezier(.22, 1, .36, 1);
  }

}
@keyframes done-pop {
  from { transform: scale(.4); opacity: 0; }
}

/* Tippziele mindestens 44 px am Handy */
@media (max-width: 980px), (pointer: coarse) {
  .brand { min-height: 44px; }
  .share-head { width: 44px; height: 44px; }
  .demo-load { min-height: 44px; }
  .site-foot nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .cases a {
    display: inline-block;
    padding: 10px 0;
  }

}

@media (max-width: 820px) {
  .findings-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

}
/* Ablegefeld: Touch-Text nur bei Touch (".quick-drop strong" setzt display und überschrieb sonst das Ausblenden) */
@media (pointer: fine) {
  .quick-drop .drop-touch {
    display: none;
  }

}

/* ---------- Kritik 2026-10-20 (2. Lauf): Speichern bestätigen, Tippziele, Hero, Seitenende ---------- */
.kicker span {
  white-space: nowrap;
}
.kicker span:not(:last-child)::after {
  content: " ·";
}
.findings-head .risk small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}
.finding-row.is-gone small {
  text-decoration: line-through;
  opacity: .6;
}
.finding-row strong em.gone {
  border-color: var(--accent);
  color: var(--accent);
}
.save-toast {
  display: none;
}
@media (max-width: 820px) {
  .save-toast:not([hidden]) {
    position: fixed;
    right: 16px;
    bottom: 84px;
    left: 16px;
    z-index: 30;
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: #0f1a16;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .6);
    font-size: 0.9375rem;
    line-height: 1.4;
  }

}
@media (prefers-reduced-motion: no-preference) {
  .save-toast:not([hidden]) {
    animation: toast-in .24s cubic-bezier(.22, 1, .36, 1);
  }

}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* Ergebnisliste: Tippziele am Handy mindestens 44 px, Häkchen mit großer Trefferfläche */
@media (max-width: 820px), (pointer: coarse) {
  .finding-row {
    grid-template-columns: 44px 26px minmax(0, 1fr) auto;
  }
  .finding-row .pick {
    min-height: 44px;
    cursor: pointer;
  }
  .finding-row .pick input {
    width: 28px;
    height: 28px;
  }
  .finding-row button,
  .select-bar button {
    min-height: 44px;
  }
  .finding-row button {
    min-width: 80px;
  }
  .file-links .link-button {
    min-height: 44px;
  }

}

/* Hero am Handy: Beispiel-Datei als Knopf direkt unter dem Ablegefeld, Vertrauen nur einmal */
@media (max-width: 980px) {
  #datei-pruefen .trust-badge {
    display: none;
  }
  #datei-pruefen .demo-load--mobile {
    order: 5;
    justify-content: center;
    width: 100%;
    padding: 0 16px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    text-decoration: none;
  }
  #datei-pruefen .demo-load--mobile:hover:not(:disabled) {
    background: var(--accent);
    color: var(--accent-ink);
  }
  #datei-pruefen .mini-demo { order: 6; }
  #datei-pruefen .offline-hint { order: 7; }

}

/* Anleitungen als kompakte Liste, "Warum Sudokratie?" einklappbar */
.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.guide-list a:hover strong,
.guide-list a:focus-visible strong {
  color: var(--accent);
}
.guide-list img {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}
.guide-list span {
  flex: 1;
  min-width: 0;
}
.guide-list strong {
  display: block;
  font: 600 1rem space;
}
.guide-list small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.guide-list .ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.why summary {
  cursor: pointer;
  list-style-position: inside;
}
.why summary h2 {
  display: inline;
  margin: 0;
}
.why[open] summary {
  margin-bottom: 10px;
}

/* ---------- Bewegung (eine Sprache: 160 ms, ease-out, nur transform/opacity/Farbe) ---------- */
.finding-row button,
.select-bar button,
.link-button,
#clean-button,
.demo-load,
.guide-list a,
.guide-list .ico {
  transition: transform .16s cubic-bezier(.22, 1, .36, 1), color .16s ease, border-color .16s ease, background-color .16s ease;
}
.finding-row button:active,
.select-bar button:active,
#clean-button:not(:disabled):active,
.demo-load:not(:disabled):active {
  transform: scale(.97);
}
.guide-list a:hover .ico,
.guide-list a:focus-visible .ico {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: no-preference) {
  .results:not([hidden]) {
    animation: results-in .22s cubic-bezier(.22, 1, .36, 1);
  }
  .results:not([hidden]) .finding-row:nth-child(-n+6) {
    animation: row-in .24s cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .results:not([hidden]) .finding-row:nth-child(2) { animation-delay: 30ms; }
  .results:not([hidden]) .finding-row:nth-child(3) { animation-delay: 60ms; }
  .results:not([hidden]) .finding-row:nth-child(4) { animation-delay: 90ms; }
  .results:not([hidden]) .finding-row:nth-child(5) { animation-delay: 120ms; }
  .results:not([hidden]) .finding-row:nth-child(6) { animation-delay: 150ms; }

}
@media (prefers-reduced-motion: reduce) {
  .finding-row button:active,
  .select-bar button:active,
  #clean-button:active,
  .demo-load:active {
    transform: none;
  }

}
@keyframes results-in {
  from { opacity: 0; }
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
}

.copy-note {
  margin: 0;
  padding: 4px 24px 10px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* E-Mail-Prüfer am Handy: Ablegefeld früh sichtbar, Vertrauen nur einmal, Merkmal-Chips (nicht klickbar) weglassen */
@media (max-width: 980px) {
  #mail-start .formats,
  #mail-start .trust-badge {
    display: none;
  }

}

/* E-Mail-Prüfer: Überschrift nicht grün, wenn die Mail Warnzeichen hat */
#results[data-alarm="high"] .findings-head h3,
#results[data-alarm="mid"] .findings-head h3 {
  color: var(--risk);
}

/* E-Mail-Prüfer am Handy: ein Symbol je Zeile, damit der Text Platz hat */
@media (max-width: 820px) {
  .finding-row.mail-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .finding-row.mail-row .kind {
    display: none;
  }
  .finding-row.mail-row .finding-detail {
    grid-column: 1 / -1;
  }

}

/* ---------- Feinschliff 2026-10-20: Browser-Flächen und Tippziele ---------- */
:root {
  color-scheme: dark;
  scrollbar-color: #3c4a44 var(--bg, #0a0f0d);
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
input,
textarea {
  caret-color: var(--accent);
}
.site-head .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 820px), (pointer: coarse) {
  .faq-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

}

/* ---------- Der eine Moment: Beim Speichern werden entfernte Angaben sichtbar durchgestrichen ---------- */
.finding-row.is-gone small {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 56% / 100% 1.5px;
}
@media (prefers-reduced-motion: no-preference) {
  .finding-row.is-gone small {
    animation: strike-through .42s cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .finding-row.is-gone:nth-child(2) small { animation-delay: 50ms; }
  .finding-row.is-gone:nth-child(3) small { animation-delay: 100ms; }
  .finding-row.is-gone:nth-child(4) small { animation-delay: 150ms; }
  .finding-row.is-gone:nth-child(5) small { animation-delay: 200ms; }
  .finding-row.is-gone:nth-child(6) small { animation-delay: 250ms; }
  .finding-row.is-gone:nth-child(n+7) small { animation-delay: 300ms; }
  .finding-row strong em.gone {
    animation: gone-tag .24s cubic-bezier(.16, 1, .3, 1) .2s backwards;
  }

}
@keyframes strike-through {
  from { background-size: 0 1.5px; opacity: 1; }
}
@keyframes gone-tag {
  from { opacity: 0; transform: translateX(-4px); }
}

/* ---------- Bewegung, Runde 2: Prüfen, Zählen, Fertig, Umschalter, Foto-Fläche ---------- */
.preview {
  position: relative;
}
.preview-done {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(12, 18, 16, .55);
}
.preview-done span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.preview-done .ico {
  width: 38px;
  height: 38px;
  color: var(--accent-ink);
  stroke-width: 2.4;
}
@media (prefers-reduced-motion: no-preference) {
  .preview.scan::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    z-index: 1;
    height: 38%;
    background: linear-gradient(to bottom, transparent, rgb(var(--accent-rgb) / .32) 88%, rgb(var(--accent-rgb) / .9));
    pointer-events: none;
    animation: scan-sweep .9s cubic-bezier(.45, 0, .25, 1) forwards;
  }
  .preview-done {
    animation: done-hold 1.9s cubic-bezier(.16, 1, .3, 1) forwards;
  }
  .preview-done span {
    animation: done-badge .5s cubic-bezier(.16, 1, .3, 1) backwards;
  }
  #demo-before:checked ~ .demo-stage .before,
  #demo-before:checked ~ .demo-stage .demo-pin,
  #demo-before:checked ~ .demo-stage .demo-lines,
  #demo-after:checked ~ .demo-stage .after {
    animation: swap-in .34s cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .shot-stage canvas.canvas-in {
    animation: canvas-in .36s cubic-bezier(.16, 1, .3, 1) backwards;
  }

}
@keyframes scan-sweep {
  from { transform: translateY(-100%); opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateY(263%); opacity: 0; }
}
@keyframes done-hold {
  from { opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  to { opacity: 0; }
}
@keyframes done-badge {
  from { transform: scale(.6); }
}
@keyframes swap-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
}
@keyframes canvas-in {
  from { opacity: 0; transform: translateY(6px); }
}

/* QR-Prüfer */
.qr-content {
  display: grid;
  gap: 6px;
}
.qr-text {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: 0.8125rem/1.5 ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
}
.qr-content p {
  margin: 0;
}
.qr-copy {
  justify-self: start;
}
#qr-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 980px) {
  #qr-start .trust-badge {
    display: none;
  }

}

/* Tastatur-Weg im Foto-Werkzeug: Hinweis nur Screenreadern und am großen Bildschirm sichtbar, sichtbarer Fokus am Bild */
.sr-only,
.shot-keys {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1181px) {
  .shot-keys {
    position: static;
    width: auto;
    height: auto;
    margin: 8px 0 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.45;
  }

}
#shot-canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Statistik: breite Karte (letzte Besuche) und Kurzhinweise */
.stats-wide {
  margin: 24px 0;
}
.stats-sum {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.6;
}
.stats-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Statistik: Hinweis auf neue Fehlermeldungen */
.stats-alert {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: rgb(var(--accent-rgb) / 0.12);
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-size: 1.0625rem;
}
.stats-alert a {
  margin-left: 6px;
  font-weight: 700;
}
