/* rockel-solutions.de. Farben und Schriften wie tools.rockel-solutions.de (gleiche Marke),
   Layout eigenständig. Gelb (--fill) ist auf den Tools „selbst ausfüllen“, hier der Textmarker. */
:root {
  --bg: #f3f6f5; --surface: #ffffff; --ink: #14221f; --muted: #586a65; --line: #d5dedb;
  --accent: #1c5d78; --accent-ink: #ffffff; --accent-soft: #e2edf1;
  --fill: #fff6cf; --fill-line: #e7d78f;
  --ok: #24744a; --ok-bg: #e3f2e9; --bad: #ad2a20; --bad-bg: #fbe3e0;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1618; --surface: #162125; --ink: #e2ebe8; --muted: #93a6a1; --line: #2a3a3e;
  --accent: #74b6d2; --accent-ink: #0e1618; --accent-soft: #1a2d34;
  --fill: #3a3413; --fill-line: #5c5326;
  --ok: #7fcf9f; --ok-bg: #173226; --bad: #f08a80; --bad-bg: #3a1c19;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0e1618; --surface: #162125; --ink: #e2ebe8; --muted: #93a6a1; --line: #2a3a3e;
  --accent: #74b6d2; --accent-ink: #0e1618; --accent-soft: #1a2d34;
  --fill: #3a3413; --fill-line: #5c5326;
  --ok: #7fcf9f; --ok-bg: #173226; --bad: #f08a80; --bad-bg: #3a1c19;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-stretch: 88%; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(34px, 6.2vw, 66px); line-height: 1.02; }
h2 { font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
mark { background: var(--fill); color: inherit; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.shell { max-width: 1120px; margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; }

/* Kopf */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); font-stretch: 88%; color: var(--ink); text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.nav a.btn { padding: 9px 14px; }
.nav a.btn:hover { text-decoration: none; }

/* Bausteine */
.eyebrow { font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--muted); max-width: 62ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px;
  border: 1.5px solid var(--accent); border-radius: var(--radius); background: transparent; color: var(--accent);
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-soft); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.12); background: var(--accent); }
.btn[disabled] { opacity: .6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.block { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); display: grid; gap: 28px; }
.block > .head { display: grid; gap: 12px; max-width: 68ch; }
.prose { display: grid; gap: 14px; max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.prose h2 { margin-top: 18px; font-size: clamp(22px, 2.6vw, 28px); }
.prose h3 { margin-top: 8px; }

/* Startseite: Kopfbereich mit Freigabe-Eingang */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.hero-text { display: grid; gap: 22px; }
.page-hero { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); max-width: 20ch; }

.inbox { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 18px 40px -28px rgba(20, 34, 31, .45); }
.inbox-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.inbox-count { color: var(--accent); }
.inbox-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; background: var(--bg); transition: background-color .25s, border-color .25s; }
.item-kind { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.item-in { font-size: 15px; line-height: 1.45; }
.item-draft { font-size: 15px; line-height: 1.45; background: var(--fill); border-left: 3px solid var(--fill-line); padding: 8px 10px; border-radius: 0 6px 6px 0; }
.item-draft b { font: 600 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; display: block; margin-bottom: 4px; color: var(--muted); }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.item-foot .btn { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.item-state { font: 600 12px/1.2 var(--mono); color: var(--muted); }
.item.done { background: var(--ok-bg); border-color: transparent; }
.item.done .item-draft { background: transparent; border-left-color: var(--ok); }
.item.done .item-state { color: var(--ok); }
.inbox-note { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Tabelle „Was läuft“ */
.ops { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.ops th, .ops td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ops tr:last-child td { border-bottom: 0; }
.ops thead th { font: 600 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.ops td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) {
  .ops thead { position: absolute; left: -9999px; }
  .ops, .ops tbody, .ops tr, .ops td { display: block; }
  .ops tr { border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .ops tr:last-child { border-bottom: 0; }
  .ops td { border: 0; padding: 2px 0; }
  .ops td:first-child { white-space: normal; }
  .ops td[data-label]::before { content: attr(data-label) ": "; font: 600 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
}

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--accent); }
a.card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); }
.card p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.card .unit { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card ul { padding-left: 1.1em; font-size: 15.5px; color: var(--muted); display: grid; gap: 4px; }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.path { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.path ol, .path ul { padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); font-size: 16px; }
.path .actions { margin-top: 6px; }

.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; }
.trio > div { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--ink); padding-top: 14px; }
.trio p { color: var(--muted); font-size: 16px; }

/* Stufen (echte Reihenfolge) */
.steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: stufe; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 18px; }
.step::before { counter-increment: stufe; content: counter(stufe); grid-row: 1 / span 4; font: 700 40px/1 var(--display); font-stretch: 80%; color: var(--accent); }
.step > * { grid-column: 2; }
.step .meta { font: 600 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.step p, .step li { color: var(--muted); font-size: 16px; }
.step ul { padding-left: 1.1em; display: grid; gap: 4px; }
.step .actions { margin-top: 8px; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; } .step::before { grid-row: auto; } .step > * { grid-column: 1; } }

.tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--fill); border: 1px solid var(--fill-line); padding: 5px 8px; border-radius: 99px; justify-self: start; }

/* Fragen */
.faq { display: grid; gap: 0; max-width: 76ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 18px/1.3 var(--display); font-stretch: 92%; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 66ch; }

.closing { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 18px; justify-items: start; }
.closing p { color: var(--muted); max-width: 60ch; }

/* Formular */
.form { display: grid; gap: 16px; max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; border-radius: 8px; font-size: 16px; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.bad { background: var(--bad-bg); color: var(--bad); }
.form-msg:empty { display: none; }
.small { font-size: 14px; color: var(--muted); }

.todo { background: var(--bad-bg); color: var(--bad); font-weight: 600; padding: 1px 6px; border-radius: 4px; }

/* Fuß */
.foot { padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .item { transition: none; } }

/* Wissen: Artikel mit Tabellen, Code und Vorlagen */
code { font: 0.92em var(--mono); background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
.ops.wide td:first-child { white-space: normal; }
.vorlage { font: 14px/1.55 var(--mono); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--fill-line); border-radius: var(--radius); padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; max-width: none; }
