:root {
  --blue: #1b2a4a;        /* Navy — Primärfarbe */
  --blue-2: #6b7fa6;      /* gedämpfter Stahl-Akzent */
  --blue-dark: #12203c;
  --ink: #2b2f38;
  --muted: #5b6478;
  --line: #dfe2ea;
  --bg: #f5f7fa;
  --card: #ffffff;
  --good: #3b6d55;        /* mattes Grün */
  --good-bg: #e7efe9;
  --warn: #b47a1d;        /* Ocker */
  --warn-bg: #f6efe0;
  --bad: #a33b34;         /* gedämpftes Rot */
  --bad-bg: #f5e9e8;
  --sahne: #4a7a68;
  --sahne-line: #6b8f74;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(27, 42, 74, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.wrap { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 20px;
}
.brand-name { font-weight: 900; line-height: 1.1; display: flex; flex-direction: column; }
.brand-sub { font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.header-cta {
  text-decoration: none; font-weight: 700; font-size: 14px; font-family: inherit;
  color: var(--blue); border: 1px solid var(--line); background: none; cursor: pointer;
  padding: 9px 16px; border-radius: 8px;
  transition: all 0.15s;
}
.header-cta:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Hero — dunkles Navy-Band, editorial & linksbündig */
.hero { background: var(--blue); color: #fff; padding: 58px 0 54px; }
.eyebrow { color: #8fa0c4; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin: 0 0 16px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; margin: 0 0 18px; color: #fff; line-height: 1.14; letter-spacing: -0.01em; max-width: 22ch; }
.lede { font-size: 17px; color: #c4cde0; max-width: 56ch; margin: 0 0 28px; }
.lede strong { color: #fff; }
.hero .form-hint { color: #8fa0c4; }

.check-form {
  display: flex; gap: 10px; max-width: 620px; margin: 0 auto; flex-wrap: wrap;
}
.check-form input {
  flex: 1; min-width: 220px; border: 1.5px solid var(--line); background: #fff;
  padding: 14px 16px; border-radius: 8px; font-size: 16px; font-family: inherit;
  color: var(--ink); outline: none;
}
.check-form input:focus { border-color: var(--blue); }
.check-form button {
  border: 0; background: var(--blue); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 8px; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.check-form button:hover { background: var(--blue-dark); }
.check-form button:disabled { opacity: 0.55; cursor: wait; }
.form-hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Hero-Button (Anker zum Check) — hell auf dunklem Hero */
.hero-btn {
  display: inline-block; background: #fff; color: var(--blue); text-decoration: none;
  font-weight: 800; font-size: 16px; padding: 14px 28px; border-radius: 8px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }

/* Fließtext-Blöcke */
.prose { max-width: 720px; padding: 8px 20px 20px; }
.prose h2, .section-title { font-size: clamp(24px, 3.5vw, 30px); color: var(--blue-dark); margin: 0 0 16px; }
.section-title { text-align: center; padding-top: 20px; }
.prose p { font-size: 17px; color: var(--muted); margin: 0 0 16px; }

/* Kuchen / Sahne */
.cake-grid { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin: 4px 0 0; }
.cake-card { flex: 2.4 1 300px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; padding: 22px; }
.cake-card.cream { flex: 1 1 200px; border-left: 4px solid var(--sahne-line); }
.cake-badge { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--blue); font-size: 17px; margin-bottom: 9px; }
.cake-card.cream .cake-badge { color: var(--sahne); font-size: 16px; }
.cake-badge svg { width: 22px; height: 22px; flex: none; }
.cake-card p { margin: 0; color: var(--muted); font-size: 14px; }
.prose-note { max-width: 720px; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 16px; padding: 0 20px; }

/* Check-Bereich */
.check-section { padding: 44px 20px 10px; scroll-margin-top: 80px; }
.microcopy { max-width: 660px; margin: 0 auto 22px; text-align: center; color: var(--ink); font-size: 15px; background: #eef4f9; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }

/* Großer, ehrlicher Disclaimer */
.disclaimer.big { max-width: 760px; margin: 20px auto 10px; padding: 24px 26px; }
.disclaimer.big strong { font-size: 18px; margin-bottom: 8px; }
.disclaimer.big p { margin: 0; font-size: 15px; }

/* Hub: Tool-Karten */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; padding: 10px 0 60px; }
.tool-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
a.tool-card:hover { transform: translateY(-3px); box-shadow: 0 16px 46px rgba(7, 70, 127, 0.14); }
.tool-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); background: #e8f0f8; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.tool-card h2 { margin: 0 0 8px; font-size: 22px; color: var(--blue-dark); }
.tool-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; flex: 1; }
.tool-link { font-weight: 900; color: var(--blue); }
.tool-link.muted { color: var(--muted); }
.tool-card--soon { border-style: dashed; box-shadow: none; background: transparent; }
.tool-card--soon .tool-badge { color: var(--muted); background: #eef2f5; }

/* Results */
.results-area { padding: 20px 0 60px; }
.loading { text-align: center; padding: 50px 0; }
.spinner {
  width: 46px; height: 46px; margin: 0 auto 18px;
  border: 4px solid var(--line); border-top-color: var(--blue);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  background: var(--bad-bg); color: var(--bad); border: 1px solid #f3c6c2;
  padding: 18px 20px; border-radius: var(--radius); font-weight: 700; text-align: center;
}

.result-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 32px; }

.score-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.score-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.score-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--blue); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s ease, stroke 0.4s; }
.score-num { position: absolute; inset: 0; display: grid; place-items: center; flex-direction: column; font-weight: 900; }
.score-num span { font-size: 34px; line-height: 1; color: var(--ink); }
.score-num small { font-size: 13px; color: var(--muted); font-weight: 700; }

.score-meta { flex: 1; min-width: 240px; }
.score-label { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin: 0 0 8px; }
.score-label.good { background: var(--good-bg); color: var(--good); }
.score-label.ok { background: #e8f0f8; color: var(--blue); }
.score-label.warn { background: #fbf0dd; color: var(--warn); }
.score-label.bad { background: var(--bad-bg); color: var(--bad); }
.score-meta h2 { margin: 4px 0 6px; font-size: 20px; word-break: break-all; }
.summary { margin: 0; color: var(--muted); font-size: 16px; }

/* Inszenierter Scan */
.scan { max-width: 560px; margin: 10px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.scan-target { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.scan-target strong { color: var(--blue-dark); }
.scan-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.scan-step { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #aab6c0; transition: color 0.3s; }
.scan-ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; transition: all 0.3s; }
.scan-step.active { color: var(--ink); }
.scan-step.active .scan-ic { border-color: var(--blue); border-top-color: transparent; animation: spin 0.7s linear infinite; }
.scan-step.done { color: var(--ink); }
.scan-step.done .scan-ic { background: var(--good); border-color: var(--good); animation: none; }
.scan-step.done .scan-ic::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 900; }

/* Teil-Scores */
.subscores { display: flex; gap: 18px; margin: 16px 0 0; flex-wrap: wrap; }
.subscore { flex: 1; min-width: 150px; }
.subscore-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.subbar { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.subbar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width 0.9s ease; }

/* Report-Liste mit Punkten */
.report-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rep-item { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.rep-item.pass { border-left-color: var(--good); }
.rep-item.warn { border-left-color: var(--warn); }
.rep-item.fail { border-left-color: var(--bad); }
.rep-top { display: flex; align-items: center; gap: 10px; }
.rep-ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; }
.rep-ic.pass { background: var(--good); }
.rep-ic.warn { background: var(--warn); }
.rep-ic.fail { background: var(--bad); }
.rep-label { font-weight: 700; font-size: 16px; flex: 1; }
.rep-points { font-weight: 900; font-size: 14px; padding: 3px 10px; border-radius: 999px; background: #eef2f5; color: var(--muted); }
.rep-points.pass { background: var(--good-bg); color: var(--good); }
.rep-points.warn { background: #fbf0dd; color: var(--warn); }
.rep-points.fail { background: var(--bad-bg); color: var(--bad); }
.rep-detail { margin: 8px 0 0; font-size: 14px; color: var(--ink); }
.rep-ev { margin: 6px 0 0; font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f6f9fc; border-radius: 6px; padding: 4px 8px; display: inline-block; }

/* Check-Zeile: Label + Punkte nebeneinander, Zahlen im Dropdown */
.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.check-head strong { font-size: 15px; }
.check-head .rep-points { flex-shrink: 0; }
.check-empty { list-style: none; color: var(--muted); font-size: 14px; }
.rep-more { margin: 8px 0 0; }
.rep-more > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--blue); list-style: none; display: inline-flex; align-items: center; gap: 5px; user-select: none; }
.rep-more > summary::-webkit-details-marker { display: none; }
.rep-more > summary::before { content: '▸'; font-size: 11px; transition: transform 0.15s; }
.rep-more[open] > summary::before { transform: rotate(90deg); }
.cfix { margin: 8px 0 0; font-size: 13px; color: var(--blue); background: #eef1f7; border-radius: 6px; padding: 8px 12px; line-height: 1.5; }
.cfix strong { font-weight: 700; }

/* Fließtext-Liste + FAQ */
.prose-list { margin: 0; padding-left: 22px; color: var(--muted); font-size: 17px; }
.prose-list li { margin-bottom: 8px; }
.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); font-size: 17px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--blue-2); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }

.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 34px 0 0; }
.col-title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.col-title.good { color: var(--good); }
.col-title.warn { color: var(--warn); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-item { display: flex; gap: 12px; }
.check-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; margin-top: 2px; }
.check-icon.pass { background: var(--good); }
.check-icon.warn { background: var(--warn); }
.check-icon.fail { background: var(--bad); }
.check-body strong { display: block; font-size: 15px; }
.check-body p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.check-list:empty::after { content: '—'; color: var(--muted); }

.disclaimer { background: #f6f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 30px 0 0; font-size: 14px; color: var(--muted); }
.disclaimer strong { color: var(--ink); display: block; margin-bottom: 3px; }

.cta-card {
  margin: 24px 0 0; background: var(--blue);
  color: #fff; border-radius: var(--radius); padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-card h3 { margin: 0 0 6px; font-size: 20px; }
.cta-card p { margin: 0; color: #c4cde0; font-size: 15px; max-width: 460px; }
.cta-btn { background: #fff; color: var(--blue); text-decoration: none; font-weight: 800; padding: 14px 24px; border-radius: 8px; white-space: nowrap; transition: transform 0.12s; }
.cta-btn:hover { transform: translateY(-2px); }

.again-btn { display: block; margin: 24px auto 0; background: none; border: 0; color: var(--blue); font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { margin: 0; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }

/* Admin / Check-Verlauf */
.admin { padding: 40px 20px 60px; }
.admin-login { max-width: 460px; margin: 20px auto; text-align: center; }
.admin-login h1 { color: var(--blue-dark); }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-head h1 { color: var(--blue-dark); margin: 0; }
.admin-stats { color: var(--muted); font-weight: 700; font-size: 14px; }
.admin-filter { width: 100%; margin: 14px 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 15px; box-shadow: var(--shadow); outline: none; }
.admin-filter:focus { border-color: var(--blue-2); }
.admin-tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { background: #f6f9fc; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; position: sticky; top: 0; }
.admin-table tr:last-child td { border-bottom: 0; }
.col-time { color: var(--muted); }
.col-site { font-weight: 700; color: var(--blue-dark); max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.score-pill { display: inline-block; min-width: 34px; text-align: center; font-weight: 900; padding: 3px 10px; border-radius: 999px; }
.score-pill.good { background: var(--good-bg); color: var(--good); }
.score-pill.ok { background: #e8f0f8; color: var(--blue); }
.score-pill.warn { background: #fbf0dd; color: var(--warn); }
.score-pill.bad { background: var(--bad-bg); color: var(--bad); }
.admin-empty { text-align: center; color: var(--muted); padding: 30px 0; }

@media (max-width: 640px) {
  .checks-grid { grid-template-columns: 1fr; gap: 24px; }
  .result-card { padding: 22px; }
  .check-form { flex-direction: column; border-radius: 20px; background: transparent; box-shadow: none; border: 0; padding: 0; }
  .check-form input { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; box-shadow: var(--shadow); }
  .check-form button { border-radius: 12px; padding: 15px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
}
