/* EasyMySQL – Website im Stil der Anwendung (Farben aus src/style.rs) */

:root {
  --face: #F0F0F0;
  --bg: #FFFFFF;
  --face-light: #F3F3F3;
  --text: #1E1E1E;
  --text-weak: #616161;
  --border: #CECECE;
  --accent: #0078D7;
  --grid-line: #E0E0E0;
  --null: #909090;
  --err: #B00000;
  --ok: #006000;
  --activity-bg: #ECECEC;
  --activity-fg: #616161;
  --activity-active: #0078D7;
  --tab-bar: #ECECEC;
  --tab-inactive: #E4E4E4;
  --current-line: #F2F6FC;
  --selection: #ADD6FF;
  --hover: #E8E8E8;
  --btn: #FDFDFD;
  --btn-hover: #E5F1FB;
  --btn-primary: #0E639C;
  --btn-primary-hover: #1177BB;
  --link: #0078D7;
  --er-head: #DCE8F5;
  --er-line: #305090;
  --er-dim: #B8C4D8;
  --er-type: #707070;
  --syn-kw: #0000E0;
  --syn-fn: #795E26;
  --syn-str: #A31515;
  --syn-num: #098658;
  --syn-com: #008000;
  --syn-id: #267F99;
  --syn-gutter: #237893;
  --shadow: 0 4px 12px rgba(0, 0, 0, .2);
  --rail: 48px;
  --bar: 34px;
  --status: 24px;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --face: #252526;
  --bg: #1E1E1E;
  --face-light: #2D2D30;
  --text: #CCCCCC;
  --text-weak: #9D9D9D;
  --border: #454545;
  --accent: #007ACC;
  --grid-line: #333333;
  --null: #808080;
  --err: #F48771;
  --ok: #89D185;
  --activity-bg: #333333;
  --activity-fg: #858585;
  --activity-active: #FFFFFF;
  --tab-bar: #252526;
  --tab-inactive: #2D2D2D;
  --current-line: #282828;
  --selection: #264F78;
  --hover: #2A2D2E;
  --btn: #3A3D41;
  --btn-hover: #45494E;
  --link: #3794FF;
  --er-head: #0E3A5E;
  --er-line: #4F9DDE;
  --er-dim: #3A4A5A;
  --er-type: #8A8A8A;
  --syn-kw: #569CD6;
  --syn-fn: #DCDCAA;
  --syn-str: #CE9178;
  --syn-num: #B5CEA8;
  --syn-com: #6A9955;
  --syn-id: #9CDCFE;
  --syn-gutter: #858585;
  --shadow: 0 4px 12px rgba(0, 0, 0, .47);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); padding-bottom: var(--status); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--selection); }
h1, h2, h3, p, ul, ol, dl, figure, pre { margin: 0; }
code, kbd, pre, .mono { font-family: var(--mono); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- Menüleiste ---------- */
.menubar { position: sticky; top: 0; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: 4px; padding: 0 8px 0 12px; background: var(--face); border-bottom: 1px solid var(--border); font-size: 13px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; margin-right: 12px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 18px; height: 18px; }
.menus { min-width: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.menus::-webkit-scrollbar { display: none; }
.menus a, .tool { color: var(--text); padding: 4px 10px; border-radius: 3px; white-space: nowrap; background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.menus a:hover, .tool:hover { background: var(--hover); text-decoration: none; }
.menus a.on { background: var(--hover); }
.tools { flex: none; margin-left: auto; display: flex; align-items: center; gap: 2px; }
.tool svg.i { width: 16px; height: 16px; }
.tool .seg { font-family: var(--mono); font-size: 12px; }
.tool .seg b { color: var(--text-weak); font-weight: 400; }
:root[lang="de"] .tool .seg [data-l="de"], :root[lang="en"] .tool .seg [data-l="en"] { color: var(--text); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }

/* ---------- Aktivitätsleiste ---------- */
.activity { position: fixed; z-index: 20; left: 0; top: var(--bar); bottom: var(--status); width: var(--rail); background: var(--activity-bg); display: flex; flex-direction: column; align-items: stretch; }
.activity a { position: relative; height: var(--rail); display: grid; place-items: center; color: var(--activity-fg); }
.activity a:hover { color: var(--activity-active); text-decoration: none; }
.activity a.on { color: var(--activity-active); }
.activity a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--activity-active); }
.activity svg.i { width: 24px; height: 24px; }
.activity a::after { content: attr(data-tip); position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); background: var(--face); color: var(--text); border: 1px solid var(--border); border-radius: 3px; padding: 2px 8px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: var(--shadow); }
.activity a:hover::after, .activity a:focus-visible::after { opacity: 1; }

