/* sudokratie.de: neue Oberfläche (Entwurf, nur bei SK_PLAY). Eigenständig gebaut, nicht über das alte CSS gelegt.
   Grundidee: EIN Fenster aus Milchglas. Oben die feste Kopfzeile mit der Navigation, darunter scrollt nur der Inhalt.
   Dadurch gibt es keinen Zustand "nach dem Scrollen": Kopfzeile und Rahmen bleiben immer vollständig.
   Innerhalb des Fensters gibt es keine weiteren Rahmen, nur Abstand, feine Linien und das gestrichelte Ablegefeld. */

html.kl-on {
  --frame: max(14px, calc((100vw - 1240px) / 2));
  --line-soft: rgba(255, 255, 255, .1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
html.kl-on body {
  background:
    radial-gradient(1000px 520px at 50% -140px, rgb(var(--accent-rgb) / .1), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
/* ruhig treibender Farbschein hinter dem Glas, damit das Glas etwas zum Brechen hat */
html.kl-on body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 16%, rgb(var(--accent-rgb) / .28), transparent 62%),
    radial-gradient(34vmax 34vmax at 90% 14%, rgba(0, 190, 200, .22), transparent 62%),
    radial-gradient(42vmax 42vmax at 74% 88%, rgb(var(--accent-rgb) / .18), transparent 64%),
    radial-gradient(30vmax 30vmax at 16% 84%, rgba(0, 150, 170, .18), transparent 62%);
  filter: blur(8px);
}
@media (prefers-reduced-motion: no-preference) {
  html.kl-on body::before {
    animation: glow-drift 36s ease-in-out infinite alternate;
  }

}
@keyframes glow-drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
  to { transform: translate3d(3%, 2%, 0) rotate(6deg); }
}

/* ---------- Das Fenster ---------- */
.app {
  position: relative;
}
html.kl-on .app {
  --gutter: 28px;
}
html.kl-on .site-head.kl-head-empty {
  display: none;
}

@media (min-width: 900px) {
  html.kl-on,
  html.kl-on body {
    height: 100%;
    overflow: hidden;
  }
  html.kl-on .app {
    display: flex;
    flex-direction: column;
    height: min(calc(100dvh - 28px), 1040px);
    margin: 14px var(--frame);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015) 28%),
      rgba(10, 18, 15, .5);
    -webkit-backdrop-filter: blur(26px) saturate(1.7);
    backdrop-filter: blur(26px) saturate(1.7);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .3),
      0 30px 70px -30px rgba(0, 0, 0, .8);
  }
  html.kl-on .kl-host {
    position: relative;
    z-index: 5;
    flex: none;
    height: 68px;
    border-bottom: 1px solid var(--line-soft);
  }
  html.kl-on .app-scroll {
    flex: 1;
    min-height: 0;
    padding-top: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
    scroll-behavior: smooth;
  }

}
@media (max-width: 899px) {
  /* Handy: kein Fenster, normale Seite mit fester, deckender Kopfleiste */
  html.kl-on .app {
    --gutter: 16px;
  }
  html.kl-on .kl-host {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 68px;
    margin: 6px 10px 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(10, 18, 15, .82);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .7);
  }
  html.kl-on .app-scroll {
    padding-top: 28px;
  }

}

/* ---------- Navigation: Kopfzeile des Fensters, nur die Kugel ist ein eigenes Element ---------- */
.kl-rim,
.kl-shadow,
.kl-glass {
  display: none;
}
.kl {
  --kl-ease: var(--ease, cubic-bezier(.22, 1, .36, 1));
  position: relative;
  width: 100%;
  height: var(--kl-total);
  user-select: none;
  -webkit-user-select: none;
}
.kl-tabs {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--kl-h);
  padding-left: var(--kl-padl, 12px);
  padding-right: var(--kl-padr, 12px);
  display: grid;
  grid-template-columns: repeat(var(--kl-n, 5), 1fr);
}
.kl-tab {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  height: 100%;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.kl-tab:focus-visible {
  outline: none;
}
.kl-glyph {
  position: absolute;
  left: 50%;
  top: var(--kl-icon, 18px);
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .22s var(--kl-ease) .16s, transform .26s var(--kl-ease) .16s, color .14s;
}
.kl-tab:hover {
  color: var(--text);
}
.kl-tab:active .kl-glyph {
  transform: scale(.88);
  transition-delay: 0s;
}
.kl-tab.is-shown .kl-glyph {
  opacity: 0;
  transform: scale(.6);
  transition-delay: 0s;
}
.kl-label {
  position: absolute;
  left: 50%;
  top: var(--kl-label, 47px);
  width: calc(100% - 4px);
  transform: translate(-50%, -50%);
  text-align: center;
  font: 600 0.75rem/0.875rem space, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-wrap: balance;
  pointer-events: none;
  transition: color .2s linear;
}
.kl-tab.is-shown {
  color: var(--accent);
}
.kl-tab.is-shown .kl-label {
  top: var(--kl-icon, 18px);
}
.kl-bead {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 3;
  cursor: grab;
  touch-action: none;
  color: var(--accent-ink);
  background:
    radial-gradient(ellipse 60% 38% at 50% 20%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 50% 120%, rgba(0, 120, 80, .55), transparent 60%),
    linear-gradient(160deg, #7dffc9, #07fa9d 55%, #04c27a);
  box-shadow:
    0 10px 22px -6px rgb(var(--accent-rgb) / .6),
    0 2px 5px -1px rgba(0, 0, 0, .45),
    inset 0 1px 1px rgba(255, 255, 255, .8),
    inset 0 -2px 5px rgba(0, 90, 55, .35);
  transition: opacity .12s linear;
}
.kl-bead::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
}
.kl-bead.is-drag {
  cursor: grabbing;
}
.kl-bi {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .16s linear, transform .26s var(--kl-ease);
}
.kl-bi.on {
  opacity: 1;
  transform: none;
}
.kl.is-swap .kl-bead {
  opacity: 0;
}
@media (max-width: 420px) {
  .kl-label {
    font-size: 0.75rem;
    letter-spacing: .02em;
  }

}
@media (prefers-reduced-motion: reduce) {
  .kl-glyph { transition: opacity .16s linear, color .14s; }
  .kl-tab:active .kl-glyph,
  .kl-tab.is-shown .kl-glyph { transform: none; }
  .kl-bi,
  .kl-bi.on { transform: none; transition: opacity .16s linear; }

}

/* Logo mit Titel links und Teilen rechts sitzen ab 900 px in der Kopfzeile */
.kl .kl-brand {
  position: absolute;
  left: 18px;
  top: 0;
  height: var(--kl-h);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--text);
  text-decoration: none;
}
.kl .kl-brand img {
  width: 30px;
  height: 30px;
}
.kl .kl-brand span {
  font: 700 1rem/1 space, system-ui, sans-serif;
  letter-spacing: .01em;
}
.kl .kl-share {
  position: absolute;
  right: 12px;
  top: calc((var(--kl-h) - 40px) / 2);
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
}

