/* AutoCut — Portal und Admin. Keine externen Schriften, keine Tracker. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7; --fg: #1d1d1b; --muted: #6b6a66; --line: #dedbd3; --card: #ffffff;
  --accent: #b5482a; --accent-fg: #ffffff; --ok: #1a7f37; --warn: #b54708; --bad: #b42318; --todo: #555;
  --soft: #f3efe6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16161a; --fg: #ecebe6; --muted: #a09e97; --line: #35353c; --card: #1f1f25; --soft: #26262d; --accent: #e0714f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
main.wide { max-width: 1400px; }
header.top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
header.top .brand { font-weight: 700; text-decoration: none; font-size: 18px; }
header.top .muted { font-size: 13px; }
header.top nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
footer.bottom { max-width: 760px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); display: flex; gap: 14px; flex-wrap: wrap; }
h1 { font-size: 26px; line-height: 1.2; margin: 18px 0 8px; }
h2 { font-size: 19px; margin: 28px 0 8px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
p.lead { font-size: 18px; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 14px 0; }
.card.soft { background: var(--soft); border-color: transparent; }
.notice { border-left: 4px solid var(--accent); padding: 10px 14px; background: var(--soft); border-radius: 6px; margin: 12px 0; }
.notice.ok { border-color: var(--ok); }
.notice.warn { border-color: var(--warn); }
.notice.bad { border-color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=password], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg);
}
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.radio input { margin-top: 5px; flex: none; }
.err { color: var(--bad); font-size: 13px; margin: 4px 0 0; }
.field-err input, .field-err select, .field-err textarea { border-color: var(--bad); }
button, .btn { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button.small, .btn.small { padding: 5px 10px; font-size: 13px; font-weight: 500; }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
form.inline { display: inline; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; border: 1px solid var(--line); white-space: nowrap; }
.st-succeeded, .st-analysiert, .st-geliefert, .st-registriert, .st-freigegeben { color: var(--ok); border-color: var(--ok); }
.st-vorschau, .st-politur, .st-bezahlt { color: var(--accent); border-color: var(--accent); }
.st-doing, .st-verarbeitung, .st-bereit { color: var(--warn); border-color: var(--warn); }
.st-failed, .st-aborted, .st-geloescht { color: var(--bad); border-color: var(--bad); }
.st-todo, .st-sammeln, .st-angekuendigt { color: var(--todo); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 12px; }
.tablewrap { overflow-x: auto; }
.tablewrap.clips table { font-size: 13px; }
.tablewrap.clips th, .tablewrap.clips td { padding: 5px 6px; }
.tablewrap.clips tr.has-sub td { border-bottom: none; }
.tablewrap.clips td.nowrap { white-space: nowrap; }
.tablewrap.clips tr.sub td { padding-top: 0; }
.tablewrap.clips tr.sub details summary { cursor: pointer; }
.tablewrap.clips tr.sub pre.copy { margin: 4px 0 8px; font-size: 12px; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
pre.copy { white-space: pre-wrap; background: var(--soft); padding: 12px; border-radius: 8px; margin: 8px 0; }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.stats { display: flex; gap: 18px; flex-wrap: wrap; }
.stats div { min-width: 90px; }
.stats b { display: block; font-size: 24px; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13px; }
/* Uploader */
.uploader { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; background: var(--card); }
.uploader.drag { border-color: var(--accent); background: var(--soft); }
.uploader input[type=file] { display: none; }
.uploader .big { font-size: 17px; font-weight: 600; }
.upl-list { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.upl-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.upl-list .name { display: flex; justify-content: space-between; gap: 10px; }
.upl-list .name span:last-child { color: var(--muted); white-space: nowrap; }
.bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.upl-list .ok .bar i { background: var(--ok); }
.upl-list .bad { color: var(--bad); }
.upl-total { margin-top: 10px; font-size: 14px; color: var(--muted); }
.legal { max-width: 760px; }
.legal h2 { font-size: 18px; margin-top: 26px; }
.legal table { font-size: 14px; }
.draft { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #fff3cd; color: #7a4d00; font-size: 12px; font-weight: 600; }
details summary { cursor: pointer; font-weight: 600; }
.login { max-width: 380px; margin: 60px auto; }