/* ---------- Statusleiste ---------- */
.status { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: var(--status); display: flex; align-items: stretch; background: var(--accent); color: #fff; font-size: 12px; overflow: hidden; }
.status span, .status a { display: flex; align-items: center; gap: 6px; padding: 0 10px; color: #fff; white-space: nowrap; }
.status a:hover { background: rgba(255, 255, 255, .15); text-decoration: none; }
.status .sp { margin-left: auto; }
.status .dot { background: #fff; width: 7px; height: 7px; }
.status .mono { font-size: 12px; }

/* ---------- Inhalt ---------- */
main { margin-left: var(--rail); }
.sec { padding: 56px max(16px, 4vw); border-bottom: 1px solid var(--grid-line); }
.in { max-width: 1080px; margin: 0 auto; }
.kick { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-weak); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.kick svg.i { width: 14px; height: 14px; }
h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; color: var(--activity-active); max-width: 17em; }
:root:not([data-theme="dark"]) h1 { color: var(--text); }
h2 { font-size: 24px; line-height: 1.25; font-weight: 600; max-width: 24em; color: var(--activity-active); }
:root:not([data-theme="dark"]) h2 { color: var(--text); }
h3 { font-size: 16px; font-weight: 600; color: var(--activity-active); }
:root:not([data-theme="dark"]) h3 { color: var(--text); }
.lead { font-size: 17px; color: var(--text); max-width: 38em; margin-top: 16px; }
.sub { color: var(--text-weak); max-width: 38em; margin-top: 12px; }
.sechead { margin-bottom: 32px; }

/* Schaltflächen wie in der Anwendung: flach, 2 px Rundung */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 32px; padding: 5px 14px; background: var(--btn); color: var(--text); border: 1px solid var(--border); border-radius: 2px; font: inherit; font-size: 14px; cursor: pointer; }
.btn:hover { background: var(--btn-hover); border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.btn.primary:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); }
.btn.big { min-height: 44px; padding: 6px 18px; font-size: 15px; }
.btn small { font-size: 12px; opacity: .85; }
.btn svg.i { width: 18px; height: 18px; }

