/* Scanvio – Design. Alle Farben erfüllen mindestens WCAG AA Kontrast. */
:root {
  --brand: #3b2fd9; --brand-d: #2a20b0; --brand-l: #eeecff;
  --ink: #111827; --muted: #4b5563; --line: #e5e7eb; --bg: #f6f7fb; --card: #fff;
  --good: #0f7b3f; --ok: #1d4ed8; --warn: #a14b00; --bad: #b91c1c;
  --crit-bg: #fde8e8; --high-bg: #fff1e6; --med-bg: #fff8db; --low-bg: #eef2ff; --info-bg: #f1f5f9;
  --radius: 14px; --shadow: 0 1px 2px rgba(17,24,39,.06), 0 8px 24px rgba(17,24,39,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
a:hover { color: var(--brand-d); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 1.6em 0 .6em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
main { min-height: 60vh; padding-bottom: 60px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf/Fuß */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; display: grid; place-items: center; font-weight: 900; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.top-in > .langs { margin-left: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a.btn { color: #fff; }
.foot { background: #0f172a; color: #e5e7eb; padding: 36px 0; }
.foot .muted { color: #cbd5e1; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-nav a { color: #e5e7eb; }

/* Buttons & Formulare */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-d); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .925rem; }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-l); color: var(--brand-d); }
.btn-danger { background: var(--bad); }
.btn-danger:hover { background: #991b1b; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
label { font-weight: 600; display: block; margin: 12px 0 6px; }
input[type=text], input:not([type]), input[type=number], input[type=time], input[type=email], input[type=password], input[type=url], input[type=color], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #9ca3af; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.hint { font-size: .875rem; color: var(--muted); margin-top: 4px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 20px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .g4, .g6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .g6 { grid-template-columns: repeat(2, 1fr); } }
.flash { padding: 14px 18px; border-radius: 10px; margin: 20px 0; font-weight: 500; }
.flash-ok { background: #e7f6ec; color: #0b5d2e; }
.flash-error { background: var(--crit-bg); color: #8a1414; }
.flash-info { background: var(--brand-l); color: var(--brand-d); }

/* Startseite */
.hero { text-align: center; padding: 64px 0 40px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.badge { display: inline-block; background: var(--brand-l); color: var(--brand-d); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.scanform { display: flex; gap: 10px; max-width: 680px; margin: 0 auto; background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--shadow); }
.scanform input { border: 0; font-size: 1.1rem; }
.scanform .btn { white-space: nowrap; }
@media (max-width: 600px) { .scanform { flex-direction: column; } }
.feature h3 { margin: .4em 0 .3em; }
.feature .ico { font-size: 1.8rem; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.cta { background: linear-gradient(135deg, var(--brand), #6d28d9); color: #fff; border-radius: var(--radius); padding: 40px; text-align: center; margin-top: 48px; }
.cta h2 { margin-top: 0; }
.cta .btn { background: #fff; color: var(--brand-d); }
.faq details { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { font-weight: 600; cursor: pointer; }

/* Preise */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.2rem; font-weight: 800; }
.plan ul { padding-left: 20px; flex: 1; }
.plan.featured { outline: 3px solid var(--brand); }
.plan .tag { align-self: flex-start; }

/* Punkte-Ring */
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: #e5e7eb; stroke-width: 10; }
.ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-val { font-weight: 800; font-size: 1.9em; }
.ring-good .ring-fg { stroke: var(--good); } .ring-good .ring-val { color: var(--good); }
.ring-ok .ring-fg { stroke: var(--ok); } .ring-ok .ring-val { color: var(--ok); }
.ring-warn .ring-fg { stroke: #d97706; } .ring-warn .ring-val { color: var(--warn); }
.ring-bad .ring-fg { stroke: var(--bad); } .ring-bad .ring-val { color: var(--bad); }
.ring-none .ring-fg { stroke: #9ca3af; }
.score-pill { display: inline-block; min-width: 44px; text-align: center; border-radius: 999px; padding: 2px 10px; font-weight: 700; color: #fff; }
.sp-good { background: var(--good); } .sp-ok { background: var(--ok); } .sp-warn { background: var(--warn); } .sp-bad { background: var(--bad); } .sp-none { background: #6b7280; }

/* Bericht */
.report-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 28px 0 8px; }
.report-head .meta { flex: 1; min-width: 260px; }
.report-head h1 { font-size: clamp(1.4rem, 3vw, 2rem); word-break: break-all; }
.cat-card { text-align: center; text-decoration: none; color: var(--ink); padding: 18px 10px; }
.cat-card .ring { font-size: .7rem; }
.cat-card .name { font-weight: 700; margin-top: 8px; }
.counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.count { border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: .9rem; }
.sev-critical { background: var(--crit-bg); color: #8a1414; } .sev-high { background: var(--high-bg); color: #8a3b00; }
.sev-medium { background: var(--med-bg); color: #6b4b00; } .sev-low { background: var(--low-bg); color: #3730a3; } .sev-info { background: var(--info-bg); color: #334155; }
.toolbar form { margin: 0; display: flex; }
.toolbar { align-items: center; display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.issue { background: #fff; border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow); border-left: 6px solid #9ca3af; }
.issue.s-critical { border-left-color: var(--bad); } .issue.s-high { border-left-color: #ea580c; } .issue.s-medium { border-left-color: #ca8a04; } .issue.s-low { border-left-color: #6366f1; } .issue.s-info { border-left-color: #94a3b8; }
.issue summary { padding: 14px 18px; cursor: pointer; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; list-style: none; }
.issue summary::-webkit-details-marker { display: none; }
.issue summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.issue[open] summary::after { content: "▴"; }
.issue .ititle { font-weight: 600; flex: 1; min-width: 200px; }
.issue .body { padding: 0 18px 18px; }
.issue .fix { background: #ecfdf3; border-radius: 10px; padding: 12px 14px; color: #064e2b; }
.issue code, .issue pre { background: #f3f4f6; border-radius: 6px; padding: 2px 6px; font-size: .85rem; }
.issue pre { padding: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.issue ul.pl { padding-left: 18px; max-height: 260px; overflow: auto; }
.issue ul.pl li { word-break: break-all; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: #f9fafb; font-size: .9rem; }
.tbl td.url { word-break: break-all; }
.tbl-wrap { overflow-x: auto; border-radius: 12px; box-shadow: var(--shadow); }
.locked { position: relative; }
.locked .blur { filter: blur(5px); user-select: none; pointer-events: none; }
.locked .unlock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.locked .unlock .card { max-width: 460px; }
.metric { text-align: center; }
.metric .v { font-size: 1.5rem; font-weight: 800; }
.progress { height: 14px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), #7c3aed); transition: width .6s; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { font-weight: 600; } .kv dd { margin: 0; word-break: break-all; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 10px; }
.tabs a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 600; font-size: .925rem; }
.tabs a.active { background: var(--brand); color: #fff; }

/* Dashboard */
.site-card { display: flex; gap: 18px; align-items: center; }
.site-card .info { flex: 1; min-width: 0; }
.site-card .info a.name { font-weight: 700; font-size: 1.1rem; text-decoration: none; word-break: break-all; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.up { background: var(--good); } .down { background: var(--bad); } .unk { background: #9ca3af; }
.spark { width: 100%; height: 80px; }
.admin-nav { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }

@media print {
  .top, .foot, .toolbar, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .issue { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .issue .body { display: block; }
}

/* Sprachumschalter */
.langs { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs a { padding: 4px 10px; font-size: .85rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.langs a[aria-current="true"] { background: var(--brand); color: #fff; }

/* Kopfzeile auf dem Handy kompakt */
@media (max-width: 700px) {
  .top-in { min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .logo img { height: 28px; }
  .nav { width: 100%; gap: 10px 14px; font-size: .92rem; justify-content: space-between; order: 3; margin-left: 0; }
  .top-in > .langs { order: 2; margin-left: auto; }
  .nav .btn-sm { padding: 6px 10px; }
  .hide-sm { display: none !important; }
  .hero { padding: 32px 0 24px; }
}

/* =========================================================
   EFFEKTE & ANIMATIONEN
   Werden bei „Bewegung reduzieren“ (prefers-reduced-motion) abgeschaltet.
   ========================================================= */
@property --num { syntax: '<integer>'; inherits: false; initial-value: 0; }

/* Hero mit bewegtem Hintergrund */
html, body { overflow-x: clip; }
.hero-wrap { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%); overflow: hidden; }
.hero-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-bg { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1; pointer-events: none; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; }
.hero-bg .b1 { width: 520px; height: 520px; background: #c7bfff; left: -6%; top: 0; animation: drift1 18s ease-in-out infinite alternate; }
.hero-bg .b2 { width: 420px; height: 420px; background: #a5f3e4; right: 2%; top: 8%; animation: drift2 22s ease-in-out infinite alternate; }
.hero-bg .b3 { width: 360px; height: 360px; background: #e9d5ff; left: 40%; top: 30%; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(120px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 80px) scale(.9); } }
.hero.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; text-align: left; padding: 56px 0 48px; }
.hero.split p.lead { margin-left: 0; }
.hero.split .scanform { margin: 0; }
@media (max-width: 960px) { .hero.split { grid-template-columns: 1fr; text-align: center; } .hero.split p.lead { margin: 0 auto 28px; } .hero.split .scanform { margin: 0 auto; } }
.grad-text { background: linear-gradient(90deg, var(--brand), #8b3dff 60%, #0d9488); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Scan-Vorführung (Browserfenster mit Lupe, Scanstrahl, Fundstellen) */
.demo { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.demo-win { background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(59,47,217,.35), 0 8px 20px rgba(17,24,39,.08); overflow: hidden; border: 1px solid #e7e5ff; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f5f4ff; border-bottom: 1px solid #ebe9ff; }
.demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-bar .r { background: #f87171; } .demo-bar .y { background: #fbbf24; } .demo-bar .g { background: #34d399; }
.demo-url { margin-left: 10px; flex: 1; background: #fff; border-radius: 8px; padding: 4px 10px; font-size: .78rem; color: var(--muted); border: 1px solid #ebe9ff; }
.demo-page { position: relative; padding: 18px; height: 300px; }
.sk { background: #eceef4; border-radius: 8px; margin-bottom: 12px; }
.sk-nav { height: 14px; width: 45%; }
.sk-hero { height: 92px; background: linear-gradient(120deg, #e9e7ff, #f3f0ff); }
.sk-line { height: 10px; } .w80 { width: 80%; } .w60 { width: 60%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.sk-card { height: 62px; margin: 0; }
.beam { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: linear-gradient(180deg, transparent, rgba(94,234,212,.35) 70%, rgba(13,148,136,.75) 100%); border-bottom: 2px solid #14b8a6; animation: beam 9s ease-in-out infinite; }
@keyframes beam { 0% { transform: translateY(-80px); opacity: 0; } 5% { opacity: 1; } 38% { transform: translateY(270px); opacity: 1; } 44%, 100% { transform: translateY(270px); opacity: 0; } }
.pin { position: absolute; font-size: .72rem; font-weight: 700; padding: 5px 9px 5px 22px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px rgba(17,24,39,.14); white-space: nowrap; opacity: 0; transform: scale(.6); animation: pin 9s ease-out infinite; }
.pin::before { content: ""; position: absolute; left: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
.pin.bad { color: var(--bad); } .pin.warn { color: var(--warn); } .pin.ok { color: var(--good); }
.pin.p1 { left: 8%; top: 46px; animation-delay: .8s; }
.pin.p2 { right: 6%; top: 96px; animation-delay: 1.5s; }
.pin.p3 { left: 14%; top: 170px; animation-delay: 2.3s; }
.pin.p4 { right: 10%; top: 226px; animation-delay: 3.0s; }
@keyframes pin { 0% { opacity: 0; transform: scale(.6); } 4% { opacity: 1; transform: scale(1.08); } 7% { transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 88%, 100% { opacity: 0; transform: scale(.9); } }
.lens { position: absolute; width: 64px; height: 64px; left: 0; top: 0; z-index: 3; animation: lens 9s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(59,47,217,.35)); }
.lens img { width: 100%; height: 100%; }
@keyframes lens { 0% { transform: translate(40px, 90px) rotate(-8deg); } 15% { transform: translate(380px, 110px) rotate(6deg); } 30% { transform: translate(90px, 210px) rotate(-4deg); } 45% { transform: translate(400px, 280px) rotate(8deg); } 60%, 100% { transform: translate(470px, -20px) scale(.9) rotate(0); } }
.demo-score { position: absolute; right: -18px; bottom: -26px; background: #fff; border-radius: 18px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 18px 40px -12px rgba(17,24,39,.3); animation: pop 9s ease-out infinite; }
.demo-score .ring { font-size: .62rem; }
.demo-score strong { display: block; font-size: .95rem; }
.demo-score .small { color: var(--muted); }
@keyframes pop { 0%, 40% { opacity: 0; transform: translateY(20px) scale(.9); } 46% { opacity: 1; transform: translateY(0) scale(1.03); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.demo-score .ring-val { --v: 92; animation: count 9s ease-out infinite; }
.demo-score .ring-fg { animation: ringloop 9s ease-out infinite; }
@keyframes count { 0%, 44% { --num: 0; } 58%, 100% { --num: var(--v); } }
@keyframes ringloop { 0%, 44% { stroke-dasharray: 0 var(--circ); } 58%, 100% { stroke-dasharray: var(--dash) var(--circ); } }
@media (max-width: 960px) { .demo { margin-top: 20px; } .demo-score { right: 6px; } .lens { display: none; } }

/* Zähler-Leiste */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 10px; }
.stat { text-align: center; background: #fff; border-radius: 14px; padding: 20px 10px; box-shadow: var(--shadow); }
.stat .n { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat .n.cnt::before { content: counter(num); }
.stat .n.cnt { --num: var(--v); counter-reset: num var(--num); }
.js .stat.in .n.cnt { animation: countup 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes countup { from { --num: 0; } to { --num: var(--v); } }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Einblenden beim Scrollen */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.card.feature, .plan, .stat { transition: transform .25s ease, box-shadow .25s ease; }
.card.feature:hover, .plan:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(17,24,39,.06), 0 18px 36px -10px rgba(59,47,217,.25); }
.feature .ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-l); transition: transform .3s; }
.card.feature:hover .ico { transform: rotate(-6deg) scale(1.08); }
.btn { transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(59,47,217,.6); }
.btn:active { transform: translateY(0); }
.cta { position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.12), transparent 30%); animation: spin 12s linear infinite; pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Punkte-Ringe im Bericht füllen sich und zählen hoch */
.ring-val.cnt::before { content: counter(num); }
.ring-val.cnt { --num: var(--v); counter-reset: num var(--num); }
.js .ring-anim .ring-fg { animation: ringfill 1.4s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.js .ring-anim .ring-val.cnt { animation: countup 1.4s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes ringfill { from { stroke-dasharray: 0 var(--circ); } to { stroke-dasharray: var(--dash) var(--circ); } }
.js .report-anim .issue { animation: fadeUp .5s ease both; }
.js .report-anim .issue:nth-of-type(2) { animation-delay: .05s; } .js .report-anim .issue:nth-of-type(3) { animation-delay: .1s; } .js .report-anim .issue:nth-of-type(4) { animation-delay: .15s; } .js .report-anim .issue:nth-of-type(n+5) { animation-delay: .2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.count.sev-critical { position: relative; }
.js .report-anim .counts .sev-critical::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(185,28,28,.5); animation: pulse 2s ease-out 3; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(185,28,28,0); } }

/* Scan läuft: animierter Scanner */
.scanner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; margin-top: 30px; }
@media (max-width: 900px) { .scanner { grid-template-columns: 1fr; } }
.scanner .demo-page { height: 260px; }
.scanner .beam { animation: beam2 2.6s ease-in-out infinite; }
@keyframes beam2 { 0% { transform: translateY(-70px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(250px); opacity: 0; } }
.scanner .lens { animation: lens2 6s ease-in-out infinite; }
@keyframes lens2 { 0% { transform: translate(40px, 80px) rotate(-6deg); } 25% { transform: translate(330px, 110px) rotate(6deg); } 50% { transform: translate(120px, 220px) rotate(-4deg); } 75% { transform: translate(360px, 250px) rotate(6deg); } 100% { transform: translate(40px, 80px) rotate(-6deg); } }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .4s; }
.chip .st { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #d1d5db; }
.chip.active { color: var(--ink); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.chip.active .st { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.chip.done { color: var(--ink); }
.chip.done .st { border: 0; background: var(--good); position: relative; }
.chip.done .st::after { content: "✓"; color: #fff; font-size: .7rem; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; }
.log { list-style: none; padding: 12px 14px; margin: 0; background: #0f172a; color: #a5f3e4; border-radius: 12px; font: .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; height: 170px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadeUp .3s ease both; }
.log li::before { content: "› "; color: #8b5cf6; }
.progress > div { position: relative; overflow: hidden; }
.progress > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Bewegung reduzieren: alles ruhig, Endzustand sofort anzeigen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .pin, .demo-score { opacity: 1 !important; transform: none !important; }
  .beam, .lens, .hero-bg { display: none; }
  .demo-score .ring-val { --num: var(--v); }
  .demo-score .ring-fg { stroke-dasharray: var(--dash) var(--circ); }
}

/* Ratgeber, Banner, Admin-Ansicht als Kunde */
.article { max-width: 760px; }
.article h2 { margin-top: 1.4em; }
.article p, .article li { font-size: 1.06rem; line-height: 1.75; }
.article code { background: #f3f4f6; border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.note { background: var(--brand-l); border-left: 5px solid var(--brand); border-radius: 10px; padding: 14px 18px; margin: 18px 0; color: #1e1b6e; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.site-banner { background: linear-gradient(90deg, var(--brand), #8b3dff); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }
.imp-bar { background: #fef3c7; color: #78350f; text-align: center; padding: 8px 16px; font-weight: 600; }
.foot-nav { row-gap: 8px; }
@media (max-width: 1100px) { .hide-md { display: none; } }
.ct-res { display: inline-block; margin: 4px 6px 4px 0; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.ct-res.ok { background: #ecfdf3; color: #05603a; }
.ct-res.bad { background: #fef3f2; color: #b42318; }
.tabs a[aria-current="page"] { background: var(--brand); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload progress { flex: 1; min-width: 160px; height: 12px; }

/* ---------- Verwaltungs-Dashboard ---------- */
.dash { padding-top: 22px; }
.dash .admin-nav { margin: 18px 0 22px; }
.d-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 20px 22px; color: var(--ink); text-decoration: none; display: block; position: relative; overflow: hidden; }
.js .dash .d-card, .js .dash .d-hero { opacity: 0; transform: translateY(18px); animation: d-in .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes d-in { to { opacity: 1; transform: none; } }
.d-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #2a20b0, #3b2fd9 45%, #7c3aed); background-size: 200% 200%; animation: d-in .7s forwards, d-grad 14s ease-in-out infinite alternate; }
@keyframes d-grad { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.d-hero h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; }
.d-hero > div:not(.d-orb) { position: relative; z-index: 1; }
.d-date { margin: 0 0 4px; opacity: .85; text-transform: capitalize; font-weight: 500; }
.d-hero-sub { margin: 6px 0 0; opacity: .95; }
.d-hero-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.d-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35; pointer-events: none; }
.d-orb.a { width: 260px; height: 260px; right: -60px; top: -120px; background: radial-gradient(circle, #a78bfa, transparent 70%); animation: d-float 9s ease-in-out infinite alternate; }
.d-orb.b { width: 200px; height: 200px; right: 30%; bottom: -130px; background: radial-gradient(circle, #60a5fa, transparent 70%); animation: d-float 11s ease-in-out infinite alternate-reverse; }
@keyframes d-float { to { transform: translate(-40px, 30px) scale(1.15); } }
.d-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; }
.d-card .d-live { background: var(--brand-l); color: var(--brand-d); letter-spacing: 0; }
.d-pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: d-pulse 1.8s infinite; }
@keyframes d-pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.d-status { background: #fff; color: var(--good); font-weight: 700; padding: 8px 14px; border-radius: 12px; text-decoration: none; font-size: .92rem; }
.d-status.bad { color: var(--bad); }
.d-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 16px; }
.d-kpi { padding-bottom: 64px; transition: transform .25s, box-shadow .25s; }
.d-kpi:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(17,24,39,.06), 0 16px 34px rgba(59,47,217,.14); color: var(--ink); }
.d-kpi::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--c); }
.d-kpi-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, #fff); font-size: 1rem; }
.d-label { font-size: .86rem; font-weight: 600; color: var(--muted); flex: 1; line-height: 1.3; }
.d-big { font-size: 1.85rem; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-big .d-trend { letter-spacing: 0; }
.d-sub { font-size: .82rem; color: var(--muted); }
.d-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56px; }
.d-trend { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--muted); }
.d-trend.up { background: #e7f6ee; color: #0b6b37; }
.d-trend.down { background: #fdecec; color: #b91c1c; }
.d-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .dash .d-line { stroke-dashoffset: 1; animation: d-draw 1.4s .45s cubic-bezier(.6,0,.2,1) forwards; }
.js .dash .d-line.slow { animation-duration: 2s; }
@keyframes d-draw { to { stroke-dashoffset: 0; } }
.js .dash .d-area, .js .dash .d-dot { opacity: 0; animation: d-fade .8s 1.4s forwards; }
@keyframes d-fade { to { opacity: 1; } }
.js .dash .d-pt { opacity: 0; animation: d-fade .3s forwards; animation-delay: calc(.7s + var(--i) * 45ms); }
.d-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.d-span8 { grid-column: span 8; } .d-span6 { grid-column: span 6; } .d-span4 { grid-column: span 4; }
.d-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.d-head h2 { font-size: 1.08rem; margin: 0; }
.d-head a { font-size: .86rem; font-weight: 600; text-decoration: none; }
.d-chart { width: 100%; height: auto; display: block; }
.d-bar rect { transform-box: fill-box; transform-origin: bottom; }
.js .dash .d-bar rect { transform: scaleY(0); animation: d-grow .8s cubic-bezier(.2,.9,.3,1.15) forwards; animation-delay: calc(.4s + var(--i) * 60ms); }
.js .dash .d-bar text { opacity: 0; animation: d-fade .4s forwards; animation-delay: calc(1s + var(--i) * 60ms); }
@keyframes d-grow { to { transform: scaleY(1); } }
.d-bar rect:hover { filter: brightness(1.08); }
.d-badge { background: var(--brand); color: #fff; font-weight: 800; border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.d-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d-todo a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f8f9fc; color: var(--ink); text-decoration: none; font-weight: 500; transition: background .2s, transform .2s; }
.d-todo a:hover { background: var(--brand-l); transform: translateX(3px); }
.d-todo a span:nth-child(2) { flex: 1; }
.d-todo-n { min-width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; background: #fff1e6; color: var(--warn); }
.d-todo .bad .d-todo-n { background: #fde8e8; color: var(--bad); }
.d-todo .info .d-todo-n { background: var(--brand-l); color: var(--brand-d); }
.d-todo .muted .d-todo-n { background: #eef0f4; color: var(--muted); }
.js .dash .d-todo li, .js .dash .d-feed li, .js .dash .d-funnel li { opacity: 0; transform: translateX(-10px); animation: d-in .5s forwards; animation-delay: calc(.6s + var(--i) * 70ms); }
.d-done { text-align: center; padding: 20px 0; font-weight: 700; color: var(--good); }
.d-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--good); animation: d-pop .6s .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes d-pop { from { transform: scale(0); } to { transform: scale(1); } }
.d-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.d-donut svg { width: 170px; height: 170px; }
.js .dash .d-seg { animation: d-seg 1.1s cubic-bezier(.6,0,.2,1) both; animation-delay: calc(.6s + var(--i) * 180ms); }
@keyframes d-seg { from { stroke-dasharray: 0 100; } }
.d-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 150px; }
.d-legend li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.d-legend span { width: 12px; height: 12px; border-radius: 4px; }
.d-legend strong { margin-left: auto; }
.d-run { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.d-run-top { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; font-weight: 600; }
.d-run-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-prog { height: 8px; border-radius: 99px; background: #eef0f4; overflow: hidden; margin: 5px 0 3px; }
.d-prog span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3b2fd9, #7c3aed, #3b2fd9); background-size: 200% 100%; animation: d-shimmer 1.6s linear infinite; transition: width .8s; }
@keyframes d-shimmer { to { background-position: -200% 0; } }
.d-run-txt { font-size: .8rem; color: var(--muted); }
.d-empty { color: var(--muted); padding: 18px 0; text-align: center; }
.d-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.d-f-top { display: flex; justify-content: space-between; font-size: .9rem; }
.d-f-bar { height: 12px; background: #eef0f4; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.d-f-bar span { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #6d5dfc, #3b2fd9); }
.js .dash .d-f-bar span { width: 0; animation: d-w 1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.8s + var(--i) * 150ms); }
@keyframes d-w { to { width: var(--w); } }
.d-f-pct { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.d-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 330px; overflow: auto; }
.d-feed li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f1f2f6; font-size: .86rem; }
.d-feed a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-feed a:hover { color: var(--brand); }
.d-feed time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.d-feed-ico { width: 28px; height: 28px; border-radius: 8px; background: #f3f4f8; display: grid; place-items: center; font-size: .9rem; }
.d-feed-ico.good { background: #e7f6ee; }
.d-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-gauge { text-align: center; }
.d-gauge svg { width: 100%; max-width: 150px; }
.js .dash .d-gauge-v { animation: d-seg 1.4s cubic-bezier(.6,0,.2,1) both; animation-delay: calc(.8s + var(--i) * 150ms); }
.d-gauge-n { font-size: 1.4rem; font-weight: 800; margin-top: -26px; }
.d-gauge-l { font-weight: 600; font-size: .88rem; }
.d-gauge-s { font-size: .76rem; color: var(--muted); }
.d-srv { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f2f6; font-size: .86rem; color: var(--muted); }
.d-srv strong { color: var(--ink); }
.d-two { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; }
.d-two h3 { font-size: .86rem; margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.d-top { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.d-top li { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.d-top .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-foot { text-align: center; margin: 20px 0 0; }
.d-flash { animation: d-flash 1s; }
@keyframes d-flash { 30% { color: var(--brand); text-shadow: 0 0 12px rgba(59,47,217,.35); } }
@media (max-width: 1150px) { .d-kpis { grid-template-columns: repeat(3, 1fr); } .d-span4 { grid-column: span 6; } .d-span8 { grid-column: span 12; } }
@media (max-width: 760px) { .d-kpis { grid-template-columns: 1fr 1fr; } .d-grid > * { grid-column: span 12 !important; } .d-hero-side { align-items: flex-start; } .d-two { grid-template-columns: 1fr; } .d-big { font-size: 1.5rem; } }
@media (max-width: 440px) { .d-kpis { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .dash *, .dash { animation: none !important; transition: none !important; }
  .js .dash .d-card, .js .dash .d-hero, .js .dash li { opacity: 1 !important; transform: none !important; }
  .js .dash .d-line { stroke-dashoffset: 0; } .js .dash .d-area, .js .dash .d-dot, .js .dash .d-pt, .js .dash .d-bar text { opacity: 1; }
  .js .dash .d-bar rect { transform: none; } .js .dash .d-f-bar span { width: var(--w); }
}

/* ---------- Cookie-Banner ---------- */
.cc { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.cc[hidden] { display: none; }
.cc-box { pointer-events: auto; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; padding: 22px 24px 18px; box-shadow: 0 2px 6px rgba(17,24,39,.08), 0 24px 60px rgba(17,24,39,.22); border: 1px solid var(--line); }
.cc.cc-in .cc-box { animation: cc-up .5s cubic-bezier(.2,.9,.3,1.1) both; }
.cc.cc-out .cc-box { animation: cc-down .25s ease-in both; }
@keyframes cc-up { from { opacity: 0; transform: translateY(30px) scale(.98); } }
@keyframes cc-down { to { opacity: 0; transform: translateY(30px); } }
.cc-head { display: flex; align-items: center; gap: 12px; }
.cc-head h2 { margin: 0; font-size: 1.2rem; }
.cc-ico { font-size: 1.8rem; display: inline-block; animation: cc-wobble 2.4s 1s ease-in-out; }
@keyframes cc-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }
.cc-text { margin: 10px 0 8px; font-size: .95rem; color: #374151; }
.cc-more > summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 6px 0; }
.cc-cats { display: grid; gap: 10px; margin: 8px 0 4px; }
.cc-cat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fafbfd; }
.cc-cat p { margin: 4px 0 6px 58px; font-size: .88rem; color: var(--muted); }
.cc-cat details summary { margin-left: 58px; font-size: .84rem; cursor: pointer; color: var(--brand); }
.cc-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; position: relative; }
.cc-switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.cc-slider { width: 46px; height: 26px; border-radius: 99px; background: #cbd5e1; position: relative; flex: none; transition: background .25s; }
.cc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.cc-switch input:checked + .cc-slider { background: var(--brand); }
.cc-switch input:checked + .cc-slider::after { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { background: #6d63e6; opacity: .75; }
.cc-switch input:focus-visible + .cc-slider { outline: 3px solid #f59e0b; outline-offset: 2px; }
.cc-always { font-size: .72rem; font-weight: 600; background: var(--brand-l); color: var(--brand-d); padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.cc-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; margin: 8px 0 4px; }
.cc-tbl th, .cc-tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cc-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.cc-btn { font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; transition: transform .15s, background .2s; }
.cc-btn:hover { background: var(--brand-d); border-color: var(--brand-d); transform: translateY(-1px); }
.cc-btn-ghost { background: #fff; color: var(--brand); }
.cc-btn-ghost:hover { background: var(--brand-l); color: var(--brand-d); }
.cc-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
@media (max-width: 640px) { .cc { left: 8px; right: 8px; bottom: 8px; } .cc-box { padding: 18px 16px 14px; } .cc-btns { grid-template-columns: 1fr; } .cc-cat p, .cc-cat details summary { margin-left: 0; } .cc-tbl { display: block; overflow-x: auto; } }
@media (prefers-reduced-motion: reduce) { .cc .cc-box, .cc-ico { animation: none !important; } }
@media print { .cc { display: none !important; } }
