/* webop-Lektorat — Umsetzung von DESIGN.md (verbindlich) */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/static/fonts/source-serif-4-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --wb-teal: #00C0C0;
  --wb-teal-ink: #00A3A3;
  --wb-teal-soft: #B8ECEC;
  --wb-deep: #053238;
  --wb-deep-80: #053238cc;
  --wb-deep-60: #05323899;
  --wb-deep-40: #05323866;
  --wb-deep-ink: #021A1E;
  --wb-mint: #5BAEA4;
  --wb-amber: #FFC03C;
  --wb-amber-ink: #E8A520;
  --wb-brown: #73400D;
  --wb-bg: #FFFFFF;
  --wb-surface: #F1F5F9;
  --wb-surface-2: #E2E8F0;
  --wb-hairline: #CBD5E1;
  --wb-muted: #64748B;
  --wb-faint: #94A3B8;
  --wb-success: #2F9E6A;
  --wb-warning: #E8A520;
  --wb-danger: #C0392B;
  --wb-shadow-xs: 0 1px 2px rgba(5, 50, 56, 0.06);
  --wb-shadow-sm: 0 2px 6px rgba(5, 50, 56, 0.08);
  --wb-shadow-md: 0 6px 20px rgba(5, 50, 56, 0.10);
  --wb-shadow-lg: 0 14px 40px rgba(5, 50, 56, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wb-surface);
  color: var(--wb-deep-80);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.wb-display, h1.wb-display, h2.wb-display {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--wb-deep);
  line-height: 1.1;
  margin: 0 0 8px;
}
h1.wb-display { font-size: 30px; }

.wb-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--wb-muted); margin-top: 12px;
}
.wb-muted { color: var(--wb-muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* Topbar */
.wb-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 20px;
  background: var(--wb-deep); color: #fff;
}
.wb-topbar-brand { display: flex; align-items: center; gap: 8px; }
.wb-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--wb-teal); color: #fff; font-weight: 700;
}
.wb-logo-word { font-weight: 600; }
.wb-logo-product {
  color: var(--wb-teal);
  font-family: "Source Serif 4", Georgia, serif;
}
.wb-topbar-nav { display: flex; gap: 16px; }
.wb-topbar-nav a { color: #fff; text-decoration: none; opacity: .85; }
.wb-topbar-nav a:hover { opacity: 1; text-decoration: underline; }
.wb-topbar-user { display: flex; align-items: center; gap: 10px; }
.wb-topbar-user form { margin: 0; }
.wb-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9999px;
  background: var(--wb-mint); color: var(--wb-deep); font-weight: 700;
}

.wb-main { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.wb-pagehead { margin: 8px 0 20px; }
.wb-pagehead p { margin: 0 0 8px; }

/* Karten */
.wb-card {
  background: var(--wb-bg);
  border: 1px solid var(--wb-hairline);
  border-radius: 12px;
  box-shadow: var(--wb-shadow-xs);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.wb-card-narrow { max-width: 420px; margin: 48px auto; }
.wb-card-title { font-size: 16px; color: var(--wb-deep); margin: 0 0 8px; }
.wb-count { color: var(--wb-muted); font-size: 12px; font-weight: 400; }
.wb-empty { color: var(--wb-muted); text-align: center; padding: 32px 16px; }

/* Listenzeilen */
.wb-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--wb-hairline);
  color: inherit; text-decoration: none;
}
.wb-row:hover { background: var(--wb-surface); }
.wb-row-title { font-weight: 600; color: var(--wb-deep); flex: 1 1 240px; }
.wb-row-meta { color: var(--wb-muted); font-size: 13px; }
.wb-row form { margin: 0; }

