/* KapFixIT PDF Editor, Crystal Glass Look */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("../fonts/ui/archivo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("../fonts/ui/archivo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("../fonts/ui/archivo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("../fonts/ui/archivo-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("../fonts/ui/archivo-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("../fonts/ui/archivo-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("../fonts/ui/archivo-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("../fonts/ui/archivo-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ui/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

/* Schriften fuer die Bearbeitung, identisch mit den Schriften, die ins PDF eingebettet werden */
@font-face { font-family: "KfxSans"; font-weight: 400; font-style: normal; font-display: block; src: url("../fonts/pdf/LiberationSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "KfxSans"; font-weight: 700; font-style: normal; font-display: block; src: url("../fonts/pdf/LiberationSans-Bold.ttf") format("truetype"); }
@font-face { font-family: "KfxSans"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/pdf/LiberationSans-Italic.ttf") format("truetype"); }
@font-face { font-family: "KfxSans"; font-weight: 700; font-style: italic; font-display: block; src: url("../fonts/pdf/LiberationSans-BoldItalic.ttf") format("truetype"); }
@font-face { font-family: "KfxSerif"; font-weight: 400; font-style: normal; font-display: block; src: url("../fonts/pdf/LiberationSerif-Regular.ttf") format("truetype"); }
@font-face { font-family: "KfxSerif"; font-weight: 700; font-style: normal; font-display: block; src: url("../fonts/pdf/LiberationSerif-Bold.ttf") format("truetype"); }
@font-face { font-family: "KfxSerif"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/pdf/LiberationSerif-Italic.ttf") format("truetype"); }
@font-face { font-family: "KfxSerif"; font-weight: 700; font-style: italic; font-display: block; src: url("../fonts/pdf/LiberationSerif-BoldItalic.ttf") format("truetype"); }
@font-face { font-family: "KfxMono"; font-weight: 400; font-style: normal; font-display: block; src: url("../fonts/pdf/LiberationMono-Regular.ttf") format("truetype"); }
@font-face { font-family: "KfxMono"; font-weight: 700; font-style: normal; font-display: block; src: url("../fonts/pdf/LiberationMono-Bold.ttf") format("truetype"); }
@font-face { font-family: "KfxMono"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/pdf/LiberationMono-Italic.ttf") format("truetype"); }
@font-face { font-family: "KfxMono"; font-weight: 700; font-style: italic; font-display: block; src: url("../fonts/pdf/LiberationMono-BoldItalic.ttf") format("truetype"); }
@font-face { font-family: "KfxCarlito"; font-weight: 400; font-style: normal; font-display: block; src: url("../fonts/pdf/Carlito-Regular.ttf") format("truetype"); }
@font-face { font-family: "KfxCarlito"; font-weight: 700; font-style: normal; font-display: block; src: url("../fonts/pdf/Carlito-Bold.ttf") format("truetype"); }
@font-face { font-family: "KfxCarlito"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/pdf/Carlito-Italic.ttf") format("truetype"); }
@font-face { font-family: "KfxCarlito"; font-weight: 700; font-style: italic; font-display: block; src: url("../fonts/pdf/Carlito-BoldItalic.ttf") format("truetype"); }
@font-face { font-family: "KfxCaladea"; font-weight: 400; font-style: normal; font-display: block; src: url("../fonts/pdf/Caladea-Regular.ttf") format("truetype"); }
@font-face { font-family: "KfxCaladea"; font-weight: 700; font-style: normal; font-display: block; src: url("../fonts/pdf/Caladea-Bold.ttf") format("truetype"); }
@font-face { font-family: "KfxCaladea"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/pdf/Caladea-Italic.ttf") format("truetype"); }
@font-face { font-family: "KfxCaladea"; font-weight: 700; font-style: italic; font-display: block; src: url("../fonts/pdf/Caladea-BoldItalic.ttf") format("truetype"); }

@font-face { font-family: "KfxArabic"; font-weight: 400; font-display: block; src: url("../fonts/pdf/NotoSansArabic-Regular.ttf") format("truetype"); }
@font-face { font-family: "KfxArabic"; font-weight: 700; font-display: block; src: url("../fonts/pdf/NotoSansArabic-Bold.ttf") format("truetype"); }
@font-face { font-family: "KfxHebrew"; font-weight: 400; font-display: block; src: url("../fonts/pdf/NotoSansHebrew-Regular.ttf") format("truetype"); }
@font-face { font-family: "KfxHebrew"; font-weight: 700; font-display: block; src: url("../fonts/pdf/NotoSansHebrew-Bold.ttf") format("truetype"); }
@font-face { font-family: "KfxCJK"; font-weight: 400 700; font-display: block; src: url("../fonts/pdf/NotoSansCJK-Regular.ttf") format("truetype"); }

:root {
  --grund: #06070A;
  --flaeche: #101215;
  --verlauf: linear-gradient(160deg, #61B2ED 0%, #6151CF 55%, #743BBE 100%);
  --himmel: #67C7F4;
  --violett: #AFA3FF;
  --text: #EEF1F4;
  --gedaempft: #A3ACB8;
  --leise: #A0A9B6;
  --ok: #8FE3B0;
  --warn: #F5C26B;
  --fehler: #FF8A8A;
  --a1: .30; --a2: .52; --a3: .58;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--grund);
  overflow-x: hidden;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.versteckt { display: none !important; }
a { color: var(--himmel); }
:focus-visible { outline: 2px solid var(--himmel); outline-offset: 2px; }

/* Hintergrund: gedaempfte Lichtflecken, Leiterbahnen, Korn */
.welt {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(34% 40% at 10% 14%, rgba(97,178,237,.42), transparent 70%),
    radial-gradient(30% 38% at 58% 44%, rgba(97,81,207,.36), transparent 72%),
    radial-gradient(40% 46% at 94% 90%, rgba(116,59,190,.45), transparent 70%),
    radial-gradient(26% 30% at 36% 100%, rgba(103,199,244,.24), transparent 70%),
    var(--grund);
}
.welt svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.welt .korn { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; }
body.arbeit .welt { filter: saturate(.75) brightness(.6); }

/* Glasebenen */
.lq-1, .lq-2, .lq-3 { position: relative; border: 1px solid transparent; }
.lq-1 {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 40%) padding-box,
    linear-gradient(rgba(8,10,14,var(--a1)), rgba(8,10,14,var(--a1))) padding-box,
    linear-gradient(150deg, rgba(255,255,255,.42), rgba(255,255,255,.07) 30%, rgba(255,255,255,.02) 62%, rgba(175,163,255,.30)) border-box;
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.20);
}
.lq-2 {
  background: radial-gradient(110% 70% at 0% 0%, rgba(255,255,255,.09), transparent 45%) padding-box,
    linear-gradient(rgba(12,14,20,var(--a2)), rgba(12,14,20,var(--a2))) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.50), rgba(255,255,255,.09) 28%, rgba(255,255,255,.02) 60%, rgba(103,199,244,.38)) border-box;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 26px 60px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -14px 34px rgba(0,0,0,.20);
}
.lq-3 {
  background: radial-gradient(90% 60% at 15% 0%, rgba(255,255,255,.16), transparent 55%) padding-box,
    linear-gradient(rgba(18,21,28,var(--a3)), rgba(18,21,28,var(--a3))) padding-box,
    linear-gradient(140deg, rgba(255,255,255,.70), rgba(255,255,255,.12) 26%, rgba(255,255,255,.03) 58%, rgba(175,163,255,.55)) border-box;
  -webkit-backdrop-filter: blur(10px) saturate(200%) brightness(1.08);
  backdrop-filter: blur(10px) saturate(200%) brightness(1.08);
  backdrop-filter: url(#kfx-liquid) blur(10px) saturate(200%) brightness(1.08);
  box-shadow: 0 34px 80px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.40), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 30px rgba(255,255,255,.04);
}
.lq-spec {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.13), transparent 32%),
    radial-gradient(60% 40% at 100% 100%, rgba(103,199,244,.10), transparent 70%);
}
@media (prefers-reduced-transparency: reduce) {
  .lq-1, .lq-2, .lq-3 { -webkit-backdrop-filter: none; backdrop-filter: none; background: #101215; border-color: rgba(255,255,255,.18); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Navigation */
.nav-huelle { position: sticky; top: 14px; z-index: 30; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 14px; border-radius: 999px; width: min(1180px, 100%);
}
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.marke img { width: 30px; height: 34px; display: block; filter: drop-shadow(0 4px 12px rgba(97,81,207,.55)); }
.marke-text { display: flex; flex-direction: column; line-height: 1.05; }
.marke-name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.marke-sub { font-family: var(--mono); font-size: 10px; color: var(--leise); letter-spacing: .02em; }
.nav-platz { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; color: var(--text); background: rgba(0,0,0,.28);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
  white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; color: var(--ok); }
.chip.chip-aenderung svg { color: var(--violett); }

/* Knoepfe */
.knopf {
  appearance: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: 10px; white-space: nowrap;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)) padding-box,
    linear-gradient(150deg, rgba(255,255,255,.40), rgba(255,255,255,.06) 50%, rgba(175,163,255,.30)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .15s ease, opacity .2s ease;
}
.knopf svg { width: 18px; height: 18px; flex: 0 0 auto; }
.knopf:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.knopf:active:not(:disabled) { transform: translateY(0); }
.knopf:disabled { opacity: .42; cursor: default; }
.knopf.primaer {
  color: #fff;
  background: var(--verlauf) padding-box, linear-gradient(160deg, rgba(255,255,255,.65), rgba(255,255,255,.1)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 28px rgba(97,81,207,.55), 0 2px 6px rgba(0,0,0,.3);
}
.knopf.symbol { width: 38px; padding: 0; }
.knopf.gross { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.knopf.gross svg { width: 20px; height: 20px; }

/* Startansicht */
main { position: relative; }
.start { width: min(1180px, 100%); margin: 0 auto; padding: 56px 16px 40px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.ueberzeile { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--himmel); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; margin: 0 0 18px; }
h1 .verlauf-text { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--gedaempft); max-width: 34em; margin: 0 0 26px; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hinweis-klein { font-size: 13px; color: var(--leise); display: flex; align-items: center; gap: 7px; }
.hinweis-klein svg { width: 16px; height: 16px; color: var(--ok); }

.ablage {
  border-radius: 28px; padding: 18px; min-height: 340px; display: flex; flex-direction: column;
}
.ablage-feld {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  border-radius: 20px; padding: 32px 18px; cursor: pointer;
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 2px 10px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.06);
  outline: 1.5px dashed rgba(255,255,255,.22); outline-offset: -10px;
  transition: outline-color .2s ease, background .2s ease;
}
.ablage-feld:hover, .ablage-feld.drueber { outline-color: var(--himmel); background: rgba(103,199,244,.10); }
.ablage-symbol {
  width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; color: #fff;
  background: var(--verlauf); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 14px 34px rgba(97,81,207,.55);
}
.ablage-symbol svg { width: 30px; height: 30px; }
.ablage-titel { font-size: 19px; font-weight: 700; margin: 6px 0 0; }
.ablage-text { font-size: 14px; color: var(--leise); margin: 0; }

.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.karte { border-radius: 22px; padding: 20px; }
.karte h2, .karte h3 { margin: 10px 0 6px; font-size: 17px; letter-spacing: -.01em; }
.karte p { margin: 0; color: var(--gedaempft); font-size: 14.5px; }
.karte-symbol { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--himmel); background: rgba(0,0,0,.28); box-shadow: inset 0 1px 3px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08); }
.karte-symbol svg { width: 20px; height: 20px; }

.abschnitt { margin-top: 56px; }
.abschnitt > h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; margin: 0 0 16px; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: schritt; padding: 0; margin: 0; list-style: none; }
.schritte li { border-radius: 22px; padding: 20px; }
.schritte li::before { counter-increment: schritt; content: counter(schritt); font-family: var(--mono); font-size: 13px; color: var(--violett); display: block; margin-bottom: 8px; }
.schritte strong { display: block; font-size: 16px; margin-bottom: 4px; }
.schritte span { color: var(--gedaempft); font-size: 14.5px; }
.fragen { display: grid; gap: 12px; }
.fragen details { border-radius: 18px; padding: 4px 18px; }
.fragen summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; font-family: var(--mono); color: var(--himmel); }
.fragen details[open] summary::after { content: "\2212"; }
.fragen details p { margin: 0 0 14px; color: var(--gedaempft); }

footer { width: min(1180px, 100%); margin: 40px auto 0; padding: 0 16px 34px; }
.fuss { border-radius: 22px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--gedaempft); }
.fuss a { color: var(--gedaempft); text-decoration: none; }
.fuss a:hover { color: var(--text); }
.fuss nav { display: flex; gap: 18px; flex-wrap: wrap; }
.fuss .slogan { font-weight: 700; color: var(--text); }

/* Arbeitsansicht */
.arbeit-leiste-huelle { position: sticky; top: 74px; z-index: 25; display: flex; justify-content: center; padding: 10px 16px 0; pointer-events: none; }
.leiste {
  pointer-events: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px; border-radius: 20px; max-width: 100%;
}
.trenner { width: 1px; align-self: stretch; margin: 4px 2px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0)); }
.segment { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.28); box-shadow: inset 0 1px 3px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06); }
.segment button {
  appearance: none; border: 0; background: transparent; color: var(--gedaempft); font: inherit; font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; min-height: 32px; border-radius: 9px; cursor: pointer;
}
.segment button svg { width: 17px; height: 17px; }
.segment button[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px rgba(0,0,0,.35);
}
.zoom-wert { font-family: var(--mono); font-size: 12.5px; min-width: 52px; text-align: center; color: var(--gedaempft); }
.status-zeile { display: flex; justify-content: center; padding: 10px 16px 0; }
.status {
  font-size: 13px; color: var(--gedaempft); padding: 5px 14px; border-radius: 999px; background: rgba(6,7,10,.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: inline-flex; gap: 8px; align-items: center; max-width: 100%;
}
.status.fehler { color: var(--fehler); }
.status.warnung { color: var(--warn); }
.status.ok { color: var(--ok); }

.seiten { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 22px 16px 120px; }
.seite-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seite {
  position: relative; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.10);
}
.seite canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seite .ebene { position: absolute; inset: 0; }
.seite.modus-hinzu .ebene { cursor: text; }
.seite-nr { font-family: var(--mono); font-size: 12px; color: var(--leise); }
.seite-laedt::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0) 30%, rgba(97,81,207,.10) 50%, rgba(0,0,0,0) 70%) #f4f5f8;
  background-size: 200% 100%; animation: glanz 1.2s linear infinite;
}
@keyframes glanz { to { background-position: -200% 0; } }

