/* dwpbank-lab — styles.css
   Statisch, vanilla, keine externen Schriftarten, keine Tracker. Helles, ruhiges
   dwpbank-inspiriertes Farbsystem (gleiche Familie wie dwpbank.chaghou.dev), etwas
   breiter und technischer. Ohne JavaScript voll lesbar. */

:root {
  --bg:           #f3f5f9;
  --bg-soft:      #e9edf5;
  --surface:      #ffffff;
  --surface-soft: #f7f9fc;
  --surface-blue: #eef2ff;

  --brand-blue:       #213a8f;
  --brand-blue-light: #7f98ec;
  --brand-blue-hover: #2a48ad;
  --brand-blue-soft:  rgba(33, 58, 143, 0.10);

  --brand-gray: #717778;

  --text:        #172033;
  --text-strong: #0f172a;
  --text-muted:  #5f6878;

  --line:        #d7deea;
  --line-strong: #c4ccda;
  --line-soft:   rgba(127, 152, 236, 0.18);

  --focus: #213a8f;

  --radius: 12px;
  --wrap:   1080px;
  --prose:  760px;
  --ff: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  hyphens: auto;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-blue); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- 1. Hinweisleiste ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 9px 24px; background: #111a32; color: #d8deeb; font-size: 13px;
}
.topbar__note { display: inline-flex; align-items: center; gap: 9px; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-blue-light); flex: none; }
.topbar__back { color: #cdd8ff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar__back:hover { text-decoration: underline; }
.topbar__back:focus-visible { outline: 2px solid #a9baff; outline-offset: 2px; border-radius: 4px; }

/* ---------- Sections ---------- */
.section { padding-top: 56px; }
.section--close { padding-bottom: 16px; }
.section-title {
  margin: 0 0 16px; font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: -0.3px; color: var(--text-strong);
}
.section-lead { margin: -8px 0 20px; color: var(--text-muted); max-width: var(--prose); }
.section-body { margin: 0 0 16px; color: var(--text-muted); max-width: var(--prose); }

/* ---------- 2. Hero ---------- */
.hero { padding-top: 64px; }
.hero__eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--brand-blue); }
.hero__title { margin: 0; font-size: clamp(30px, 6vw, 48px); line-height: 1.12; font-weight: 800; letter-spacing: -0.6px; color: var(--text-strong); text-wrap: balance; }
.hero__sub { margin: 18px 0 0; font-size: clamp(17px, 2.4vw, 20px); color: var(--text); max-width: 64ch; font-weight: 500; }
.hero__lead { margin: 18px 0 0; color: var(--text-muted); max-width: 68ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.chips li { font-size: 13px; font-weight: 600; color: var(--brand-blue); background: var(--surface-blue); border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 12px; }

/* ---------- 3. Punkte ---------- */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.point h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text-strong); }

.callout {
  margin: 0; padding: 16px 20px; background: var(--surface-blue);
  border-left: 4px solid var(--brand-blue); border-radius: 0 12px 12px 0;
  font-size: clamp(16px, 2.2vw, 19px); font-weight: 600; color: var(--text-strong); max-width: var(--prose);
}

/* ---------- 4. Architektur ---------- */
.figure { margin: 0 0 22px; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #0b1020; }
.figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); max-width: 80ch; }
.figure--wide { max-width: 100%; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.col__title { margin: 0 0 10px; font-size: 16px; font-weight: 650; color: var(--text-strong); }

.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 20px; color: var(--text-muted); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand-blue-light); }
.ticks--prose { max-width: var(--prose); }
.ticks--prose li { font-size: 15.5px; }

.note-box { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: var(--prose); }
.note-box__title { margin: 0 0 8px; font-size: 16px; font-weight: 650; color: var(--text-strong); }
.note-box p { margin: 0; color: var(--text-muted); }

