/* Kundenbereich machen.marketing
   Gleiche Farben und Schriften wie die Hauptseite: Knochen, Tinte, ein
   einziger Signalton. Archivo liegt lokal unter /assets/fonts/. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #16120f; --ink-80: #3c3630; --stone: #6d655c;
  --line: #d8d2c8; --bone: #efebe4; --paper: #f7f4ef; --signal: #ff1900;
  --bg: var(--bone); --bg-mute: var(--paper); --bg-deep: var(--ink);
  --text: var(--ink); --text-muted: var(--ink-80); --text-soft: var(--stone);
  --accent: var(--signal); --accent-hover: #d81500; --accent-soft: #fbe3df;
  --ok: #2f6b3a; --warn: #b8412a;
  --radius: 8px; --radius-lg: 8px;
  --shadow: none;
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
h2 { font-size: 1.3rem; font-stretch: 108%; }
h3 { font-size: 1.05rem; font-stretch: 104%; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: #fff; padding: .1em .4em; border-radius: 4px; overflow-wrap: anywhere; }
.muted { color: var(--text-muted); font-size: .93rem; }
.p-wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* Header */
.p-header { background: var(--bone); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.p-nav { display: flex; align-items: center; gap: 1.6rem; min-height: 64px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.p-logo { text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: .7rem; }
.p-logo img { height: 34px; width: auto; display: block; }
@media (max-width: 600px) { .p-logo img { height: 28px; } }
.p-adminbadge { font-style: normal; background: var(--ink); color: var(--bone); border-radius: 4px; padding: .15em .5em; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.p-nav nav { flex: 1; }
.p-nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.p-nav ul a { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text-muted); display: inline-block; padding: .25rem 0 .35rem; border-bottom: 2px solid transparent; }
.p-nav ul a:hover { color: var(--text); }
.p-nav ul a.active { color: var(--text); border-bottom-color: var(--signal); }
.p-logout { font-size: .88rem; color: var(--text-muted); }

/* Mobil & schmale Tablets: Logo-Zeile oben, darunter das Menü als wischbare Leiste */
@media (max-width: 900px) {
  .p-nav { row-gap: 0; column-gap: 1rem; padding-top: .6rem; padding-bottom: 0; }
  .p-logo { order: 1; }
  .p-logout { order: 2; margin-left: auto; }
  .p-nav nav { order: 3; flex-basis: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .p-nav nav::-webkit-scrollbar { display: none; }
  .p-nav ul { flex-wrap: nowrap; gap: 1.15rem; padding: .3rem .1rem 0; }
  .p-nav ul a { white-space: nowrap; padding: .35rem 0 .7rem; }
}

/* Main */
.p-main { padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem); min-height: 60vh; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: .85rem; padding: 1.5rem 0 2rem; margin-top: 2rem; color: var(--text-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: .8rem 1.5rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-soft); }

/* Bausteine */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 2.5vw, 1.6rem); margin-bottom: 1.4rem; }
.panel h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: .8rem; }
.eyebrow::before { content: ''; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--signal); margin-right: .6em; vertical-align: .1em; }
.flash { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: var(--radius); padding: .8rem 1.1rem; margin-bottom: 1.3rem; font-weight: 600; }

/* Buttons & Formulare */
.btn { display: inline-block; background: transparent; color: var(--text); font-weight: 700; font-stretch: 105%; padding: .62em 1.3em; border-radius: 4px; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; font-size: .92rem; font-family: var(--font); line-height: 1.2; transition: background .15s ease, color .15s ease; }
.btn:hover { background: var(--ink); color: var(--bone); }
.btn.yellow { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn.yellow:hover { background: transparent; color: var(--ink); }
.btn.small { padding: .4em .9em; font-size: .82rem; }
.btn.ghost { border-color: var(--line); color: var(--text-muted); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--text); }
.btn:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=datetime-local], input[type=time], input[type=month], input[type=tel], input[type=search], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: .62em .85em; border: 1.5px solid var(--line); border-radius: 4px;
  font-family: var(--font); font-size: 1rem; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 18, 15, .08); }
