/* lamp: Automagically-Design (wie pulse und shrt): Papierton mit Punktraster, DM Sans und DM Mono, Rosa-Orange-Verlauf
   als Marke, fast schwarze Schaltflächen, dunkle Fußzeile. Schriften liegen lokal in static/fonts, kein Abruf bei Dritten.
   Kein Build-Schritt: dieses Blatt wird direkt ausgeliefert. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/dm-sans.d4c68940b772.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/dm-mono-400.b4ddae058212.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/dm-mono-500.ecb3fd43cbea.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #EFECE3; --panel: #FFFFFF; --panel2: #FAF9F5; --dots: #DCD6C8; --chip: #E6E1D4;
  --line: #E2DDD1; --line2: #ECE9E2; --edge: #CFC9BA;
  --ink: #1C1917; --ink2: #57534E; --muted: #6B655B;
  --btn: #131316; --btn-ink: #FFFFFF;
  --accent: #BE185D; --accent3: #F472A3;
  --ok: #15803D; --okbg: rgba(22, 163, 74, .12); --okline: #22A559;
  --warn: #B45309; --warnbg: rgba(245, 158, 11, .14); --warnline: #F59E0B;
  --danger: #B42318; --dangerbg: rgba(220, 38, 38, .08); --dangerline: #DC2626;
  --unk: #8F897D; --unkbg: #F1EEE6; --unkline: #D9D3C4;
  --shadow: 0 40px 80px -56px rgba(28, 25, 23, .45);
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative;
  font-family: var(--sans); font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: absolute; left: 0; right: 0; top: 68px; height: 260px; pointer-events: none;
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
body > * { position: relative; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--accent3); }
[x-cloak] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, code { font-family: var(--mono); }
.muted { color: var(--muted); }
.grow { flex: 1 1 0; min-width: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 9px; font-size: 13.5px;
  font-weight: 500; color: var(--ink2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--chip); color: var(--ink); }
.main { flex: 1; display: flex; flex-direction: column; gap: 28px; padding-top: 36px; padding-bottom: 64px; }

/* Bausteine */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-title { margin-bottom: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 15px; }
.card p { font-size: 13.5px; color: var(--ink2); }
.card .big { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.btn:hover { background: var(--panel2); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--unk); flex: none; }
.dot-operational { background: var(--okline); } .dot-degraded { background: var(--warnline); }
.dot-outage { background: var(--dangerline); } .dot-unknown { background: var(--unkline); }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 9999px;
  font-size: 12.5px; font-weight: 500; }
.pill-operational { background: var(--okbg); color: var(--ok); } .pill-operational .dot { background: var(--okline); }
.pill-degraded { background: var(--warnbg); color: var(--warn); } .pill-degraded .dot { background: var(--warnline); }
.pill-outage { background: var(--dangerbg); color: var(--danger); } .pill-outage .dot { background: var(--dangerline); }
.pill-unknown { background: var(--unkbg); color: var(--ink2); } .pill-unknown .dot { background: var(--unkline); }
.badge-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 9999px; background: var(--panel);
  border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--ink2); margin-bottom: 14px; }
.badge-chip .dot { background: var(--accent); }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel2);
  border: 1px solid var(--line); font-weight: 700; font-size: 14px; flex: none; }
.logo-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
.empty { color: var(--muted); padding: 16px 0; }