/* Blatt "Mehr" */
.kl-sheet {
  position: fixed;
  left: 0;
  right: var(--frame, 14px);
  top: 100px;
  z-index: 60;
  width: min(calc(100vw - 28px), 380px);
  margin-left: auto;
  padding: 8px;
  border: 1px solid rgb(var(--accent-rgb) / .35);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 40%, rgb(var(--accent-rgb) / .08)),
    rgba(12, 20, 17, .86);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7);
}
.kl-sheet[hidden] {
  display: none;
}
.kl-sheet-title {
  margin: 4px 12px 2px;
  color: var(--accent);
  font: 600 0.75rem space, system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kl-sheet a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background-color .16s ease;
}
.kl-sheet a:hover,
.kl-sheet a:focus-visible {
  background: rgb(var(--accent-rgb) / .12);
}
.kl-sheet a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.kl-sheet strong {
  font: 600 1rem/1.25 space, system-ui, sans-serif;
}
.kl-sheet small {
  color: var(--muted);
  font-size: 0.8125rem;
}
@media (prefers-reduced-motion: no-preference) {
  .kl-sheet:not([hidden]) {
    animation: sheet-in .26s cubic-bezier(.16, 1, .3, 1);
  }

}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
}

/* ---------- Fuß: kein eigener Kasten, nur eine Linie ---------- */
html.kl-on .site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin: 36px var(--gutter) 0;
  padding: 20px 0 26px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: none;
}
html.kl-on .site-foot p {
  margin: 0 auto 0 0;
}
html.kl-on .site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin: 0;
}
html.kl-on .site-foot nav a {
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
}
html.kl-on .site-foot nav a:hover {
  color: var(--accent);
}
html.kl-on .site-foot .brand {
  font-size: 1.125rem;
  letter-spacing: .01em;
}
@media (max-width: 700px) {
  html.kl-on .site-foot p {
    display: none;
  }

}

