@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-tight-latin.77fefe8ca1.woff2") format("woff2-variations");
  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: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-tight-latin-ext.fd9beddaae.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Helles Design ist Standard; html[data-theme="dark"] schaltet um (assets/theme.js). */
:root {
  --bg: #f7f6f3;
  --panel: #ffffff;
  --bar: #f2f0eb;
  --bar-green: #eaf4ec;
  --line: #e6e2da;
  --line-soft: #efece6;
  --text: #1d1b18;
  --muted: #66625b;
  --faint: #9a958c;
  --accent: #ff6b3d;
  --accent-hover: #f45a2a;
  --accent-ink: #1d0b03;
  --accent-soft: #ffeee7;
  --accent-text: #c2410c;
  --ok: #1f8a4c;
  --ok-soft: #e4f5ea;
  --ok-text: #15673a;
  --err: #c8372d;
  --err-soft: #fdecea;
  --term-bg: #16211c;
  --term-bar: #1e2c25;
  --term-text: #cfe3d6;
  --term-dim: #7c9a88;
  --footer-bg: #1c1a17;
  --footer-text: #f3efe8;
  --footer-muted: #a19b91;
  --shadow-sm: 0 1px 2px rgb(29 27 24 / 0.05);
  --shadow: 0 1px 2px rgb(29 27 24 / 0.04), 0 8px 24px -10px rgb(29 27 24 / 0.12);
  --shadow-lg: 0 2px 4px rgb(29 27 24 / 0.04), 0 18px 40px -16px rgb(29 27 24 / 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;

  /* Werkzeug-Farben (Icon) – Hintergrund wird daraus abgeleitet */
  --c-orange: #f2622f;
  --c-violet: #7a5af8;
  --c-teal: #0e9f94;
  --c-amber: #d99100;
  --c-pink: #e0457f;
  --c-blue: #2f74f0;
  --c-green: #1f9a55;
  --c-indigo: #4f52d9;
  --c-cyan: #0b98b8;
  --c-red: #d9443a;
}
:root[data-theme="dark"] {
  --bg: #121212;
  --panel: #1b1b1a;
  --bar: #232321;
  --bar-green: #18241c;
  --line: #2e2d2a;
  --line-soft: #262523;
  --text: #f1eee8;
  --muted: #a8a399;
  --faint: #78736a;
  --accent: #ff7a50;
  --accent-hover: #ff9070;
  --accent-ink: #1d0b03;
  --accent-soft: #3a2118;
  --accent-text: #ff8a5c;
  --ok: #5cc98a;
  --ok-soft: #15281d;
  --ok-text: #7ddca3;
  --err: #f28b82;
  --err-soft: #34181a;
  --term-bg: #0f1814;
  --term-bar: #16231d;
  --footer-bg: #0b0b0a;
  --shadow-sm: none;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 18px 40px -16px rgb(0 0 0 / 0.6);
  --c-orange: #ff8a5c;
  --c-violet: #a08cff;
  --c-teal: #3cc7bb;
  --c-amber: #f2b733;
  --c-pink: #f2779f;
  --c-blue: #6b9cff;
  --c-green: #55c785;
  --c-indigo: #8a8cff;
  --c-cyan: #44c2dd;
  --c-red: #f27a71;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mono-label, .cell-tag, .level-tag, .window-bar, .terminal-bar, .terminal-foot, .footer-head {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.mono-label { display: block; color: var(--muted); }
.accent { color: var(--accent-text); }
.muted { color: var(--footer-muted); }

/* Werkzeug-Farbklassen: Icon in Farbe, Hintergrund als zarte Tönung */
.c-orange { --tone: var(--c-orange); }
.c-violet { --tone: var(--c-violet); }
.c-teal { --tone: var(--c-teal); }
.c-amber { --tone: var(--c-amber); }
.c-pink { --tone: var(--c-pink); }
.c-blue { --tone: var(--c-blue); }
.c-green { --tone: var(--c-green); }
.c-indigo { --tone: var(--c-indigo); }
.c-cyan { --tone: var(--c-cyan); }
.c-red { --tone: var(--c-red); }

/* Top bar */
.topbar { background: var(--accent-soft); color: var(--text); font-size: 14px; font-weight: 500; }
.topbar p { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding-block: 6px; text-align: center; }
.tag {
  display: inline-block; padding: 2px 8px; flex: none; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.4rem; font-weight: 650; letter-spacing: -0.045em; text-decoration: none; }
.brand-glyph {
  width: 30px; height: 30px; padding: 6px; border-radius: 9px; stroke-width: 2.4;
  color: var(--accent-ink); background: var(--accent);
}
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 550; text-decoration: none; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--bar); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; color: inherit;
  background: transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .lang summary:focus-visible, .chip:focus-visible, .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--line); background: var(--panel); }
