:root {
  color-scheme: light dark;
  --brand-h: 195;
  --bg:        light-dark(oklch(0.991 0.004 230), oklch(0.165 0.018 245));
  --bg-subtle: light-dark(oklch(0.965 0.006 230), oklch(0.205 0.020 245));
  --surface:   light-dark(oklch(1 0 0), oklch(0.225 0.022 245));
  --border:    light-dark(oklch(0.90 0.010 230), oklch(0.30 0.024 245));
  --text:      light-dark(oklch(0.255 0.022 245), oklch(0.945 0.010 230));
  --text-muted:light-dark(oklch(0.475 0.022 245), oklch(0.735 0.018 235));
  --brand:     light-dark(oklch(0.55 0.115 var(--brand-h)), oklch(0.74 0.115 var(--brand-h)));
  --on-brand:  oklch(0.99 0.01 230);
  --green: oklch(0.72 0.17 150);
  --amber: oklch(0.78 0.15 80);
  --red:   oklch(0.64 0.21 25);
  --blue:  oklch(0.70 0.12 235);
  --font-sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --radius: 14px; --radius-sm: 9px; --maxw: 56rem;
  --shadow: 0 1px 2px oklch(0.2 0.02 245 / 0.06), 0 8px 24px -12px oklch(0.2 0.02 245 / 0.22);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--brand); }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 2rem, var(--maxw)); margin-inline: auto; min-block-size: 3.6rem; }
.brand { font-weight: 720; text-decoration: none; color: var(--text); letter-spacing: -0.02em; }
.brand .mark { color: var(--brand); }
.brand .sub { color: var(--brand); margin-inline-start: 0.3em; }
.ghost { font-size: .85rem; color: var(--text-muted); text-decoration: none; font-family: var(--font-mono); }
.ghost:hover { color: var(--brand); }

.hero { text-align: center; padding-block: 2rem 1rem; }
.hero h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 .6rem; letter-spacing: -0.02em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.lede { color: var(--text-muted); max-width: 44rem; margin: 0 auto 1.5rem; }

.check-form { display: flex; gap: .6rem; max-width: 34rem; margin: 0 auto; }
.check-form input { flex: 1; padding: .75rem .9rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.check-form input:focus { outline: 2px solid color-mix(in oklch, var(--brand) 55%, transparent); border-color: var(--brand); }
.check-form button { border: 0; cursor: pointer; background: var(--brand); color: var(--on-brand);
  font: inherit; font-weight: 650; padding: .75rem 1.3rem; border-radius: var(--radius-sm); }
.check-form button:hover { filter: brightness(1.07); }
.check-form button:disabled { opacity: .6; cursor: wait; }
.opts { display: flex; gap: 1.2rem; justify-content: center; margin-top: .8rem; font-size: .85rem; color: var(--text-muted); }
.opts label { display: inline-flex; align-items: center; gap: .35rem; }

.status { text-align: center; padding: 2rem; color: var(--text-muted); }
.spinner { width: 2rem; height: 2rem; border: 3px solid var(--border); border-top-color: var(--brand);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.status.error { color: var(--red); }

.report { padding-block: 1rem 3rem; }
.report-head { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.report-head .host { font-family: var(--font-mono); font-size: 1.1rem; word-break: break-all; }
.report-head .url { color: var(--text-muted); font-size: .8rem; word-break: break-all; }
.report-head .meta { color: var(--text-muted); font-size: .78rem; margin-top: .3rem; }
.gauge { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; flex-shrink: 0;
  font-weight: 720; font-size: 1.5rem; color: #fff; }
.gauge small { display: block; font-size: .55rem; font-weight: 500; opacity: .85; letter-spacing: .1em; }

.cats { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cat-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.cat-head h2 { font-size: 1rem; margin: 0; flex: 1; }
.cat-score { font-weight: 700; font-family: var(--font-mono); }
.bar { height: 6px; background: var(--bg-subtle); }
.bar > span { display: block; height: 100%; }
.results { list-style: none; margin: 0; padding: .4rem 1.2rem 1rem; display: grid; gap: .1rem; }
.res { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; padding: .55rem 0; border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.res:first-child { border-top: 0; }
.res .ico { font-weight: 800; text-align: center; }
.res .label { font-weight: 600; font-size: .92rem; }
.res .msg { color: var(--text-muted); font-size: .88rem; }
.res .ev { color: var(--text-muted); font-family: var(--font-mono); font-size: .76rem; word-break: break-all; opacity: .85; margin-top: .15rem; }
.pass { color: var(--green); } .warn { color: var(--amber); } .fail { color: var(--red); } .info { color: var(--blue); }

/* Teilen */
.shared-banner { margin-top: .8rem; padding: .6rem .9rem; background: color-mix(in oklch, var(--brand) 12%, var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; color: var(--text-muted); }
.shared-banner a { color: var(--brand); }
.share-box { margin-top: .9rem; }
.share-toggle { background: none; border: 1px solid var(--border); color: var(--text); cursor: pointer;
  font: inherit; font-size: .88rem; padding: .5rem .9rem; border-radius: var(--radius-sm); }
.share-toggle:hover { border-color: var(--brand); color: var(--brand); }
.share-form { margin-top: .7rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.share-hint { color: var(--text-muted); font-size: .82rem; margin: 0 0 .6rem; }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-row input { flex: 1; min-width: 12rem; padding: .55rem .7rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.share-row button { border: 0; cursor: pointer; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 650;
  padding: .55rem 1rem; border-radius: var(--radius-sm); }
.share-row button:disabled { opacity: .6; cursor: wait; }
.share-msg { font-size: .85rem; margin-top: .6rem; min-height: 1.1rem; word-break: break-all; }
.share-msg.ok { color: var(--green); } .share-msg.err { color: var(--red); }
.share-msg a { color: var(--brand); }

.site-footer { border-top: 1px solid var(--border); padding: 1.4rem 0; margin-top: 2rem; }
.site-footer p { width: min(100% - 2rem, var(--maxw)); margin: 0 auto; color: var(--text-muted); font-size: .82rem; text-align: center; }