/* ---------- Startseite: Kachel-Raster ohne Rahmen ---------- */
.bento {
  position: relative;
  isolation: isolate;
  padding: 0 var(--gutter) 8px;
}
.hero-field {
  display: none;
}
html.kl-on .hero-field {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 68px, #000 220px, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, transparent 68px, #000 220px, #000 55%, transparent);
}
@media (max-width: 899px) {
  html.kl-on .hero-field {
    position: fixed;
    z-index: -1;
    height: 100vh;
    height: 100dvh;
  }

}
html.kl-on .app-scroll {
  position: relative;
  z-index: 1;
}
.bento-intro {
  margin: 0 0 26px;
}
.bento-intro .kicker {
  margin: 0 0 10px;
}
.bento-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.bento-intro .lead {
  max-width: 78ch;
  margin: 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px 28px;
}
.b-tile {
  min-width: 0;
}
.b-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--accent);
  font: 600 0.75rem space, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.b-label .ico {
  width: 16px;
  height: 16px;
}
.b-main {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.b-main .b-label {
  margin: 0;
}
.b-main .quick-drop {
  flex: 1;
  min-height: 124px;
  width: 100%;
  border-radius: 18px;
  background: rgb(var(--accent-rgb) / .05);
}
.b-main .formats-line,
.b-main .offline-hint {
  margin: 0;
  text-align: left;
}
.b-main .offline-hint {
  font-size: 0.8125rem;
}
.b-main .demo-load {
  align-self: flex-start;
  order: 2;
}
.b-main > .quick-drop { order: 1; }
.b-main > .formats-line { order: 3; }
.b-main > .offline-hint { order: 4; }
.b-main > .noscript-note { order: 5; }
.b-demo {
  grid-column: 8 / span 5;
  align-self: center;
}
.b-demo .demo {
  margin: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: none;
}
.b-demo .demo-switch {
  margin-bottom: 10px;
}
/* Werkzeuge: drei Zeilen-Ziele, nur beim Darüberfahren sichtbar hervorgehoben */
.b-tool {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 4;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 16px;
  align-items: center;
  padding: 12px 14px;
  margin: 0 -14px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: background-color .2s ease;
}
.b-tool::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgb(var(--accent-rgb) / .18), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.b-tool:hover,
.b-tool:focus-visible {
  background: rgb(var(--accent-rgb) / .06);
}
.b-tool:hover::before,
.b-tool:focus-visible::before {
  opacity: 1;
}
.b-tool strong {
  align-self: end;
  font: 600 1.125rem/1.25 space, sans-serif;
}
.b-tool small {
  align-self: start;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.b-go {
  grid-row: 1 / span 2;
  grid-column: 3;
  color: var(--accent);
  transition: transform .22s var(--ease);
}
.b-tool:hover .b-go {
  transform: translateX(4px);
}
/* Anleitungen und Datenschutz: durch eine Linie abgesetzt */
.b-guides,
.b-privacy {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.b-guides {
  grid-column: 1 / span 8;
}
.b-privacy {
  grid-column: 9 / span 4;
}
.b-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2px 14px;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}
.b-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.b-list a .ico {
  width: 16px;
  height: 16px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .16s ease, transform .2s var(--ease);
}
.b-list a:hover,
.b-list a:focus-visible {
  background: rgb(var(--accent-rgb) / .1);
  color: var(--accent);
}
.b-list a:hover .ico,
.b-list a:focus-visible .ico {
  opacity: 1;
  transform: none;
}
.b-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.b-facts li {
  position: relative;
  padding-left: 18px;
}
.b-facts li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.b-privacy .why {
  padding: 0;
  border: 0;
  background: none;
}
.b-privacy .why summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  color: var(--text);
  font: 600 0.9375rem space, sans-serif;
  list-style: none;
}
.b-privacy .why summary::-webkit-details-marker {
  display: none;
}
.b-privacy .why summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform .2s var(--ease);
}
.b-privacy .why[open] summary::before {
  transform: rotate(45deg);
}
.b-privacy .why p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Werkzeugseiten und Ergebnis im Fenster: flach ---------- */
html.kl-on .hero {
  padding: 0 var(--gutter) 28px;
}
html.kl-on .hero-steps,
html.kl-on .tool,
html.kl-on .mini-demo,
html.kl-on .trust-badge,
html.kl-on .demo {
  background: none;
  border-color: var(--line-soft);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.kl-on .tool {
  margin: 0 var(--gutter);
  border-radius: 16px;
}
html.kl-on .quick-drop {
  background: rgb(var(--accent-rgb) / .05);
  border-radius: 18px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
html.kl-on .block {
  padding: 40px var(--gutter) 8px;
  border: 0;
  background: none;
}
html.kl-on .block > h2 {
  position: relative;
  padding-top: 14px;
}
html.kl-on .block > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
html.kl-on .hero h1 {
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
}
.hero-steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.hero-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}
.hero-steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 0.9375rem space, sans-serif;
}
.hero-steps span {
  color: var(--muted);
  font-size: 0.875rem;
}
.hero-steps strong {
  display: block;
  color: var(--text);
  font: 600 1rem/1.3 space, sans-serif;
}
.formats-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (min-width: 981px) {
  html.kl-on .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    column-gap: 48px;
    row-gap: 16px;
    align-items: start;
  }
  html.kl-on .hero-copy,
  html.kl-on .hero-drop {
    display: contents;
  }
  html.kl-on .hero > .hero-copy > *,
  html.kl-on .hero > .hero-drop > * {
    grid-column: 1;
    margin-top: 0;
    margin-bottom: 0;
  }
  html.kl-on .hero .kicker { order: 1; }
  html.kl-on .hero h1 { order: 2; }
  html.kl-on .hero .lead { order: 3; }
  html.kl-on .hero .quick-drop { order: 4; min-height: 116px; }
  html.kl-on .hero .formats,
  html.kl-on .hero .formats-line,
  html.kl-on .hero .demo-load { order: 5; justify-self: start; }
  html.kl-on .hero .mail-error,
  html.kl-on .hero .report-link { order: 6; }
  html.kl-on .hero .offline-hint { order: 7; text-align: left; }
  html.kl-on .hero .trust-badge { order: 8; justify-self: start; }
  html.kl-on .hero .noscript-note { order: 10; }
  html.kl-on .hero .demo,
  html.kl-on .hero .hero-steps {
    grid-column: 2;
    grid-row: 1 / span 12;
    align-self: center;
  }

}
@media (max-width: 980px) {
  .hero-steps { order: 2; }

}

