:root {
  color-scheme: light;
  --navy: #14213d;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #182230;
  --muted: #667085;
  --line: #dfe4ea;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --green: #087443;
  --green-bg: #e9f8f0;
  --red: #b42318;
  --red-bg: #fff0ed;
  --amber: #9a6700;
  --amber-bg: #fff7d6;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.topbar { position: sticky; top: 0; z-index: 10; height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: rgba(20, 33, 61, .97); color: #fff; box-shadow: 0 1px 12px rgba(15, 23, 42, .16); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, #6ea8ff, #2563eb); font-weight: 800; letter-spacing: -.04em; }
.brand strong, .brand span { display: block; }
.brand span { margin-top: 2px; color: #b9c7df; font-size: 12px; }
.top-actions, .button-group { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.badge-wait { color: #ffdd78; background: rgba(255, 221, 120, .12); }
.badge-good { color: #91efbd; background: rgba(34, 197, 94, .13); }
.badge-bad { color: #ffaaa2; background: rgba(239, 68, 68, .14); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1540px; margin: 0 auto; }
.sidebar { position: sticky; top: 72px; align-self: start; min-height: calc(100vh - 72px); padding: 30px 20px; border-right: 1px solid var(--line); background: #f8fafc; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { padding: 10px 12px; border-radius: 9px; color: #344054; text-decoration: none; font-size: 14px; font-weight: 600; }
.sidebar nav a:hover { color: var(--blue); background: #eaf1ff; }
.api-target { margin-top: 30px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.api-target span, .api-target strong, .api-target small { display: block; overflow-wrap: anywhere; }
.api-target span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.api-target strong { margin: 5px 0; font-size: 13px; }
.api-target small { color: var(--muted); line-height: 1.45; }
main { min-width: 0; padding: 42px clamp(24px, 4vw, 58px) 70px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; align-items: center; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
h1 { max-width: 760px; margin: 5px 0 12px; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.04em; }
h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.025em; }
h3 { margin: 18px 0 5px; font-size: 18px; }
p { color: var(--muted); line-height: 1.6; }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.identity-card { padding: 19px; border: 1px solid #cdd7e8; border-radius: var(--radius); background: linear-gradient(145deg, #fff, #edf4ff); box-shadow: 0 7px 20px rgba(37, 99, 235, .08); }
.identity-card span, .identity-card strong, .identity-card small { display: block; }
.identity-label { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.identity-card strong { font-size: 17px; }
.identity-card small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.section-block { padding: 39px 0 2px; scroll-margin-top: 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.card-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-columns { grid-template-columns: minmax(300px, .85fr) minmax(440px, 1.3fr); }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 12px rgba(16, 24, 40, .035); }
.endpoint-heading { display: flex; align-items: center; gap: 10px; }
.endpoint-heading code { color: #475467; font-size: 12px; }
.method { min-width: 52px; padding: 5px 7px; border-radius: 6px; text-align: center; font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.method-get { color: #075985; background: #e0f2fe; }
.method-post { color: #11643a; background: #dcfce7; }
.method-put { color: #854d0e; background: #fef9c3; }
.method-delete { color: #991b1b; background: #fee2e2; }
form { display: grid; gap: 13px; margin-top: 18px; }
label { display: grid; gap: 6px; color: #344054; font-size: 12px; font-weight: 700; }
input { width: 100%; padding: 10px 11px; border: 1px solid #cfd6df; border-radius: 8px; color: var(--ink); background: #fff; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.button { padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: 13px; transition: .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-secondary { color: #344054; border-color: #cfd6df; background: #fff; }
.button-secondary:hover:not(:disabled) { border-color: #98a2b3; background: #f9fafb; }
.button-danger { padding: 7px 10px; color: var(--red); border-color: #f4b4ad; background: var(--red-bg); }
.button-ghost { color: inherit; border-color: rgba(255,255,255,.25); background: transparent; }
.section-heading .button-ghost { color: #475467; border-color: var(--line); }
.protected-section.locked, .protected-control.locked { position: relative; opacity: .55; }
.protected-section.locked::after { content: "Admin-Anmeldung erforderlich"; position: absolute; inset: 70px 0 0; display: grid; place-items: center; z-index: 2; border-radius: var(--radius); color: #475467; font-weight: 750; background: rgba(245,247,250,.72); backdrop-filter: blur(2px); }
.table-wrap { overflow-x: auto; margin-top: 17px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 12px 10px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.empty-cell { padding: 30px; color: var(--muted); text-align: center; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status-active { color: var(--green); background: var(--green-bg); }
.status-inactive { color: #5e6673; background: #eef1f4; }
.release-current { display: grid; min-height: 155px; align-content: center; justify-items: center; text-align: center; }
.release-current span { color: var(--muted); font-size: 12px; }
.release-current strong { margin: 8px 0; color: var(--navy); font-size: 35px; }
.release-current small { max-width: 420px; color: var(--muted); overflow-wrap: anywhere; }
.release-table-card { margin-top: 18px; }
.checksum { max-width: 165px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.response-log { min-height: 130px; max-height: 520px; overflow-y: auto; border: 1px solid #23314f; border-radius: var(--radius); background: #101828; color: #d5def0; }
.log-empty { padding: 42px 20px; color: #8492ad; text-align: center; }
.log-entry { border-bottom: 1px solid #263552; }
.log-entry:last-child { border-bottom: 0; }
.log-summary { display: flex; gap: 10px; align-items: center; padding: 12px 15px; font-size: 12px; }
.log-summary time { margin-left: auto; color: #8290a9; }
.log-status { font-weight: 800; }
.log-success { color: #6ee7a6; }
.log-error { color: #ff9a90; }
.log-entry pre { margin: 0; padding: 0 15px 15px; color: #c8d6ef; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.toast-region { position: fixed; z-index: 20; right: 22px; bottom: 22px; display: grid; gap: 9px; }
.toast { width: min(390px, calc(100vw - 44px)); padding: 13px 15px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 9px; background: #fff; box-shadow: 0 12px 35px rgba(16, 24, 40, .16); font-size: 13px; }
.toast.error { border-left-color: var(--red); }
@media (max-width: 980px) { .shell { grid-template-columns: 1fr; } .sidebar { display: none; } .two-columns, .split-columns, .hero { grid-template-columns: 1fr; } main { padding-top: 30px; } }
@media (max-width: 620px) { .topbar { height: auto; min-height: 68px; padding: 12px 16px; } .brand span { display: none; } .top-actions { align-items: flex-end; flex-direction: column; } main { padding: 24px 14px 50px; } .form-row { grid-template-columns: 1fr; } .section-heading { align-items: flex-start; flex-direction: column; } .button-group { width: 100%; } .button-group .button { flex: 1; } }