/* ---------- Start ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.note { margin-top: 14px; font-size: 13px; color: var(--text-weak); }
.note span + span::before { content: "·"; margin: 0 8px; }

.panel { background: var(--face); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; background: var(--face-light); border-bottom: 1px solid var(--border); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-weak); }
.panel-h .r { margin-left: auto; text-transform: none; letter-spacing: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; font-size: 13px; }
.kv dt, .kv dd { margin: 0; padding: 6px 12px; border-bottom: 1px solid var(--grid-line); }
.kv dt { color: var(--text-weak); }
.kv dd { font-family: var(--mono); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.term { position: relative; background: var(--bg); border-top: 1px solid var(--border); padding: 12px 14px; font: 13px/1.55 var(--mono); color: var(--text); overflow-x: auto; white-space: pre; }
.term .p { color: var(--text-weak); }
.term .g { color: var(--ok); }
.copy { position: absolute; top: 6px; right: 6px; min-height: 0; padding: 2px 8px; font-size: 12px; }

.win { margin-top: 56px; background: var(--face); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; line-height: 1.5; }
.win-menu { display: flex; align-items: center; gap: 2px; height: 28px; padding: 0 6px; border-bottom: 1px solid var(--border); background: var(--face); color: var(--text); overflow: hidden; white-space: nowrap; }
.win-menu span { padding: 2px 8px; }
.win-menu .tools-r { margin-left: auto; display: flex; align-items: center; gap: 12px; padding-right: 8px; color: var(--text-weak); }
.win-menu .tools-r svg.i { width: 16px; height: 16px; }
.win-body { display: grid; grid-template-columns: 40px 196px minmax(0, 1fr); height: 448px; }
.w-act { background: var(--activity-bg); display: flex; flex-direction: column; align-items: center; padding-top: 6px; gap: 2px; color: var(--activity-fg); }
.w-act i { width: 40px; height: 36px; display: grid; place-items: center; position: relative; font-style: normal; }
.w-act i.on { color: var(--activity-active); }
.w-act i.on::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--activity-active); }
.w-act svg.i { width: 20px; height: 20px; }
.w-side { background: var(--face); border-right: 1px solid var(--border); overflow: hidden; }
.w-side h4 { margin: 0; font-size: 11px; letter-spacing: .06em; font-weight: 400; color: var(--text-weak); padding: 8px 12px 6px; display: flex; justify-content: space-between; }
.tree { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.tree li { display: flex; align-items: center; gap: 4px; height: 22px; padding-right: 8px; white-space: nowrap; color: var(--text); }
.tree .l1 { padding-left: 8px; font-weight: 700; }
.tree .l2 { padding-left: 24px; }
.tree .l3 { padding-left: 42px; color: var(--text-weak); font-size: 12px; }
.tree .l3 em { font-style: normal; margin-left: auto; color: var(--null); font-family: var(--mono); font-size: 11px; }
.tree .sel { background: var(--selection); }
.tree .view { font-style: italic; }
.tree .tw { width: 10px; color: var(--text-weak); font-size: 9px; text-align: center; }
.w-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.w-tabs { display: flex; background: var(--tab-bar); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; flex: none; }
.w-tab { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: var(--tab-inactive); color: var(--text-weak); border: 0; border-right: 1px solid var(--border); font: inherit; cursor: pointer; white-space: nowrap; position: relative; }
.w-tab:hover { color: var(--text); }
.w-tab[aria-selected="true"] { background: var(--bg); color: var(--text); }
.w-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent); }
.w-tab .x { color: var(--text-weak); font-size: 11px; }
.w-pane { flex: 1; min-height: 0; display: none; flex-direction: column; }
.w-pane.on { display: flex; }
.w-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-bottom: 1px solid var(--border); background: var(--face-light); flex: none; font-size: 12px; }
.w-bar .chip { border: 1px solid var(--border); background: var(--btn); border-radius: 2px; padding: 0 8px; line-height: 20px; }
.w-bar .run { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.w-bar .r { margin-left: auto; color: var(--text-weak); }

.code { font: 13px/1.55 var(--mono); color: var(--text); white-space: pre; overflow-x: auto; }
.code .k { color: var(--syn-kw); }
.code .f { color: var(--syn-fn); }
.code .s { color: var(--syn-str); }
.code .n { color: var(--syn-num); }
.code .c { color: var(--syn-com); }
.code .i { color: var(--syn-id); }
.code .e { color: var(--err); }
.editor { display: grid; grid-template-columns: 38px minmax(0, 1fr); flex: 0 0 auto; padding: 6px 0; border-bottom: 1px solid var(--border); }
.gut { color: var(--syn-gutter); text-align: right; padding-right: 10px; font: 13px/1.55 var(--mono); user-select: none; }
.editor .code .cur { background: var(--current-line); display: inline-block; width: 100%; }
.caret { display: inline-block; width: 1px; height: 1.1em; background: var(--text); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } html { scroll-behavior: auto; } }

.res-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: var(--face-light); font-size: 12px; flex: none; }
.res-tabs span { padding: 5px 12px; color: var(--text-weak); border-right: 1px solid var(--border); }
.res-tabs span.on { background: var(--bg); color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); }
.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.grid th, .grid td { padding: 3px 10px; border-bottom: 1px solid var(--grid-line); border-right: 1px solid var(--grid-line); text-align: left; white-space: nowrap; }
.grid th { background: var(--face-light); font-weight: 400; color: var(--text-weak); position: sticky; top: 0; }
.grid td.num, .grid th.num { text-align: right; font-family: var(--mono); }
.grid tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--face-light) 55%, transparent); }
.grid .null { color: var(--null); font-style: italic; }
.grid .sel td { background: var(--selection) !important; }
.scroll { overflow: auto; min-width: 0; }
.w-foot { margin-top: auto; flex: none; display: flex; gap: 14px; align-items: center; height: 22px; padding: 0 10px; background: var(--accent); color: #fff; font-size: 12px; }
.w-foot .r { margin-left: auto; }
.w-foot .dot { background: #fff; width: 7px; height: 7px; }
.msg { padding: 6px 10px; font-size: 12px; color: var(--text-weak); border-top: 1px solid var(--border); }
.msg b { color: var(--ok); font-weight: 400; }

.er-wrap { position: relative; flex: 1; min-height: 0; background: var(--bg); background-image: radial-gradient(var(--grid-line) 1px, transparent 1px); background-size: 16px 16px; overflow: hidden; }
.er-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; }
.er-box { fill: var(--face); stroke: var(--border); }
.er-head { fill: var(--er-head); }
.er-ln { stroke: var(--er-line); fill: none; stroke-width: 1.4; }
.er-t { font: 600 12px var(--sans); fill: var(--text); }
.er-c { font: 11.5px var(--mono); fill: var(--text); }
.er-ty { font: 11px var(--mono); fill: var(--er-type); }
.er-k { font: 700 10px var(--mono); fill: var(--er-line); }
.er-sep { stroke: var(--grid-line); }
.er-zoom { font: 11px var(--sans); fill: var(--text-weak); }

/* ---------- Funktionen ---------- */
.feat { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 4px; background: var(--face); overflow: hidden; }
.feat-nav { background: var(--face); border-right: 1px solid var(--border); padding: 8px 6px; display: flex; flex-direction: column; gap: 1px; }
.nav-i { position: relative; display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; color: var(--text); background: none; border: 0; border-radius: 3px; padding: 7px 12px; cursor: pointer; }
.nav-i:hover { background: var(--hover); }
.nav-i[aria-selected="true"] { background: var(--selection); }
.nav-i[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 1px; background: var(--accent); }
:root:not([data-theme="dark"]) .nav-i[aria-selected="true"] { color: var(--accent); }
.feat-body { background: var(--bg); padding: 28px 32px; min-width: 0; }
.fpane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 36px; align-items: start; }
.js .fpane[hidden] { display: none; }
.fpane h3 { font-size: 19px; margin-bottom: 8px; }
.fpane p { color: var(--text); }
.fpane > div > ul { margin: 14px 0 0; padding: 0; list-style: none; }
.fpane > div > ul > li { position: relative; padding: 4px 0 4px 18px; color: var(--text); font-size: 14px; }
.fpane > div > ul > li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 1px; background: var(--accent); box-shadow: 0 0 0 .5px var(--accent); }
.fig { background: var(--face); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; font-size: 13px; }
.fig .code { padding: 10px 14px; background: var(--bg); }
.fig .scroll { background: var(--bg); }
.keys { display: grid; grid-template-columns: 1fr auto; font-size: 13px; }
.keys div { padding: 5px 12px; border-top: 1px solid var(--grid-line); }
.keys div:nth-child(odd) { color: var(--text); }
.keys div:nth-child(even) { text-align: right; }
kbd { font: 12px var(--mono); background: var(--btn); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; color: var(--text); white-space: nowrap; }
.pal { background: var(--face); }
.pal-in { margin: 8px; padding: 5px 10px; background: var(--bg); border: 1px solid var(--accent); font: 13px var(--mono); color: var(--text); border-radius: 2px; }
.pal-in .p { color: var(--text-weak); }
.pal-l { list-style: none; margin: 0 0 8px; padding: 0; }
.pal-l li { display: flex; justify-content: space-between; padding: 4px 14px; font-size: 13px; }
.pal-l li.sel { background: var(--selection); }
.pal-l li span:last-child { color: var(--text-weak); font-family: var(--mono); font-size: 12px; }
.pal-l mark { background: none; color: var(--accent); font-weight: 700; }
:root[data-theme="dark"] .pal-l mark { color: #3794FF; }
.blocks { padding: 10px; display: grid; gap: 6px; background: var(--bg); }
.blk { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--face); padding: 5px 10px; font: 12.5px var(--mono); display: flex; gap: 12px; }
.blk b { font-weight: 400; color: var(--syn-kw); min-width: 72px; }
.blk.in2 { margin-left: 18px; border-left-color: var(--syn-num); }