/* ---------- Bewegung ---------- */
.quick-drop,
.demo-load {
  --tx: 0px;
  --ty: 0px;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .quick-drop,
  .demo-load {
    transform: translate(var(--tx), var(--ty));
    transition: transform .2s var(--ease), border-color .16s ease, background-color .16s ease, color .16s ease;
  }

}
@keyframes nudge-ring {
  0% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .55); }
  100% { box-shadow: 0 0 0 18px rgb(var(--accent-rgb) / 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .b-tile {
    animation: tile-in .5s cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .b-demo { animation-delay: 60ms; }
  .b-guides { animation-delay: 160ms; }
  .b-privacy { animation-delay: 220ms; }

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

/* ---------- Schmalere Breiten ---------- */
@media (max-width: 980px) {
  .b-main,
  .b-demo,
  .b-guides,
  .b-privacy { grid-column: 1 / -1; }
  .b-tool { grid-column: 1 / -1; }

}
@media (max-width: 980px) {
  .bento-intro h1 { font-size: 1.875rem; }
  .bento-grid { gap: 16px; }
  .b-main .quick-drop { min-height: 120px; }
  .b-demo .demo { display: none; }

}
@media print {
  .kl-host,
  .kl-sheet {
    display: none;
  }

}

/* Reihenfolge in der Hauptkachel: ältere Regeln mit #datei-pruefen vergeben eigene Werte, deshalb hier gleich stark */
html.kl-on #datei-pruefen .b-main > .b-label { order: 0; }
html.kl-on #datei-pruefen .b-main > .quick-drop { order: 1; width: 100%; }
html.kl-on #datei-pruefen .b-main > .demo-load { order: 2; }
html.kl-on #datei-pruefen .b-main > .formats-line { order: 3; text-align: left; }
html.kl-on #datei-pruefen .b-main > .offline-hint { order: 4; text-align: left; }
html.kl-on #datei-pruefen .b-main > .noscript-note { order: 5; }

/* ---------- Anregungen von schettler-und-schmehl.de ----------
   Kein Scrollbalken (er wirkte fehl am Platz): stattdessen eine Fortschrittslinie. Die Abschnittspunkte wurden wieder entfernt (ohne Nutzen).
   Dazu Überschrift mit Akzentwort in einer Serifenschrift im Farbverlauf, Auge-Punkt vor der Zeile darüber,
   Knöpfe als Pillen. */
html.kl-on .app-scroll {
  scrollbar-width: none;
}
html.kl-on .app-scroll::-webkit-scrollbar {
  display: none;
}
.kl-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, #00c79a, #07fa9d 55%, #6fe9ff);
  box-shadow: 0 0 10px rgb(var(--accent-rgb) / .6);
}
html.kl-on .bento-intro .kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
html.kl-on .bento-intro .kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgb(var(--accent-rgb) / .9);
}

/* Knöpfe als Pillen */
html.kl-on .demo-load,
html.kl-on .demo-inline,
html.kl-on #clean-button,
html.kl-on .demo-switch label {
  border-radius: 999px;
}
html.kl-on .demo-load {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)), rgba(14, 24, 21, .4);
  border-color: rgba(255, 255, 255, .22);
  color: var(--text);
}
html.kl-on .demo-load:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
html.kl-on #clean-button:not(:disabled),
html.kl-on .demo-inline,
html.kl-on .protocol-make {
  background: linear-gradient(to top right, #00c79a 0%, #07fa9d 52%, #6fe9ff 100%);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 10px 26px -10px rgb(var(--accent-rgb) / .75), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* Scrollbereich ist per Tastatur erreichbar, braucht aber keinen sichtbaren Rahmen */
html.kl-on .app-scroll:focus {
  outline: none;
}

/* Handy: Überschrift und Ablegefeld rücken nach oben, damit "Foto oder Datei auswählen" ohne Scrollen zu sehen ist */
@media (max-width: 700px) {
  html.kl-on .app-scroll {
    padding-top: 18px;
  }
  .bento-intro {
    margin-bottom: 16px;
  }
  .bento-intro .kicker {
    font-size: 0.75rem;
    letter-spacing: .08em;
  }
  .bento-intro h1 {
    font-size: 1.6875rem;
  }
  .bento-intro .lead {
    font-size: 1rem;
    line-height: 1.45;
  }
  .b-main .quick-drop {
    min-height: 104px;
  }

}

/* Knopf "Nach oben" */
.kl-top {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)), rgba(12, 20, 17, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 28px -10px rgba(0, 0, 0, .75);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.9);
}
.kl-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kl-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.kl-top:hover,
.kl-top:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
}
.kl-top:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .kl-top {
    transition: opacity .2s ease, transform .26s var(--ease), background-color .16s ease, color .16s ease;
  }

}
@media (max-width: 899px) {
  .kl-top {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  /* über dem klebenden Speichern-Knopf der Ergebnisansicht */
  body.has-file .kl-top {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

}
@media print {
  .kl-top {
    display: none;
  }

}

/* Nachbesserung nach Nutzerbild (Breite zwischen Handy und PC, 700-899 px):
   Kopfleiste ohne eigene Kapsel (nur Haarlinie), Inhalt beginnt unterhalb der hängenden Kugel, Überschrift ausgewogen umbrochen,
   Akzentwort größer, damit es nicht klein und dünn allein in der zweiten Zeile steht. */
@media (max-width: 899px) {
  html.kl-on .kl-host {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    background: rgba(10, 18, 15, .9);
    box-shadow: none;
  }
  html.kl-on .app-scroll,
  html.kl-on .app-scroll {
    padding-top: 40px;
  }

}
.bento-intro h1 {
  text-wrap: balance;
}
@media (max-width: 700px) {
  html.kl-on .app-scroll {
    padding-top: 40px;
  }

}

/* Anleitungen: gleich hohe Zeilen mit Symbol, zwei Spalten, feine Trennlinien; Kacheln wachsen nicht mit, wenn "Warum Sudokratie?" aufklappt */
.b-guides,
.b-privacy {
  align-self: start;
}
.b-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
}
.b-list li {
  min-width: 0;
}
.b-list a {
  justify-content: flex-start;
  gap: 14px;
  min-height: 56px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.b-list a img {
  flex: none;
  width: 28px;
  height: 28px;
}
.b-list a span {
  min-width: 0;
}
.b-list a .ico {
  margin-left: auto;
  flex: none;
}
.b-list a:hover,
.b-list a:focus-visible {
  background: rgb(var(--accent-rgb) / .06);
}
@media (max-width: 600px) {
  .b-list {
    grid-template-columns: 1fr;
  }

}
.b-why {
  grid-column: 1 / -1;
  padding-top: 4px;
}
/* Der Auslöser: eine Zeile mit Eingabeaufforderung, öffnet die Terminal-Karte */
.why-open {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: none;
  color: var(--text);
  font: 600 0.9375rem space, sans-serif;
  text-align: left;
  cursor: pointer;
}
.why-open:hover .why-prompt,
.why-open:focus-visible .why-prompt {
  transform: translateX(3px);
}
.why-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.why-prompt {
  color: var(--accent);
  font: 700 0.9375rem ui-monospace, Consolas, monospace;
  transition: transform .18s var(--ease);
}

/* ---------- Terminal-Karte (Vorbild: Terminal Card von lightswind.com, hier dunkel) ---------- */
.term {
  width: min(34rem, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 14px;
  background: #090e0c;
  color: var(--text);
  box-shadow: 0 40px 90px -24px rgb(0 0 0 / .9), 0 0 0 1px rgb(var(--accent-rgb) / .08);
}
.term::backdrop {
  background: rgb(3 7 5 / .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.term[open] {
  display: flex;
  flex-direction: column;
}
@media (prefers-reduced-motion: no-preference) {
  .term[open] {
    animation: term-in .26s cubic-bezier(.16, 1, .3, 1);
  }
  .term[open]::backdrop {
    animation: term-fade .26s ease-out;
  }

}
@keyframes term-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}
@keyframes term-fade {
  from { opacity: 0; }
}
.term-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid rgb(255 255 255 / .09);
  background: rgb(255 255 255 / .055);
  color: var(--muted);
  font: 500 0.8125rem ui-monospace, Consolas, monospace;
}
.term-glyph {
  color: var(--accent);
  font-weight: 700;
}
.term-title {
  flex: 1;
}
.term-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 500 0.8125rem inter, sans-serif;
  cursor: pointer;
}
.term-close:hover {
  background: rgb(255 255 255 / .08);
  color: var(--text);
}
.term-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.term-body {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 20px 22px;
  font: 0.9375rem/1.6 ui-monospace, Consolas, monospace;
}
.term-body p {
  margin: 0 0 4px;
}
.term-prompt {
  color: var(--accent);
  font-weight: 700;
}
.term-cmd {
  color: var(--text);
}
.term-caret {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -.15em;
}
.term-caret[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .term-caret {
    animation: term-blink 1s steps(1) infinite;
  }

}
@keyframes term-blink {
  50% { opacity: 0; }
}
.term-text {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / .09);
  color: var(--text);
  font: 0.9375rem/1.65 inter, sans-serif;
  text-wrap: pretty;
}
.term-text strong {
  color: var(--text);
}
.term-text em {
  color: var(--muted);
}
.term-text code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgb(var(--accent-rgb) / .1);
  color: var(--accent);
  font: 0.875rem ui-monospace, Consolas, monospace;
}