/* Badges */
.wb-badge {
  display: inline-block; border-radius: 9999px; padding: 2px 8px;
  font-size: 11px; font-weight: 600;
}
.wb-badge-neutral   { background: #F1F5F9; color: #334155; }
.wb-badge-info      { background: #DBEAFE; color: #1E40AF; }
.wb-badge-positive  { background: #DCFCE7; color: #166534; }
.wb-badge-highlight { background: #FEF3C7; color: #92400E; }
.wb-badge-negative  { background: #FEE2E2; color: #B91C1C; }
/* Als eigenständige Meldung (statt als Statuspille) braucht der Badge Luft
   und Umbruch — er trägt dann ganze Sätze, siehe Paritätswarnung. */
div.wb-badge { margin: 8px 0; padding: 6px 12px; line-height: 1.4; }

/* Buttons */
.wb-btn {
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--wb-hairline); background: var(--wb-bg);
  color: var(--wb-deep-80); font: inherit; font-weight: 500; cursor: pointer;
}
.wb-btn:hover { background: var(--wb-surface); }
.wb-btn-primary {
  height: 40px; padding: 0 16px;
  background: var(--wb-amber); border-color: var(--wb-amber);
  color: var(--wb-brown); font-weight: 700;
}
.wb-btn-primary:hover { background: var(--wb-amber-ink); border-color: var(--wb-amber-ink); }
.wb-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.wb-btn-primary:disabled:hover { background: var(--wb-amber); border-color: var(--wb-amber); }
.wb-btn-ghost {
  background: transparent; border-color: transparent; color: #fff;
}
.wb-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Formulare */
.wb-form label, .wb-card label { display: block; margin: 12px 0 4px; }
input[type="email"], input[type="text"], textarea {
  width: 100%; border: 1px solid var(--wb-hairline); border-radius: 6px;
  background: var(--wb-bg); font: inherit; padding: 8px 10px;
}
input[type="email"], input[type="text"] { height: 40px; }
textarea { line-height: 1.45; }
fieldset { border: 1px solid var(--wb-hairline); border-radius: 8px; margin: 12px 0; }
legend { padding: 0 4px; }
.wb-check { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }
.wb-card label.wb-check { display: inline-flex; }
.wb-check input { width: auto; height: auto; }
form { margin: 8px 0 0; }

/* Links */
a { color: var(--wb-teal-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--wb-deep); }
.wb-row { text-decoration: none; }

/* Segmente */
.wb-article .wb-segment {
  padding: 10px 12px; border-radius: 8px; margin-bottom: 4px;
}
.wb-segment-strittig { background: #FEF3C7; }          /* amber-100: strittig */
.wb-segment-strittig.wb-segment-geprueft { background: #DCFCE7; } /* green-100 */
/* Step-Überschrift im Beitrag: h2 der Skala (20 px, Display-Stil). Der obere
   Abstand trennt sie vom vorigen Step, ohne die erste Karte einzurücken.
   Der Selektor trägt das h2 mit, sonst gewönne die margin-Regel von
   `h2.wb-display` weiter oben. */
h2.wb-segment-titel { font-size: 20px; margin: 16px 0 4px; }
.wb-article .wb-segment:first-child h2.wb-segment-titel { margin-top: 0; }
.wb-segment-target { font-size: 15px; line-height: 1.55; }
.wb-segment-target p:first-child { margin-top: 0; }
.wb-segment-target p:last-child { margin-bottom: 0; }
.wb-segment-detail { border-top: 1px solid var(--wb-hairline); margin-top: 8px; }
.wb-segment-source {
  background: var(--wb-surface); border-radius: 6px; padding: 8px 10px;
  margin: 4px 0 8px;
}
/* Die KI-Hinweise sind eine Liste — knapp gesetzt, damit sie die Karte
   nicht dominieren. */
ul.wb-segment-reasons {
  font-size: 13px; color: var(--wb-muted);
  margin: 4px 0 8px; padding-left: 20px;
}
ul.wb-segment-reasons li { margin: 2px 0; }
.wb-approve { text-align: right; }
.wb-approve .wb-muted { margin: 8px 0 0; }
details > summary { cursor: pointer; margin-top: 6px; }