/* ---------- Sicherheit ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--grid-line); }
.fact { padding: 14px 0; border-bottom: 1px solid var(--grid-line); display: grid; grid-template-columns: 148px 1fr; gap: 16px; }
.fact h3 { font-size: 14px; }
.fact p { font-size: 14px; color: var(--text); }
.mono-s { font-family: var(--mono); font-size: 12.5px; }
.bk td:first-child, .bk th:first-child { color: var(--text-weak); font-family: var(--mono); }
.pill { display: inline-block; font-size: 11px; border: 1px solid var(--border); border-radius: 2px; padding: 0 6px; line-height: 17px; color: var(--text-weak); }
.pill.warn { color: #CCA700; border-color: #CCA700; }
:root:not([data-theme="dark"]) .pill.warn { color: #946B00; border-color: #946B00; }

/* ---------- Download ---------- */
.dl { display: grid; gap: 0; }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.dl-row:last-child { border-bottom: 0; }
.dl-row h3 { font-family: var(--mono); font-size: 14px; font-weight: 600; word-break: break-all; }
.dl-row p { font-size: 13.5px; color: var(--text-weak); margin-top: 4px; max-width: 42em; }
.hash { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: 11.5px var(--mono); color: var(--text-weak); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; max-width: 100%; }
.hash:hover { color: var(--text); }
.hash span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec { font-size: 11px; background: var(--btn-primary); color: #fff; border-radius: 2px; padding: 0 6px; margin-left: 8px; letter-spacing: .02em; vertical-align: 1px; font-family: var(--sans); font-weight: 400; }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 8px 14px; font-size: 12.5px; color: var(--text-weak); border-top: 1px solid var(--border); background: var(--face-light); }
.meta-row b { font-weight: 400; color: var(--text); font-family: var(--mono); }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--face); border-radius: 2px; font: 13px var(--mono); color: var(--text-weak); }
.steps small { display: block; color: var(--text-weak); font-size: 13px; }
.incl { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.incl li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--grid-line); }
.incl li span:last-child { color: var(--text-weak); font-family: var(--mono); font-size: 13px; text-align: right; }
.sub-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-weak); font-weight: 400; margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 13px 4px 13px 26px; position: relative; color: var(--activity-active); font-size: 15px; }
:root:not([data-theme="dark"]) .faq summary { color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; left: 6px; top: 20px; width: 6px; height: 6px; border-right: 1.5px solid var(--text-weak); border-bottom: 1.5px solid var(--text-weak); transform: rotate(-45deg); transition: transform .1s; }
.faq details[open] summary::before { transform: rotate(45deg); top: 18px; }
.faq summary:hover { background: var(--hover); }
.faq .a { padding: 2px 4px 16px 26px; color: var(--text); max-width: 46em; font-size: 14.5px; }
.faq .a p + p { margin-top: 8px; }
.faq code { background: var(--face-light); border: 1px solid var(--grid-line); padding: 0 5px; border-radius: 2px; font-size: 13px; }