/* Der Knopf "Nach oben" sitzt unten rechts: Fußlinks laufen nicht darunter */
html.kl-on .site-foot {
  padding-right: 64px;
}

/* Zwischenüberschrift über den weiteren Werkzeugen */
.b-tools-label {
  grid-column: 1 / -1;
  margin: 6px 0 -8px;
}

/* Weniger Symbole (Nutzerkritik): Überschriften, Werkzeug-Zeilen und Anleitungen bestehen nur aus Text. Übrig bleiben die Pfeile als Hinweis "klickbar". */
.b-tool {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
}
.b-tool strong {
  grid-column: 1;
}
.b-tool small {
  grid-column: 1;
}
.b-go {
  grid-column: 2;
}
.b-list a {
  gap: 10px;
}

/* Unterseiten: Text nur auf Wunsch */
.read-more {
  margin: 12px var(--gutter, 24px) 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.read-more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  cursor: pointer;
  color: var(--text);
  font: 600 1rem space, sans-serif;
  list-style: none;
}
.read-more > summary::-webkit-details-marker {
  display: none;
}
.read-more > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform .2s var(--ease, ease);
}
.read-more[open] > summary::before {
  transform: rotate(45deg);
}
.read-more > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.read-more .block {
  padding-left: 0;
  padding-right: 0;
}

/* Lange Texte: am Rechner offen, aufklappbar nur auf dem Handy */
@media (min-width: 900px) {
  .read-more > summary {
    display: none;
  }
  .read-more {
    border-top: 0;
    margin-top: 0;
  }

}

/* Textseiten (Impressum, Datenschutz, Statistik, 404) im Fenster */
html.kl-on .legal {
  padding-left: var(--gutter, 24px);
  padding-right: var(--gutter, 24px);
}

/* Bedienbarkeit: Klickziele mindestens 44 px */
html.kl-on .site-foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}
html.kl-on .demo-load,
html.kl-on .b-main .demo-load {
  min-height: 44px;
}
html.kl-on .share-head,
html.kl-on .kl-host .share-head {
  min-width: 44px;
  min-height: 44px;
}
html.kl-on .kl-top {
  width: 48px;
  height: 48px;
}
html.kl-on .trust-badge,
html.kl-on .trust-badge__text,
html.kl-on .trust-badge__text strong,
html.kl-on .trust-badge__separator {
  font-size: 0.75rem;
}
html.kl-on .site-head .brand,
html.kl-on .back-link a,
html.kl-on .legal a.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Beschriftung bleibt immer oben, das Symbol sitzt darunter; nur die Kugel wandert */
.kl-glyph { top: var(--kl-label, 47px); }
.kl-label,
.kl-tab.is-shown .kl-label { top: var(--kl-icon, 18px); }
/* Kopfzeile ab 900 px sofort ausblenden (Logo und Teilen wandern in die Leiste), damit beim Laden nichts springt */
@media (min-width: 900px) {
  html.kl-on .site-head { display: none; }

}

/* Startseite: Bild und Ablegefeld teilen sich Ober- und Unterkante (Bild beginnt auf Höhe des Feldes, Umschalter endet auf Höhe des letzten Hinweises) */
@media (min-width: 981px) {
  .b-demo {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    padding-top: 27px;
  }
  .b-demo .demo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .b-demo .demo .demo-switch {
    margin-bottom: 0;
  }

}