/* Kopfbereich */
.hero { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; }
.lead { margin-top: 12px; max-width: 560px; color: var(--ink2); font-size: 15px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hint { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.hero-slim { align-items: flex-start; }

.banner { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 18px; border: 1px solid; margin-bottom: 18px; }
.banner strong { font-size: 15px; } .banner p { font-size: 13px; margin-top: 2px; }
.banner-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; flex: none; }
.banner-warn { background: var(--warnbg); border-color: var(--warnline); color: #5b3205; } .banner-warn .banner-icon { background: var(--warnline); }
.banner-ok { background: var(--okbg); border-color: var(--okline); color: #14532d; } .banner-ok .banner-icon { background: var(--okline); }
.banner-grey { background: var(--unkbg); border-color: var(--unkline); color: var(--ink2); } .banner-grey .banner-icon { background: var(--unk); }
.notice { padding: 12px 16px; border-radius: 12px; font-size: 13.5px; }
.notice-warn { background: var(--warnbg); color: #5b3205; }

/* Filter und Kacheln */
.filters { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search input { min-height: 44px; width: 240px; max-width: 100%; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); font: inherit; color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 32px; padding: 0 11px; border-radius: 9999px; background: var(--panel); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; }
.tile:hover { box-shadow: var(--shadow); }
.tile-degraded { border-color: var(--warnline); } .tile-outage { border-color: var(--dangerline); }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-name { font-size: 14px; font-weight: 600; }
.tile-link { text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.tile-cat { font-size: 11.5px; color: var(--muted); }
.tile-note { color: var(--muted); font-style: italic; }
.tile-detail { font-size: 12px; color: var(--ink2); min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.pin { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; color: var(--edge); }
.pin input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pin svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pin:hover { background: var(--panel2); color: var(--ink2); }
.pin:has(input:checked) { color: var(--accent); } .pin:has(input:checked) svg { fill: currentColor; }
.pin:has(input:focus-visible) { outline: 2px solid var(--ink); }
.bars { display: flex; gap: 2px; height: 22px; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--unkline); opacity: .55; }
.bar-operational { background: var(--okline); opacity: 1; } .bar-degraded { background: var(--warnline); opacity: 1; }
.bar-outage { background: var(--dangerline); opacity: 1; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend-note { margin-left: auto; font-size: 10.5px; }

/* Detail, Vorfälle, API */
.back { font-size: 13px; color: var(--ink2); text-decoration: none; }
.detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-head .pill { align-self: center; }
.detail-head h1 { font-size: 30px; letter-spacing: -.03em; }
.list { gap: 0; padding: 18px 22px; }
.list .eyebrow { margin-bottom: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line2); font-size: 13.5px; }
.list .eyebrow + .row { border-top: 0; }
.incidents { display: flex; flex-direction: column; gap: 10px; }
.incident { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.incident .dot { margin-top: 7px; } .incident h3 { font-size: 14px; font-weight: 600; } .incident h3 a { text-decoration: none; }
.incident p { font-size: 12.5px; color: var(--ink2); margin-top: 2px; } .incident p.muted { font-size: 11px; color: var(--muted); }
.api-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.code { margin: 0 0 12px; padding: 16px 18px; border-radius: 18px; background: var(--btn); color: #e7e5e4; font: 12px/1.6 var(--mono); overflow-x: auto; }
.verb { display: inline-block; min-width: 36px; font: 600 10.5px var(--mono); color: var(--ok); } .verb-soon { color: var(--muted); }
.api-grid .row { flex-wrap: wrap; } .api-grid .row .muted { font-size: 12px; }

/* Fußzeile A (Automagically): immer dunkel, mit schimmernder Linie. */
.ft { position: relative; margin-top: auto; padding: 34px 24px 32px; background: #0c0c0e; color: #a8a29b; }
.ft-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 26px; max-width: 1112px; margin: 0 auto; }
.ft-brand { display: flex; align-items: center; gap: 12px; }
.ft-by { font-size: 15px; color: #a8a29b; text-decoration: none; }
.ft-by b { color: #fafaf8; font-weight: 600; border-bottom: 1px solid rgba(250, 250, 248, .25); }
a.ft-by:hover b { border-bottom-color: rgba(250, 250, 248, .6); }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; }
.ft-links a { padding-block: 8px; color: #8f897d; text-decoration: none; }
.ft-links a:hover { color: #fafaf8; text-decoration: underline; text-underline-offset: 4px; }
.ft a:focus-visible { outline: 2px solid #fafaf8; outline-offset: 3px; border-radius: 4px; }
.ft-shim { position: absolute; left: 0; right: 0; top: 0; height: 2px; background-size: 220% 100%;
  background-image: linear-gradient(90deg, transparent 0%, #e84a8a 30%, #f97316 50%, transparent 70%); animation: ft-shim 4s linear infinite; }
@keyframes ft-shim { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .ft-shim { animation: none; background-position: 50% 0; } }

@media (max-width: 860px) {
  .cards3, .api-grid { grid-template-columns: 1fr; }
  .hero-side { align-items: flex-start; }
  .legend-note { margin-left: 0; }
}
@media (max-width: 520px) { .chip { min-height: 40px; } .wrap { padding: 0 16px; } .ft { padding: 28px 24px; } .search input { width: 100%; } }

.searchbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.searchbar .search { display: flex; flex-direction: column; gap: 6px; }
.searchbar select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; }
.filters-status { margin-top: -6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 8px; height: 8px; }
.chip-n { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .7; }
.chip-fav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.chip-fav[aria-pressed="true"] svg { fill: currentColor; }