/* Bearbeitbare Textstellen */
.t {
  position: absolute; white-space: pre; outline: none; cursor: text; line-height: 1.2;
  color: transparent; caret-color: #111; border-radius: 2px; transform-origin: 0 0;
  padding: 0; margin: 0;
}
.t:hover { background: rgba(103,199,244,.16); box-shadow: 0 0 0 1px rgba(103,199,244,.55); }
.t.aktiv, .t.geaendert, .t.neu { color: var(--tf, #111); background: transparent; }
.t { text-decoration-color: transparent; }
.t.aktiv, .t.geaendert { text-decoration-color: var(--df, currentColor); }
.t.neu { background: transparent; }
.t.aktiv { box-shadow: 0 0 0 1.5px var(--himmel), 0 0 0 5px rgba(103,199,244,.25); z-index: 2; }
.t.geaendert:not(.aktiv):hover, .t.neu:not(.aktiv):hover { box-shadow: 0 0 0 1px rgba(175,163,255,.8); }
.t.leer.neu:not(.aktiv) { min-width: 6px; }
.seite.modus-hinzu .t { pointer-events: none; }
.seite.modus-hinzu .t.neu { pointer-events: auto; }

/* Formatleiste */
.format {
  position: fixed; z-index: 40; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 16px;
  transform: translate(-50%, calc(-100% - 12px)); max-width: calc(100vw - 16px);
}
.format .knopf { min-height: 34px; font-size: 13px; padding: 0 10px; }
.format .knopf.symbol { width: 34px; padding: 0; }
.format .knopf[aria-pressed="true"] { background: linear-gradient(160deg, #8fdcff, var(--himmel)) padding-box, linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.2)) border-box; color: #06070A; box-shadow: 0 0 14px rgba(103,199,244,.55); }
.groesse { font-family: var(--mono); font-size: 12.5px; min-width: 42px; text-align: center; }
.farbe { position: relative; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); cursor: pointer; }
.farbe input { position: absolute; inset: -8px; width: 50px; height: 50px; border: 0; padding: 0; cursor: pointer; background: none; }

/* Dialog */
dialog.dlg { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(440px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgba(6,7,10,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg-innen { border-radius: 28px; padding: 22px; }
.dlg-innen h2 { margin: 0 0 8px; font-size: 20px; }
.dlg-innen p { margin: 0 0 14px; color: var(--gedaempft); font-size: 14.5px; }
.dlg-innen input[type="password"] {
  width: 100%; font: inherit; color: var(--text); padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28); box-shadow: inset 0 2px 6px rgba(0,0,0,.4);
}
.dlg-innen input:focus { outline: none; border-color: var(--himmel); box-shadow: 0 0 0 4px rgba(103,199,244,.25); }
.dlg-knoepfe { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* Fortschritt */
.fortschritt { width: 160px; height: 8px; border-radius: 99px; background: rgba(0,0,0,.35); box-shadow: inset 0 1px 3px rgba(0,0,0,.5); overflow: hidden; }
.fortschritt i { display: block; height: 100%; width: 0; background: var(--verlauf); box-shadow: 0 0 10px rgba(103,199,244,.6); transition: width .2s ease; }

/* Ablage ueber dem ganzen Fenster */
.vollablage { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(6,7,10,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vollablage.an { display: flex; }
.vollablage div { padding: 28px 36px; border-radius: 28px; font-size: 20px; font-weight: 700; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .karten, .schritte { grid-template-columns: 1fr; }
  .ablage { min-height: 260px; }
}
@media (max-width: 640px) {
  .lq-1, .lq-2 { -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }
  .nav .marke-sub, .nav .chip-text-lang { display: none; }
  .start { padding-top: 34px; }
  .leiste .knopf-text { display: none; }
  .leiste .knopf { padding: 0 10px; }
  .arbeit-leiste-huelle { top: 66px; }
  .format .knopf-text { display: none; }
}
@media print { .welt, .nav-huelle, .arbeit-leiste-huelle, .status-zeile, footer { display: none; } }
[hidden] { display: none !important; }

/* In der Arbeitsansicht liegen Leisten ueber weissen Seiten: dichter und mit weicherem Schatten */
body.arbeit { --a3: .84; --a2: .78; }
body.arbeit .nav, body.arbeit .leiste, body.arbeit .format {
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.40), inset 0 -1px 0 rgba(255,255,255,.08);
}
.nav { min-width: 0; overflow: hidden; }
@media (max-width: 640px) {
  body.arbeit .chip-schutz { display: none; }
  .leiste { gap: 6px; padding: 6px; flex-wrap: nowrap; }
  .leiste .trenner { display: none; }
  .leiste .knopf { min-height: 36px; padding: 0 9px; }
  .segment button { padding: 0 9px; }
  .status { font-size: 12px; }
  .format { gap: 4px; padding: 5px; }
  .format .knopf.symbol, .farbe { width: 32px; height: 32px; min-height: 32px; }
}
@media (max-width: 480px) {
  .leiste .zoom-teil { display: none; }
}

/* Hinweis auf die Texterkennung, wenn eine Seite keine Textebene hat */
#knopf-ocr.hinweis {
  color: #06070A;
  background: linear-gradient(160deg, #a9e6ff, var(--himmel)) padding-box, linear-gradient(160deg, rgba(255,255,255,.8), rgba(255,255,255,.2)) border-box;
  box-shadow: 0 0 0 4px rgba(103,199,244,.25), 0 0 22px rgba(103,199,244,.55);
  animation: puls 2s ease-in-out infinite;
}
@keyframes puls { 50% { box-shadow: 0 0 0 7px rgba(103,199,244,.12), 0 0 30px rgba(103,199,244,.7); } }

/* Schrift von rechts nach links (Arabisch, Hebraeisch) */
.t.rtl { direction: rtl; unicode-bidi: plaintext; text-align: right; }
/* Gesperrte Textstellen (Symbolschriften, nicht unterstuetzte Schriftsysteme) */
.t.gesperrt { cursor: not-allowed; }
.t.gesperrt:hover { background: rgba(245,194,107,.18); box-shadow: 0 0 0 1px rgba(245,194,107,.6); }

/* Formularfelder */
.feld {
  position: absolute; margin: 0; padding: 0 2px; border: 1px solid rgba(103,199,244,.55); border-radius: 2px;
  background: rgba(103,199,244,.10); color: #111; font-family: "KfxSans", Arial, sans-serif; line-height: 1.15;
  outline: none; resize: none; overflow: hidden; box-sizing: border-box;
}
.feld:hover { background: rgba(103,199,244,.18); }
.feld:focus { border-color: var(--himmel); box-shadow: 0 0 0 3px rgba(103,199,244,.35); background: rgba(255,255,255,.85); }
.feld.geaendert { border-color: var(--violett); }
.feld:disabled { background: transparent; border-color: transparent; }
textarea.feld { padding-top: 2px; overflow: auto; }
input.feld[type="checkbox"], input.feld[type="radio"] { appearance: auto; accent-color: #6151CF; padding: 0; border: 0; background: transparent; cursor: pointer; }
select.feld { padding: 0; }
.seite.modus-hinzu .feld { pointer-events: none; }