label { font-weight: 600; font-size: .9rem; display: block; margin: .8rem 0 .3rem; }
textarea { min-height: 120px; resize: vertical; }
form .btn { margin-top: 1rem; }
.inline-form { display: inline; }
hr { border: none; border-top: 1px solid var(--line); }

/* Tabellen & Listen */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); padding: .5rem .6rem; border-bottom: 1.5px solid var(--line); }
td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: none; }

/* Status-Chips */
.chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: .18em .7em; border-radius: 4px; background: var(--bone); border: 1px solid var(--line); color: var(--text-muted); vertical-align: middle; }
.chip.ok { background: #e4efe6; color: var(--ok); border-color: transparent; }
.chip.warn { background: #f9e4df; color: var(--warn); border-color: transparent; }
.chip.yellow { background: var(--ink); color: var(--bone); border-color: transparent; }

/* Aufgaben */
.task { display: flex; gap: .8rem; align-items: baseline; }
.task.done .task-title { text-decoration: line-through; color: var(--text-soft); }
.task .due { margin-left: auto; white-space: nowrap; font-size: .85rem; color: var(--text-muted); }
.task .due.overdue { color: var(--warn); font-weight: 700; }

/* Ziele */
.goal-bar { background: var(--line); border-radius: 999px; height: 10px; overflow: hidden; margin-top: .35rem; }
.goal-bar > div { height: 100%; background: var(--ink); border-radius: 999px; }

/* Nachrichten */
.msgs { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.4rem; }
.msg { max-width: 82%; padding: .7rem 1rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--bone); border-color: var(--ink); }
.msg .meta { font-size: .75rem; color: var(--text-soft); margin-top: .3rem; }
.msg.me .meta { color: rgba(239, 235, 228, .7); }

/* Monitoring */
.spark { width: 100%; height: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.spark-range { margin-top: .3rem; }
.kpi-num { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }

/* Termin-Leiste */
.termin-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: var(--radius); padding: 1rem 1.4rem; margin-bottom: 1.4rem; }
.termin-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .15rem; }

/* Themen-Board (Kanban) */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 980px) { .kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .kanban { grid-template-columns: 1fr; } }
.kanban-spalte { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; }
.kanban-spalte h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-soft); display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; font-stretch: 100%; }
.kanban-spalte.fertig { opacity: .7; }
.kanban-leer { text-align: center; margin: .5rem 0; }
.karte { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; margin-bottom: .8rem; }
.karte:last-child { margin-bottom: 0; }
.karte b { display: block; line-height: 1.3; }
.karte p { margin: .35rem 0 0; font-size: .9rem; color: var(--text-muted); }
.karte-meta { font-size: .75rem; color: var(--text-soft); margin-top: .4rem; }
.karte-move { margin-top: .55rem; }
.karte-move select { padding: .3em .5em; font-size: .84rem; }
.karte details { margin-top: .55rem; border-top: 1px dashed var(--line); padding-top: .5rem; }
.karte summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--text-muted); list-style: none; }
.karte summary::-webkit-details-marker { display: none; }
.karte summary:hover { color: var(--text); }
.karte details form { margin-top: .5rem; }
.karte details .btn { margin-top: .45rem; }
.karte details input[type=text], .karte details textarea { font-size: .9rem; padding: .45em .7em; margin-top: .35rem; }
.karte details textarea { min-height: 56px; }
.kommentar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; font-size: .9rem; margin-top: .45rem; }
.kommentar.ich { background: var(--bone); }
.kommentar .karte-meta { display: block; margin-top: .25rem; }