.btn-outline:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.btn-ghost:hover { background: var(--bar); }
.btn-sm { height: 38px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-square { width: 38px; padding: 0; }

/* Theme toggle: Mond im Hellen, Sonne im Dunklen */
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Language menu */
.lang { position: relative; }
.lang summary { list-style: none; gap: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang .chev { width: 14px; height: 14px; transition: transform .15s; }
.lang[open] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lang-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.lang-menu a:hover { background: var(--bar); }
.lang-menu a[aria-current] { color: var(--accent-text); }
.lang-menu small { font-family: var(--mono); color: var(--faint); }

/* Hero */
.hero { padding: 48px 0 24px; }
h1 { max-width: 16em; font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.05; letter-spacing: -0.045em; }
h1 em { font-style: normal; color: var(--accent-text); }
.lead { max-width: 640px; margin-top: 18px; font-size: 1.16rem; color: var(--muted); }
.hero-home { padding: 64px 0 8px; text-align: center; }
.hero-home h1 { margin: 18px auto 0; }
.hero-home .lead { margin-inline: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ok-text); background: var(--ok-soft);
}
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs .icon { width: 14px; height: 14px; }
.tool-head { display: flex; align-items: center; gap: 18px; }
.tool-head .tile-icon { width: 64px; height: 64px; border-radius: 18px; }
.tool-head .tile-icon .icon { width: 30px; height: 30px; }

/* Werkzeug-Kacheln */
.tools-section { padding: 36px 0 24px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.chip {
  height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); background: var(--panel);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.chip[aria-pressed="true"] { color: var(--panel); background: var(--text); border-color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 172px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm);
  text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--tone, var(--accent)) 35%, var(--line)); }
.tile-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent);
}
.tile-icon .icon { width: 24px; height: 24px; }
.tile-name { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.02em; }
.tile-desc { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.tile-arrow { position: absolute; top: 22px; right: 20px; color: var(--faint); transition: color .15s, transform .15s; }
a.tile:hover .tile-arrow { color: var(--accent-text); transform: translate(2px, -2px); }
.tile.is-soon { cursor: default; background: color-mix(in srgb, var(--panel) 55%, var(--bg)); box-shadow: none; }
.tile.is-soon .tile-icon { opacity: .75; }
.tile.is-soon .tile-name, .tile.is-soon .tile-desc { opacity: .8; }
.tile[data-hidden] { display: none; }
.badge {
  position: absolute; top: 20px; right: 18px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; color: var(--muted); background: var(--bar); border: 1px solid var(--line);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm); }
.feature-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: 8px; color: var(--muted); }

/* Fenster-Panels (Werkzeugseite, Rechtsseiten) */
.window { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.window-bar {
  display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 16px;
  background: var(--bar); border-bottom: 1px solid var(--line); color: var(--muted);
}
.window-green > .window-bar { background: var(--bar-green); }
.window-ctrl { display: inline-flex; gap: 10px; color: var(--faint); }
.window-ctrl .icon { width: 13px; height: 13px; }
.window-body { padding: 40px; }
.window-body h2, .section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; }
.section-title.center { margin-top: 8px; }
.section-lead { max-width: 620px; margin-top: 14px; font-size: 1.08rem; color: var(--muted); }

