:root {
  --bg: #eef3f7;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --line: #d6dde7;
  --accent: #0f6f7a;
  --accent-dark: #0a5660;
  --accent-soft: #e4f4f3;
  --success: #177245;
  --warn: #b54708;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(22, 34, 51, .08);
}

* { box-sizing: border-box; }
html { min-width: 0; overflow-x: hidden; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: linear-gradient(135deg, #f8fbfd 0%, #eef7f6 42%, #f5f8fb 100%); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
img, svg { max-width: 100%; }
main { width: min(100%, 1500px); margin: 0 auto; padding: clamp(16px, 2vw, 28px); }
.topbar { min-height: 72px; display: flex; align-items: center; gap: 18px; padding: 0 28px; background: rgba(255, 255, 255, .82); border-bottom: 1px solid rgba(214, 221, 231, .9); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.brand { font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #0f6f7a, #20a58c); color: white; font-size: 13px; letter-spacing: .03em; box-shadow: 0 10px 22px rgba(15, 111, 122, .25); }
nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
nav a { color: #344054; padding: 9px 11px; border-radius: 9px; font-size: 14px; font-weight: 700; }
nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-group { position: relative; }
.nav-trigger { color: #344054; padding: 9px 11px; border-radius: 9px; font-size: 14px; font-weight: 700; border: 0; background: transparent; box-shadow: none; }
.nav-group:hover .nav-trigger, .nav-trigger:focus { background: var(--accent-soft); color: var(--accent-dark); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; display: none; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); z-index: 20; }
.nav-menu a { display: block; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: grid; animation: popIn .14s ease-out; }
.topbar form { margin-left: auto; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.hero-head { background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(229,248,245,.94)); border: 1px solid rgba(204, 233, 228, .9); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
h1, h2 { margin: 0 0 8px; line-height: 1.2; }
h1 { font-size: 38px; letter-spacing: -.015em; }
h2 { font-size: 18px; }
p { color: var(--muted); line-height: 1.5; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.panel { background: rgba(255, 255, 255, .93); border: 1px solid rgba(214, 221, 231, .95); border-radius: 12px; padding: 22px; margin-bottom: 18px; overflow: auto; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.panel:hover { transform: translateY(-1px); box-shadow: 0 18px 46px rgba(22, 34, 51, .11); border-color: rgba(15, 111, 122, .22); }
.hero-panel { border-left: 6px solid var(--accent); background: linear-gradient(135deg, #ffffff 0%, #eefaf8 100%); }
.spotlight { background: linear-gradient(135deg, #ffffff, #f5fcfb); }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.metric { font-size: 48px; font-weight: 850; letter-spacing: -.03em; color: #103e43; }
.button, button { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 9px; padding: 10px 14px; cursor: pointer; display: inline-block; font-weight: 800; box-shadow: 0 3px 10px rgba(16, 24, 40, .04); }
.primary, .button.primary { background: linear-gradient(135deg, var(--accent), #1b9a87); border-color: transparent; color: white; box-shadow: 0 12px 24px rgba(15, 111, 122, .22); }
.primary:hover { background: var(--accent-dark); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 11px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
tbody tr:hover { background: #f2faf8; }
.item { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form { display: grid; gap: 14px; max-width: 820px; }
.form.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 10px 11px; font: inherit; background: #fff; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 90px; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.check input { width: auto; }
dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow: auto; background: #f1f3f6; padding: 12px; border-radius: 6px; }
.prompt { width: 100%; min-height: 70vh; font-family: Consolas, monospace; line-height: 1.45; }
.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-box { width: min(420px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.alert { background: #fff3f0; color: #b42318; border: 1px solid #fecdca; padding: 10px; border-radius: 6px; }
small { color: var(--muted); }
.help, .hint { color: var(--muted); font-size: 13px; }
.hint { margin-left: 6px; }
.explain { background: #f3faf8; border: 1px solid #cce9e4; color: #245a55; padding: 11px; border-radius: 9px; margin: 8px 0 0; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: #eef2f6; color: #344054; padding: 5px 10px; font-size: 12px; font-weight: 850; }
.pill.ok { background: #e7f8ed; color: var(--success); }
.pill.neutral { background: var(--accent-soft); color: var(--accent-dark); }
.priority { display: inline-block; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; background: #eef2f6; }
.priority.hoch { background: #fff0ee; color: var(--danger); }
.priority.mittel { background: #fff7e8; color: var(--warn); }
.priority.niedrig { background: #eef8f1; color: var(--success); }
.progress { height: 13px; border-radius: 999px; background: #e8edf3; overflow: hidden; margin: 16px 0; box-shadow: inset 0 1px 2px rgba(16, 24, 40, .12); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #29a78f); transition: width .35s ease; }
.progress.animated span { background-size: 180% 100%; animation: flow 1.8s linear infinite; }
.metrics-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metrics-row div { background: linear-gradient(180deg, #ffffff, #f7fafb); border: 1px solid var(--line); border-radius: 10px; padding: 13px; }
.metrics-row strong { display: block; font-size: 26px; }
.metrics-row span { color: var(--muted); font-size: 12px; }
.url-feed { display: grid; gap: 10px; }
.feed-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); background: #fbfcfd; border-radius: 10px; padding: 13px; }
.feed-row div { min-width: 0; }
.feed-row strong, .feed-row span { display: block; overflow-wrap: anywhere; }
.feed-row span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.export-picker { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; }
.insight-row { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fbfcfd; margin: 10px 0; }
.insight-row strong { color: #16343a; }
.insight-row span, .insight-row small { color: var(--muted); overflow-wrap: anywhere; }
.insight-row.positive { background: #f0fbf4; border-color: #ccebd6; }
.insight-row.risk { background: #fff8f6; border-color: #fecdca; }
.connection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.connection-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #fbfcfd; }
details summary { cursor: pointer; font-weight: 800; color: var(--accent); }
.setup-guide { border-color: #b9e4dd; background: linear-gradient(135deg, #ffffff, #eefbf8); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.steps div { border: 1px solid #cce9e4; border-radius: 12px; padding: 14px; background: rgba(255,255,255,.75); }
.steps strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: white; margin-bottom: 10px; }
.steps span { color: #344054; line-height: 1.45; }
.steps code { display: block; margin-top: 6px; white-space: normal; overflow-wrap: anywhere; }
.stat-card span { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 12px; }
.stat-card strong { display: block; font-size: 46px; color: #103e43; letter-spacing: -.03em; margin-top: 8px; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checklist > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfd; }
.issue-detail { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; background: #fbfcfd; }
.form.slim { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.score-badge { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font-weight: 900; font-size: 18px; color: white; }
.score-good { background: linear-gradient(135deg, #177245, #22a466); }
.score-mid { background: linear-gradient(135deg, #b7791f, #e6a23c); }
.score-low { background: linear-gradient(135deg, #b42318, #e55345); }
.breakable { overflow-wrap: anywhere; }
.sync-console { border-color: rgba(15,111,122,.35); background: linear-gradient(135deg, #ffffff, #effbf8); }
.crawl-hero { background: linear-gradient(135deg, #ffffff 0%, #effbf8 58%, #f7fbfd 100%); position: relative; overflow: hidden; }
.crawl-hero:after { content: ""; position: absolute; right: -60px; top: -85px; width: 220px; height: 220px; border-radius: 999px; background: radial-gradient(circle, rgba(32,165,140,.18), transparent 66%); animation: breathe 4.5s ease-in-out infinite; }
.crawl-form { gap: 16px; }
.preset-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #f7fafb; }
.preset-row button { box-shadow: none; border-radius: 9px; padding: 9px 10px; }
.preset-row button.active { background: linear-gradient(135deg, var(--accent), #20a58c); color: white; border-color: transparent; }
.live-card { border-color: rgba(15,111,122,.28); background: linear-gradient(135deg, #ffffff, #f5fcfb); }
.keyword-hero { position: relative; overflow: hidden; }
.keyword-hero:after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 999px; background: radial-gradient(circle, rgba(32,165,140,.24), transparent 66%); animation: breathe 4s ease-in-out infinite; }
.level-card { position: relative; overflow: hidden; }
.level-card:after { content: ""; position: absolute; inset: auto -30px -46px auto; width: 120px; height: 120px; border-radius: 999px; background: rgba(32,165,140,.08); }
.score-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.score-rules div { display: grid; gap: 7px; border: 1px solid #cce9e4; border-radius: 12px; padding: 14px; background: rgba(255,255,255,.78); }
.score-rules strong { color: var(--accent-dark); font-size: 28px; letter-spacing: -.02em; }
.score-rules b { color: #1d2939; }
.score-rules span { color: var(--muted); line-height: 1.45; }
.quest-grid, .ranking-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quest-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: linear-gradient(180deg, #ffffff, #f7fbfa); box-shadow: 0 10px 28px rgba(16,24,40,.06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.quest-card:hover { transform: translateY(-3px); border-color: rgba(15,111,122,.32); box-shadow: 0 18px 42px rgba(16,24,40,.12); }
.quest-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.quest-top div { min-width: 0; }
.quest-top strong { display: block; overflow-wrap: anywhere; }
.xp-bar { height: 10px; border-radius: 999px; background: #e8edf3; overflow: hidden; margin: 12px 0; }
.xp-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f6f7a, #20a58c, #91d7c7); background-size: 180% 100%; animation: flow 2.8s linear infinite; }
.mini-metrics { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-metrics span, .mini-rank b, .mini-rank small { border-radius: 999px; background: #eef7f6; color: #245a55; padding: 5px 8px; font-size: 12px; font-weight: 800; }
.audit-list { display: grid; gap: 12px; }
.audit-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: #fbfcfd; }
.audit-main { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; }
.audit-main h3 { margin: 0 0 4px; }
.audit-main p { margin: 0 0 5px; }
.score-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.score-bars label { color: #344054; font-weight: 800; }
.score-bars label span { float: right; color: var(--muted); }
.score-bars i { display: block; height: 8px; border-radius: 999px; background: #e8edf3; overflow: hidden; margin-top: 6px; }
.score-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #20a58c); }
.recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rank-chip { display: inline-flex; min-width: 48px; justify-content: center; border-radius: 999px; padding: 6px 9px; color: white; font-weight: 900; }
.rank-win { background: linear-gradient(135deg, #177245, #22a466); }
.rank-mid { background: linear-gradient(135deg, #0f6f7a, #20a58c); }
.rank-low { background: linear-gradient(135deg, #667085, #98a2b3); }
.mini-rank { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.mini-rank span { overflow-wrap: anywhere; font-weight: 800; }
.mini-rank small { grid-column: 1 / -1; justify-self: start; background: #f1f5f4; color: var(--muted); }
.empty-state { text-align: left; }
.ranking-hero { background: linear-gradient(135deg, #ffffff 0%, #eefbf8 56%, #f7fbfd 100%); position: relative; overflow: hidden; }
.ranking-hero:after { content: ""; position: absolute; right: -80px; bottom: -100px; width: 260px; height: 260px; border-radius: 999px; background: radial-gradient(circle, rgba(15,111,122,.16), transparent 68%); }
.ranking-controls { display: grid; gap: 10px; }
.ranking-controls .form { max-width: none; }
.meeting-summary { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.summary-card { border: 1px solid rgba(214,221,231,.95); border-radius: 14px; padding: 20px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.summary-card:after { content: ""; position: absolute; inset: auto -35px -45px auto; width: 120px; height: 120px; border-radius: 999px; background: rgba(32,165,140,.08); }
.summary-card span { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.summary-card strong { display: block; margin: 8px 0 4px; font-size: 38px; color: #103e43; letter-spacing: -.03em; }
.summary-card p { margin: 0; font-weight: 750; }
.primary-summary { background: linear-gradient(135deg, #0f6f7a, #20a58c); color: white; border-color: transparent; }
.primary-summary span, .primary-summary p, .primary-summary strong { color: white; }
.dashboard-row { align-items: stretch; }
.chart-card { min-height: 360px; }
.line-chart { height: 220px; border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: linear-gradient(180deg, #ffffff, #f8fbfc); }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #dce3ec; stroke-width: .55; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 7px rgba(16,24,40,.12)); }
.chart-line.clicks { stroke: #0f6f7a; }
.chart-line.impressions { stroke: #91d7c7; }
.chart-line.positions { stroke: #e6a23c; }
.chart-legend, .trend-labels { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 800; }
.chart-legend { justify-content: flex-start; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 20px; height: 4px; border-radius: 999px; display: inline-block; }
.legend-clicks { background: #0f6f7a; }
.legend-impressions { background: #91d7c7; }
.legend-positions { background: #e6a23c; }
.bar-chart { display: grid; gap: 16px; margin-top: 22px; }
.bar-row { display: grid; grid-template-columns: minmax(130px, .55fr) minmax(140px, 1.45fr) minmax(52px, auto); gap: 12px; align-items: center; }
.bar-row span { color: #344054; font-weight: 850; }
.bar-row > span { line-height: 1.2; overflow-wrap: anywhere; }
.bar-row div { height: 26px; border-radius: 999px; background: #edf2f7; overflow: hidden; box-shadow: inset 0 1px 2px rgba(16,24,40,.12); }
.bar-row b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f6f7a, #20a58c); }
.bar-row strong { color: #103e43; text-align: right; }
.delta-up { color: var(--success) !important; font-weight: 850; }
.delta-down { color: var(--danger) !important; font-weight: 850; }
.ranking-table td:first-child { min-width: 180px; }

/* --- Kontext-Leiste (ersetzt die alte Debug-Statusleiste) --- */
.context-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 9px 28px; color: #475467; font-size: 13px; background: rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(214, 221, 231, .65); }
.context-bar .ctx-project { font-weight: 800; color: #1d2939; }
.context-bar .ctx-sep { color: var(--line); }
.context-bar .ctx-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-weight: 700; color: #475467; }

/* --- Status-Punkte (überall wiederverwendbar) --- */
.dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; flex: none; background: #98a2b3; box-shadow: 0 0 0 3px rgba(152, 162, 179, .16); }
.dot.ok { background: #1aa179; box-shadow: 0 0 0 3px rgba(26, 161, 121, .16); }
.dot.warn { background: #d9870a; box-shadow: 0 0 0 3px rgba(217, 135, 10, .16); }
.dot.danger { background: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, .16); }
.dot.live { background: #1aa179; box-shadow: 0 0 0 3px rgba(26, 161, 121, .16); animation: pulse 1.6s ease-in-out infinite; }

/* --- Zustands-Karten (Dashboard-Kopf: Zustand auf einen Blick) --- */
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.state-card { display: grid; gap: 6px; border: 1px solid rgba(214, 221, 231, .95); border-radius: 14px; padding: 16px 17px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.state-card:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(22, 34, 51, .12); }
.state-card .state-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.state-card .state-value { font-size: 23px; font-weight: 850; color: #103e43; letter-spacing: -.02em; line-height: 1.15; }
.state-card .state-sub { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* --- Banner (Erfolg / Info / Hinweis) — wiederverwendbar auf Crawl, GSC, Keywords --- */
.banner { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: #fbfcfd; margin-bottom: 18px; }
.banner .banner-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; font-weight: 900; font-size: 15px; background: #eef2f6; color: #475467; }
.banner h3 { margin: 0 0 3px; font-size: 15px; }
.banner p { margin: 0; font-size: 13px; }
.banner.success { background: linear-gradient(135deg, #f0fbf4, #eefaf6); border-color: #c6ebd5; }
.banner.success .banner-icon { background: #1aa179; color: #fff; }
.banner.success h3 { color: var(--success); }
.banner.info { background: linear-gradient(135deg, #ffffff, #eefbf8); border-color: #b9e4dd; }
.banner.info .banner-icon { background: var(--accent); color: #fff; }
.banner.warn { background: #fff8f0; border-color: #fbdaa8; }
.banner.warn .banner-icon { background: var(--warn); color: #fff; }
.banner.danger { background: #fff5f3; border-color: #fecdca; }
.banner.danger .banner-icon { background: var(--danger); color: #fff; }

/* --- Aktiver Navigationszustand --- */
nav a.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-trigger.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-menu a.active { background: var(--accent-soft); }

/* --- Preset-Buttons mit Beschreibung --- */
.preset-row.rich { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preset-row.rich button { display: grid; gap: 2px; text-align: left; line-height: 1.3; }
.preset-row.rich button b { font-size: 14px; }
.preset-row.rich button small { font-size: 11px; font-weight: 700; color: var(--muted); }
.preset-row.rich button.active small { color: rgba(255, 255, 255, .85); }

/* --- Website-Audit Dashboard --- */
.audit-hero { background: linear-gradient(135deg, #ffffff 0%, #eefbf8 55%, #f8fbfd 100%); position: relative; overflow: hidden; }
.audit-hero:after { content: ""; position: absolute; right: -90px; top: -110px; width: 260px; height: 260px; border-radius: 999px; background: radial-gradient(circle, rgba(15,111,122,.16), transparent 68%); animation: breathe 5s ease-in-out infinite; }
.audit-summary-grid { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 16px; margin-bottom: 18px; }
.audit-score-card { display: grid; justify-items: center; text-align: center; gap: 12px; }
.health-ring { --score: 0%; width: 154px; height: 154px; display: grid; place-items: center; border-radius: 999px; background: conic-gradient(#20a58c var(--score), #e7edf3 0); position: relative; box-shadow: inset 0 0 0 1px rgba(16,24,40,.04); }
.health-ring:before { content: ""; position: absolute; inset: 13px; border-radius: inherit; background: white; box-shadow: inset 0 1px 2px rgba(16,24,40,.08); }
.health-ring strong, .health-ring span { position: relative; z-index: 1; }
.health-ring strong { font-size: 48px; color: #103e43; letter-spacing: -.04em; }
.health-ring span { align-self: end; margin-bottom: 42px; margin-left: -18px; color: var(--muted); font-weight: 800; }
.status-stack { display: flex; height: 24px; border-radius: 999px; overflow: hidden; background: #edf2f7; box-shadow: inset 0 1px 2px rgba(16,24,40,.12); margin: 20px 0 14px; }
.status-stack span.ok { background: #20a58c; }
.status-stack span.warn { background: #e6a23c; }
.status-stack span.bad { background: #d94b3d; }
.status-legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 850; }
.status-legend span { display: inline-flex; gap: 6px; align-items: center; }
.status-legend i { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.status-legend i.ok { background: #20a58c; }
.status-legend i.warn { background: #e6a23c; }
.status-legend i.bad { background: #d94b3d; }
.severity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.severity-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfcfd; }
.severity-grid strong { display: block; font-size: 28px; color: #103e43; }
.severity-grid span { color: var(--muted); font-size: 12px; font-weight: 800; }
.priority.critical, .priority.high { background: #fff0ee; color: var(--danger); }
.priority.medium { background: #fff7e8; color: var(--warn); }
.priority.low { background: #eef8f1; color: var(--success); }
.audit-issue summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.category-score-card span { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.category-score-card strong { display: block; font-size: 36px; color: #103e43; }
.connector-card { border-color: rgba(15,111,122,.28); background: linear-gradient(135deg, #ffffff, #f5fcfb); }
.connector-card pre { background: #edf7f5; border: 1px solid #cce9e4; color: #245a55; }
.audit-main-grid { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); align-items: start; }
.audit-issue-types { overflow: visible; }
.audit-issue-types .bar-chart { gap: 14px; }
.audit-issue-types .bar-row { grid-template-columns: minmax(160px, .7fr) minmax(180px, 1.45fr) minmax(64px, auto); }
.audit-issue-types .bar-row strong { font-size: 18px; }
.tools-hero { background: linear-gradient(135deg, #ffffff 0%, #eefbf8 56%, #f7fbfd 100%); position: relative; overflow: hidden; }
.tools-hero:after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 280px; height: 280px; border-radius: 999px; background: radial-gradient(circle, rgba(32,165,140,.18), transparent 68%); animation: breathe 5s ease-in-out infinite; }
.toolbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-bottom: 18px; }
.tool-group { display: grid; align-content: start; }
.tool-list { display: grid; gap: 10px; }
.tool-card { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfd; color: var(--text); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: rgba(15,111,122,.26); box-shadow: 0 14px 30px rgba(16,24,40,.08); }
.tool-card strong { color: #103e43; font-size: 16px; }
.tool-card p { margin: 0; font-size: 13px; }
.tool-status { width: fit-content; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.status-active { background: #e7f8ed; color: var(--success); }
.status-partial { background: #fff7e8; color: var(--warn); }
.status-planned { background: var(--accent-soft); color: var(--accent-dark); }
.roadmap-list { display: grid; gap: 12px; }
.roadmap-list div { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fbfcfd; }
.roadmap-list p { grid-column: 2; margin: 0; font-size: 13px; }
.roadmap-list strong { color: #103e43; }

/* --- Footer --- */
.app-footer { max-width: 1360px; margin: 8px auto 28px; padding: 0 28px; color: var(--muted); font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26, 161, 121, .16); }
  50% { box-shadow: 0 0 0 6px rgba(26, 161, 121, .05); }
}

@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 180% 50%; }
}

@keyframes popIn {
  from { transform: translateY(-4px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .state-grid, .four, .meeting-summary, .audit-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .audit-main-grid { grid-template-columns: 1fr; }
  .audit-issue-types .bar-row { grid-template-columns: minmax(180px, .55fr) minmax(180px, 1fr) auto; }
}

@media (max-width: 620px) {
  .bar-row, .audit-issue-types .bar-row { grid-template-columns: 1fr auto; gap: 7px 10px; }
  .bar-row div { grid-column: 1 / -1; order: 3; }
  .bar-row strong { text-align: right; }
  .section-title { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 30px; }
}

@media (max-width: 860px) {
  .two, .three, .four, .form.compact, .metrics-row, .export-picker, .connection-grid, .steps, .checklist, .score-rules, .quest-grid, .ranking-pages, .score-bars, .recommendation-grid, .meeting-summary, .state-grid, .audit-summary-grid, .severity-grid { grid-template-columns: 1fr; }
  .context-bar { padding: 9px 16px; }
  .context-bar .ctx-hint { margin-left: 0; }
  .preset-row.rich { grid-template-columns: 1fr; }
  .topbar { height: auto; align-items: flex-start; padding: 14px; flex-wrap: wrap; }
  nav { order: 3; width: 100%; }
  .nav-group { width: 100%; }
  .nav-menu { position: static; display: grid; box-shadow: none; margin-top: 4px; }
  main { padding: 16px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .hero-actions { justify-content: flex-start; }
  .summary-card strong { font-size: 32px; }
  .line-chart { height: 180px; }
  .preset-row { grid-template-columns: 1fr; }
}

/* --- Neue Plattform-Module: Reports, Backlinks, Wettbewerber, Cluster --- */
.pill.warn { background: #fff7e8; color: var(--warn); }
.pill.danger { background: #fff0ee; color: var(--danger); }
.notice { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 12px; background: #fbfcfd; }
.notice.error { border-color: #fecdca; background: #fff3f0; color: var(--danger); }
.report-head { background: linear-gradient(135deg, #ffffff 0%, #eefbf8 58%, #f8fbfd 100%); }
.report-shell { display: grid; gap: 18px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.report-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.report-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: #344054; font-weight: 800; }
.report-tabs a.active { background: var(--accent); color: #fff; border-color: transparent; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.report-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; box-shadow: 0 10px 28px rgba(16,24,40,.05); }
.report-kpi span { display: block; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.report-kpi strong { display: block; margin: 6px 0; font-size: 25px; line-height: 1.1; color: #103e43; overflow-wrap: anywhere; }
.report-list { display: grid; gap: 10px; }
.report-item { border-left: 4px solid #cbd5e1; padding: 10px 12px; background: #fff; border-radius: 8px; }
.report-item.high, .report-item.critical { border-left-color: var(--danger); }
.report-item.medium { border-left-color: var(--warn); }
.report-item.low { border-left-color: var(--accent); }
.report-item.info { border-left-color: var(--success); }
.report-item strong, .report-action strong { display: block; overflow-wrap: anywhere; }
.report-item small, .report-action small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.report-action { display: grid; grid-template-columns: minmax(96px, 120px) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.report-action:last-child { border-bottom: 0; }
.report-action .priority { font-weight: 800; }
.report-summary { margin: 0; padding-left: 18px; }
.report-summary li { margin: 8px 0; color: #344054; line-height: 1.5; }
.report-table td:first-child { font-weight: 800; }
.report-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.report-source { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; background: #fff; font-weight: 800; }
.report-source.missing { color: #98a2b3; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 620px) {
  th, td { padding: 10px 8px; }
  .report-action { grid-template-columns: 1fr; }
  .report-actions { justify-content: flex-start; }
}

@media print {
  body { background: #fff !important; color: #111 !important; }
  .topbar, .context-bar, .app-footer, .report-actions, .report-tabs { display: none !important; }
  main { max-width: none !important; padding: 0 !important; }
  .panel, .report-kpi, .report-item { box-shadow: none !important; break-inside: avoid; border-color: #d1d5db !important; }
  .page-head { padding-top: 0 !important; }
  a { color: #111 !important; text-decoration: none !important; }
  tr { break-inside: avoid; }
}