/* Videos */
.videobox { width: 100%; max-width: 560px; border-radius: var(--radius); background: #000; display: block; }

/* Kennzahlen-Leiste */
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.zahl { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; position: relative; overflow: hidden; }
.zahl::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink); }
.zahl.gut::after { background: var(--signal); }
.zahl b { display: block; font-size: 2.4rem; font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.zahl span { display: block; margin-top: .25rem; font-size: .86rem; color: var(--text-muted); font-weight: 600; }
@media (max-width: 560px) {
  .zahlen { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .zahl { padding: .8rem .7rem; }
  .zahl b { font-size: 1.75rem; }
  .zahl span { font-size: .72rem; line-height: 1.25; }
}

/* Kanal-Auswahl */
.kanal-wahl { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.kanal { display: inline-flex; cursor: pointer; margin: 0; font-weight: 600; }
.kanal input { position: absolute; opacity: 0; width: 0; height: 0; }
.kanal span { display: inline-block; padding: .45em 1em; border: 1.5px solid var(--line); border-radius: 4px; font-size: .9rem; background: #fff; transition: border-color .12s ease, background .12s ease; }
.kanal span:hover { border-color: var(--ink); }
.kanal input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.kanal input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

/* Erfolgs-Zeitstrahl */
.zeitstrahl { list-style: none; margin: 0; padding: 0; }
.zeitstrahl li { display: flex; gap: .9rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.zeitstrahl li:last-child { border-bottom: none; }
.zs-icon { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--bone); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.zeitstrahl b { display: block; line-height: 1.35; }
.zeitstrahl .muted { font-size: .82rem; }

/* Ziele mit Ring */
.ziel { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.ziel:last-child { margin-bottom: 0; }
.ring { width: 66px; height: 66px; flex: 0 0 66px; }
.ziel strong { display: block; line-height: 1.3; }
.ziel .muted { font-size: .86rem; }

/* Direkter Draht */
.draht { background: var(--ink); color: var(--bone); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .2rem; }
.draht b { font-size: 1.05rem; font-stretch: 108%; }
.draht-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; }
.draht .btn { border-color: var(--bone); color: var(--bone); background: transparent; }
.draht .btn:hover { background: var(--bone); color: var(--ink); }
.draht .btn.yellow { background: var(--bone); color: var(--ink); }
.draht .btn.yellow:hover { background: transparent; color: var(--bone); }
.draht .btn.ghost { border-color: rgba(239, 235, 228, .35); color: rgba(239, 235, 228, .85); }

/* App-Tipp (Startbildschirm) */
.app-tipp { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 60; width: min(560px, calc(100% - 1.6rem)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: 0 10px 34px rgba(22, 18, 15, .16); font-size: .92rem; }
.app-tipp b { display: block; }
.app-tipp span { color: var(--text-muted); font-size: .88rem; }
.app-tipp-knoepfe { display: flex; gap: .4rem; flex-shrink: 0; }
@media (max-width: 520px) { .app-tipp { flex-direction: column; align-items: flex-start; gap: .7rem; } }

/* Login */
.login-box { max-width: 440px; margin: clamp(2rem, 8vw, 5rem) auto; }
.login-box .panel { padding: clamp(1.5rem, 4vw, 2.2rem); }

/* Protokoll-Inhalt */
.prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }

/* Klartext-Liste (Website-Check ohne Fachbegriffe) */
.klartext { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .55rem; }
.klartext li { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-left: 4px solid var(--line); padding: .8rem .95rem; }
.klartext li.ok   { border-left-color: var(--ok); }
.klartext li.warn { border-left-color: var(--warn); }
.klartext li.info { border-left-color: var(--ink); }
.klartext .kt-icon { font-size: 1.15rem; line-height: 1.35; flex-shrink: 0; }
.klartext b { display: block; line-height: 1.35; }
.klartext .muted { display: block; font-size: .87rem; margin-top: .18rem; line-height: 1.5; }

/* Logbuch, nächster Schritt, Aufnahme */
.panel.schritt { border: 1.5px solid var(--ink); background: var(--paper); }
.panel.schritt h2 { margin: .3rem 0 .2rem; font-size: 1.45rem; }
.panel.schritt h2 a { text-decoration: none; }
.panel.schritt h2 a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.logbuch { list-style: none; margin: 0; padding: 0; }
.logbuch li { display: flex; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.logbuch li:last-child { border-bottom: none; }
.lb-icon { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--bone); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.05rem; }
.lb-kopf { font-size: .85rem; }
.lb-titel { font-weight: 600; margin-top: .1rem; overflow-wrap: anywhere; }
.lb-text summary { cursor: pointer; color: var(--text-soft); font-size: .85rem; margin-top: .2rem; }
.lb-text div { margin-top: .4rem; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.aufnahme-buehne { background: #111; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.aufnahme-buehne canvas, .aufnahme-buehne video { width: 100%; height: 100%; display: block; }
.aufnahme-knoepfe { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.aufnahme-schalter { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .9rem; margin: 0; }
.aufnahme-senden { margin-top: 1rem; }

/* Datums- und Zeitfelder, Datei-Felder */
input[type=date], input[type=datetime-local], input[type=time], input[type=month] { font-family: inherit; font-size: 1rem; min-height: 2.8rem; line-height: 1.2; -webkit-appearance: none; appearance: none; background: #fff; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; padding: .2rem; border-radius: 4px; }
input[type=file] { width: 100%; padding: .45em .6em; border: 1.5px dashed var(--line); border-radius: 4px; background: #fff; font-family: var(--font); font-size: .95rem; color: var(--text-muted); }
input[type=file]::file-selector-button { font-family: var(--font); font-weight: 700; font-size: .88rem; background: var(--ink); color: var(--bone); border: 0; border-radius: 4px; padding: .5em 1.1em; margin-right: .9em; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--ink-80); }

/* Google-Cockpit */
.seo-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin: .4rem 0 .6rem; }
@media (max-width: 760px) { .seo-kpis { grid-template-columns: 1fr 1fr; gap: .6rem; } }
.seo-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem .9rem; position: relative; overflow: hidden; }
.seo-kpi::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ink); }
.seo-kpi b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.seo-kpi > span { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 600; margin-top: .3rem; line-height: 1.3; }
.seo-kpi .delta { margin-top: .45rem; }
.delta { display: inline-block; font-size: .76rem; font-weight: 700; padding: .12em .6em; border-radius: 4px; background: var(--bone); color: var(--text-muted); border: 1px solid var(--line); }
.delta.up { background: #e4efe6; color: var(--ok); border-color: transparent; }
.delta.down { background: #f9e4df; color: var(--warn); border-color: transparent; }
.seo-stand { font-size: .82rem; margin: .4rem 0 0; }
.seo-h3 { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 1.5rem 0 .6rem; font-size: 1.05rem; }
.seo-h3 .muted { font-size: .8rem; font-weight: 500; }
.seo-chart { width: 100%; height: auto; display: block; }
.seo-chart rect { fill: var(--ink); transition: fill .15s ease; }
.seo-chart rect.vorher { fill: var(--line); }
.seo-chart rect.best { fill: var(--signal); }
.seo-chart rect:hover { fill: var(--ink-80); }
.seo-chart rect.vorher:hover { fill: #c6bfb3; }
.seo-chart .achse { font-size: 11px; fill: var(--text-soft); font-family: var(--font); }
.seo-chart .grund { stroke: var(--line); stroke-width: 1; }
.seo-chart-legende { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); margin-top: .4rem; }
.seo-chart-legende .lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; background: var(--ink); }
.seo-chart-legende .lg.vorher { background: var(--line); }
.seo-chart-legende .best-tag { margin-left: auto; font-weight: 600; color: var(--text); }
.seo-highlights { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; }
.seo-highlights li { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; }
.seo-highlights .hl-icon { font-size: 1.3rem; line-height: 1.2; }
.seo-highlights b { display: block; line-height: 1.3; font-size: .95rem; overflow-wrap: anywhere; }
.seo-highlights .muted { display: block; font-size: .82rem; margin-top: .15rem; }
.pos { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.4rem; height: 3.4rem; border-radius: 6px; font-weight: 800; font-size: 1.35rem; line-height: 1; background: var(--bone); color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.pos small { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: .15rem; }
.pos.klein { min-width: 2.5rem; height: 2.5rem; font-size: 1rem; border-radius: 5px; }
.pos.klein small { font-size: .5rem; }
.pos-gold { background: var(--ink); color: var(--bone); }
.pos-gruen { background: #e4efe6; color: var(--ok); }
.pos-hell { background: #fff; color: var(--text); border: 1px solid var(--line); }
.pos-grau { background: var(--bone); color: var(--text-muted); }
.pos-x { background: var(--bone); color: var(--text-soft); }
.kw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.kw-karte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; display: flex; flex-direction: column; gap: .6rem; }
.kw-karte.podium { border-color: var(--ink); }
.kw-kopf { display: flex; gap: .75rem; align-items: center; }
.kw-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.kw-name .medal { margin-right: .3rem; }
.kw-sub { display: block; font-size: .78rem; font-weight: 500; margin-top: .1rem; }
.kw-fuss { display: flex; align-items: center; gap: .6rem; min-height: 1.6rem; }
.kw-fuss .inline-form { margin-left: auto; }
.pos-spark { width: 110px; height: 32px; margin-left: auto; }
.pos-spark polyline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pos-spark circle { fill: var(--signal); }
.kw-x { background: transparent; border: 0; color: var(--text-soft); font-size: .95rem; cursor: pointer; padding: .2rem .4rem; border-radius: 4px; font-family: var(--font); }
.kw-x:hover { background: #f9e4df; color: var(--warn); }
.seo-liste { list-style: none; margin: 0; padding: 0; counter-reset: sl; }
.seo-liste li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.seo-liste li:last-child { border-bottom: none; }
.sl-text { flex: 1; min-width: 0; }
.sl-text b { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.sl-text .muted { display: block; font-size: .8rem; }
.sl-bar { display: block; height: 5px; background: var(--line); border-radius: 999px; margin-top: .3rem; overflow: hidden; }
.sl-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.sl-zahl { white-space: nowrap; font-size: .85rem; min-width: 5.2rem; text-align: right; }
.sl-zahl b { font-size: 1rem; }
@media (max-width: 600px) { .sl-zahl.muted { display: none; } .seo-liste .btn.small { padding: .3em .7em; font-size: .78rem; } }
.seo-mehr { margin-top: 1.4rem; }
.seo-mehr summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; }
.seo-mehr summary::-webkit-details-marker { display: none; }
.seo-mehr summary::after { content: ' ▾'; color: var(--text-soft); font-weight: 400; }
.seo-mehr[open] summary::after { content: ' ▴'; }
.seo-mehr .seo-liste { margin-top: .6rem; }
.seo-prop { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .9rem; margin-bottom: .4rem; }
.seo-prop summary { cursor: pointer; color: var(--text-muted); font-size: .85rem; list-style: none; text-decoration: underline; text-decoration-color: var(--line); }
.seo-prop summary::-webkit-details-marker { display: none; }
.seo-admin-zeile { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin-top: .6rem; }
.seo-admin-zeile > div { flex: 1; min-width: 220px; }
.seo-admin-zeile label { margin-top: 0; }
.seo-admin-zeile .btn { margin-top: 0; }
.seo-dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .8rem; }
.seo-dash div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; }
.seo-dash b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.seo-dash span { display: block; font-size: .74rem; color: var(--text-muted); font-weight: 600; margin-top: .2rem; }
@media (max-width: 600px) {
  .seo-liste li { flex-wrap: wrap; row-gap: .3rem; }
  .sl-text { flex-basis: calc(100% - 3.4rem); }
  .sl-zahl { margin-left: 3.4rem; min-width: 0; text-align: left; }
  .seo-liste .inline-form, .seo-liste .chip { margin-left: auto; }
  .seo-chart-legende .best-tag { margin-left: 0; flex-basis: 100%; }
  .seo-kpi { padding: .8rem .8rem .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .kanal span, .seo-chart rect { transition: none; }
}