/* Tool */
.tool { margin-top: 36px; box-shadow: var(--shadow-lg); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: 320px; margin: 20px; padding: 40px 20px; text-align: center; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel));
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-within, .dropzone.is-dragging { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within .dz-button { outline: 2px solid var(--accent); outline-offset: 3px; }
.dz-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: var(--accent); background: var(--panel); box-shadow: var(--shadow); }
.dz-icon .icon { width: 26px; height: 26px; }
.dz-button { pointer-events: none; }
.dz-hint { font-size: 14px; color: var(--muted); }

.workspace { padding: 20px; }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.file-list { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line-soft); }
.file:last-child { border-bottom: 0; }
.file-icon { width: 22px; height: 22px; color: var(--muted); }
.file.is-done .file-icon { color: var(--ok); }
.file.is-error .file-icon { color: var(--err); }
.file-main { flex: 1; min-width: 0; }
.file-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.file.is-error .file-meta { color: var(--err); }
.file-saving { padding: 4px 9px; border-radius: 999px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ok-text); background: var(--ok-soft); }
.file-download { color: var(--text); }
.progress { height: 4px; margin-top: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.progress-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s; }
.progress.is-indeterminate .progress-bar { width: 30%; animation: slide 1.1s ease-in-out infinite; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; border: 0; }
.levels legend { margin-bottom: 10px; }
.levels:disabled { opacity: .55; }
.level {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 16px 16px; cursor: pointer; overflow: hidden;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .15s, background .15s;
}
.level input { position: absolute; opacity: 0; pointer-events: none; }
.level-tag { margin: 0 -16px 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--bar); color: var(--muted); }
.level-name { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.02em; }
.level-desc { font-size: 14px; color: var(--muted); line-height: 1.4; }
.level:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.level:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--panel)); }
.level:has(input:checked) .level-tag { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.level:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; padding: 18px 20px; border-radius: 12px; background: var(--ok-soft); }
.summary-value { font-size: clamp(1.8rem, 4.2vw, 2.6rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; color: var(--ok-text); }
.summary-text { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.loader-note { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.toast { margin: 0 20px 20px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--err); background: var(--err-soft); }

/* Stats */
.stats { margin-top: 56px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.hero .stats { margin-top: 48px; }
.stats > .mono-label { margin-bottom: 18px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; align-items: center; gap: 16px; padding: 4px 28px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-value { font-size: clamp(2.2rem, 4.6vw, 3.2rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.stat-label { max-width: 11em; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--muted); }

/* Sections */
.section { padding: 48px 0; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.cell { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.cell-tag { padding: 11px 20px; border-bottom: 1px solid var(--line); background: var(--bar); color: var(--muted); }
.cell-body { padding: 22px 20px 26px; }
.cell h3, .uses h3 { font-size: 1.3rem; line-height: 1.2; }
.cell p, .uses p { margin-top: 10px; color: var(--muted); }

#uses .section-title { margin-top: 10px; max-width: 18em; }
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.uses article { padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }

.engine { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.checklist { margin: 24px 0 28px; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checklist .icon { color: var(--ok); stroke-width: 2.4; }
.terminal { background: var(--term-bg); color: var(--term-text); border-radius: 14px; overflow: hidden; }
.terminal-bar { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 0 14px; background: var(--term-bar); color: var(--term-text); }
.terminal .window-ctrl { color: var(--term-dim); }
.terminal pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; }
.terminal .c, .terminal .p { color: var(--term-dim); }
.terminal .h { color: #ffa684; }
.terminal .ok { color: #8fdca6; }
.terminal-foot { padding: 10px 14px; border-top: 1px solid var(--term-bar); color: var(--term-dim); }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 0 18px; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0;
  font-size: 1.04rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent-text); }
.faq details p { padding: 0 24px 18px 0; color: var(--muted); }

/* Text pages */
.page { padding: 48px 0 72px; }
.page .window-body { max-width: 820px; }
.page h1 { margin-bottom: 28px; font-size: clamp(2.1rem, 5vw, 3rem); }
.page h2 { margin: 32px 0 8px; font-size: 1.3rem; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.page a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.todo { padding: 1px 6px; border-radius: 4px; background: #ffe9a8; color: #5a4200; }

/* Footer */
.site-footer { margin-top: 56px; padding: 56px 0 32px; background: var(--footer-bg); color: var(--footer-text); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; font-weight: 500; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { max-width: 280px; color: var(--footer-muted); font-weight: 400; }
.footer-head { color: var(--footer-muted); margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #34312c; font-size: 13px; color: var(--footer-muted); }
.noscript { padding: 16px; text-align: center; color: var(--err); background: var(--err-soft); }


/* Optionen der Werkzeuge */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; margin-top: 22px; }
.options .levels { grid-column: 1 / -1; margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field:has(.seg) { grid-column: 1 / -1; }
.field-label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.field-label output { font-family: var(--mono); font-weight: 600; color: var(--accent-text); }
.hint { font-size: 13.5px; color: var(--muted); }
.ws-head + .hint, #order-hint { margin: -4px 0 10px; }
.input {
  height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; color: var(--text); background: var(--panel); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--muted); background: var(--panel); transition: border-color .15s, color .15s, background .15s;
}
.seg-opt:hover span { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.seg-opt input:checked + span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.range { width: 100%; accent-color: var(--accent); height: 28px; }
.options[inert], .page-grid[inert] { opacity: .55; }

/* Sortieren in der Dateiliste */
.file-move { display: inline-flex; gap: 2px; }
.file.is-merged .file-icon { color: var(--ok); }

/* Seitenansicht (Organisieren) */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.page-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 8px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); cursor: grab; transition: border-color .15s, opacity .15s, transform .15s;
}
.page-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.page-card.is-dragging { opacity: .4; transform: scale(.97); }
.page-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1.25; overflow: hidden; }
.page-thumb img { max-width: 100%; max-height: 100%; box-shadow: var(--shadow); background: #fff; transition: transform .2s; }
.page-thumb img[data-rot="90"] { transform: rotate(90deg) scale(.8); }
.page-thumb img[data-rot="180"] { transform: rotate(180deg); }
.page-thumb img[data-rot="270"] { transform: rotate(270deg) scale(.8); }
.page-num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.page-tools { display: flex; gap: 2px; }
.page-tools button {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
  color: var(--muted); background: transparent;
}
.page-tools button:hover { color: var(--text); background: var(--bar); }
.page-tools button:focus-visible { outline: 2px solid var(--accent); }
.page-tools .icon { width: 15px; height: 15px; }
.page-card.is-deleted { opacity: .45; border-style: dashed; }
.page-card.is-deleted .page-thumb img { filter: grayscale(1); }
.page-card.is-deleted .pg-del { color: var(--err); }

/* So geht's (Werkzeugseiten) */
.narrow { max-width: 820px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.steps li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps h3 { margin-top: 14px; font-size: 1.15rem; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); }
.tiles-related { margin-top: 28px; }
.related-all { margin-top: 24px; }
#faq .faq { margin-top: 28px; }

@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

@media (max-width: 960px) {
  .nav { display: none; }
  .engine, .faq-wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .header-cta { display: none; }
  .topbar p { font-size: 13px; }
  .hero, .hero-home { padding-top: 36px; }
  .lead { font-size: 1.05rem; }
  .tool-head { gap: 12px; }
  .tool-head .tile-icon { width: 48px; height: 48px; border-radius: 14px; }
  .window-body { padding: 24px 18px; }
  .dropzone { margin: 12px; min-height: 260px; }
  .workspace { padding: 12px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 0; padding: 14px; }
  .tile-icon { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; }
  .tile-name { font-size: 1rem; }
  .tile-desc { font-size: 13.5px; }
  .tile-arrow { display: none; }
  .badge { position: static; align-self: flex-start; margin-top: 6px; }
  .levels, .cells, .uses { grid-template-columns: 1fr; }
  .stats { padding: 22px; }
  .stats-row { grid-template-columns: 1fr; gap: 18px; }
  .stat { padding: 0; border-left: 0; }
  .actions .btn { flex: 1 1 100%; }
}
@media (max-width: 340px) {
  .tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