footer.foot { margin-left: var(--rail); padding: 28px max(16px, 4vw) 36px; color: var(--text-weak); font-size: 12.5px; }
footer.foot .in { display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: space-between; }

/* 404 */
.nf { display: grid; place-items: center; min-height: 100vh; padding: 16px; margin: 0; }
.nf-box { background: var(--face); border: 1px solid var(--border); border-radius: 4px; padding: 20px; max-width: 100%; box-shadow: var(--shadow); }
.nf-box .code { background: var(--bg); padding: 12px 16px; margin-bottom: 16px; }

/* ---------- schmal ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .fpane { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  :root { --rail: 0px; }
  .activity { display: none; }
  .sec { padding-block: 40px; }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 4px; scrollbar-width: none; }
  .nav-i { white-space: nowrap; width: auto; }
  .nav-i[aria-selected="true"]::before { top: auto; left: 8px; right: 8px; bottom: 0; width: auto; height: 2px; }
  .feat-body { padding: 20px 16px; }
  .win-body { grid-template-columns: minmax(0, 1fr); height: 420px; }
  .w-act, .w-side { display: none; }
  .win-menu span:nth-child(n+5) { display: none; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dl-row { grid-template-columns: minmax(0, 1fr); }
  .dl-row .btn { justify-self: start; }
  .status .opt { display: none; }
  .menubar .brand span { display: none; }
}
@media (max-width: 520px) {
  .win { margin-top: 36px; }
  .cta .btn { width: 100%; }
  .cta .btn small { display: none; }
  .tools .tool:first-child { display: none; }
  .tool .seg b { display: none; }
  .tool .seg [data-l] { display: none; }
  :root[lang="de"] .tool .seg [data-l="en"], :root[lang="en"] .tool .seg [data-l="de"] { display: inline; color: var(--text); font-weight: 700; }
}

/* Hilfsklassen (statt Inline-Stilen, wegen der Content-Security-Policy) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-copy { position: fixed; left: -9999px; top: 0; }
svg.i.tiny { width: 11px; height: 11px; vertical-align: -1px; }
.er-wrap.tall { height: 270px; }
.scroll.grow { flex: 1; }
.two.wide { gap: 48px; }
.btn.sm { min-height: 20px; padding: 0 8px; font-size: 12px; }
.facts.top { margin-top: 28px; }
.fpane > div > ul.flat { margin-top: 0; }
.code.sep { border-top: 1px solid var(--border); }
.sub-h.gap { margin-top: 32px; }
.steps small.cmd { color: var(--text); }
.note span:empty { display: none; }
.status span:empty, .status a:empty { display: none; }
.dl-row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dl-row h3 .rec { margin-left: 0; white-space: nowrap; word-break: normal; }
.hash b { font-weight: 700; white-space: nowrap; }
.w-pane .scroll { min-height: 0; flex: 1 1 auto; }
.w-main { overflow: hidden; }
.w-foot { overflow: hidden; white-space: nowrap; }