/* ---------- Menü: Beschriftung oben, die Kugel trägt das Symbol des aktiven Punkts und rollt zum Ziel ---------- */
.kl-label,
.kl-tab.is-shown .kl-label {
  top: 21px;
}
.kl-glyph {
  top: 47px;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
}
.kl-bead {
  margin-top: -22px;
}
.kl-ring {
  display: none;
}
.kl-tab:focus-visible::after {
  content: "";
  position: absolute;
  inset: 6px 4px;
  border: 2px solid var(--accent);
  border-radius: 12px;
}

/* Handy: kurze Beschriftung in einer Zeile, damit nichts umbricht oder die Kugel berührt */
.kl-l-short { display: none; }
@media (max-width: 899px) {
  .kl-l-long { display: none; }
  .kl-l-short { display: inline; }
  .kl-label,
  .kl-tab.is-shown .kl-label {
    font-size: 0.75rem;
    letter-spacing: .03em;
    text-transform: none;
    font-weight: 600;
    white-space: nowrap;
  }

}
@media (max-width: 340px) {
  .kl-label,
  .kl-tab.is-shown .kl-label {
    letter-spacing: 0;
    width: calc(100% + 6px);
  }

}

/* Werkzeugseiten: Beispiel- bzw. Schritte-Karte beginnt auf Höhe der Oberkante des Ablegefelds (Feld ist in allen Seiten Zeile 4) */
@media (min-width: 981px) {
  html.kl-on .hero .quick-drop {
    grid-row: 4;
  }
  html.kl-on .hero .demo,
  html.kl-on .hero .hero-steps {
    grid-row: 4 / span 10;
    align-self: start;
  }

}

/* Einheitlich: auch auf der Foto-Seite steht am Handy zuerst der Text, dann das Ablegefeld (wie bei Datei, E-Mail und QR-Code) */
@media (max-width: 980px) {
  html.kl-on #anonymisieren-start .hero-drop {
    order: 0;
  }

}
@media (max-width: 980px) {
  /* gleicher Aufbau am Handy bei Foto, E-Mail und QR-Code: Text, Beispiel-Knopf, Ablegefeld, Hinweis; Chips und Vertrauenszeile entfallen */
  html.kl-on #anonymisieren-start .demo-load--mobile,
  html.kl-on #anonymisieren-start .offline-hint {
    display: flex;
  }
  html.kl-on #anonymisieren-start .offline-hint {
    display: block;
  }
  html.kl-on #anonymisieren-start .trust-badge,
  html.kl-on #qr-start .formats,
  html.kl-on #qr-start .trust-badge {
    display: none;
  }

}

/* Einheitlicher Kopf wie auf der Startseite: Kicker, Überschrift und Einleitung laufen über die volle Breite, darunter Ablegefeld links und Beispielkarte rechts */
@media (min-width: 981px) {
  html.kl-on .hero > .hero-copy > .kicker,
  html.kl-on .hero > .hero-copy > h1,
  html.kl-on .hero > .hero-copy > .lead {
    grid-column: 1 / -1;
  }
  html.kl-on .hero > .hero-copy > .kicker {
    margin-bottom: -6px;
  }
  html.kl-on .hero > .hero-copy > h1 {
    margin-bottom: -6px;
    font-size: clamp(1.875rem, 3.5vw, 2.875rem);
    line-height: 1.06;
    letter-spacing: -.02em;
  }
  html.kl-on .hero > .hero-copy > .lead {
    max-width: 78ch;
    margin-bottom: 10px;
  }

}
@media (min-width: 981px) {
  /* gleiche Spaltenteilung wie auf der Startseite: Feld 7 von 12 Spalten, Karte 5 von 12 */
  html.kl-on .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 28px;
  }
  html.kl-on .hero > .hero-copy > *:not(.kicker):not(h1):not(.lead),
  html.kl-on .hero > .hero-drop > *:not(.demo):not(.hero-steps) {
    grid-column: 1 / span 7;
  }
  html.kl-on .hero .demo,
  html.kl-on .hero .hero-steps {
    grid-column: 8 / span 5;
  }

}

/* Einheitliche Breiten: Ablegefeld immer in voller Spaltenbreite (auch unter 981 px), gleiche Höhe auf allen Werkzeugseiten */
html.kl-on .hero-drop {
  max-width: none;
}
html.kl-on .hero .quick-drop {
  min-height: 124px;
}
@media (max-width: 980px) {
  html.kl-on .hero {
    gap: 16px;
    padding-top: 0;
  }

}
html.kl-on .b-main .quick-drop {
  min-height: 124px;
}

/* Überschriften einzeilig (Umbruch nur, wenn der Platz fehlt) */
html.kl-on h1 .kl-br {
  display: none;
}
html.kl-on .legal h1 {
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}

/* Ablegefeld auf allen vier Seiten auf gleicher Höhe: Startseite ohne Überschrift über dem Feld, gleicher Abstand zur Einleitung wie bei den Werkzeugseiten */
.bento-intro {
  margin-bottom: 16px;
}
@media (min-width: 981px) {
  .b-demo {
    padding-top: 0;
  }

}

/* Beispiel-Knopf auf allen vier Seiten gleich: ein Knopf direkt unter dem Ablegefeld, in jeder Breite sichtbar, ohne Symbol */
@media (min-width: 981px) {
  html.kl-on .hero .demo-load--mobile:not([hidden]) {
    display: inline-flex;
  }

}
html.kl-on .demo-load,
html.kl-on .hero .demo-load,
html.kl-on .b-main .demo-load {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: 600 0.9375rem space, sans-serif;
  align-self: flex-start;
  justify-self: start;
}
html.kl-on .demo-load .ico {
  display: none;
}

