/* Overdue – eigene Gestaltung, bewusst ohne Proton-Design (E11). Keine fremden Schriften (S8). */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #59606a;
  --border: #dcd8d0;
  --accent: #b45309;
  --accent-text: #ffffff;
  --accent-soft: #fdf3e7;
  --notice-border: #e3a35c;
  --error: #b42318;
  --focus: #1d4ed8;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --surface: #1f2228;
    --text: #e8e6e3;
    --muted: #a3a8b1;
    --border: #3a3f47;
    --accent: #f0a04b;
    --accent-text: #1a1206;
    --accent-soft: #2b2218;
    --notice-border: #a8692a;
    --error: #ff8a80;
    --focus: #8ab4ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: 1.45rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 1; }

/* Kopfzeile */
.top { border-bottom: 1px solid var(--border); background: var(--surface); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { font-weight: 700; font-size: 1.15rem; }
.brand-mark { color: var(--accent); }
.langs { display: flex; gap: .75rem; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Einstieg */
.hero { padding: 3rem 0 1rem; }
.lead { font-size: 1.15rem; }
.points { color: var(--muted); }

.button {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  padding: .65rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: .55; cursor: default; }

/* Ablauf */
.how { padding-left: 1.4rem; }
.how li { margin-bottom: .5rem; }

/* Hinweise */
.notice {
  margin-top: 3rem;
  background: var(--accent-soft);
  border: 2px solid var(--notice-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.notice h2 { margin-top: 0; }
.notice h2::before { content: "⚠ "; color: var(--accent); }
.notice ul { padding-left: 1.2rem; margin-bottom: 0; }
.notice li { margin-bottom: .6rem; }
.warn { border-left: 4px solid var(--notice-border); padding-left: .9rem; }

/* Schritte */
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  margin-bottom: 1rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  display: grid;
  place-items: center;
}
@media (max-width: 30rem) {
  .steps > li { padding-left: 1.25rem; padding-top: 3.6rem; }
}

/* Formular */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input[type="url"], .field select, .copy-row input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .55rem .7rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.field.check { display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; align-items: start; }
.field.check input { width: 1.2rem; height: 1.2rem; margin: .25rem 0 0; accent-color: var(--accent); }
.field.check label { margin: 0; }
.field.check .hint { grid-column: 2; }
.hint { color: var(--muted); font-size: .92rem; margin: .3rem 0 0; }
.error { color: var(--error); font-weight: 600; }
[aria-invalid="true"] { border-color: var(--error) !important; }

/* Ergebnis */
.result { background: var(--accent-soft); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.result label { display: block; font-weight: 600; margin-bottom: .3rem; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; min-width: 0; }

/* Bilder */
figure { margin: 1.25rem 0; }
figure img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; display: block; }

/* Tabelle */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .55rem .75rem; border: 1px solid var(--border); }
thead th { background: var(--accent-soft); }

.plain { padding-left: 1.2rem; }
.plain li { margin-bottom: .5rem; }

/* Fußzeile */
.foot { margin-top: 4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; padding: 1.5rem 0 2.5rem; }
.foot p { margin: .3rem 0; }