/* ---------- 5. Eventfluss ---------- */
.labflow { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.labflow__step { flex: 1 1 auto; min-width: 160px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px; font-weight: 600; color: var(--text-strong); font-size: 15px; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.labflow__arrow { align-self: center; color: var(--brand-gray); font-size: 18px; flex: 0 0 auto; }

/* ---------- 5b. Das Lab in 60 Sekunden ---------- */
.sixty { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sixty__step { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.sixty__num { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-blue); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sixty__body { min-width: 0; flex: 1; }
.sixty__title { margin: 2px 0 6px; font-size: 16px; font-weight: 650; color: var(--text-strong); }
.sixty__body p { margin: 0; color: var(--text-muted); font-size: 15px; }
.sixty__body code { background: var(--surface-blue); border-radius: 4px; padding: 1px 5px; font-size: 0.92em; }
.code { margin: 10px 0 0; padding: 12px 14px; background: #0f172a; color: #e7ecf6; border-radius: 8px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; }
.code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; background: none; color: inherit; padding: 0; border-radius: 0; }

/* ---------- 6. Incident-Phasen (nummerierter Stepper) ---------- */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phase { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.phase__num { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-blue); color: var(--brand-blue); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.phase__tag { display: inline-block; margin: 0 0 8px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--brand-blue); border-radius: 999px; padding: 4px 12px; }
.phase__lead { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; color: var(--text-strong); padding-right: 30px; }

/* ---------- 7. Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery .figure { margin: 0; }
.gallery .figure code { background: var(--surface-blue); border-radius: 4px; padding: 1px 5px; font-size: 0.92em; }
.muted-note { margin: 16px 0 0; font-size: 13.5px; color: var(--brand-gray); max-width: var(--prose); }

/* ---------- 8. ADRs ---------- */
.adr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.adr > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 13px 18px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.adr > summary::-webkit-details-marker { display: none; }
.adr > summary:hover { background: var(--surface-soft); }
.adr > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.adr__id { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--brand-blue); background: var(--surface-blue); border-radius: 6px; padding: 4px 8px; }
.adr__name { flex: 1; min-width: 0; font-weight: 600; color: var(--text-strong); font-size: 15.5px; }
.adr__chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--brand-gray); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.adr[open] > summary .adr__chev { transform: rotate(180deg); }
.adr__body { padding: 2px 18px 18px; }
.adr__body p { margin: 0 0 10px; color: var(--text-muted); font-size: 14.5px; max-width: 82ch; }
.adr__body p:last-child { margin-bottom: 0; }
.adr__body strong { color: var(--text-strong); }
.adr__body code, .note-box code { background: var(--surface-blue); border-radius: 4px; padding: 1px 5px; font-size: 0.92em; }

/* ---------- Buttons ---------- */
.lab-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.lab-btn--primary { background: var(--brand-blue); border: 1px solid var(--brand-blue); color: #fff; box-shadow: 0 8px 20px rgba(33,58,143,0.16); }
.lab-btn--primary:hover { background: var(--brand-blue-hover); border-color: var(--brand-blue-hover); }
.lab-btn--secondary { background: #fff; border: 1px solid var(--line-strong); color: var(--text); font-weight: 650; }
.lab-btn--secondary:hover { border-color: var(--brand-blue); }
.lab-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { margin-top: 64px; padding-top: 24px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.footer__line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); }
.footer__name { color: var(--text-strong); font-weight: 600; }
.footer__sep { color: var(--brand-gray); }
.footer__link { color: var(--brand-blue); text-decoration: none; }
.footer__link:hover { text-decoration: underline; }
.footer__note { margin: 8px 0 0; font-size: 12.5px; color: var(--brand-gray); }

/* ---------- Fokus global ---------- */
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .phases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .points, .cols, .gallery, .phases { grid-template-columns: 1fr; }
  .labflow { flex-direction: column; }
  .labflow__arrow { transform: rotate(90deg); }
  .topbar { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .adr__chev, .lab-btn { transition: none; }
}