/* Gleiche Reihenfolge am Handy wie auf der Startseite: Text, Ablegefeld, Beispiel-Knopf, Hinweis */
@media (max-width: 980px) {
  html.kl-on .hero {
    display: flex;
    flex-direction: column;
  }
  html.kl-on .hero-copy,
  html.kl-on .hero-drop {
    display: contents;
  }
  html.kl-on .hero .kicker { order: 1; }
  html.kl-on .hero h1 { order: 2; }
  html.kl-on .hero .lead { order: 3; }
  html.kl-on .hero .quick-drop { order: 4; }
  html.kl-on .hero .demo-load { order: 5; }
  html.kl-on .hero .mail-error,
  html.kl-on .hero .report-link { order: 6; }
  html.kl-on .hero .offline-hint { order: 7; }
  html.kl-on .hero .noscript-note { order: 10; }
  html.kl-on .hero > .hero-copy > *,
  html.kl-on .hero > .hero-drop > * {
    margin-top: 0;
    margin-bottom: 0;
  }

}
.b-main {
  gap: 16px;
}
@media (max-width: 980px) {
  html.kl-on .hero .hero-steps {
    display: none;
  }

}

/* ---------- Seitenübergänge ----------
   Browser mit View Transitions (Chrome, Edge, Safari 18.2+): Inhalt blendet kurz aus und die neue Seite sanft ein,
   Menü, Fenster und Hintergrund bleiben stehen (die Kugel rollt dabei zum neuen Punkt).
   Andere Browser: nur ein weiches Einblenden des Inhalts. Bei "Bewegung reduzieren" passiert nichts. */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

}
@media (prefers-reduced-motion: no-preference) {
  html.kl-on .kl-host {
    view-transition-name: kl-dock;
  }
  html.kl-on .app-scroll {
    view-transition-name: kl-content;
  }
  ::view-transition-group(root) {
    animation-duration: 0s;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }
  ::view-transition-old(kl-dock) {
    display: none;
  }
  ::view-transition-new(kl-dock) {
    animation: none;
  }
  ::view-transition-group(kl-dock) {
    animation: none;
  }
  ::view-transition-old(kl-content) {
    animation: kl-page-out .35s cubic-bezier(.4, 0, .6, 1) both;
  }
  ::view-transition-new(kl-content) {
    animation: kl-page-in .85s cubic-bezier(.16, 1, .3, 1) .1s both;
  }
  @keyframes kl-page-out {
    to { opacity: 0; transform: translateY(-10px); }
  }
  @keyframes kl-page-in {
    from { opacity: 0; transform: translateY(18px); }
  }

}

/* Ein Beispiel-Knopf pro Seite: der alte Knopf in der Bildkarte der Anleitungsseiten entfällt (der Knopf unter dem Ablegefeld bleibt) */
html.kl-on .demo-inline {
  display: none;
}
html.kl-on form button[type="submit"] {
  min-height: 44px;
}

/* Gleicher Aufbau links auf allen Seiten: Die Vertrauenszeile entfällt überall (steht schon als "Wir sehen deine Datei nicht" darunter) */
html.kl-on .hero .trust-badge {
  display: none;
}

/* ---------- Foto-Werkzeug (Kritik 2026-10-28) ---------- */
/* Eine Zeile Anleitung über dem Foto, nur wo die lange Erklärung ausgeblendet ist (≤1180 px) */
.shot-line {
  display: none;
}
@media (max-width: 1180px) {
  html.kl-on .shot-line {
    display: block;
    margin: 0 0 12px;
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.4;
  }
  /* Warnung nur, wenn sie zutrifft: bei Verpixeln und Weichzeichnen */
  html.kl-on .workspace--shot:has(input[name="shot-fill"][value="pixel"]:checked, input[name="shot-fill"][value="blur"]:checked) .shot-stage .hint {
    display: flex;
  }

}
.save-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.save-hint[hidden] {
  display: none;
}
/* Bedienelemente mindestens 44 px, mit Abstand */
html.kl-on .workspace--shot .pill-radio span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.875rem;
}
html.kl-on .workspace--shot .pill-radio.seg {
  flex-wrap: wrap;
  gap: 6px;
}
html.kl-on .workspace--shot .pill-radio.seg label {
  margin-left: 0;
}
html.kl-on .workspace--shot .pill-radio.seg span,
html.kl-on .workspace--shot .pill-radio.seg label:first-child span,
html.kl-on .workspace--shot .pill-radio.seg label:last-child span {
  display: inline-flex;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.875rem;
}
html.kl-on .workspace--shot .tool-btn {
  min-width: 44px;
  height: 44px;
}
html.kl-on .workspace--shot .shot-toolbar {
  gap: 8px;
}

/* Mail-Seite: der Weg zur .eml-Datei steht offen unter dem Ablegefeld */
html.kl-on .hero .eml-how {
  order: 7;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: left;
}
html.kl-on .hero .eml-how strong {
  color: var(--text);
}

/* Handy: Der Nach-oben-Knopf verdeckt in der Ergebnisansicht "Kopie speichern" und "Details" und entfällt dort */
@media (max-width: 899px) {
  body.has-file .kl-top {
    display: none;
  }

}

/* Nur ein Rahmen: keine umrandeten Karten und Kästen im Fenster, Gliederung durch Abstand und Haarlinien */
html.kl-on .tool {
  border: 0;
  border-radius: 0;
}
html.kl-on .hint,
html.kl-on .legal-note {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
}
html.kl-on .legal-note {
  margin: 0 0 16px;
}
html.kl-on .why,
html.kl-on .personal-table {
  border: 0;
  border-radius: 0;
  background: none;
}
html.kl-on .why {
  padding: 0;
}

/* Sobald eine Datei geladen ist, zeigt die Seite nur das Werkzeug (die Hero-Regeln oben setzen display und dürfen das nicht aushebeln) */
html.kl-on body.has-file main > .hero {
  display: none;
}
@media (max-width: 1180px) {
  html.kl-on .shot-line {
    padding-right: 100px;
  }

}
/* Handy: Füllungen in einer Zeile zum Wischen (44 px hoch), damit die untere Leiste nicht den halben Bildschirm füllt */
@media (max-width: 560px) {
  html.kl-on .workspace--shot .pill-radio.seg {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: calc(var(--gutter, 16px) * -1);
    padding-right: var(--gutter, 16px);
  }
  html.kl-on .workspace--shot .pill-radio.seg::-webkit-scrollbar {
    display: none;
  }
  html.kl-on .workspace--shot .pill-radio.seg label {
    flex: none;
  }

}

/* Statistik: keine umrandeten Karten im Fenster */
html.kl-on .stats-card {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
}

/* ---------- Schrift (typeset 2026-10-28) ---------- */
/* Umbrüche: Überschriften ausgewogen, Fließtext ohne einzelnes Wort in der letzten Zeile */
html.kl-on h1,
html.kl-on h2,
html.kl-on h3 {
  text-wrap: balance;
}
html.kl-on p,
html.kl-on li,
html.kl-on dd {
  text-wrap: pretty;
}
/* Lesbreite: Fließtext auf Text- und Anleitungsseiten höchstens 70 Zeichen breit */
html.kl-on .legal p,
html.kl-on .legal li,
html.kl-on .legal dd,
html.kl-on .block p,
html.kl-on .block li {
  max-width: 70ch;
}

/* Handy: der treibende Farbschein steht still (spart Akku) */
@media (max-width: 899px) {
  html.kl-on body::before {
    animation: none;
  }

}

/* Terminal-Karte: Erklärung wie getippt (Schreibmaschinenschrift), sudo hervorgehoben (nur optisch) */
.term-prose {
  display: grid;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / .09);
}
.term-prose > .term-text {
  grid-area: 1 / 1;
  margin: 0 !important;
  padding: 0;
  border: 0;
  font: 0.9375rem/1.7 ui-monospace, Consolas, monospace;
  text-wrap: pretty;
}
/* Die vollständige Fassung hält die Höhe frei und bleibt für Screenreader lesbar, sichtbar ist nur die getippte */
.term-prose > .term-full {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.term-text strong {
  color: var(--text);
  font-weight: 700;
}
.term-text em {
  color: var(--muted);
  font-style: italic;
}
.term-text code,
.term-sudo {
  color: var(--accent);
  font-weight: 700;
}
.term-text code {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgb(var(--accent-rgb) / .16);
  box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / .35);
  text-shadow: 0 0 14px rgb(var(--accent-rgb) / .65);
  font: 700 0.9375rem ui-monospace, Consolas, monospace;
}
.term-sudo {
  text-shadow: 0 0 12px rgb(var(--accent-rgb) / .55);
}
.term-rest {
  color: var(--text);
}

/* Fremdwörter: gepunktet unterstrichen, beim Darüberfahren (oder Tippen/Tab) erscheint die Übersetzung unter dem Wort */
.term-text .gloss {
  position: relative;
  white-space: nowrap;
  cursor: help;
  text-decoration: underline dotted rgb(var(--accent-rgb) / .7);
  text-underline-offset: 4px;
}
.term-text .gloss::after {
  content: attr(data-gloss);
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  padding: 4px 10px;
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 8px;
  background: #18221e;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / .8);
  color: var(--text);
  font: 500 0.8125rem/1.4 inter, sans-serif;
  font-style: normal;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .15s ease, transform .15s ease;
}
.term-text .gloss:hover::after,
.term-text .gloss:focus-visible::after {
  opacity: 1;
  transform: none;
}
.term-text .gloss:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sprechblase am rechten Rand: nach links ausrichten, damit sie nicht aus der Karte ragt (und keinen Querbalken erzeugt) */
.term-text .gloss.gloss-end::after {
  right: 0;
  left: auto;
}

/* Ohne Seitenübergänge im Browser (html.kl-novt, vom Server gesetzt) blendet die neue Seite weich ein; vor dem Wechsel blendet dock.js den Inhalt aus */
@media (prefers-reduced-motion: no-preference) {
  html.kl-leaving .app-scroll,
  html.kl-leaving .site-head {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s cubic-bezier(.4, 0, .6, 1), transform .3s cubic-bezier(.4, 0, .6, 1);
  }
  html.kl-novt .app-scroll {
    animation: kl-page-in .85s cubic-bezier(.16, 1, .3, 1) backwards;
  }
}

/* Seitenwechsel ohne Neuladen (dock.js): alter Inhalt blendet aus, der neue weich ein */
@keyframes kl-soft-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
html.kl-on .app-scroll.kl-fadeout {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .22s cubic-bezier(.4, 0, .6, 1), transform .22s cubic-bezier(.4, 0, .6, 1);
}
@media (prefers-reduced-motion: no-preference) {
  html.kl-on .app-scroll.kl-fadein {
    animation: kl-soft-in .65s cubic-bezier(.16, 1, .3, 1) both;
  }
}
#hauptinhalt:focus {
  outline: none;
}
