/* Spalte über die ganze Fensterhöhe: der Inhalt wächst, die Fußzeile (.recht-fuss) sitzt immer am Seitenende */
body.panel { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; min-height: 100vh; min-height: 100dvh; }
body.panel[hidden] { display: none; }

/* ---- Kopf: am Handy und im Einrichtungs-Assistenten schlanke Kopfzeile (Logo, Credits, Konto), ab 821 px Seitenleiste links (siehe unten) ---- */
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; padding: 14px 40px; background: rgba(243, 243, 241, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.leiste-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; flex: none; }
.brand i { flex: none; width: 24px; height: 24px; border-radius: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='10' r='1.5' fill='%230e0e0e'/%3E%3Ccircle cx='15' cy='10' r='1.5' fill='%230e0e0e'/%3E%3Cpath d='M8.2 14.2c2 2 5.6 2 7.6 0' fill='none' stroke='%230e0e0e' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat, var(--gruen); border: 2px solid var(--text); }
.leiste-knopf, .nav-titel, .knopf-text, .konto-text, .oben-zeile { display: none; }
.nav { display: flex; }
.nav-gruppe { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 22px; white-space: nowrap; transition: color .15s, background .15s; }
.nav-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav a:hover { color: var(--text); background: var(--bg); }
/* Aktiver Punkt: dunkel wie bisher, Icon in Lime */
.nav a.active { background: var(--text); color: #fff; }
.nav a.active .nav-icon { color: var(--gruen); }
.nav a:focus-visible, .kopf-icon:focus-visible, .brand:focus-visible, .leiste-knopf:focus-visible, .konto-knopf:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.nav-count { font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--gruen); color: var(--text); display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.nav a .nav-count { margin-left: auto; }
.nav-count[hidden] { display: none; }
.nav-schloss { display: inline-flex; margin-left: 4px; vertical-align: -2px; }
.nav-schloss svg { width: 14px; height: 14px; }
.soon { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--bg); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
/* Werkzeuge und Extension: in der Seitenleiste Zeilen mit Icon und Text */
.werkzeuge { position: relative; flex: none; }
.kopf-icon { all: unset; box-sizing: border-box; cursor: pointer; position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--schatten); color: var(--muted); transition: color .15s, background .15s; }
.kopf-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.kopf-icon:hover, .werkzeuge-knopf[aria-expanded="true"] { color: var(--text); }
.werkzeuge-knopf.active { background: var(--text); color: #fff; }
.werkzeuge-knopf.active svg { stroke: var(--gruen); }
/* Tooltips der schmalen Seitenleiste (panel.html legt .leiste-tipp an) */
.leiste-tipp { position: fixed; z-index: 60; padding: 6px 10px; border-radius: 8px; background: var(--text); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; pointer-events: none; }
.leiste-tipp[hidden] { display: none; }
.werkzeuge-knopf:focus-visible, .wz-kachel:focus-visible, .wz-punkt:focus-visible, .krumen-wz:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
/* Menü immer mittig unter der Kopfleiste: .top hat backdrop-filter und ist damit Bezugsrahmen für position: fixed */
/* Werkzeuge: Unterpunkte klappen inline auf (Seitenleiste und „Mehr“-Blatt am Handy). Höhe über grid-template-rows animiert,
   keine Opacity-Animation (siehe Kopfleiste: unter backdrop-filter bleiben sonst Reste blass) */
.wz-pfeil { flex: none; width: 16px !important; height: 16px !important; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
[aria-expanded="true"] > .wz-pfeil { transform: rotate(180deg); }
.wz-unter { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1); }
.offen > .wz-unter { grid-template-rows: 1fr; }
.wz-unterliste { min-height: 0; overflow: hidden; list-style: none; margin: 0 0 0 19px; padding: 0 0 0 6px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.wz-unterliste li { transform: translateY(-8px); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.wz-unterliste li:first-child { margin-top: 2px; }
.wz-unterliste li:last-child { margin-bottom: 2px; }
.offen .wz-unterliste li { transform: none; }
.wz-punkt { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 9px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 22px; white-space: nowrap; transition: background .15s, color .15s; }
.wz-punkt-icon { flex: none; display: inline-flex; }
.wz-punkt-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wz-punkt:hover { color: var(--text); background: var(--bg); }
.wz-punkt.active { background: var(--text); color: #fff; }
.wz-punkt.active .wz-punkt-icon { color: var(--gruen); }
.wz-punkt .nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wz-punkt .wz-ok { margin-left: auto; font-size: 13px; }
.wz-punkt.active .wz-ok { color: var(--gruen); }
.werkzeuge-knopf.hat-aktiv:not(.active) { color: var(--text); }
/* Konto (Panel, #konto): klappt wie die Werkzeuge auf, aber nach oben (Liste über dem Knopf) und auf dezent hellgrünem Grund */
#konto { display: flex; flex-direction: column; border-radius: 16px; transition: background .25s; }
#konto.offen { background: #f1f7e9; }
.konto-innen { min-height: 0; overflow: hidden; }
.konto-info { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 6px; transform: translateY(8px); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.konto-info .account-name { font-size: 14px; }
.konto-info .account-email { font-size: 12.5px; }
.konto-info .account-plan { margin: 5px 0 0; font-size: 11px; padding: 1px 8px; }
.konto-liste { margin: 0 0 0 8px; padding: 0 4px 4px 6px; border-left: 0; }
.konto-liste li, .konto-unter .konto-info { transform: translateY(8px); }
#konto.offen .konto-liste li, #konto.offen .konto-info { transform: none; }
.konto-liste .wz-punkt, .unten-konto .wz-punkt { appearance: none; width: 100%; min-height: 0; height: auto; margin: 0; box-sizing: border-box; border: 0; box-shadow: none; background: none; font: inherit; font-weight: 600; font-size: 14px; line-height: 22px; letter-spacing: inherit; color: var(--muted); text-align: left; cursor: pointer; }
.konto-liste .wz-punkt:hover { color: var(--text); }
.konto-liste .wz-punkt:hover { background: rgba(255, 255, 255, .8); }
#konto.offen .konto-knopf, #konto.offen .konto-knopf:hover { background: none; }
.konto-pfeil { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wz-unter, .wz-unterliste li, .wz-pfeil, .konto-info, #konto { transition: none; } }
.wz-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wz-kachel { display: flex; align-items: flex-start; gap: 14px; height: 100%; box-sizing: border-box; padding: 16px; border-radius: 18px; background: var(--bg); color: var(--text); text-decoration: none; transition: background .15s, transform .15s; }
.wz-kachel:hover { background: var(--grau); }
.wz-kachel[aria-current="page"] { background: var(--gruen-soft); }
.wz-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--text); color: var(--gruen); display: inline-flex; align-items: center; justify-content: center; }
.wz-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wz-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wz-text b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.wz-text > span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pro-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--text); color: var(--gruen); border-radius: 999px; padding: 2px 8px 2px 6px; }
.pro-badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Brotkrumen auf Werkzeug-Seiten */
.krumen { width: 100%; max-width: 1140px; margin: 0 auto; padding: 26px 40px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.krumen[hidden] { display: none; }
.krumen + .content { padding-top: 22px; }
.krumen-zurueck { color: var(--text); text-decoration: none; }
.krumen-zurueck:hover { text-decoration: underline; }
.krumen ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.krumen li + li::before { content: "›"; margin-right: 8px; }
.krumen li[aria-current] { color: var(--text); }
.krumen-wz { all: unset; cursor: pointer; border-radius: 6px; }
.krumen-wz:hover { color: var(--text); text-decoration: underline; }

.top-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
/* Chrome-Extension: nicht verbunden dezent in Lime, verbunden neutral mit Häkchen am Icon */
.ext-knopf { background: var(--gruen-soft); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--gruen); text-decoration: none; }
.ext-knopf:hover { background: var(--gruen); }
.ext-knopf.verbunden { background: var(--surface); color: var(--muted); box-shadow: var(--schatten); }
.ext-icon { position: relative; display: inline-flex; flex: none; }
.ext-haken { display: none; position: absolute; right: -6px; bottom: -6px; width: 15px; height: 15px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 2px var(--surface); align-items: center; justify-content: center; }
.ext-haken svg { width: 10px; height: 10px; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.ext-knopf.verbunden .ext-haken { display: inline-flex; }
.konto { position: relative; }
.konto-knopf { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; border-radius: 50%; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--gruen); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; overflow: hidden; }
.konto-menue { position: absolute; right: 0; top: calc(100% + 10px); width: 280px; background: var(--surface); border-radius: 20px; padding: 18px; box-shadow: var(--schatten-hoch); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.konto-menue[hidden] { display: none; }
.account-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-email { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-plan { width: fit-content; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--gruen-soft); color: var(--gruen-dunkel); border-radius: 999px; padding: 2px 10px; margin: 6px 0 8px; }
.account-plan:empty { display: none; }
.konto-menue a, .account-logout { all: unset; cursor: pointer; padding: 10px 12px; margin: 0 -6px; border-radius: 12px; font-weight: 600; }
.konto-menue a:hover, .account-logout:hover { background: var(--bg); }
.konto-menue hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---- Inhalt ---- */
.content { max-width: 1140px; margin: 0 auto; padding: 40px 40px 48px; width: 100%; flex: 1 0 auto; }
.content.breit { max-width: none; }
.recht-fuss { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 40px 32px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.recht-fuss a { color: var(--muted); text-decoration: none; }
.recht-fuss a:hover { color: var(--text); }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.055em; line-height: 1; }
.page-head .sub { max-width: 620px; font-size: 18px; margin-top: 12px; }
.page-head.with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sub.small { font-size: 13px; margin-top: 14px; }
.loading { margin-top: 32px; color: var(--muted); }
.rein { opacity: 0; transform: translateY(12px); animation: rein .5s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes rein { to { opacity: 1; transform: none; } }
@keyframes puls { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rein { animation: none; opacity: 1; transform: none; } }

.empty { margin-top: 28px; background: var(--surface); border-radius: 24px; padding: 56px 24px; text-align: center; color: var(--muted); box-shadow: var(--schatten); }
.empty .btn-small, .empty .btn-link { margin-top: 18px; }
/* Maskottchen in leeren Zuständen und Erfolgsmeldungen: klein, feste Größe (Bilder: dev/maskottchen/bauen.mjs, Übersicht docs/maskottchen.md) */
.figur { display: block; width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(42,50,29,.14)); }
.empty .figur { margin: -20px auto 14px; }
/* Während die KI arbeitet: Maskottchen wippt leicht (nur transform) */
.figur-arbeitet { animation: figur-wippen 1.6s ease-in-out infinite; }
@keyframes figur-wippen { 50% { transform: translateY(-5px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .figur-arbeitet { animation: none; } }

.btn-small { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; margin: 0; border-radius: 14px; font-size: 15px; white-space: nowrap; flex: none; text-decoration: none; }
a.btn-small { background: var(--text); color: #fff; font-weight: 700; }
a.btn-small.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-gross { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--text); color: #fff; font-weight: 700; font-size: 17px; padding: 0 28px; height: 60px; border-radius: 18px; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.btn-gross:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.btn-gross .pfeil { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--gruen); color: var(--text); align-items: center; justify-content: center; transition: transform .25s; }
.btn-gross:hover .pfeil { transform: translateX(4px); }
.btn-gross.gruen { background: var(--gruen); color: var(--text); }
.btn-gross.gruen:hover { box-shadow: 0 12px 30px rgba(140, 200, 80, .35); }
.btn-gross.hell { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-gross:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn-link { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; margin-top: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 15px; }
.btn-link:hover { border-color: var(--text); }
.btn-link.inline { margin-top: 0; }
.text-btn { all: unset; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.text-btn:hover { color: var(--text); }
.text-btn.danger:hover { color: var(--error); }
.text-btn:disabled { opacity: .5; cursor: default; }
.danger-btn:hover { border-color: var(--error) !important; color: var(--error); }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--text); }

/* ---- Detailseiten: Zurück-Link links, „…“-Menü rechts (Löschen) ---- */
.kopf-leiste { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.kopf-leiste .back { margin-bottom: 0; }
.kopf-rechts { display: flex; align-items: center; gap: 8px; }
.schalten-knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schalten-knopf .pro-badge { margin-left: 2px; }
/* „+ Neue Kampagne“: Wahl zwischen Template und Funnel-Umzug */
.neu-wahl { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.neu-wahl .btn-small { margin-top: 0; }
.neu-wahl .mehr-menue { width: 320px; padding: 8px; }
.neu-wahl .mehr-eintrag { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.neu-wahl .mehr-eintrag b { font-size: 15px; }
.neu-wahl .mehr-eintrag span { font-weight: 500; font-size: 13px; color: var(--muted); white-space: normal; }
.empty .neu-wahl { display: inline-flex; margin-top: 18px; justify-content: center; }
.empty .neu-wahl .btn-small { margin-top: 0; }
.empty .neu-wahl .mehr-menue { left: 50%; right: auto; transform: translateX(-50%); text-align: left; }
.bw-reiter { margin: 22px 0 18px; }
a.tab { text-decoration: none; }
.mehr { position: relative; }
.mehr-knopf { all: unset; box-sizing: border-box; cursor: pointer; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.mehr-knopf svg { width: 20px; height: 20px; fill: currentColor; }
.mehr-knopf:hover, .mehr-knopf[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.mehr-knopf:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mehr-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; background: var(--surface); border-radius: 16px; padding: 8px; box-shadow: var(--schatten-hoch); }
.mehr-menue[hidden] { display: none; }
.mehr-eintrag { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.mehr-eintrag:hover, .mehr-eintrag:focus-visible { background: var(--bg); }
.mehr-eintrag.danger { color: var(--error); }
.loesch-liste { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.hinweis.warnung { background: #fdecea; color: #8c2219; margin-top: 16px; }
#loeschen-form label { margin-top: 16px; }
.btn-loeschen { background: var(--error); }

/* ---- Startseite ---- */
.hallo { font-weight: 800; font-size: clamp(42px, 6.4vw, 84px); line-height: .98; letter-spacing: -0.055em; }
.hallo em { font-style: normal; background: linear-gradient(transparent 58%, var(--gruen) 58%, var(--gruen) 92%, transparent 92%); padding: 0 4px; }
.hallo-unter { color: var(--muted); font-size: 20px; margin-top: 18px; max-width: 580px; }
.next { margin-top: 44px; border-radius: 32px; overflow: hidden; background: var(--surface); display: grid; grid-template-columns: 1.15fr 1fr; min-height: 320px; box-shadow: var(--schatten); text-decoration: none; }
.next-text { padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--gruen-soft); color: var(--gruen-dunkel); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5cc21c; animation: puls 1.4s infinite; }
.next h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.045em; }
.next p { font-size: 18px; color: var(--muted); margin-top: 12px; max-width: 440px; }
.next-bild { position: relative; background: var(--gruen); min-height: 240px; overflow: hidden; }
.next-bild img { position: absolute; width: 210px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.18); border: 5px solid #fff; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.next-bild img:nth-child(1) { top: 34px; left: 30px; transform: rotate(-8deg); }
.next-bild img:nth-child(2) { top: 50px; right: 30px; transform: rotate(6deg); z-index: 2; }
.next-bild img:nth-child(3) { bottom: -30px; left: 50%; margin-left: -85px; width: 170px; transform: rotate(-2deg); z-index: 3; }
.next:hover .next-bild img:nth-child(1) { transform: rotate(-12deg) translate(-8px, -6px); }
.next:hover .next-bild img:nth-child(2) { transform: rotate(10deg) translate(8px, -8px); }
.next-bild .gross-zahl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 120px; letter-spacing: -0.07em; line-height: 1; }
.next-bild .gross-zahl span { font-size: 18px; letter-spacing: 0; font-weight: 700; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat { display: block; background: var(--surface); border-radius: 28px; padding: 30px; position: relative; text-decoration: none; transition: transform .25s, box-shadow .25s; box-shadow: var(--schatten); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--schatten-hoch); }
.stat .zahl { color: var(--text); display: block; font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -0.06em; }
/* Große Zahlen (Credits) passen sich der Kachelbreite an, damit sie nicht unter den Pfeil laufen */
.stat { container-type: inline-size; }
@supports (font-size: 1cqi) { .stat .zahl { font-size: clamp(34px, calc((100cqi - 120px) / 3.2), 72px); } }
.stat b { display: block; font-size: 19px; margin-top: 14px; }
.stat span { color: var(--muted); font-size: 15px; }
.stat .pfeil { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--text); transition: background .25s, transform .25s; }
.stat:hover .pfeil { background: var(--gruen); transform: rotate(-45deg); }
.stat.dunkel { background: var(--text); color: #fff; }
.stat.dunkel .zahl { color: var(--gruen); }
.stat.dunkel span { color: #a6a69f; }
.stat.dunkel .pfeil { background: rgba(255,255,255,.1); color: #fff; }
.stat.dunkel:hover .pfeil { background: var(--gruen); color: var(--text); }
.band { margin-top: 56px; }
.band-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 4px 16px; }
.band-kopf h2, .band-kopf h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.band-kopf a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.laufband { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.laufband-innen { display: flex; gap: 14px; width: max-content; }
.laufband.laeuft .laufband-innen { animation: lauf 45s linear infinite; }
.laufband:hover .laufband-innen { animation-play-state: paused; }
.laufband img { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; display: block; transition: transform .3s; }
.laufband a:hover img { transform: scale(1.04); }
@keyframes lauf { to { transform: translateX(-50%); } }

/* ---- Karten-Listen (Kunden, Kampagnen) ---- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 32px; }
.kachel { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 24px; padding: 24px; text-decoration: none; box-shadow: var(--schatten); transition: transform .25s, box-shadow .25s; min-width: 0; }
.kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
.kachel-kopf { display: flex; align-items: center; gap: 14px; }
.initial { width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--gruen); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.kachel b { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.kachel .muted { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kachel-fuss { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.kachel-fuss > span:first-child { min-width: 0; }
.kachel-fuss > span:last-child:not(:first-child) { flex: none; white-space: nowrap; }
.balken { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 14px; }
.balken i { height: 8px; border-radius: 4px; background: var(--grau); }
.balken i.ok { background: var(--gruen); }
.balken i.jetzt { background: var(--text); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--gruen); color: var(--text); white-space: nowrap; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text); animation: puls 1.4s infinite; }

.section { margin-top: 44px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.section .empty, .section .list, .section .karten { margin-top: 18px; }
.list { list-style: none; background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--schatten); }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li:last-child { border-bottom: 0; }
.list li a[data-link] { text-decoration: none; font-weight: 700; }
.list li a[data-link]:hover { text-decoration: underline; }
.list li .muted { flex: none; }

/* ---- Tabellen ---- */
.table-wrap { margin-top: 28px; background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--schatten); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 16px 22px; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafaf8; }
.table tr.clickable { cursor: pointer; }
.table td a[data-link] { text-decoration: none; font-weight: 700; }

/* ---- Dialoge ---- */
.modal { margin: auto; width: calc(100% - 32px); max-width: 480px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--text); border: 0; border-radius: 28px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.modal::backdrop { background: rgba(14, 14, 14, .35); backdrop-filter: blur(6px); }
.modal form { margin-top: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.modal-close { all: unset; cursor: pointer; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--text); }
.modal-close:hover { background: var(--grau); }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal .sub { margin-top: -2px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field-row input, .field-row select { min-width: 0; max-width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.modal-actions button { margin: 0; padding: 0 22px; }
.modal-actions .danger-btn { margin-right: auto; }
input.invalid { border-color: var(--error); }
.wide-modal { max-width: 640px; }
.wide-modal h3 { font-size: 17px; font-weight: 700; margin-top: 22px; }
.wide-modal .kv { margin-top: 10px; grid-template-columns: 1fr 1fr; }

/* ---- Einstellungen ---- */
.panel-card { margin-top: 28px; background: var(--surface); border-radius: 28px; padding: 30px; max-width: 680px; box-shadow: var(--schatten); }
.panel-card + .panel-card { margin-top: 14px; }
.panel-card.wide { max-width: none; }
.panel-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.035em; }
.kv { margin-top: 18px; display: grid; grid-template-columns: 170px 1fr; gap: 12px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { overflow-wrap: anywhere; }
.bw-fragen { margin-top: 12px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; font-size: 14px; }
.bw-fragen strong { font-size: 15px; }
.bw-fragen.done { background: var(--gruen-soft); color: var(--gruen-dunkel); }
.bw-fragen.ko { background: #fde8e6; color: #8c2219; }
.bw-fragen.warn { background: #fff4d6; color: #8a5a00; }
.kv dd .pill { margin-left: 6px; vertical-align: 1px; }
.profile { display: flex; gap: 20px; align-items: flex-start; }
.profile .kv { margin-top: 18px; flex: 1; }
.profile-logo { width: 80px; height: 80px; flex: none; margin-top: 18px; background: var(--bg); border-radius: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px; }
.profile-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
button.btn-link { color: var(--text); cursor: pointer; }
button.btn-link:hover { transform: none; box-shadow: none; border-color: var(--text); }
.logo-wahl { display: flex; gap: 16px; align-items: flex-start; }
.logo-wahl .profile-logo { margin-top: 0; width: 64px; height: 64px; border-radius: 16px; }
.logo-wahl .btn-link { display: inline-flex; flex-direction: row; margin-top: 0; cursor: pointer; }
.logo-wahl .sub.small { margin-top: 8px; }
label .optional { font-weight: 400; color: var(--muted); }
/* Beschriftung ohne eigenes Feld (label for=…): Zusätze wie „(empfohlen)“ oder ein Etikett stehen in derselben Zeile */
label[for]:not(:has(input, select, textarea)) { display: block !important; }
label[for]:not(:has(input, select, textarea)) .pill { vertical-align: 1px; margin-left: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.usage { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
.usage td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.usage td:last-child { text-align: right; font-weight: 700; }
.usage tr:last-child td { border-bottom: 0; }
.plans { margin-top: 44px; max-width: 980px; }
.plans h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.plan-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { border-radius: 28px; padding: 28px; background: var(--surface); box-shadow: var(--schatten); }
.plan h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.045em; }
.plan-limits { list-style: none; margin-top: 14px; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.plan-note { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-note:empty { display: none; }
.plan.current { background: var(--text); color: #fff; }
.plan.current .plan-limits { color: #bdbdb6; }
.plan.current .plan-note { color: var(--gruen); }
.plan-preis { margin-top: 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.plan-preis span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan.current .plan-preis span { color: #bdbdb6; }
.plan-knopf { margin-top: 18px; width: 100%; }
.plan-preis small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan.current .plan-preis small { color: #bdbdb6; }
.plans-kopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.intervall-wahl { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--schatten); }
.intervall-wahl button { all: unset; cursor: pointer; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.intervall-wahl button.aktiv { background: var(--text); color: #fff; }
.intervall-wahl button:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.abo-knoepfe { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.credit-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.credit-paket { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--bg); }
.credit-paket b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.credit-paket .btn-small { margin-top: 10px; }
.rechnungen td { padding-right: 12px; }
.rechnungen td:last-child { font-weight: 600; white-space: nowrap; padding-right: 0; }

/* ---- Kundenportal ---- */
.portal-form { margin-top: 18px; }
.portal-ok { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 17px; font-weight: 700; flex-wrap: wrap; }
.portal-ok a { text-decoration: none; }
.portal-schritte { margin-top: 18px; display: grid; gap: 10px; font-size: 15px; }
.dns-tabelle { border-collapse: collapse; width: 100%; background: var(--bg); border-radius: 14px; overflow: hidden; font-size: 14px; }
.dns-tabelle th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 14px; font-size: 12px; }
.dns-tabelle td { padding: 10px 14px; border-top: 1px solid var(--line); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--grau); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.zugaenge { margin-top: 14px; }
.zugaenge > .sub:first-child { margin-top: 0; }
.zugang-liste { margin-top: 14px; }
.zugang-liste li { align-items: center; flex-wrap: wrap; }
.zugang-liste li > div { display: flex; flex-direction: column; min-width: 0; }
#zugang-liste-msg { margin: 8px 0 14px; }
.funnel-liste { margin-top: 18px; background: var(--bg); box-shadow: none; border-radius: 16px; }
.funnel-liste li { align-items: center; padding: 14px 18px; }
.funnel-liste li > div { display: flex; flex-direction: column; min-width: 0; }
.funnel-liste li .muted { flex: initial; overflow-wrap: anywhere; }
.funnel-liste a { text-decoration: none; }
.sub-eingabe { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.sub-eingabe input { flex: 1; min-width: 0; }
.sub-eingabe .muted { flex: none; font-size: 15px; }
.zugang-aktionen { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.zugang-rechte { margin: 18px 0 0; border: 0; padding: 22px 24px; background: var(--surface); border-radius: 24px; box-shadow: var(--schatten); display: grid; gap: 14px; min-width: 0; }
.zugang-rechte legend { float: left; width: 100%; padding: 0; font-weight: 800; font-size: 16px; }
.zugang-rechte legend + .sub { margin: -6px 0 0; }
.zugang-rechte .kk-schalter:has(input:disabled) { opacity: .5; cursor: default; }
.zugang-form { margin-top: 18px; background: var(--surface); border-radius: 24px; padding: 22px 24px; box-shadow: var(--schatten); }

/* ---- Kampagne: Kopf + Fortschrittsring ---- */
.kamp-kopf { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.kamp-titel { font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -0.06em; overflow-wrap: anywhere; }
.kamp-unter { color: var(--muted); font-size: 19px; margin-top: 14px; }
.kamp-unter a { color: var(--text); font-weight: 700; text-decoration: none; }
.ring { position: relative; width: 168px; height: 168px; background: var(--surface); border-radius: 50%; box-shadow: var(--schatten); flex: none; }
.ring svg { transform: rotate(-90deg); width: 168px; height: 168px; display: block; }
.ring circle { fill: none; stroke-width: 13; }
.ring .hinten { stroke: var(--grau); }
.ring .vorne { stroke: var(--gruen); stroke-linecap: round; stroke-dasharray: 440; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-text b { font-size: 42px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.ring-text span { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 5px; max-width: 92px; text-align: center; line-height: 1.2; }

/* ---- Kampagne: die 7 Schritte ---- */
.weg { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.stufe { background: var(--surface); border-radius: 26px; box-shadow: var(--schatten); transition: box-shadow .25s; }
.stufe:hover { box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.stufe-kopf { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 72px 1fr auto 24px; align-items: center; gap: 20px; padding: 16px 22px 16px 16px; border-radius: 26px; }
.stufe-kopf:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.stufe .num { font-weight: 800; font-size: 30px; letter-spacing: -0.05em; height: 72px; border-radius: 20px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.stufe .num svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stufe.ok .num { background: var(--gruen); color: var(--text); }
.stufe .t { min-width: 0; }
.stufe .t b { font-weight: 700; font-size: 21px; letter-spacing: -0.03em; display: block; }
.stufe .t > span { color: var(--muted); font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stufe .tag { font-weight: 700; font-size: 14px; padding: 8px 15px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.stufe.ok .tag { background: var(--gruen-soft); color: var(--gruen-dunkel); }
.stufe .chev { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.stufe.offen .chev { transform: rotate(180deg); }
.stufe.laeuft-ki .tag { background: var(--gruen-soft); color: var(--gruen-dunkel); }
.stufe-inhalt { display: none; padding: 4px 28px 30px 108px; }
.stufe.offen .stufe-inhalt { display: block; animation: rein .35s cubic-bezier(.2, .8, .2, 1); }
.stufe.offen .stufe-inhalt { opacity: 1; transform: none; }

/* Der aktuelle Schritt: schwarz */
.stufe.jetzt { box-shadow: 0 24px 60px rgba(0,0,0,.12); }
.stufe.jetzt .stufe-kopf { background: var(--text); color: #fff; }
.stufe.jetzt.offen .stufe-kopf { border-radius: 26px 26px 0 0; }
.stufe.jetzt .num { background: var(--gruen); color: var(--text); }
.stufe.jetzt .t > span { color: #a6a69f; }
.stufe.jetzt .tag { background: var(--gruen); color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.stufe.jetzt .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text); animation: puls 1.4s infinite; }
.stufe.jetzt .chev { stroke: #a6a69f; }
.stufe.jetzt.offen .stufe-inhalt { padding-top: 28px; }

/* Inhalte in den Schritten */
.stufe-inhalt > .sub:first-child, .tab-body > .sub:first-child { margin-top: 0; }
.stufe-inhalt .sub { max-width: 720px; }
.gross-text { font-size: 18px; color: var(--muted); max-width: 640px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.hinweis { margin-top: 18px; background: var(--gruen-soft); color: var(--gruen-dunkel); border-radius: 16px; padding: 14px 18px; font-size: 15px; font-weight: 500; max-width: 720px; }
.tabs { display: inline-flex; gap: 2px; background: var(--bg); border-radius: 999px; padding: 4px; overflow-x: auto; max-width: 100%; }
.tab { all: unset; cursor: pointer; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--schatten); }
.tab:disabled { cursor: default; opacity: .5; }
.tab-body { padding-top: 22px; }
.tab-body h3, .stufe-inhalt h3 { font-size: 17px; font-weight: 700; margin-top: 24px; }
.tab-body h3:first-child { margin-top: 0; }
.tab-body .kv { margin-top: 10px; }
.tab-body > .sub + .btn-small { margin-top: 14px; }
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.copy-row input { flex: 1; min-width: 0; height: 44px; font-size: 14px; color: var(--muted); background: var(--bg); }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.row-end .msg, .row-end .sub { margin-right: auto; margin-top: 0; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; border: 1px solid var(--line-strong); }
.pre { white-space: pre-wrap; margin-top: 10px; font-size: 15px; color: var(--muted); }
.pill { flex: none; font-size: 12px; font-weight: 700; background: var(--bg); border-radius: 999px; padding: 3px 10px; color: var(--muted); white-space: nowrap; display: inline-block; }
.pill.done { background: var(--gruen); color: var(--text); }
.pill.ko { background: #fde8e6; color: #b42318; }
.pill.warn { background: #fff4d6; color: #8a5a00; }

/* Material */
.mat-kat { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.mat-head h3 { font-size: 17px; font-weight: 700; margin-top: 0; }
.mat-head .sub { margin-top: 2px; font-size: 14px; }
.mat-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mat-item { position: relative; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; transition: opacity .15s, box-shadow .15s; }
.mat-item img, .mat-item video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--grau); border-radius: 16px 16px 0 0; }
.mat-item[draggable="true"] { cursor: grab; }
.mat-item.gewaehlt { box-shadow: 0 0 0 3px var(--gruen-dunkel); }
.mat-item.gezogen, .mat-item.verschiebt { opacity: .45; }
.mat-wahl { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--schatten); cursor: pointer; opacity: 0; transition: opacity .15s; }
.mat-wahl input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--gruen-dunkel); }
.mat-item:hover .mat-wahl, .mat-wahl:focus-within, .mat-item.gewaehlt .mat-wahl, .mat-auswahl-an .mat-wahl { opacity: 1; }
.mat-mehr { position: relative; margin: 0 10px 10px; }
.mat-verschieben { all: unset; box-sizing: border-box; width: 100%; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.mat-verschieben:hover, .mat-verschieben[aria-expanded="true"] { border-color: var(--text); }
.mat-verschieben:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mat-verschieben svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mat-mehr .mehr-menue { left: 0; right: 0; min-width: 0; padding: 6px; }
.mat-mehr .mehr-eintrag { font-size: 13px; padding: 9px 10px; white-space: normal; }
.mat-auswahl { position: sticky; bottom: 16px; z-index: 15; margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--schatten-hoch), 0 0 0 2px var(--gruen-dunkel); font-size: 14px; }
.mat-auswahl-kopf, .mat-auswahl-ziele { display: flex; align-items: center; gap: 8px 10px; }
.mat-auswahl-ziele { flex-wrap: wrap; }
.mat-auswahl-kopf b { white-space: nowrap; }
.mat-aufheben { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.mat-aufheben:hover { color: var(--text); }
.mat-aufheben:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.mat-auswahl .btn-small { height: 34px; padding: 0 14px; font-size: 13px; white-space: nowrap; flex: none; }
#schritt-material.zieht .mat-kat { opacity: .5; transition: opacity .15s; }
#schritt-material.zieht .mat-kat.ablage { opacity: 1; outline: 2px dashed var(--gruen-dunkel); outline-offset: 8px; border-radius: 10px; background: var(--gruen-soft); }
#schritt-material.zieht .mat-kat.ablage.drop { outline-style: solid; outline-width: 3px; }
.mat-zieh-marke { position: fixed; top: -100px; left: 0; padding: 8px 14px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 700; }
.mat-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--schatten-hoch); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.mat-toast.zeigen { opacity: 1; transform: translate(-50%, 0); }
.mat-kat[data-kat="logo"] .mat-item img { object-fit: contain; background: #fff; padding: 12px; }
.mat-item figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 12px; }
.mat-item figcaption span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-item figcaption .muted { flex: none; }
.mat-del { all: unset; cursor: pointer; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: inline-flex; align-items: center; justify-content: center; color: var(--text); opacity: 0; transition: opacity .15s; box-shadow: var(--schatten); }
.mat-item:hover .mat-del, .mat-del:focus-visible { opacity: 1; }
.mat-del svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mat-pending { min-height: 140px; justify-content: center; gap: 10px; padding: 14px; }
.mat-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--grau); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gruen); transition: width .2s; }
.mat-pct { font-size: 12px; }
.mat-pending .msg { margin: 0; font-size: 13px; }
.mat-add { min-height: 140px; border: 2px dashed var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s; }
.mat-add:hover { border-color: var(--text); color: var(--text); }
.mat-add svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mat-add.small { min-height: 0; height: 44px; align-self: end; }
.mat-sammel { margin-top: 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 36px 20px; border: 2px dashed var(--line-strong); border-radius: 22px; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; }
.mat-sammel:hover, .mat-sammel.drop { border-color: var(--text); background: var(--gruen-soft); }
.mat-sammel .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--gruen); display: inline-flex; align-items: center; justify-content: center; }
.mat-sammel svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mat-sammel strong { font-size: 18px; }
.mat-sammel .sub.small { margin-top: 0; max-width: 520px; }
.mat-sammel + .mat-grid { margin-top: 12px; }
.mat-kat.drop { outline: 2px dashed var(--text); outline-offset: 8px; border-radius: 10px; }
.mat-sort { display: flex; align-items: center; gap: 8px; padding: 0 10px 10px; font-size: 12px; color: var(--muted); }
.mat-sort .spinner { width: 12px; height: 12px; border-width: 1.5px; }
.mat-fertig { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (hover: none) { .mat-del, .mat-wahl { opacity: 1; } }

/* Werbetexte, Landingpage, Creatives */
.wt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.wt-count { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; }
.wt-count select { height: 44px; padding: 0 12px; }
.wt-bar .sub.small { margin-top: 0; }
.wt-running { display: flex; align-items: center; gap: 14px; color: var(--gruen-dunkel); background: var(--gruen-soft); border-radius: 16px; padding: 16px 18px; font-weight: 500; }
.spinner { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2.5px solid rgba(61, 122, 18, .25); border-top-color: var(--gruen-dunkel); animation: drehen 0.9s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.wt-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.wt { border-radius: 18px; background: var(--bg); }
.wt.offen { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
/* Zugeklappte Zeile: Nummer, Blickwinkel, Überschrift und erste Zeile (Akkordeon in Schritt 4) */
.wt-kopf { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; }
.wt-kopf:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.wt-kopf .wt-nr { flex: none; width: 76px; }
.wt-kopf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wt-kopf-text b { font-size: 15px; font-weight: 700; }
.wt-kopf-text > span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stufe .wt-kopf .chev { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; transform: none; transition: transform .15s; }
.stufe .wt.offen .wt-kopf .chev { transform: rotate(180deg); }
.wt-inhalt { padding: 0 20px 18px; }
.wt-inhalt > .wt-feld:first-child { margin-top: 4px; }
@media (max-width: 600px) {
  .wt-kopf { gap: 10px; padding: 12px; }
  .wt-kopf .wt-nr { width: 26px; height: 26px; border-radius: 8px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
  .wt.offen .wt-kopf .wt-nr { background: var(--bg); }
  .wt-nr-wort { display: none; }
  .wt-inhalt { padding: 0 14px 14px; }
  .wt-zeile { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.wt-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wt-nr { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wt-winkel { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.wt-feld { margin-top: 14px; }
.wt-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.wt-primaer { white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.link-ph { display: inline-block; font-size: 13px; font-weight: 600; padding: 0 8px; border-radius: 999px; background: var(--gruen-soft); color: var(--gruen-dunkel); }
a.link-ph { text-decoration: none; word-break: break-all; }
a.link-ph:hover { text-decoration: underline; }
.wt-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wt-wunsch { margin-top: 16px; }
.wt-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lp-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lp-url { font-size: 17px; font-weight: 700; text-decoration: none; }
.lp-url:hover { text-decoration: underline; }
.lp-kopf .sub.small { margin-top: 4px; }
.lp-open { margin: 0; }
.lp-kopf .text-btn { font-size: inherit; text-decoration: underline; }
.lp-adresse { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.lp-adresse label { display: block; font-weight: 600; margin-bottom: 6px; }
.lp-adresse-reihe { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lp-adresse-reihe input { flex: 1 1 180px; min-width: 0; }
.lp-adresse-reihe .muted { overflow-wrap: anywhere; }
.lp-fragen { margin-top: 24px; }
.lp-fragen h3 { font-size: 17px; font-weight: 700; margin-top: 0; }
.lp-fragen ol { margin: 12px 0 0 20px; display: grid; gap: 14px; }
.lp-fragen li span:first-child { display: block; }
.lp-antw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* Lange Antworten umbrechen statt die Seite am Handy zu verbreitern */
.lp-antw .pill { white-space: normal; flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; }
/* Fragen & Auswahl (Editor bei der Bewerbungsseite) */
.fe { margin-top: 28px; }
.fe h3 { font-size: 17px; font-weight: 700; margin: 0; }
.fe > .sub.small { margin-top: 6px; max-width: 760px; }
.fe-mini { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 8px; }
.fe-mini.passt, .fe-passt[aria-checked="true"] { background: var(--gruen-soft); color: var(--gruen-dunkel); }
.fe-mini.absage, .fe-absage[aria-checked="true"] { background: #fde8e6; color: var(--error); }
.fe-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--bg); font-size: 14px; }
.fe-hinweis.warnung { background: #fdecea; color: #8c2219; }
.fe-hinweis .text-btn { color: inherit; text-decoration: underline; }
.fe-liste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.fe-frage { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px; position: relative; transition: box-shadow .15s, border-color .15s; }
.fe-frage:focus-within { border-color: var(--line-strong); box-shadow: var(--schatten-hoch); }
.fe-frage.fe-fehler { border-color: #f1b4ae; }
.fe-frage.fe-zieht { opacity: .45; }
.fe-frage.fe-ziel-oben::before, .fe-frage.fe-ziel-unten::after { content: ""; position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: var(--text); }
.fe-frage.fe-ziel-oben::before { top: -8px; }
.fe-frage.fe-ziel-unten::after { bottom: -8px; }
.fe-frage-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fe-griff { width: 28px; height: 32px; display: inline-flex; align-items: center; justify-content: center; cursor: grab; color: var(--muted); border-radius: 8px; flex: none; touch-action: none; }
.fe-griff:hover { background: var(--bg); color: var(--text); }
.fe-griff svg { width: 18px; height: 18px; fill: currentColor; }
.fe-nr { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fe-knoepfe { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.fe-knoepfe .text-btn { margin-left: 8px; }
.fe-icon { all: unset; box-sizing: border-box; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); cursor: pointer; flex: none; }
.fe-icon:hover { background: var(--bg); color: var(--text); }
.fe-icon:focus-visible, .fe-wirkung button:focus-visible, .fe-griff:focus-visible { outline: 3px solid var(--gruen); outline-offset: 1px; }
.fe-icon:disabled { opacity: .3; cursor: default; background: none; }
.fe-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fe input { width: 100%; box-sizing: border-box; }
.fe-frage-text { font-weight: 700; height: 46px; }
.fe-antworten { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.fe-antwort { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 4px solid var(--gruen); }
.fe-antwort.ist-absage { border-left-color: var(--error); }
.fe-antwort input { height: 42px; font-size: 15px; flex: 1 1 auto; min-width: 0; }
.fe-wirkung { display: inline-flex; flex: none; padding: 3px; border-radius: 12px; background: var(--bg); gap: 2px; }
.fe-wirkung button { all: unset; box-sizing: border-box; cursor: pointer; height: 36px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.fe-wirkung button:hover { color: var(--text); }
.fe-wirkung button[aria-checked="true"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fe-frage-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.fe-warnung:empty { display: none; }
.fe-warnung { margin-top: 8px; font-size: 14px; color: var(--error); display: grid; gap: 2px; }
.fe-warnung p { margin: 0; }
.fe-warnung p::before { content: "⚠ "; }
.fe-mehr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.fe-mehr .btn-small { height: 40px; }
.fe-absage-feld { margin-top: 22px; background: var(--bg); border-radius: 18px; padding: 16px 18px; }
.fe-absage-feld label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.fe-leiste { position: sticky; bottom: 12px; z-index: 20; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px 10px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--schatten); }
.fe-leiste:has(.fe-zustand.offen) { border-color: var(--text); box-shadow: var(--schatten-hoch); }
.fe-zustand { font-size: 14px; font-weight: 600; color: var(--muted); }
.fe-zustand.offen { color: var(--text); }
.fe-zustand.offen::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; margin-right: 8px; vertical-align: 1px; }
.fe-leiste .msg { flex: 1 1 200px; margin: 0; }
.fe-leiste-knoepfe { margin-left: auto; display: flex; gap: 8px; }
.fe-leiste .btn-small { height: 40px; padding: 0 16px; }
.fe-vs-fuss .text-btn { font-size: inherit; text-decoration: underline; }
@media (max-width: 820px) {
  .fe-leiste { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .fe-frage { padding: 12px 12px 10px; }
  .fe-antwort { flex-wrap: wrap; padding-left: 8px; }
  .fe-antwort input { flex-basis: 100%; }
  .fe-wirkung { flex: 1 1 auto; }
  .fe-wirkung button { flex: 1 1 0; justify-content: center; }
  .fe-leiste { padding: 10px 12px; }
  .fe-leiste-knoepfe { width: 100%; }
  .fe-leiste-knoepfe .btn-small { flex: 1 1 0; }
}
.lp-umzug-tipp { margin-top: 14px; }
.lp-umzug-pruefen { background: var(--bg); border-radius: 18px; padding: 18px 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.lp-umzug-pruefen .sub.small { margin-top: 0; overflow-wrap: anywhere; }
.pixel-feld { margin-top: 22px; background: var(--bg); border-radius: 18px; padding: 18px 20px; max-width: 620px; }
.pixel-feld > label:first-child { display: block; font-size: 15px; font-weight: 700; }
.pixel-reihe { display: flex; gap: 10px; margin-top: 8px; }
.pixel-reihe input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pixel-feld .sub.small { margin-top: 8px; }
.ohne-pixel { margin-top: 10px; font-size: 14px; color: var(--muted) !important; }
.live-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.live-box .vorschau { width: 170px; aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,.15); transform: rotate(4deg); background: var(--gruen); }
.live-box .vorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-bar .check-row { font-size: 15px; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; align-items: start; }
.cr { border-radius: 22px; overflow: hidden; background: var(--bg); }
/* Einheitliche Rahmen (4:5) für alle Formate: das ganze Bild ist zu sehen, ein hohes 9:16-Bild sprengt das Raster nicht */
.cr-bild { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grau); }
.cr-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.cr-laeuft { height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.cr figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.cr-kopf { display: flex; gap: 8px; align-items: center; }
.cr-basis { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.cr-basis img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.cr-basis.ki span { color: var(--text); font-size: 13px; }
.cr-titel { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cr .wt-actions { margin-top: 0; padding-top: 10px; flex-wrap: wrap; gap: 12px; }
.cr .row-end { margin-top: 8px; }

/* Live-Vorschau der Kampagne: Handy, Instagram, Facebook */
.av-wahl { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 18px; }
.av-wahl:empty { display: none; }
.av-reihe { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.av-reihe .av-label { margin: 0; }
.av-minis { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.av-mini { all: unset; cursor: pointer; flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--grau); box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.av-mini.hoch { width: 28px; }
.av-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-mini.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.av-mini:focus-visible { outline: 3px solid var(--gruen); }
.av-buehne { display: flex; flex-wrap: wrap; gap: 28px 22px; margin-top: 22px; align-items: flex-start; }
.av-spalte { min-width: 0; flex: 1 1 250px; max-width: 380px; }
.av-spalte:first-child { flex: 0 0 280px; }
.av-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.av-leer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; color: var(--muted); font-size: 14px; height: 100%; box-sizing: border-box; }
/* Die Seite läuft im iframe mit echter Handy-Breite (390 px) und wird auf die Bildschirmgröße verkleinert: 258 / 390 */
.handy { width: 280px; height: 590px; margin: 0 auto; background: #111; border-radius: 42px; padding: 11px; box-shadow: 0 24px 50px rgba(0,0,0,.18); box-sizing: border-box; }
.handy-bild { width: 258px; height: 568px; border-radius: 32px; overflow: hidden; background: #fff; }
.handy-bild iframe { width: 390px; height: 859px; border: 0; display: block; transform: scale(.6615); transform-origin: 0 0; }
.av-fuss { text-align: center; margin: 12px auto 0; max-width: 280px; }
.av-post { background: #fff; color: #050505; border: 1px solid #dbdbdb; border-radius: 14px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.4; }
.av-post svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.av-post svg.av-voll { fill: currentColor; stroke: none; }
.av-post header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.av-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #dbdbdb; background: #fff; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #65676b; }
.av-avatar img { width: 100%; height: 100%; object-fit: contain; }
.av-wer { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.av-wer b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-wer span { font-size: 12px; color: #65676b; display: inline-flex; align-items: center; gap: 4px; }
.av-wer span svg { width: 12px; height: 12px; }
/* Bild im Feed: quadratisch; das Bild liegt absolut darin, damit ein hohes Bild die Box nicht streckt */
.av-bild { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #efefef; }
.av-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Story (9:16-Bild): Handy-Bildschirm mit Absender oben, Text und „Mehr dazu“ unten */
.av-story { position: relative; width: min(100%, 270px); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #111; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13px; box-shadow: 0 16px 34px rgba(0, 0, 0, .16); }
.av-story-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.av-story-oben { position: absolute; inset: 0 0 auto; padding: 8px 10px 26px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
.av-story-balken { display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.av-story-balken i { display: block; width: 35%; height: 100%; background: #fff; }
.av-story header { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.av-story .av-avatar { width: 30px; height: 30px; border: 0; }
.av-story .av-wer b { color: #fff; font-weight: 600; }
.av-story .av-wer span { color: rgba(255, 255, 255, .85); font-size: 11px; }
.av-story svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.av-story svg.av-voll { fill: #fff; stroke: none; }
.av-story-unten { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 14px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.av-story-text { margin: 0; align-self: stretch; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.av-story-text .link-ph { color: #fff; }
.av-story-knopf { display: inline-flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 16px 8px; border-radius: 999px; background: #fff; color: #050505; font-weight: 600; font-size: 13px; }
.av-story-knopf svg { stroke: #050505; width: 16px; height: 16px; }
.av-text { margin: 0; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.av-text b { font-weight: 600; }
.av-mehr { all: unset; cursor: pointer; color: #737373; }
.av-mehr:hover { text-decoration: underline; }
.av-ohne { color: #737373; }
.av-ohne .text-btn { font-size: inherit; }
/* Schritt 3 gesperrt (Umzug offen / Angaben fehlen): Grund statt „… erstellen“ in den Vorschau-Mockups */
.av-sperre { max-width: 240px; color: var(--text); font-weight: 600; }
.ig .av-cta { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; font-weight: 600; border-bottom: 1px solid #efefef; }
.ig .av-cta svg { width: 18px; height: 18px; }
.ig .av-icons { display: flex; gap: 14px; padding: 10px 12px 0; }
.ig .av-rechts { margin-left: auto; display: inline-flex; }
.ig .av-text { padding-top: 8px; }
.fb header { padding: 12px 12px 4px; }
.fb .av-avatar { width: 40px; height: 40px; }
.fb .av-wer b { font-size: 15px; }
.fb header > svg { width: 20px; height: 20px; color: #65676b; }
.fb .av-text { padding: 6px 12px 12px; }
.fb .av-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f0f2f5; }
.fb .av-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fb .av-domain { font-size: 12px; text-transform: uppercase; color: #65676b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb .av-link-text b { font-size: 15px; font-weight: 600; }
.fb .av-link-text > span:last-child:not(.av-domain) { font-size: 13px; color: #65676b; }
.fb .av-knopf { flex: none; background: #e4e6eb; border-radius: 6px; padding: 8px 12px; font-weight: 600; }
.fb .av-aktionen { display: flex; justify-content: space-around; gap: 4px; padding: 6px 0; margin: 0 12px; border-top: 1px solid #ced0d4; color: #65676b; font-weight: 600; font-size: 12px; }
.fb .av-aktionen span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; }
.fb .av-aktionen svg { width: 17px; height: 17px; }
/* ---- Schritt 3: drei Zeilen zum Erstellen (panel.html karteLanding/karteTexte/karteBilder): links Text, rechts Zustand und Bedienung ---- */
.kk-raster { display: grid; gap: 12px; }
.kk-karte { min-width: 0; scroll-margin: 100px; }
.kk-innen { min-width: 0; box-sizing: border-box; padding: 22px 24px; border-radius: 22px; background: var(--bg); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.kk-innen[data-zustand="fertig"] { background: var(--surface); border-color: var(--gruen); }
.kk-innen[data-zustand="laeuft"] { background: var(--surface); border-color: var(--line); }
.kk-innen[data-zustand="pruefen"] { background: #fff8ec; border-color: #f1d3a0; }
.kk-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.kk-links { display: flex; align-items: flex-start; gap: 16px; min-width: 0; flex: 1 1 320px; }
.kk-text-block { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kk-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--text); color: var(--gruen); display: inline-flex; align-items: center; justify-content: center; }
.kk-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kk-innen h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.kk-link-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; }
.kk-rechts { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: none; margin-left: auto; }
.kk-zustand { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.kk-zustand svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
[data-zustand="fertig"] .kk-zustand { background: var(--gruen); color: var(--text); }
[data-zustand="laeuft"] .kk-zustand { background: var(--gruen-soft); color: var(--gruen-dunkel); }
[data-zustand="pruefen"] .kk-zustand { background: #ffe6bf; color: #8a4300; }
.kk-bedienung { display: flex; align-items: center; gap: 8px; }
/* Hauptknopf in allen drei Zeilen gleich breit und bündig rechts */
.kk-bedienung .btn-small, .kk-option .btn-small { height: 42px; padding: 0 16px; font-size: 14px; }
.kk-haupt { width: 272px; white-space: nowrap; }
.kk-unten { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding-left: 60px; }
.kk-unten:empty { display: none; }
.kk-innen > .msg:empty { display: none; }
.kk-innen > .msg { margin: 12px 0 0 60px; }
.kk-text { margin: 0; font-size: 14px; line-height: 1.45; }
.kk-klein { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.kk-klein .spinner { width: 12px; height: 12px; border-width: 2px; vertical-align: -1px; }
.kk-hinweis { margin: 0; font-size: 13.5px; }
.kk-hinweis .schritt-gesperrt { margin: 0; font-size: 13.5px; }
.kk-link { font-size: 13px; font-weight: 600; }
.kk-adresse { font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.kk-anzahl { font-size: 13.5px; color: var(--muted); }
.kk-anzahl b { color: var(--text); font-weight: 800; }
/* Anzahl: kompakter Zähler − n + */
.kk-zahl { display: inline-flex; align-items: center; height: 42px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kk-zahl button { all: unset; box-sizing: border-box; cursor: pointer; width: 34px; height: 42px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: var(--text); border-radius: 12px; }
.kk-zahl button:hover:not(:disabled) { background: var(--bg); }
.kk-zahl button:disabled { color: var(--line-strong); cursor: default; }
.kk-zahl button:focus-visible { outline: 3px solid var(--gruen); outline-offset: -2px; }
.kk-zahl output { min-width: 18px; text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
[data-zustand="fertig"] .kk-zahl { background: var(--bg); box-shadow: none; }
.kk-formate { display: inline-flex; gap: 6px; }
.kk-ansprache { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kk-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kk-seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; color: var(--muted); height: 28px; padding: 0 14px; border-radius: 8px; cursor: pointer; box-shadow: none; }
.kk-seg button[aria-pressed="true"] { background: var(--text); color: var(--gruen); }
.kk-seg button:focus-visible { outline: 3px solid var(--gruen); outline-offset: 1px; }
.kk-format { display: inline-flex !important; flex-direction: row !important; cursor: pointer; }
.kk-format input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kk-format span { display: inline-flex; align-items: center; height: 42px; padding: 0 12px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
[data-zustand="fertig"] .kk-format span { background: var(--bg); box-shadow: none; }
.kk-format input:checked + span { background: var(--text); color: var(--gruen); box-shadow: none; }
.kk-format input:focus-visible + span { outline: 3px solid var(--gruen); outline-offset: 2px; }
/* Dezente Links unter dem Text: „Weitere Möglichkeiten“, „Ansehen“ */
.kk-mehr { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 650; color: var(--text); border-radius: 8px; }
.kk-mehr.danger { color: var(--error); }
/* .stufe .chev dreht sich mit dem offenen Schritt mit: hier nur nach eigenem Zustand */
.stufe .kk-mehr .chev { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.4; transform: none; transition: transform .15s; }
.stufe .kk-mehr[aria-expanded="true"] .chev { transform: rotate(180deg); }
.kk-mehr:hover { text-decoration: underline; text-underline-offset: 3px; }
.kk-mehr:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
/* Aufgeklappte Ergebnisse */
.kk-texte { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kk-texte li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 16px; min-width: 0; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; }
.kk-texte li b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-texte li span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.kk-bild { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.kk-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kk-bild.laeuft { display: flex; align-items: center; justify-content: center; }
.kk-bild-basis { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: rgba(17, 17, 17, .78); color: #fff; }
.mat-bewertung { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #fff3d6; color: #7a4b00; pointer-events: none; }
.kk-fotos { display: flex; flex-direction: column; gap: 10px; }
.kk-schalter { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.35; }
.kk-schalter input { appearance: none; flex-shrink: 0; width: 38px; height: 22px; margin: 0; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.kk-schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.kk-schalter input:checked { background: var(--text); }
.kk-schalter input:checked::after { transform: translateX(16px); background: var(--gruen); }
.kk-schalter input:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.kk-schalter small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.kk-bild .spinner { width: 16px; height: 16px; border-width: 2px; }
.kk-mini { align-self: flex-start; position: relative; width: 120px; height: 240px; border-radius: 18px; overflow: hidden; border: 5px solid var(--text); background: #fff; }
.kk-mini iframe { position: absolute; top: 0; left: 0; width: 375px; height: 750px; border: 0; transform: scale(.293); transform-origin: 0 0; pointer-events: none; }
.kk-optionen { display: grid; gap: 10px; }
.kk-option { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.kk-option-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.kk-option b { font-size: 14px; }
.kk-option select { width: 100%; max-width: 420px; height: 40px; margin-top: 4px; font-size: 14px; border-radius: 10px; padding: 0 10px; }
.kk-unten .cr-frei { margin: 0; }
@media (max-width: 900px) {
  /* Handy: Text oben, Zustand und Bedienung darunter */
  .kk-innen { padding: 18px; }
  .kk-zeile { flex-direction: column; align-items: stretch; }
  .kk-links { flex-basis: auto; gap: 14px; }
  .kk-rechts { justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .kk-rechts .kk-zustand { order: -1; }
  .kk-bedienung { flex-wrap: wrap; width: 100%; }
  .kk-haupt { width: auto; min-width: 0; flex: 1 1 100%; white-space: normal; }
  .kk-unten { padding-left: 0; margin-top: 14px; }
  .kk-innen > .msg { margin-left: 0; }
  .kk-texte li { grid-template-columns: minmax(0, 1fr); }
  .kk-option { flex-direction: column; align-items: stretch; }
  .kk-bilder { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}
/* KI arbeitet: Balken aus der vergangenen Zeit, sanft pulsierender Punkt */
.kk-lauf { display: grid; gap: 8px; }
.kk-lauf-text { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; font-weight: 650; }
.kk-puls { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gruen-dunkel); animation: kk-puls 1.4s ease-in-out infinite; }
@keyframes kk-puls { 50% { transform: scale(.55); background: var(--gruen); } }
.kk-balken { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.kk-balken i { position: relative; display: block; height: 100%; border-radius: inherit; background: var(--gruen); transition: width 1s linear; overflow: hidden; }
.kk-balken i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-100%); animation: kk-glanz 1.6s ease-in-out infinite; }
@keyframes kk-glanz { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .kk-puls, .kk-balken i::after { animation: none; } .kk-balken i { transition: none; } }

/* ---- Schritt 4: fertige Kampagne, darunter je Teil ändern, am Ende live schalten ---- */
.pv[hidden] { display: none; }
.av-vorschau h3, .live-titel { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.pv-teile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 30px; }
.pv-teil { min-width: 0; border-radius: 20px; background: var(--bg); }
.pv-teil[open] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.pv-teil summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 20px; }
.pv-teil summary::-webkit-details-marker { display: none; }
.pv-teil summary:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.pv-teil summary .kk-icon { width: 38px; height: 38px; border-radius: 12px; }
.pv-titel { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pv-titel b { font-size: 15.5px; }
.pv-titel span { font-size: 13px; color: var(--muted); }
.pv-titel span.pv-pruefen { color: #8a4300; font-weight: 650; }
.pv-auf { font-size: 13.5px; font-weight: 650; }
.stufe .pv-teil summary .chev { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; transform: none; transition: transform .15s; }
.stufe .pv-teil[open] summary .chev { transform: rotate(180deg); }
.pv-teil[open] .pv-auf { display: none; }
.pv-inhalt { padding: 4px 18px 20px; }
.pv-inhalt > .msg:first-child:empty + .sub { margin-top: 0; }
#live-inhalt { margin-top: 30px; }
.pv:not([hidden]) + #live-inhalt { padding-top: 26px; border-top: 1px solid var(--line); }
.av-zahl { font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.tab.active .av-zahl { background: var(--gruen); color: var(--text); }
.check-row { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }

/* ---- Bewerbungen (Board) ---- */
.bw-status select { height: 44px; min-width: 210px; }
/* ---- Filterleiste (filter.js): Chips mit eigenem Menü, Schalter, kleiner Link rechts; bricht am Handy um statt abzuschneiden ---- */
.filterleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 24px; }
.filter-rechts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.filter-zahl { font-size: 13px; color: var(--muted); padding: 0 4px; white-space: nowrap; }
.filter-link { font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.filter-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.filter-suche { flex: 0 1 300px; min-width: 0; height: 38px; font-size: 14.5px; border-radius: 999px; padding: 0 16px; }
.fchip { position: relative; flex: none; max-width: 100%; }
.fchip-knopf { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 38px; padding: 0 12px 0 15px; border-radius: 999px; background: var(--surface); box-shadow: var(--schatten), inset 0 0 0 1px var(--line); font-size: 14px; color: var(--muted); white-space: nowrap; transition: box-shadow .15s, background .15s; }
.fchip-knopf:hover, .fchip-knopf[aria-expanded="true"] { box-shadow: var(--schatten), inset 0 0 0 1px var(--line-strong); color: var(--text); }
.fchip-knopf:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.fchip-wert { color: var(--text); font-weight: 650; min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.fchip.gesetzt .fchip-knopf { background: var(--gruen-soft); box-shadow: inset 0 0 0 1px var(--gruen); color: var(--gruen-dunkel); }
.fchip-pfeil { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.fchip-knopf[aria-expanded="true"] .fchip-pfeil { transform: rotate(180deg); }
.fchip-menue { position: absolute; top: calc(100% + 6px); left: 0; z-index: 35; width: max-content; min-width: 220px; max-width: min(340px, calc(100vw - 24px)); box-sizing: border-box; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--schatten-hoch), 0 0 0 1px var(--line); }
.fchip-menue[hidden] { display: none; }
.fchip-suche { width: 100%; box-sizing: border-box; height: 38px; margin: 0 0 6px; font-size: 14px; border-radius: 10px; padding: 0 12px; }
.fchip-menue ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.fchip-menue li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; outline: none; }
.fchip-menue li[hidden] { display: none; }
.fchip-menue li > span { display: flex; flex-direction: column; min-width: 0; }
.fchip-menue li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip-menue li small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip-menue li:hover, .fchip-menue li:focus { background: var(--bg); }
.fchip-menue li:focus-visible { box-shadow: inset 0 0 0 2px var(--gruen); }
.fchip-menue li svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--gruen-dunkel); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.fchip-menue li[aria-selected="true"] svg { visibility: visible; }
.fchip-leer { margin: 6px 10px; font-size: 13px; color: var(--muted); }
.fschalter { display: inline-flex; flex-direction: row; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none; }
.fschalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fschalter-bahn { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); transition: background .15s; }
.fschalter-bahn::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.fschalter input:checked + .fschalter-bahn { background: var(--text); }
.fschalter input:checked + .fschalter-bahn::after { transform: translateX(14px); background: var(--gruen); }
.fschalter input:focus-visible + .fschalter-bahn { outline: 3px solid var(--gruen); outline-offset: 2px; }
.fschalter:hover { color: var(--text); }
#bw-board { margin-top: 20px; }
.board { display: grid; grid-template-columns: repeat(7, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.spalte { background: var(--grau); border-radius: 22px; min-height: 300px; display: flex; flex-direction: column; transition: box-shadow .15s, background .15s; }
.spalte.drop { background: var(--gruen-soft); box-shadow: inset 0 0 0 2px var(--gruen-dunkel); }
.spalte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 16px 10px; font-size: 14px; font-weight: 700; }
.spalte-kopf > span:first-child { min-width: 0; hyphens: auto; overflow-wrap: anywhere; }
.spalte-kopf .pill { flex-shrink: 0; }
.spalte-kopf .pill { background: var(--surface); }
.spalte-inhalt { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 12px; }
.spalte-leer { color: var(--muted); text-align: center; font-size: 14px; padding: 12px 0; }
.karte { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; box-shadow: var(--schatten); transition: transform .15s, box-shadow .15s; }
.karte:hover, .karte:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); outline: none; }
.karte.zieht { opacity: .5; }
.karte strong { font-size: 15px; }
.karte .sub.small { margin-top: 0; }
.karte-fuss { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.bw-kontakt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bw-status { margin-top: 18px; flex-direction: row !important; align-items: center; gap: 12px !important; color: var(--muted); }
.karte-akte { font-size: 13px; letter-spacing: 2px; }
/* Board: Auswahl für Massenaktionen, Liste als zweite Ansicht, Nachladen über 1000 */
.kopf-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.bw-ordnung { display: contents; }
.bw-haken { flex: none; width: 20px !important; height: 20px !important; padding: 0; margin: 0; cursor: pointer; accent-color: var(--text); }
.karte { position: relative; }
.board.auswahl .karte { padding-right: 44px; }
.karte > .bw-haken { position: absolute; top: 14px; right: 14px; }
.karte.gewaehlt, .karte.gewaehlt:hover { background: var(--gruen-soft); box-shadow: inset 0 0 0 2px var(--gruen-dunkel); }
.bw-liste { margin-top: 18px; background: var(--surface); border-radius: 20px; box-shadow: var(--schatten); container-type: inline-size; }
.bw-zeile { display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1.3fr) 170px 150px; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.bw-zeile:first-child { border-top: 0; }
.bw-zeile:hover, .bw-zeile:focus-visible { background: var(--bg); outline: none; }
.bw-zeile:focus-visible { box-shadow: inset 0 0 0 2px var(--text); }
.bw-zeile.gewaehlt { background: var(--gruen-soft); }
.bw-zeile-kopf { cursor: default; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 14px; padding-bottom: 10px; }
.bw-zeile-kopf:hover { background: none; }
.bw-zeile > span { min-width: 0; }
.bw-z-haken { display: flex; align-items: center; align-self: stretch; }
.bw-z-name, .bw-z-kampagne { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.bw-z-name strong { font-size: 15px; font-weight: 650; }
.bw-z-name .sub.small, .bw-z-kampagne .sub.small { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-z-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.bw-z-datum { display: flex; flex-direction: column; gap: 4px; }
.bw-z-datum .karte-fuss { margin: 0; }
.bw-z-datum .karte-fuss:empty { display: none; }
@container (max-width: 640px) {
  .bw-zeile { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .bw-zeile-kopf > span:not(:first-child) { display: none; }
  .bw-zeile-kopf::after { content: "Alle auswählen"; font-size: 13px; }
  .bw-z-haken { grid-row: span 3; align-self: start; padding-top: 2px; }
  .bw-z-name { grid-column: 2; }
  .bw-z-status { grid-column: 3; grid-row: 1; justify-self: end; font-size: 13px; }
  .bw-z-kampagne { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; gap: 0 6px; color: var(--muted); font-size: 13px; }
  .bw-z-kampagne .sub.small::before { content: "· "; }
  .bw-z-datum { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
}
.bw-mehr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 18px; }
.bw-mehr .sub.small { margin: 0; }
.bw-aktionen { position: sticky; bottom: 16px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; padding: 10px 12px 10px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--schatten-hoch), 0 0 0 1px var(--line); }
.bw-aktionen[hidden] { display: none; }
.bw-aktionen-zahl { font-size: 15px; white-space: nowrap; }
.bw-aktionen-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.bw-aktionen .btn-small { height: 40px; padding: 0 16px; font-size: 14px; }
#bw-auswaehlen[hidden] { display: none; }
/* Im Dialog alle Status auf einen Blick (in der Akte am Handy eine wischbare Reihe) */
#bw-sammel-form .bwd-status { margin: 10px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.bw-sammel-nachr { margin-top: 20px; white-space: normal; color: var(--text); }
.bw-notiz-eingabe { margin-top: 10px; min-height: 84px; }
.bw-notiz-aktion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 8px; }
.bw-notiz-aktion .sub.small { flex: 1 1 220px; }
.bw-notiz-aktion button { width: auto; margin: 0; padding: 0 22px; }
.bw-notiz-log { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bw-notiz { padding: 12px 16px; border-radius: 16px; background: var(--bg); }
.bw-notiz-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.bw-notiz-text { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bw-notiz-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.bw-notiz-knoepfe button { height: 34px; padding: 0 14px; margin: 0; font-size: 14px; }
.bw-ll { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.bw-ll-name { flex: 1 1 100%; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.bw-ll-name .sub.small { margin-top: 2px; }
.bw-ll .btn-link, .bw-ll .danger-btn { display: inline-flex; flex-direction: row; align-items: center; height: 38px; padding: 0 14px; margin: 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.bw-ll .danger-btn { margin-left: auto; }
.bw-ll-add { min-height: 84px; margin-top: 10px; }

/* ---- Nachrichten (Kommunikation) ---- */
.kom-reiter .tabs:last-child { margin-left: auto; }
.tab-bald { margin-left: 7px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #fff4d6; color: #8a5a00; vertical-align: 1px; }
.kom-gruppe { background: var(--surface); border-radius: 24px; padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--schatten); }
.kom-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.kom-kopf h3 { font-size: 18px; font-weight: 700; margin: 0; }
.kom-kopf .sub.small { margin-top: 2px; max-width: 560px; }
.kom-leer { margin-top: 12px; }
.kom-karten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
/* In den Einstellungen liegt alles schon auf einer weißen Fläche: Gruppen ohne eigene Karte, nur mit Trennlinie */
.einst-inhalt .kom-gruppe { background: none; box-shadow: none; border-radius: 0; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.einst-inhalt .kanal-bald { box-shadow: none; padding: 0; border-radius: 0; }
.einst-inhalt .kom-gruppe:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.kom-karte { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--surface); }
.kom-karte.aus { background: var(--bg); border-color: transparent; }
.kom-karte.aus .kom-satz, .kom-karte.aus .kom-betreff { opacity: .6; }
.kom-karte-kopf { display: flex; align-items: flex-start; gap: 16px; }
.kom-satz { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; }
.kom-satz b { font-weight: 700; }
.kom-betreff { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; min-width: 0; }
.kom-karte.aus .kom-betreff { background: var(--surface); }
.kom-betreff span { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.kom-betreff strong { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-meta { margin-top: 8px; }
.kom-karte-fuss { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.kom-karte-fuss .btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.kom-karte-fuss .msg { flex: 1 1 200px; }
.kom-ohne { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.kom-ohne .sub.small { margin: 0 4px 0 0; }
/* SMS / WhatsApp: Vorschau, was kommt */
.kanal-bald { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: center; background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: var(--schatten); }
.kb-text h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.kb-liste { list-style: none; margin: 16px 0; display: grid; gap: 8px; font-size: 15px; }
.kb-liste li { position: relative; padding-left: 26px; }
.kb-liste li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gruen-soft); box-shadow: inset 0 0 0 5px var(--gruen); }
.kb-handy { background: #f2f2f7; border-radius: 30px; padding: 16px 14px 22px; border: 6px solid var(--text); display: grid; gap: 10px; }
.kanal-bald.wa .kb-handy { background: #efe7dd; }
.kb-kopf { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 14px; }
.kb-kopf div { display: flex; flex-direction: column; line-height: 1.25; }
.kb-kopf div span { font-size: 12px; color: var(--muted); }
.kb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gruen); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.kb-blase { justify-self: start; max-width: 92%; background: #e5e5ea; border-radius: 18px 18px 18px 6px; padding: 9px 12px; font-size: 13px; line-height: 1.4; }
.kanal-bald.wa .kb-blase { background: #fff; }
.kb-blase span { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }
/* Verlauf */
.vl-filter { margin-top: 0; }
.vl-anzahl { margin: 14px 0 8px; }
.vl-liste { background: var(--surface); border-radius: 20px; box-shadow: var(--schatten); }
.vl-zeile { display: grid; grid-template-columns: 150px minmax(0, 1.3fr) minmax(0, 1.2fr) 190px; gap: 16px; align-items: start; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.vl-zeile:first-child { border-top: 0; }
.vl-zeit, .vl-wer, .vl-status { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vl-zeit .sub.small, .vl-wer .sub.small, .vl-status .sub.small { margin: 0; }
.vl-wer strong { font-weight: 600; overflow-wrap: anywhere; }
.vl-betreff { min-width: 0; overflow-wrap: anywhere; }
.vl-status { align-items: flex-start; }
.vl-filter .filter-suche { flex: 1 1 180px; }
.bw-filter .filter-suche { flex: 0 1 260px; }
/* Schmale Liste (z. B. Einstellungen neben der Seitenleiste): kompakte Zeilen nach Breite der Liste, nicht des Fensters */
.vl-liste { container-type: inline-size; }
@container (max-width: 680px) {
  .vl-zeile { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; }
  .vl-wer { grid-column: 1 / -1; order: -1; }
  .vl-betreff { grid-column: 1 / -1; color: var(--muted); }
  .vl-zeit { flex-direction: row; gap: 8px; color: var(--muted); }
  .vl-status { align-items: flex-end; text-align: right; }
}
@media (max-width: 760px) {
  .kanal-bald { grid-template-columns: 1fr; padding: 22px 18px; gap: 22px; }
  .kb-handy { max-width: 320px; }
  .vl-zeile { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; }
  .vl-wer { grid-column: 1 / -1; order: -1; }
  .vl-betreff { grid-column: 1 / -1; color: var(--muted); }
  .vl-zeit { flex-direction: row; gap: 8px; color: var(--muted); }
  .vl-status { align-items: flex-end; text-align: right; }
}
/* Handy: Satz in voller Breite, Schalter rechts daneben */
@media (max-width: 560px) {
  .kom-gruppe { padding: 18px 16px; }
  .kom-kopf .text-btn { white-space: nowrap; }
  .kom-karte { padding: 14px; }
  .kom-reiter .tabs:last-child { margin-left: 0; }
  .tab-bald .lang { display: none; }
  .vl-filter .filter-suche { flex: 1 1 100%; }
  .bw-filter .filter-suche { flex: 1 1 100%; order: -1; }
}
/* weiterhin in den Benachrichtigungen genutzt */
.regel { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.regel.aus .regel-txt { opacity: .5; }
.regel-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.regel-txt strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regel-txt .sub.small { margin-top: 0; }
.schalter { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.schalter input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.schalter span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .15s; pointer-events: none; }
.schalter span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.schalter input:checked + span { background: var(--text); }
.schalter input:checked + span::after { transform: translateX(20px); background: var(--gruen); }
.schalter input:focus-visible + span { outline: 3px solid var(--gruen); outline-offset: 2px; }
.regel-form { gap: 14px; }
.regel-form textarea { font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1.55; }
.regel-form .field-row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
#regel-dialog { max-width: 1080px; }
.re-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: start; }
.re-felder { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.re-vorschau { position: sticky; top: 0; min-width: 0; }
.re-vs-titel { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.re-aktiv { flex-direction: row; align-items: center; gap: 12px; }
.platzhalter { display: flex; flex-direction: column; gap: 8px; }
.ph-gruppe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ph-gruppe > span { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.chip-btn { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--text); }
.chip-btn:hover, .chip-btn:focus-visible { background: var(--gruen-soft); }
.regel-vorschau { background: var(--bg); border-radius: 18px; padding: 16px; }
.vs-kopf { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 10px; font-size: 13px; }
.vs-kopf dt { color: var(--muted); }
.vs-kopf dd { min-width: 0; overflow-wrap: anywhere; }
.vs-warn { font-size: 13px; background: #fff4d6; color: #8a5a00; border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.vs-mail { width: 100%; height: 440px; border: 0; border-radius: 12px; background: #fff; }
.regel-vorschau > .sub.small:last-child { margin-top: 8px; }
@media (max-width: 860px) {
  .re-raster { grid-template-columns: 1fr; }
  .re-vorschau { position: static; }
  .regel-form .field-row { grid-template-columns: minmax(0, 1fr); }
  .vs-mail { height: 360px; }
}
/* Nachrichten: eigene Texte von Kunden je Regel, Text im Verlauf */
.kom-kunden { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.kom-kunde { background: var(--gruen-soft); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.kom-kunde > summary { cursor: pointer; color: var(--gruen-dunkel); }
.kom-kunde[open] { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.kom-kunde .kom-betreff { width: 100%; }
.kom-kunde-text, .vl-text pre { white-space: pre-wrap; font: inherit; font-size: 13px; background: var(--surface); border-radius: 10px; padding: 10px 12px; margin: 0; max-height: 240px; overflow: auto; width: 100%; box-sizing: border-box; }
.vl-betreff .sub.small { display: block; }
.vl-text { margin-top: 4px; font-size: 13px; }
.vl-text summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.vl-text pre { background: var(--bg); margin-top: 6px; }
.vl-text-zeile { grid-column: 1 / -1; margin-top: -6px; }
/* Statusdialog: aufklappbares Bearbeitungsfeld und Rückfrage vor dem Senden (statusnachricht.js) */
.sv-nachricht + .sv-nachricht { margin-top: 12px; }
.sv-kopf { font-size: 13px; margin: 0 0 10px; overflow-wrap: anywhere; }
.sv-info { font-size: 13px; background: var(--gruen-soft); color: var(--gruen-dunkel); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.sv-info .text-btn { font-size: 13px; color: inherit; text-decoration: underline; }
.sv-edit { margin: 0 0 12px; border-radius: 14px; background: var(--surface); }
.sv-edit > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 14px; font-weight: 650; }
.sv-edit > summary::-webkit-details-marker { display: none; }
.sv-edit > summary::before { content: "✎"; font-size: 13px; }
.sv-edit > summary::after { content: "▾"; font-size: 12px; color: var(--muted); transition: transform .15s; }
.sv-edit[open] > summary::after { transform: rotate(180deg); }
.sv-edit > summary:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; border-radius: 14px; }
.sv-edit[open] { padding-bottom: 12px; }
.sv-edit label { display: flex; flex-direction: column; gap: 4px; padding: 0 14px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sv-edit input, .sv-edit textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; color: var(--text); }
.sv-edit textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px 0; }
.sv-chips > span { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.sv-edit-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 8px 14px 0; }
.sv-edit-fuss .text-btn { font-size: 13px; }
.sv-frage { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--gruen-soft); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sv-frage.sv-warn { background: #fff4d6; color: #5c3d00; }
.sv-wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-feste { margin: 0; padding-left: 18px; font-size: 14px; }
.sv-feste .sub { margin-left: 4px; }
.sv-vorschlag { font-size: 13px; width: 100%; }
.sv-vorschlag summary { cursor: pointer; font-weight: 600; }
.sv-vorschlag pre { white-space: pre-wrap; font: inherit; background: #fff; border-radius: 10px; padding: 10px 12px; max-height: 220px; overflow: auto; margin: 6px 0 0; }
@media (max-width: 600px) {
  .sv-wahl { flex-direction: column; align-items: stretch; width: 100%; }
  .sv-edit textarea { min-height: 200px; }
}
.nachricht { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nachricht:last-child { border-bottom: 0; }
.msg:empty { display: none; }

/* ---- Handy ---- */
@media (max-width: 900px) {
  .top { padding: 10px 16px; }
  .brand { font-size: 18px; }
  /* .top hat backdrop-filter und ist damit Bezugsrahmen für position: fixed – die Leiste klebt oben, also Höhe = Bildschirm */
  .wz-liste { gap: 10px; }
  .wz-kachel { padding: 18px 16px; }
  .krumen { padding: 18px 16px 0; }
  .krumen + .content { padding-top: 16px; }
  .kopf-leiste { flex-wrap: wrap; }
  .kopf-rechts { max-width: 100%; flex-wrap: wrap; }
  .wt-bar .btn-small { max-width: 100%; white-space: normal; }
  .fb .av-aktionen { margin: 0 8px; }
  .fb .av-aktionen span { gap: 4px; padding: 6px 2px; }
  .neu-wahl .mehr-menue { width: min(320px, calc(100vw - 32px)); left: 0; right: auto; }
  .avatar { width: 38px; height: 38px; font-size: 14px; }
  .content { padding: 28px 16px 32px; }
  .recht-fuss { padding: 0 16px 24px; }
  .page-head.with-action { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-head .sub { font-size: 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 4px 0; border: 0; }
  .table td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .hallo-unter { font-size: 17px; }
  .next { grid-template-columns: 1fr; margin-top: 32px; }
  .next-text { padding: 28px 22px; }
  .next-bild { min-height: 220px; }
  .next-bild img { width: 150px; }
  .next-bild img:nth-child(3) { display: none; }
  .btn-gross { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat .zahl { font-size: 56px; font-size: clamp(34px, calc((100cqi - 120px) / 3.2), 56px); }
  .laufband img { width: 150px; }
  .karten { grid-template-columns: 1fr; }
  .kamp-kopf { grid-template-columns: 1fr; gap: 22px; }
  .ring { width: 132px; height: 132px; }
  .ring svg { width: 132px; height: 132px; }
  .ring-text b { font-size: 34px; }
  .ring-text span { font-size: 12px; max-width: 80px; text-align: center; line-height: 1.25; }
  .weg { margin-top: 30px; }
  .stufe, .stufe-kopf { border-radius: 20px; }
  .stufe-kopf { grid-template-columns: 54px 1fr 20px; gap: 14px; padding: 12px 14px 12px 12px; }
  .stufe .num { height: 54px; font-size: 22px; border-radius: 15px; }
  .stufe .num svg { width: 24px; height: 24px; }
  .stufe .t b { font-size: 17px; }
  .stufe .t > span { font-size: 13px; }
  .stufe .tag, .stufe.jetzt .tag { display: none; }
  .stufe.jetzt.offen .stufe-kopf { border-radius: 20px 20px 0 0; }
  .stufe-inhalt { padding: 4px 16px 22px; }
  .stufe.jetzt.offen .stufe-inhalt { padding-top: 20px; }
  .live-box { grid-template-columns: minmax(0, 1fr); }
  .live-box .vorschau { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 12px; }
  .plan-grid { grid-template-columns: 1fr; }
  .credit-grid { grid-template-columns: 1fr; }
  .rechnungen { font-size: 14px; }
  .rechnungen td:nth-child(2) { display: none; }
  .wt-zeile { grid-template-columns: 1fr; gap: 0; }
  .board { grid-template-columns: repeat(7, min(80vw, 340px)); scroll-snap-type: x mandatory; }
  .spalte { scroll-snap-align: start; }
  .bw-aktionen { bottom: 10px; padding: 12px 14px; gap: 8px 12px; }
  .bw-aktionen-knoepfe { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .bw-aktionen .btn-small { padding: 0 8px; white-space: normal; line-height: 1.15; text-align: center; }
  .filter-rechts { margin-left: 0; width: 100%; justify-content: space-between; }
  .fchip-wert { max-width: 150px; }
  .wide-modal .kv { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; border-radius: 24px; }
  .profile { flex-direction: column; }
  .copy-row { flex-wrap: wrap; }
  .copy-row input { flex-basis: 100%; }
  .konto-menue { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
}

/* ---- Inspiration: Info-Box zur Chrome-Extension (oben, dezent, einklappbar) ---- */
.insp-ext { margin-top: 22px; max-width: 980px; background: var(--surface); border-radius: 18px; padding: 12px 16px; box-shadow: var(--schatten); }
.insp-ext:empty { display: none; }
.insp-ext.zu { display: inline-block; padding: 0; background: transparent; box-shadow: none; }
.insp-ext-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.insp-ext-symbol { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--gruen-soft); display: grid; place-items: center; }
.insp-ext-symbol svg { width: 18px; height: 18px; fill: none; stroke: var(--gruen-dunkel); stroke-width: 1.8; stroke-linejoin: round; }
.insp-ext-text { flex: 1 1 300px; font-size: 14px; line-height: 1.45; min-width: 0; }
.insp-ext-ok { color: var(--ok); }
.insp-ext-aktionen { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.insp-ext-aktionen .btn-small { height: 36px; font-size: 14px; padding: 0 14px; }
.insp-ext-aktionen .text-btn { font-size: 14px; }
.insp-ext .text-btn:hover { box-shadow: none; transform: none; }
.insp-ext-einklappen { width: 30px; height: 30px; border-radius: 50%; display: inline-grid !important; place-items: center; }
.insp-ext-einklappen:hover { background: var(--bg); }
.insp-ext-einklappen svg, .insp-ext-pfeil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.insp-ext-schritte { margin: 12px 0 4px 66px; font-size: 14px; gap: 6px; max-width: 720px; }
.insp-ext-auf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--schatten); }
.insp-ext-auf .insp-ext-symbol { width: 28px; height: 28px; border-radius: 50%; }
.insp-ext-auf:hover { color: var(--text); }
.insp-ext-auf:focus-visible, .insp-ext .text-btn:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; border-radius: 6px; }
.insp-ext-pfeil { display: inline-flex; }
@media (max-width: 720px) {
  .insp-ext { padding: 12px 14px; }
  .insp-ext-zeile { align-items: flex-start; }
  .insp-ext-text { flex-basis: calc(100% - 46px); }
  .insp-ext-aktionen { padding-left: 46px; }
  .insp-ext-schritte { margin-left: 18px; }
  .insp-ext.verbunden .insp-ext-text .muted { display: none; }
  .insp-ext.verbunden .insp-ext-zeile { align-items: center; }
}

/* ---- Inspiration: Reihen mit horizontalem Slider (Anzeigenbilder, Werbetexte, Bewerbungsseiten) ---- */
.insp-bar { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.insp-bar input[type="search"] { flex: 0 1 280px; height: 42px; font-size: 15px; border-radius: 999px; padding: 0 18px; }
.insp-bar input[type="search"] { height: 38px; font-size: 14.5px; padding: 0 16px; }
.insp-reihe { margin-top: 44px; scroll-margin-top: 90px; }
.insp-reihe-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.insp-reihe-kopf h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.insp-zaehler { font-size: 14px; color: var(--muted); margin-top: 4px; }
.insp-zaehler b { color: var(--text); }
.insp-reihe-info { max-width: 760px; margin-top: 6px; }
.insp-pfeile { display: flex; gap: 8px; flex: none; }
.insp-pfeile[hidden] { display: none; }
.insp-pfeil { width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 50%; background: var(--surface); color: var(--text); border: 1px solid var(--line); font-size: 24px; line-height: 1; font-weight: 500; display: grid; place-items: center; }
.insp-pfeil:hover { border-color: var(--text); box-shadow: none; transform: none; }
.insp-pfeil:disabled { opacity: .35; }
.insp-slider { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: calc(2px + var(--insp-peek, 0px)); overscroll-behavior-x: contain;
  margin: 16px -4px 0; padding: 4px 4px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.insp-slider::-webkit-scrollbar { display: none; }
/* Weitere Karten andeuten: Verlauf am Rand, an dem noch etwas kommt (Klassen setzt inspPfeileStand) */
.insp-slider.rand-rechts { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.insp-slider.rand-links { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
.insp-slider.rand-links.rand-rechts { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent); }
.insp-slider:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; border-radius: 12px; }
.insp-mehr { flex: none; width: 1px; align-self: stretch; }
/* Bilder und Texte: alle Karten einer Reihe gleich hoch, die Hinzufügen-Kachel wächst mit */
.insp-slider[data-reihe="ads"] { align-items: stretch; }
.insp-leer { margin-top: 2px; color: var(--muted); font-size: 15px; max-width: 640px; }
.insp-leer .text-btn { font-size: 15px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

.insp-karte { flex: none; scroll-snap-align: start; background: var(--surface); border-radius: 22px; box-shadow: var(--schatten); border: 2px solid transparent; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.insp-karte.an { border-color: var(--text); }
.insp-karte-fuss { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.insp-karte-quelle { font-size: 13px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-haken { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer; line-height: 1.3; }
.insp-haken input { flex: none; margin-top: 0; }
.insp-haken:has(input:disabled) { color: var(--muted); cursor: default; }
.insp-aktionen { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.insp-aktionen .text-btn { font-size: 13px; }

/* Erste Kachel: hinzufügen */
.insp-neu { all: unset; box-sizing: border-box; flex: none; scroll-snap-align: start; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  width: 220px; min-height: 220px; padding: 20px; border-radius: 22px; border: 2px dashed var(--line-strong); background: transparent; color: var(--text); transition: border-color .15s, background .15s; }
.insp-neu:hover, .insp-neu.drueber, .insp-neu.an { border-color: var(--text); background: var(--surface); }
.insp-neu:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.insp-neu b { font-size: 16px; }
.insp-neu .muted { line-height: 1.4; }
.insp-neu-plus { width: 44px; height: 44px; border-radius: 50%; background: var(--gruen); display: grid; place-items: center; font-size: 26px; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.insp-upload-msg { color: var(--muted); min-height: 1em; }
.insp-neu-text { width: 260px; }
.insp-neu-handy { width: 220px; height: calc(var(--insp-b, 236px) * 480 / 236); }

/* Ad-Creatives: eine Karte je Anzeige, Bild oben (blätterbar), Text gekürzt, Schalter „Bild“ und „Text“ */
.insp-adkarte { width: var(--insp-b, 264px); }
.insp-ad-bild { position: relative; aspect-ratio: 1; background: var(--grau); flex: none; }
.insp-ad-bild > a, .insp-ad-bild img { display: block; width: 100%; height: 100%; }
.insp-ad-bild img { object-fit: cover; }
.insp-ad-bild .pill { position: absolute; left: 10px; top: 10px; background: rgba(14,14,14,.75); color: #fff; }
.insp-ad-blaettern { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--text); display: grid; place-items: center; font-size: 22px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.insp-ad-blaettern.zurueck { left: 8px; }
.insp-ad-blaettern.weiter { right: 8px; }
.insp-ad-blaettern:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.insp-ad-nurtext { display: flex; flex-direction: column; justify-content: center; padding: 22px 20px; background: var(--gruen-soft); }
.insp-ad-nurtext p { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.insp-ad-nurtext.offen, .insp-ad-nurtext:has(p.offen) { aspect-ratio: auto; min-height: 264px; }
.insp-ad-nurtext p.offen { display: block; }
.insp-ad-nurtext .pill { position: absolute; left: 10px; top: 10px; background: var(--surface); color: var(--muted); }
.insp-ad-punkte { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.insp-ad-punkte i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.insp-ad-punkte i.jetzt { background: #fff; transform: scale(1.3); }
.insp-ad-punkte i.gewaehlt { background: var(--gruen); }
.insp-adkarte .insp-karte-fuss { flex: 1; width: 100%; }
.insp-ad-kopf { min-width: 0; max-width: 100%; }
.insp-ad-kopf b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-ad-kopf .insp-karte-quelle { display: block; }
.insp-adkarte .insp-primaer { -webkit-line-clamp: 4; }
.insp-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); width: 100%; }
.insp-chips-titel { font-size: 13px; color: var(--muted); margin-right: 2px; }
.insp-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px;
  border: 1px dashed var(--line-strong); font-size: 14px; font-weight: 600; color: var(--muted); background: transparent; transition: background .15s, border-color .15s, color .15s; }
.insp-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.insp-chip:hover { border-color: var(--text); color: var(--text); border-style: solid; }
.insp-chip.an { background: var(--text); border: 1px solid var(--text); color: #fff; }
.insp-chip.an svg { opacity: 1; stroke: var(--gruen); }
.insp-chip:disabled { opacity: .45; cursor: default; border-color: var(--line); }
.insp-chip:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.insp-primaer { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.insp-primaer.offen { display: block; }
.insp-aufklappen { align-self: flex-start; font-size: 13px; }

/* Bewerbungsseiten im Handy-Rahmen */
.insp-funnelkarte { width: var(--insp-b, 236px); background: transparent; box-shadow: none; border: 0; overflow: visible; }
.insp-funnelkarte .insp-karte-fuss { padding: 14px 4px 0; }
.insp-handy { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block; width: var(--insp-b, 236px); height: calc(var(--insp-b, 236px) * 480 / 236); min-height: 0; background: #111; border-radius: 38px; padding: 9px;
  box-shadow: 0 16px 36px rgba(0,0,0,.16); outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.insp-handy:disabled { cursor: default; }
.insp-handy:focus-visible { outline-color: var(--gruen); }
.insp-funnelkarte.an .insp-handy { outline-color: var(--text); }
/* Feste Rahmenhöhe (9:19,5 wie ein Handy); lange Seiten (Screenshot der ganzen Seite) innen scrollbar: Hover scrollt langsam durch
   (inspHandyScroll), am Handy per Wischen, ein Klick öffnet die Details mit voller Länge */
.insp-handy-bild { display: block; width: 100%; height: 100%; border-radius: 30px; overflow: hidden auto; scrollbar-width: none; background: #fff; }
.insp-handy-bild::-webkit-scrollbar { display: none; }
.insp-handy-bild img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; }
.insp-handy-leer { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: var(--muted); }
.insp-handy-punkte { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.insp-handy-punkte i { width: 6px; height: 6px; border-radius: 50%; background: rgba(14,14,14,.25); box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.insp-handy-punkte i.an { background: var(--text); }
.insp-funnel-titel { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-bauen { min-height: 38px; height: auto; max-width: 100%; white-space: normal; line-height: 1.25; text-align: center; font-size: 14px; padding: 8px 14px; margin-top: 2px; }
.insp-bauen-wahl { width: 100%; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--schatten); }
.insp-bauen-wahl ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; font-size: 14px; }
.insp-funnel-form, .insp-funnel-detail { margin-top: 16px; max-width: 760px; }
.insp-funnel-form h3, .insp-detail-kopf h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.insp-funnel-form input[type="url"] { width: 100%; margin-top: 14px; }
.insp-funnel-form .check-row { margin-top: 12px; font-size: 14px; align-items: flex-start !important; }
.insp-funnel-form .wt-bar { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.insp-detail-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

@media (max-width: 720px) {
  .insp-bar { justify-content: stretch; }
  .insp-bar input[type="search"] { flex: 1 1 100%; }
  .insp-reihe { margin-top: 36px; }
  .insp-reihe-kopf h2 { font-size: 22px; }
  .insp-pfeile { display: none; }
  .insp-slider { margin: 14px -16px 0; padding: 4px 16px 14px; scroll-padding-left: calc(16px + var(--insp-peek, 0px)); gap: 12px; }
  .insp-adkarte { width: var(--insp-b, 240px); }
  .insp-chips-titel { display: none; }
  .insp-chip { padding: 0 10px 0 8px; font-size: 13px; }
  /* Hinzufügen-Kacheln am Handy schmal, damit die erste Karte gleich zu sehen ist */
  /* schmal, damit daneben eine ganze Karte und der Anschnitt der nächsten passt (inspBreiten) */
  .insp-neu, .insp-neu-text, .insp-neu-handy { width: 96px; padding: 10px; }
  .insp-neu .muted, .insp-neu .small { display: none; }
  .insp-neu b { font-size: 14px; }
  .insp-neu-handy { height: calc(var(--insp-b, 196px) * 480 / 236); }
  .insp-neu .muted { font-size: 12px; }
  /* Noch nichts gespeichert: die Hinzufügen-Kachel ist allein und bekommt Kartenbreite samt Hinweis */
  .insp-slider:not(:has(> .insp-karte:not(.insp-neu))) > .insp-neu { width: 220px; padding: 16px; }
  .insp-slider:not(:has(> .insp-karte:not(.insp-neu))) > .insp-neu .muted { display: block; }
  .insp-slider:not(:has(> .insp-karte:not(.insp-neu))) > .insp-neu-handy { height: 300px; }
  .insp-funnelkarte, .insp-handy { width: var(--insp-b, 196px); }
  .insp-handy { height: calc(var(--insp-b, 196px) * 480 / 236); border-radius: 32px; padding: 8px; }
  .insp-handy-bild { border-radius: 25px; }
}
.insp-schritte { margin: 20px 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.insp-code { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.insp-code code { font-size: 14px; padding: 10px 12px; flex: 1 1 260px; }

/* ---- Funnel-Umzug (/umzug, app/umzug.js) ---- */
.umz-neu h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.umz-schritt { display: grid; grid-template-columns: 34px 1fr; gap: 14px; margin-top: 24px; }
.umz-schritt > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.umz-schritt h3 { font-size: 17px; font-weight: 700; }
.umz-schritt .hinweis { margin-top: 0; }
.umz-schritt label:not(.check-row) { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.umz-nr { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.umz-wohin { align-self: flex-start; }
.umz-start { margin-top: 26px; }
.umz-kunde { display: block; font-size: 13px; }
.umz-quelle { overflow-wrap: anywhere; }
.umz-aktion { text-align: right; white-space: nowrap; }
.pill.umz-laeuft { background: #e8f0ff; color: #1d4ed8; }
.pill.pruefung { background: #fff6dd; color: #6b4e00; }
.umz-status h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.umz-status .wt-bar { margin-top: 18px; }
.umz-ablauf { margin: 18px 0 14px 20px; display: grid; gap: 8px; color: var(--muted); }
.umz-ablauf li.fertig { color: var(--text); text-decoration: line-through; text-decoration-color: var(--muted); }
.umz-ablauf li.jetzt { color: var(--text); font-weight: 700; }
.umz-pruefen { max-width: 980px; }
.umz-neu { max-width: 760px; }
.umz-vorschau { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.umz-vorschau > * { min-width: 0; }
.umz-vorschau h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.umz-knoepfe { margin-top: 22px; }
.umz-link { display: flex; gap: 10px; }
.umz-link input { flex: 1; min-width: 0; }
.umz-logo { display: flex; align-items: center; gap: 14px; }
.umz-logo img { max-height: 48px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 8px; padding: 6px; border: 1px solid var(--line, #e5e5e5); }
.umz-angaben { max-width: 980px; margin-top: 22px; }
.umz-angaben h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.umz-angaben h3 { font-size: 16px; font-weight: 700; margin-top: 22px; }
.umz-angaben .hinweis { margin-top: 12px; }
.umz-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 10px; }
.umz-feld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.umz-feld.breit { grid-column: 1 / -1; }
.umz-feld-kopf .pill { margin-left: 6px; font-size: 11px; }
.umz-feld.fehlt input, .umz-feld.fehlt textarea { border-color: #dc2626; box-shadow: 0 0 0 1px #dc2626 inset; }
.umz-feld.pflicht input, .umz-feld.pflicht textarea { border-color: #e0a100; }
.umz-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; font-weight: 400; }
.umz-angaben .wt-bar { margin-top: 20px; }
.umz-schritt .umz-pixel { margin-top: 0; }
.umz-schritt .umz-pixel > label { display: block; font-size: 14px; }
.umz-schritt .check-row { align-items: flex-start !important; font-size: 14px; }
.umz-schritt .check-row input { margin-top: 3px; flex: none; }
@media (max-width: 760px) {
  .umz-felder { grid-template-columns: 1fr; }
  .umz-link { flex-direction: column; }
  .umz-link input { flex: none; }
  /* Handy: Nummern schmaler, damit die Felder Platz haben; Kunden-Umschalter auf volle Breite statt abgeschnitten */
  .umz-schritt { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .umz-nr { width: 28px; height: 28px; font-size: 14px; }
  .umz-wohin { align-self: stretch; }
  .umz-wohin .tab { flex: 1 1 0; text-align: center; white-space: normal; line-height: 1.25; padding: 8px 10px; }
}
@media (max-width: 760px) { .umz-vorschau { grid-template-columns: 1fr; } .umz-tabelle th:nth-child(2), .umz-tabelle td:nth-child(2) { display: none; } }


/* Inspiration: Details eines gespeicherten Funnels */
.insp-funnel-schritte { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.insp-funnel-schritte li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.insp-funnel-schritte img { width: 96px; max-height: 200px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); display: block; }
.insp-funnel-schritte .lp-antw { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.insp-funnel-klartext { overflow-wrap: anywhere; }
/* Bewerbungsseite: Template oder Funnel aus der Inspiration */
.lp-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.lp-option { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lp-option h3 { font-size: 17px; margin: 0; }
.lp-option select { width: 100%; }
/* ---- Konto-Freischaltung (E-Mail bestätigen, SMS, Warteliste) ---- */
.freischaltung { width: 100%; max-width: 1140px; margin: 24px auto 0; padding: 0 40px; }
.freischaltung-innen { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; background: #fff7d6; color: #5c4400; border-radius: 18px; padding: 18px 22px; }
.freischaltung-innen p { margin-top: 6px; font-size: 15px; }
.freischaltung-innen .msg:empty { display: none; }
.recht-banner .freischaltung-innen { background: #fdecec; color: #7a1d1d; }
.meta-banner .freischaltung-innen.recht-warnung { background: #fdecec; color: #7a1d1d; }
.recht-banner ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }
.recht-banner a:not(.btn-small) { color: inherit; text-decoration: underline; }
.recht-hinweis .banner-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.frei-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.frei-form input { height: 44px; flex: 1 1 220px; max-width: 320px; }
@media (max-width: 700px) {
  .freischaltung { padding: 0 16px; margin-top: 16px; }
  .freischaltung-innen { flex-direction: column; }
}

/* ---- Einrichtung neuer Agenturen (/einrichtung, einrichtung.js) ---- */
body.einrichtung-modus .nav, body.einrichtung-modus .werkzeuge, body.einrichtung-modus .credits-link, body.einrichtung-modus .ext-knopf, body.einrichtung-modus .krumen { display: none; }
/* Ohne Seitenleiste (und am Handy ohne „Mehr“-Blatt): Kontomenü als Aufklapper unter dem Avatar, statt die Kopfzeile aufzuziehen */
body.einrichtung-modus #konto { align-items: flex-end; }
body.einrichtung-modus #konto.offen { background: none; }
body.einrichtung-modus .konto-knopf { order: -1; }
body.einrichtung-modus #konto .konto-pfeil { display: none; }
body.einrichtung-modus #konto .konto-unter { display: grid; position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 260px; max-width: calc(100vw - 32px); border-radius: 16px; background: #f1f7e9; box-shadow: var(--schatten-hoch); }
body.einrichtung-modus #konto:not(.offen) .konto-unter { box-shadow: none; }
.ein { max-width: 760px; margin: 0 auto; }
.ein-kopf { display: flex; align-items: center; gap: 20px; }
.ein-fortschritt { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ein-fortschritt li { display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ein-fortschritt li::before { content: ""; height: 6px; border-radius: 999px; background: var(--grau); transition: background .3s; }
.ein-fortschritt li.fertig::before { background: var(--text); }
.ein-fortschritt li.aktiv::before { background: linear-gradient(90deg, var(--text) 50%, var(--grau) 50%); }
.ein-fortschritt li.aktiv, .ein-fortschritt li.fertig { color: var(--text); }
.ein-fortschritt .ein-punkt { display: none; }
.ein-spaeter { all: unset; cursor: pointer; flex: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 10px; margin-top: -20px; }
.ein-spaeter:hover { color: var(--text); background: var(--surface); }
.ein-spaeter:focus-visible { outline: 3px solid var(--gruen); }
.ein-zaehler { margin-top: 34px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ein-h1 { margin-top: 8px; font-weight: 800; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -0.05em; }
.ein-h1 em { font-style: normal; background: linear-gradient(transparent 58%, var(--gruen) 58%, var(--gruen) 92%, transparent 92%); padding: 0 4px; }
.ein-unter { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 600px; }
.ein-karte { margin-top: 30px; background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 16px; }
#ein-form { gap: 16px; }
#ein-form:not(.ein-karte) { margin: 0; }
.ein-karte > .sub.small, .ein-karte form > .sub.small { margin-top: -8px; }
.ein-gruppe { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.ein-gruppe h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.ein-gruppe h2 .optional { font-size: 14px; letter-spacing: 0; }
.ein-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.ein-fuss-rechts { display: flex; gap: 10px; align-items: center; }
.ein-fuss .btn-small { margin: 0; min-width: 120px; }
/* Logo */
.ein-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ein-drop { cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 240px; padding: 24px; border: 2px dashed var(--line-strong); border-radius: 22px; background: var(--bg); transition: border-color .15s, background .15s; }
.ein-drop:hover, .ein-drop.drueber { border-color: var(--text); background: var(--gruen-soft); }
.ein-drop:focus-within { outline: 3px solid var(--gruen); }
.ein-drop b { font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.ein-drop img { max-width: 80%; max-height: 120px; object-fit: contain; }
.ein-drop.mit-bild { border-style: solid; background: #fff; }
.ein-drop.laedt { pointer-events: none; opacity: .7; }
.ein-drop-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--text); color: var(--gruen); display: inline-flex; align-items: center; justify-content: center; }
.ein-drop-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ein-vorschau { display: flex; flex-direction: column; gap: 10px; }
.ein-vorschau-titel { font-size: 13px; font-weight: 700; color: var(--muted); }
.ein-browser { flex: 1; border-radius: 18px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.ein-browser-leiste { display: flex; align-items: center; gap: 5px; padding: 10px 12px; background: var(--grau); font-size: 12px; color: var(--muted); }
.ein-browser-leiste i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ein-browser-leiste span { margin-left: 8px; background: var(--surface); border-radius: 999px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ein-browser-kopf { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 15px; min-width: 0; }
.ein-browser-kopf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ein-browser-kopf img { max-height: 32px; max-width: 110px; object-fit: contain; }
.ein-browser-initial { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--text); color: var(--gruen); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ein-browser-zeilen { padding: 16px; display: grid; gap: 10px; }
.ein-browser-zeilen i { height: 34px; border-radius: 10px; background: var(--surface); }
/* Modus */
.ein-karte-breit { padding: 24px; }
.ein-modi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ein-modus { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; border: 2px solid var(--line); background: var(--surface); font-weight: 400; transition: border-color .15s, box-shadow .15s, background .15s; }
@media (hover: hover) { .ein-modus:hover { border-color: var(--line-strong); } }
.ein-modus.gewaehlt { border-color: var(--text); box-shadow: 0 0 0 4px rgba(185,242,124,.55); }
.ein-modus input { position: absolute; opacity: 0; pointer-events: none; }
.ein-modus:focus-within { outline: 3px solid var(--gruen); outline-offset: 2px; }
.ein-modus-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ein-modus-kopf b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.ein-empfohlen { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--gruen); color: var(--text); border-radius: 999px; padding: 3px 10px; }
.ein-dauer { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 3px 10px; }
.ein-modus-text { font-size: 15px; color: var(--muted); }
.ein-modus-liste { list-style: none; margin: 4px 0 0; padding: 12px 14px; display: grid; gap: 6px; background: var(--bg); border-radius: 14px; font-size: 13.5px; color: var(--muted); }
.ein-modus-liste strong { overflow-wrap: anywhere; font-weight: 700; }
.ein-einfach { display: grid; gap: 10px; margin-top: 8px; }
.ein-einfach .sub.small { margin-top: 0; }
.ein-frei { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.ein-frei svg, .ein-punkt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ein-belegt { color: var(--error); }
.ein-experte > .sub { margin-top: 4px; }
.ein-experte .panel-card { max-width: none; margin-top: 14px; background: var(--bg); box-shadow: none; padding: 24px; }
.ein-experte .dns-tabelle { background: var(--surface); }
/* Fertig */
.ein-fertig { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ein-fertig .ein-unter { margin-left: auto; margin-right: auto; }
.ein-konfetti { width: 120px; height: 120px; object-fit: contain; margin-top: 4px; filter: drop-shadow(0 10px 14px rgba(42,50,29,.18)); animation: ein-plopp .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ein-plopp { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ein-konfetti { animation: none; } }
.ein-fertig .ein-h1 { margin-top: 24px; }
.ein-zusammenfassung { list-style: none; margin: 30px 0 0; padding: 8px; width: 100%; max-width: 560px; background: var(--surface); border-radius: 24px; box-shadow: var(--schatten); text-align: left; }
.ein-zusammenfassung li { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 16px; }
.ein-zusammenfassung li + li { border-top: 1px solid var(--line); border-radius: 0; }
.ein-zusammenfassung .ein-punkt { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ein-zusammenfassung li.ok .ein-punkt { background: var(--gruen); color: var(--text); }
.ein-zusammenfassung li div { display: flex; flex-direction: column; min-width: 0; }
.ein-zusammenfassung li div span { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ein-fertig > .sub.small { margin-top: 14px; max-width: 520px; }
.ein-fertig-knoepfe { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
/* Domain-Karten: Status, Kopieren, Anbieter-Anleitung (auch in den Einstellungen) */
.portal-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.portal-status .sub.small { margin: 0; overflow-wrap: anywhere; }
.pill .spinner { width: 11px; height: 11px; vertical-align: -1px; }
.kopier-wert { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kopier-wert code { overflow-wrap: anywhere; }
.kopieren { all: unset; cursor: pointer; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); white-space: nowrap; }
.kopieren:hover { border-color: var(--text); }
.kopieren:focus-visible { outline: 3px solid var(--gruen); }
.kopieren.ok { background: var(--gruen); border-color: var(--gruen); }
.anbieter-hilfe { background: var(--bg); border-radius: 14px; padding: 12px 16px; font-size: 14px; }
.ein-experte .anbieter-hilfe { background: var(--surface); }
.anbieter-hilfe summary { cursor: pointer; font-weight: 700; }
.anbieter-hilfe dl { margin-top: 10px; display: grid; gap: 4px 0; }
.anbieter-hilfe dt { font-weight: 700; margin-top: 8px; }
.anbieter-hilfe dd { color: var(--muted); }
.knopf-reihe { display: flex; gap: 10px; flex-wrap: wrap; }
/* Hinweis auf der Startseite */
.einrichtung-hinweis { margin-top: 28px; display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: 20px; padding: 14px 14px 14px 22px; box-shadow: var(--schatten); max-width: 820px; }
.einrichtung-hinweis p { flex: 1; font-size: 15px; color: var(--muted); }
.einrichtung-hinweis .btn-small { margin: 0; }
.hinweis-zu { all: unset; cursor: pointer; flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.hinweis-zu:hover { background: var(--bg); color: var(--text); }
.hinweis-zu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 760px) {
  .ein-kopf { align-items: flex-start; }
  .ein-fortschritt .ein-titel { display: none; }
  .ein-spaeter { margin-top: -10px; padding: 6px 8px; font-size: 13px; }
  .ein-zaehler { margin-top: 24px; }
  .ein-unter { font-size: 16px; }
  .ein-karte { padding: 22px 18px; border-radius: 22px; margin-top: 22px; }
  .ein-karte-breit { padding: 16px; }
  .ein-logo, .ein-modi { grid-template-columns: 1fr; }
  .ein-drop { min-height: 180px; }
  .ein-modus { padding: 18px; }
  .ein-experte .panel-card { padding: 18px 14px; }
  .ein-fuss { flex-wrap: wrap; }
  .ein-fuss-rechts { flex: 1; justify-content: flex-end; }
  .ein-fertig-knoepfe { width: 100%; }
  .einrichtung-hinweis { position: relative; flex-direction: column; align-items: flex-start; padding: 18px; }
  .einrichtung-hinweis p { padding-right: 32px; }
  .einrichtung-hinweis .hinweis-zu { position: absolute; top: 8px; right: 8px; }
  .dns-tabelle th, .dns-tabelle td { padding: 8px 10px; }
}

/* Kampagne aus einem Funnel-Umzug: Hinweis oben und in Schritt 1, Schritt 3 gesperrt */
.umzug-banner { max-width: none; margin: 0 0 18px; }
.umzug-banner .banner-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.schritt-gesperrt { background: var(--bg); border-radius: 14px; padding: 14px 18px; }
#schritt-onboarding .umz-felder { margin-bottom: 6px; }
#angaben-form h3 { font-size: 16px; font-weight: 700; margin-top: 22px; }

/* Vorab-Prüfung (app/vorab.js): Aktion gerade nicht möglich – Grund und passender Knopf an Ort und Stelle */
.vorab-sperre { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: none; margin: 0 0 18px; }
.vorab-sperre > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.vorab-sperre span { font-weight: 400; }
.umz-start + .vorab-sperre { margin-top: 12px; }
/* ---- Handy-Navigation unten (bis 820 px): feste Leiste mit 5 Einträgen, „Mehr“ öffnet ein Blatt darüber ---- */
.unten { display: none; }
@media (max-width: 820px) {
  /* Oben nur ein schlanker Kopf: Logo, Credits, Konto. Navigation und Werkzeuge wandern nach unten */
  .top { flex-wrap: nowrap; padding: 10px 16px; }
  .top .nav, .top .werkzeuge, #upgrade-knopf, .top .ext-knopf { display: none; }
  .top-rechts { gap: 8px; }
  body.panel { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  /* Fokus/Sprungziele nicht unter der Leiste verstecken */
  html:has(body.panel) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .content { padding-bottom: 16px; }
  .unten { display: block; }
  body.einrichtung-modus .unten { display: none; }
  body.einrichtung-modus { padding-bottom: 0; }

  .mat-auswahl { bottom: calc(80px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .mat-auswahl-kopf { justify-content: space-between; }
  .mat-auswahl-ziele { flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .mat-auswahl-ziele > .muted { display: none; }
  .mat-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .bw-aktionen { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .unten-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .unten-nav a, .unten-mehr { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; min-width: 0; padding: 4px 2px; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-align: center; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .unten-nav a > span:last-child, .unten-mehr > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .unten-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: 999px; transition: background .15s, color .15s; }
  .unten-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .unten-mehr .unten-icon svg { fill: currentColor; stroke: none; }
  .unten-nav a.active, .unten-mehr.active, .unten-mehr[aria-expanded="true"] { color: var(--text); }
  .unten-nav a.active .unten-icon, .unten-mehr.active .unten-icon { background: var(--text); color: var(--gruen); }
  .unten-mehr[aria-expanded="true"]:not(.active) .unten-icon { background: var(--grau); }
  .unten-nav a:focus-visible, .unten-mehr:focus-visible { outline: 3px solid var(--gruen); outline-offset: -3px; }
  .unten-zahl { position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface); }

  .unten-schleier { position: fixed; inset: 0; z-index: 38; background: rgba(14, 14, 14, .35); animation: unten-schleier .18s ease-out; }
  .unten-schleier[hidden], .unten-blatt[hidden] { display: none; }
  @keyframes unten-schleier { from { opacity: 0; } }
  .unten-blatt { position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 39; max-height: calc(100dvh - 68px - env(safe-area-inset-bottom) - 24px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 24px 24px 0 0; padding: 18px 16px 16px; box-shadow: var(--schatten-hoch); animation: wz-sheet .2s cubic-bezier(.2, .8, .2, 1); }
  .unten-blatt h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 4px 12px; }
  .unten-blatt .wz-kachel { padding: 14px; align-items: center; }
  .unten-blatt .wz-kachel:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
  #konto .konto-unter, #konto .konto-pfeil { display: none; }
  #konto.offen { background: none; }
  .unten-konto .konto-avatar { overflow: hidden; font-weight: 800; font-size: 17px; }
  .unten-konto .wz-text .account-plan { display: inline-block; margin: 0 0 0 6px; font-size: 10.5px; padding: 0 7px; vertical-align: 1px; }
  .unten-konto.offen > .unten-wz-knopf { background: #e9f3dc; }
  .unten-konto .wz-unter .wz-unterliste { background: #f1f7e9; border-left: 0; margin-left: 0; padding: 4px 6px; border-radius: 16px; margin-top: 6px; }
  .unten-konto .wz-unterliste li:first-child { margin-top: 0; }
  .unten-konto .wz-punkt { font-size: 15px; padding: 12px; color: var(--text); }
  .unten-wz-knopf { width: 100%; height: auto !important; border: 0; font: inherit; text-align: left; cursor: pointer; }
  .unten-wz-knopf .wz-pfeil { width: 20px !important; height: 20px !important; color: var(--muted); }
  .unten-blatt .wz-unterliste { margin-left: 36px; padding-left: 10px; }
  .unten-blatt .wz-unterliste li:first-child { margin-top: 6px; }
  .unten-blatt .wz-punkt { padding: 12px; font-size: 15px; }
  .unten-blatt .wz-punkt:not(.active) { color: var(--text); }
  .unten-blatt .wz-punkt-icon svg { width: 20px; height: 20px; }
  html.unten-offen, html.unten-offen body { overflow: hidden; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .unten-blatt, .unten-schleier { animation: none; } }


/* Schritt-Reihenfolge: gesperrte Schritte mit Schloss, „Bitte prüfen“ nach Änderungen in früheren Schritten */
.stufe.gesperrt .num { background: var(--bg); color: var(--muted); }
.stufe.gesperrt .num svg { width: 18px; height: 18px; }
.stufe.gesperrt .t b { color: var(--muted); }
.stufe.pruefen .tag { background: #fff4d6; color: #7a5300; }
.schritt-gesperrt .sperre-schloss svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; }
.av-sperre svg { width: 14px; height: 14px; vertical-align: -2px; }
.pruefen-banner ul { margin: 6px 0 0; padding-left: 18px; }
.pruefen-banner li + li { margin-top: 4px; }
/* Vertrag kündigen (/kuendigen) */
.kuendigen-form { display: grid; gap: 18px; max-width: 720px; }
.kuendigen-form .row-end { margin-top: 0; }
.kuendigen-wahl { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.kuendigen-wahl legend { font-weight: 700; margin-bottom: 10px; }
.kuendigen-option { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.kuendigen-option input { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--text); margin: 0; }
.kuendigen-wahl input[type=date] { max-width: 240px; margin-left: 28px; }
.kuendigen-wahl input[type=date][hidden] { display: none; }
.kuendigen-ergebnis { margin-top: 0; }
.kuendigen-haken { width: 52px; height: 52px; border-radius: 50%; background: var(--gruen); border: 2px solid var(--text); display: grid; place-items: center; font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.kuendigen-nachweis { margin-bottom: 14px; }
#kuendigen-karte .knopf-reihe, .kuendigen-karte .knopf-reihe { margin-top: 16px; }
@media (max-width: 600px) { .kuendigen-wahl input[type=date] { margin-left: 0; max-width: none; } }

/* ---- Einstellungen: links gruppierte Navigation, rechts Detailseite; am Handy Liste → Detail ---- */
.einst { margin-top: 32px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.einst-nav { position: sticky; top: 24px; }
.einst-gruppe { font-size: 13px; font-weight: 700; color: var(--muted); margin: 22px 12px 6px; letter-spacing: 0; }
.einst-gruppe:first-child { margin-top: 0; }
.einst-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.einst-punkt { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.einst-punkt:hover { background: var(--surface); }
.einst-punkt[aria-current="page"] { background: var(--surface); box-shadow: var(--schatten); }
.einst-punkt:focus-visible { outline: 3px solid var(--gruen); outline-offset: 1px; }
.einst-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grau); }
.einst-punkt[aria-current="page"] .einst-icon { background: var(--text); color: #fff; }
.einst-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.einst-name { flex: 1; min-width: 0; }
.einst-status { flex: none; max-width: 40%; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--muted); }
.einst-bald { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: 0; padding: 3px 9px; border-radius: 999px; background: var(--gruen-soft); color: var(--gruen-dunkel); white-space: nowrap; }
.content:has(.einst) { max-width: 1240px; }
.einst-detail { background: var(--surface); border-radius: 28px; padding: 30px 34px 34px; box-shadow: var(--schatten); min-width: 0; }
.einst-zurueck { display: none; }
.einst-kopf { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.einst-kopf .einst-icon { width: 44px; height: 44px; border-radius: 13px; }
.einst-kopf .einst-icon svg { width: 22px; height: 22px; }
.einst-kopf h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.035em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.einst-kopf .sub { margin-top: 4px; max-width: 620px; }
/* Handy: Titel neben dem Icon, Beschreibung darunter über die volle Breite */
@media (max-width: 600px) {
  .einst-kopf { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .einst-kopf > div { display: contents; }
  .einst-kopf .sub { grid-column: 1 / -1; margin-top: 12px; }
}
.einst-inhalt { padding-top: 6px; }
.einst-inhalt > .loading { margin-top: 18px; }
.einst-abschnitt { padding: 22px 0 0; margin-top: 22px; border-top: 1px solid var(--line); }
.einst-details { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.einst-details > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.einst-details > .einst-abschnitt { border-top: 0; margin-top: 12px; padding-top: 0; }
.einst-inhalt > .einst-abschnitt:first-child { border-top: 0; margin-top: 0; }
.einst-abschnitt h3, .einst-abschnitt > h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.einst-abschnitt > .sub:first-of-type { margin-top: 6px; }
.einst-plan { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.einst-plan-name { font-size: 40px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.einst-badge { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--gruen); }
.einst-badge.aus { background: var(--grau); color: var(--muted); }
.einst-zahl { margin-top: 14px; font-size: 15px; color: var(--muted); }
.einst-zahl b { color: var(--text); font-variant-numeric: tabular-nums; }
.einst-balken { margin-top: 10px; height: 8px; border-radius: 999px; background: var(--grau); overflow: hidden; max-width: 520px; }
.einst-balken span { display: block; height: 100%; border-radius: inherit; background: var(--text); }
.einst-limits { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.einst-limits > div { background: var(--bg); border-radius: 14px; padding: 10px 14px; }
.einst-limits dt { font-size: 13px; color: var(--muted); }
.einst-limits dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.einst-werte { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.einst-werte > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.einst-werte dt { color: var(--muted); }
.einst-werte dd { font-weight: 600; overflow-wrap: anywhere; }
.einst-abschnitt .einst-werte { margin-top: 0; }
.einst-aktion { margin-top: 18px; }
.einst-aktion .sub.small { margin-top: 8px; max-width: 560px; }
.einst-aktion .btn-link { margin-top: 0; }
.einst-liste { margin-top: 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
/* Einstellungen → MCP: verbundene KI-Assistenten */
.einst-verbindungen { list-style: none; margin: 10px 0 0; padding: 0; }
.einst-verbindungen li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.einst-verbindungen li:first-child { border-top: 0; padding-top: 4px; }
.einst-verbindungen li > div { min-width: 0; overflow-wrap: anywhere; }
.einst-verbindungen .btn-small { flex: none; }
.einst-form { margin-top: 12px; max-width: 420px; }
.einst-reiter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.einst-reiter .tabs { margin: 0; }
.einst-inhalt .plans { max-width: none; }
.einst-inhalt .plans h3 { font-size: 16px; }
.einst-inhalt .plan-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); row-gap: 22px; margin-top: 26px; }
.einst-inhalt .plan { padding: 22px; border-radius: 22px; box-shadow: none; border: 1px solid var(--line); }
.einst-inhalt .plan.current { border-color: var(--text); }
.einst-inhalt .plan h3 { font-size: 22px; }
.einst-inhalt .intervall-wahl { background: var(--bg); box-shadow: none; }
.einst-inhalt .profile { margin-top: 18px; }
.einst-inhalt .profile .einst-werte { margin-top: 0; flex: 1; }
.einst-inhalt .regel { margin-top: 12px; }
.einst-meta .row-end { justify-content: flex-start; }
.einst-meta > h2 { font-size: 16px; font-weight: 700; margin-top: 18px; }
@media (max-width: 900px) {
  .einst { grid-template-columns: minmax(0, 1fr); margin-top: 20px; gap: 0; }
  .einst-nav { position: static; }
  .einst.ohne-auswahl .einst-detail { display: none; }
  .einst:not(.ohne-auswahl) .einst-nav, .einst:not(.ohne-auswahl) ~ * { display: none; }
  /* Überschrift „Einstellungen“ nur für Screenreader behalten (jede Seite braucht ein h1) */
  .content:has(.einst:not(.ohne-auswahl)) .einst-seitenkopf { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .einst-zurueck { display: inline-block; }
  .einst-punkt { padding: 12px 12px 12px 8px; background: var(--surface); border-radius: 0; }
  .einst-nav li:first-child .einst-punkt { border-radius: 16px 16px 0 0; }
  .einst-nav li:last-child .einst-punkt { border-radius: 0 0 16px 16px; }
  .einst-nav li:only-child .einst-punkt { border-radius: 16px; }
  .einst-nav li + li .einst-punkt { border-top: 1px solid var(--line); }
  .einst-punkt[aria-current="page"] { box-shadow: none; }
  .einst-punkt[aria-current="page"] .einst-icon { background: var(--grau); color: var(--text); }
  .einst-punkt::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--line-strong); border-top: 2px solid var(--line-strong); transform: rotate(45deg); margin-left: 2px; }
  .einst-detail { padding: 20px 18px 26px; border-radius: 22px; }
  .einst-werte > div { grid-template-columns: 1fr; gap: 2px; }
  .einst-plan-name { font-size: 32px; }
}
.einst-inhalt #modus-karte > h2 { display: none; }
/* Status-Spalte im Funnel-Umzug: Pill nie umbrechen */
.umz-tabelle td:nth-child(3), .umz-tabelle th:nth-child(3) { white-space: nowrap; }

/* ---- Seitenleiste links (ab 821 px, nicht im Einrichtungs-Assistenten): 240 px breit, eingeklappt 72 px Icon-Leiste (html.leiste-zu),
   unter 1100 px immer schmal; html.leiste-ueber klappt sie dort vorübergehend über dem Inhalt auf (panel.html leisteSetzen) ---- */
@media (min-width: 821px) {
  html { --leiste-b: 240px; --leiste-platz: 240px; }
  html.leiste-zu { --leiste-b: 72px; --leiste-platz: 72px; }
  html.leiste-ueber { --leiste-b: 240px; --leiste-platz: 72px; }
  body.panel:not(.einrichtung-modus) { padding-left: var(--leiste-platz); }
  body.panel:not(.einrichtung-modus) .top { position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; width: var(--leiste-b); box-sizing: border-box; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 12px 12px; background: var(--surface); border-right: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.leiste-ueber body.panel:not(.einrichtung-modus) .top { box-shadow: var(--schatten-hoch); }
  body.panel:not(.einrichtung-modus) .leiste-kopf { flex: none; min-height: 40px; padding: 0 0 0 10px; }
  body.panel:not(.einrichtung-modus) .brand { font-size: 20px; }
  body.panel:not(.einrichtung-modus) .leiste-knopf { all: unset; box-sizing: border-box; cursor: pointer; margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: color .15s, background .15s; }
  body.panel:not(.einrichtung-modus) .leiste-knopf:hover { background: var(--bg); color: var(--text); }
  .leiste-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
  body.panel:not(.einrichtung-modus) .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; flex-direction: column; gap: 16px; margin: 22px -4px 0; padding: 0 4px 4px; }
  body.panel:not(.einrichtung-modus) .nav-titel { display: block; margin: 0 0 4px; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 18px; white-space: nowrap; }
  body.panel:not(.einrichtung-modus) .top-rechts { flex: none; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 2px; }
  body.panel:not(.einrichtung-modus) .kopf-icon { width: auto; height: 42px; border-radius: 12px; justify-content: flex-start; gap: 12px; padding: 0 12px; background: none; box-shadow: none; font-size: 14.5px; font-weight: 600; }
  body.panel:not(.einrichtung-modus) .werkzeuge { display: flex; flex-direction: column; }
  body.panel:not(.einrichtung-modus) .kopf-icon:hover { background: var(--bg); color: var(--text); }
  body.panel:not(.einrichtung-modus) .werkzeuge-knopf.active { background: var(--text); color: #fff; }
  body.panel:not(.einrichtung-modus) .ext-knopf { background: var(--gruen-soft); color: var(--text); }
  body.panel:not(.einrichtung-modus) .ext-knopf:hover { background: #ddf6c4; }
  body.panel:not(.einrichtung-modus) .ext-knopf.verbunden { background: none; color: var(--muted); }
  body.panel:not(.einrichtung-modus) .ext-knopf.verbunden:hover { background: var(--bg); color: var(--text); }
  body.panel:not(.einrichtung-modus) .knopf-text { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.panel:not(.einrichtung-modus) .upgrade-knopf { margin: 6px 0 2px; }
  body.panel:not(.einrichtung-modus) .konto { margin-top: 6px; }
  body.panel:not(.einrichtung-modus) .konto-knopf { display: flex; width: 100%; padding: 6px 8px; border-radius: 12px; }
  body.panel:not(.einrichtung-modus) .konto-knopf:hover, body.panel:not(.einrichtung-modus) .konto-knopf[aria-expanded="true"] { background: var(--bg); }
  body.panel:not(.einrichtung-modus) .avatar { width: 34px; height: 34px; font-size: 14px; }
  body.panel:not(.einrichtung-modus) .konto-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .konto-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .konto-text span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Menüs öffnen sich rechts neben der Seitenleiste, unten bündig */
  body.panel:not(.einrichtung-modus) .konto-menue { position: absolute; left: calc(100% + 16px); right: auto; top: auto; bottom: 0; width: 280px; }
  /* Schlanke Zeile über dem Inhalt mit den Credits rechts, auf jeder Seite an derselben Stelle */
  body.panel:not(.einrichtung-modus) .oben-zeile { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; padding: 14px 32px 0; }
  body.panel:not(.einrichtung-modus) .krumen { padding-top: 0; }
  body.panel:not(.einrichtung-modus) .content { padding-top: 12px; }

  /* Schmal: nur Icons, Gruppen durch feine Linien getrennt, Zähler als kleine Marke am Icon */
  html.leiste-zu body.panel:not(.einrichtung-modus) .top { padding: 14px 12px 12px; }
  html.leiste-zu body.panel:not(.einrichtung-modus) :is(.brand-text, .nav-titel, .nav-text, .knopf-text, .konto-text) { display: none; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .leiste-kopf { flex-direction: column; gap: 10px; padding: 0; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .brand { padding: 6px 0 0; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .leiste-knopf { margin: 0; }
  html.leiste-zu .leiste-knopf svg { transform: scaleX(-1); }
  html.leiste-zu body.panel:not(.einrichtung-modus) .nav { gap: 10px; margin-top: 14px; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .nav-gruppe + .nav-gruppe { border-top: 1px solid var(--line); padding-top: 10px; }
  html.leiste-zu body.panel:not(.einrichtung-modus) :is(.nav a, .kopf-icon) { justify-content: center; padding: 0; height: 44px; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .nav a .nav-count { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--surface); }
  /* Werkzeuge in der Icon-Leiste: Pfeil weg, Unterpunkte als kleine Icon-Liste (Tooltip über data-tipp) */
  html.leiste-zu body.panel:not(.einrichtung-modus) .wz-pfeil { display: none; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .wz-unterliste { margin: 0; padding: 0 4px; border: 0; border-radius: 14px; background: var(--bg); }
  html.leiste-zu body.panel:not(.einrichtung-modus) .wz-unterliste li:first-child { margin-top: 4px; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .wz-unterliste li:last-child { margin-bottom: 4px; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .wz-punkt { justify-content: center; padding: 0; height: 38px; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .wz-punkt:hover { background: var(--surface); }
  html.leiste-zu body.panel:not(.einrichtung-modus) .wz-punkt.active:hover { background: var(--text); }
  html.leiste-zu body.panel:not(.einrichtung-modus) .konto-info { display: none; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .konto-liste { margin: 0; padding: 4px; background: none; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .konto-liste .wz-punkt:hover { background: rgba(255, 255, 255, .8); }
  html.leiste-zu body.panel:not(.einrichtung-modus) .wz-punkt .wz-ok { position: absolute; top: 2px; right: 4px; font-size: 10px; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .upgrade-knopf { align-self: center; width: 40px; padding: 0; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .upgrade-knopf svg { display: block; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .upgrade-knopf span { display: none; }
  html.leiste-zu body.panel:not(.einrichtung-modus) .konto-knopf { justify-content: center; padding: 4px 0; }
}
/* Niedrige Laptop-Fenster: Seitenleiste enger, und wenn sie trotzdem scrollt, zeigt ein Schatten unten, dass noch Punkte folgen
   (die Abdeckung wandert mit dem Inhalt und verdeckt den Schatten am Ende) */
@media (min-width: 821px) {
  body.panel:not(.einrichtung-modus) .nav { background: linear-gradient(rgba(255, 255, 255, 0), var(--surface) 70%) center bottom / 100% 28px no-repeat local, linear-gradient(to top, rgba(14, 14, 14, .09), rgba(14, 14, 14, 0)) center bottom / 100% 14px no-repeat scroll; }
}
@media (min-width: 821px) and (max-height: 860px) {
  body.panel:not(.einrichtung-modus) .nav { gap: 10px; margin-top: 16px; }
  body.panel:not(.einrichtung-modus) .nav a { padding-top: 7px; padding-bottom: 7px; }
  body.panel:not(.einrichtung-modus) .kopf-icon { height: 38px; }
}
@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  body.panel:not(.einrichtung-modus) { transition: padding-left .18s ease; }
  body.panel:not(.einrichtung-modus) .top { transition: width .18s ease; }
}

/* Schritt 1 „Angaben ansehen & bearbeiten“: fehlende Pflichtangaben zuerst, darunter die Auswertung der freiwilligen Angaben */
#angaben-form .ang-gruppe { display: flex; align-items: center; gap: 8px; }
#angaben-form .ang-gruppe .pill { font-size: 12px; }
.text-fehlt .banner-knoepfe, .auswertung .banner-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.auswertung { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.auswertung h3 { font-size: 16px; font-weight: 700; }
.ausw-balken { display: grid; gap: 10px; margin-top: 14px; max-width: 720px; }
.ausw-zeile { display: grid; grid-template-columns: 170px minmax(0, 1fr) 84px; align-items: center; gap: 14px; font-size: 14px; }
.ausw-name { font-weight: 600; }
.ausw-spur { position: relative; height: 12px; border-radius: 999px; background: var(--grau); overflow: hidden; }
.ausw-fuell { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #d9ecc4; min-width: 0; transition: width .4s ease; }
.ausw-fuell.gut { background: #c9ef9d; }
.ausw-fuell.voll { background: var(--gruen); }
.ausw-wert { font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; white-space: nowrap; }
.ausw-tipps { margin-top: 18px; border-top: 1px solid var(--line); max-width: 720px; }
.ausw-tipp { border-bottom: 1px solid var(--line); }
.ausw-tipp summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 4px; font-size: 14px; font-weight: 600; }
.ausw-tipp summary::-webkit-details-marker { display: none; }
.ausw-tipp summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; flex: none; }
.ausw-tipp[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ausw-tipp summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }
.ausw-tipp-name { flex: 1; }
.ausw-tipp-status { font-size: 12px; font-weight: 700; color: #8a5a00; background: #fff4d6; border-radius: 999px; padding: 3px 10px; }
.ausw-tipp.komplett .ausw-tipp-status { color: var(--gruen-dunkel); background: var(--gruen-soft); }
.ausw-tipp-inhalt { padding: 0 4px 14px; display: grid; gap: 8px; }
.ausw-tipp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.ausw-tipp li { position: relative; padding-left: 20px; overflow-wrap: anywhere; }
.auswertung-hat li::before { content: "✓"; position: absolute; left: 2px; color: var(--gruen-dunkel); font-weight: 800; }
.auswertung-fehlt li { color: #6b4a00; }
.auswertung-fehlt li::before { content: "+"; position: absolute; left: 3px; color: #b57a00; font-weight: 800; }
.auswertung-ergaenzen { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .ausw-zeile { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; } .ausw-spur { grid-column: 1 / -1; grid-row: 2; } }
/* „Weiter zu Schritt …“: erscheint oben im erledigten Schritt, der nächste öffnet sich erst auf Klick */
.stufe-weiter { margin: 4px 28px 8px 108px; padding: 12px 12px 12px 18px; border-radius: 18px; background: var(--gruen-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stufe:not(.offen) .stufe-weiter, .stufe-weiter[hidden] { display: none; }
.stufe-weiter-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gruen-dunkel); }
.stufe-weiter-text svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stufe-weiter .btn-gross { gap: 8px; }
@media (max-width: 900px) { .stufe-weiter { margin: 4px 16px 8px; } .stufe-weiter .btn-gross { width: 100%; justify-content: center; white-space: normal; text-align: center; height: auto; min-height: 56px; padding: 12px 18px; font-size: 16px; line-height: 1.3; } }
/* Geöffneter Schritt scrollt mit dem Kopf nach oben – nicht unter die feste Kopfleiste */
.stufe { scroll-margin-top: 90px; }
#angaben-form .wt-bar .weiter-knopf { margin-left: auto; background: var(--gruen); color: var(--text); gap: 6px; }
/* Paket- und Credit-Hinweise in den Zeilen von Schritt 3: volle Breite unter dem Text; am Handy untereinander statt nebeneinander */
.kk-karte .kk-hinweis .upgrade-hinweis, .kk-karte .kk-hinweis .credits-fehlen { margin: 0; max-width: none; }
@media (max-width: 900px) {
  .kk-karte .upgrade-hinweis.klein, .kk-karte .credits-fehlen { grid-template-columns: auto 1fr; gap: 10px 12px; margin: 0; padding: 14px; }
  .kk-karte .upgrade-hinweis .uh-text { grid-column: 2; min-width: 0; }
  .kk-karte .upgrade-hinweis .uh-symbol { align-self: start; }
  .kk-karte .credits-fehlen { grid-template-columns: 1fr; }
  .kk-karte .credits-fehlen > div { min-width: 0; }
  .kk-karte .upgrade-hinweis .btn-small, .kk-karte .credits-fehlen .btn-small { grid-column: 1 / -1; justify-self: stretch; }
  .kk-karte .upgrade-hinweis { position: relative; }
  .kk-karte .upgrade-hinweis .uh-zu { position: absolute; top: 8px; right: 8px; }
  .kk-karte .upgrade-hinweis:has(.uh-zu) .uh-text { padding-right: 22px; }
}
.umzug-pruefen { margin: 0 0 18px; }

/* ---- Versionen von Anzeigenbildern und -texten: ‹ V2 von 3 › ---- */
.vs-leiste { display: inline-flex; align-items: center; gap: 2px; height: 30px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 650; }
.vs-leiste button { all: unset; box-sizing: border-box; cursor: pointer; width: 28px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; border-radius: 10px; }
.vs-leiste button:hover:not(:disabled) { background: var(--bg); }
.vs-leiste button:disabled { color: var(--line-strong); cursor: default; }
.vs-leiste button:focus-visible { outline: 3px solid var(--gruen); outline-offset: -2px; }
.vs-nr { padding: 0 4px; white-space: nowrap; }
.vs-nr .muted { font-weight: 500; }
.vs-wunsch { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.vs-wunsch span { font-weight: 650; color: var(--text); }
.vs-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 2px 0 6px; }
.cr figcaption .vs-leiste { align-self: flex-start; }
.cr.alt .cr-bild { box-shadow: inset 0 0 0 3px var(--line-strong); }
/* Schritt 3: kleine Leiste unten auf dem Vorschaubild */
.kk-bild-rahmen { position: relative; display: block; }
.vs-leiste.klein { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); height: 22px; border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); font-size: 11px; }
.vs-leiste.klein button { width: 20px; height: 22px; font-size: 14px; border-radius: 8px; }
.vs-leiste.klein .vs-nr { padding: 0 1px; }
.kk-bild-rahmen:has(.vs-leiste) .kk-bild-basis { bottom: auto; top: 6px; }

/* Bewerber-Umzug: Herkunft „importiert aus …“ am Bewerber (Panel und Kundenportal) */
.bw-herkunft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.pill.bw-import { background: #eef1ff; color: #3843a8; }

/* ---- Bewerber-Detailfenster (Panel und Kundenportal, Bausteine in app/bewerber-akte.js) ----
   Der Dialog scrollt selbst; der Kopf (Name, Meta, Kontakt-Knopfreihe) bleibt oben stehen. Präfix bwd-. */
.bwd-modal { padding: 0; max-width: 720px; overflow-x: hidden; overscroll-behavior: contain; }
.bwd-modal h3 { margin: 0; }
.bwd-kopf { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 22px 28px 16px; border-bottom: 1px solid var(--line); }
.bwd-titel { display: flex; align-items: center; gap: 14px; }
.bwd-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--gruen); color: var(--text); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.bwd-avatar.klein { width: 26px; height: 26px; font-size: 10.5px; }
.bwd-name { flex: 1; min-width: 0; }
.bwd-name h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; overflow-wrap: anywhere; }
.bwd-meta { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.bwd-meta .pill { vertical-align: 1px; }
.bwd-kopf .bw-herkunft { margin-top: 10px; }
/* Desktop: eine Zeile, lange E-Mail wird mit Auslassungspunkten gekürzt (voller Wert im title); umgebrochen wird nur am Handy */
.bwd-aktionen { display: flex; gap: 8px; margin-top: 14px; }
.bwd-aktionen > :is(.bwd-wa, .bwd-sms) { flex: none; }
/* WhatsApp und SMS zusammen: nur als Symbol neben Nummer und E-Mail (Tooltip über data-tipp), sonst wird die E-Mail abgeschnitten
   bzw. am Handy stünde SMS allein in einer dritten Zeile; der Text bleibt für Screenreader */
.bwd-aktionen:has(.bwd-sms) :is(.bwd-wa, .bwd-sms) { width: 42px; padding: 0; justify-content: center; flex: none; }
.bwd-aktionen:has(.bwd-sms) :is(.bwd-wa, .bwd-sms) .bwd-wert { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bwd-aktionen:empty { display: none; }
.bwd-knopf { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; min-width: 0; box-sizing: border-box; border-radius: 14px; background: var(--surface); color: var(--text);
  font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .15s; }
.bwd-knopf:hover { background: var(--bg); }
.bwd-knopf svg, .bwd-kopieren svg, .bwd-datei svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bwd-wert { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bwd-kontakt { display: inline-flex; min-width: 0; box-sizing: border-box; height: 42px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.bwd-kontakt .bwd-knopf { flex: 1; height: 100%; box-shadow: none; background: transparent; border-radius: 12.5px 0 0 12.5px; }
.bwd-kontakt .bwd-knopf:hover { background: var(--bg); }
.bwd-kopieren { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 40px; display: inline-grid; place-items: center; color: var(--muted); border-left: 1.5px solid var(--line); border-radius: 0 12.5px 12.5px 0; }
.bwd-kopieren:hover { background: var(--bg); color: var(--text); }
.bwd-kopieren:focus-visible, .bwd-knopf:focus-visible, .bwd-chip:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.bwd-kopieren.kopiert { color: var(--gruen-dunkel); }
.bwd-tel { flex: none; }
.bwd-mail { flex: 1 1 auto; }
.bwd-wa { flex: none; }
.bwd-wa svg { color: #1f9d55; }
.bwd-inhalt { padding: 4px 28px 24px; }
.bwd-abschnitt { padding-top: 22px; }
.bwd-abschnitt[hidden] { display: none; }
.bwd-abschnitt > h3 { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Status als Chips */
.bwd-status { display: flex; flex-wrap: wrap; gap: 8px; }
.bwd-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--bg);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.bwd-chip:hover { background: #ebe9e3; }
.bwd-chip.aktiv { background: var(--text); color: #fff; }
.bwd-punkt { width: 8px; height: 8px; border-radius: 50%; background: #9a9a95; flex: none; }
.st-neu .bwd-punkt { background: #3b82f6; }
.st-kontaktiert .bwd-punkt { background: #8b5cf6; }
.st-nicht_erreicht .bwd-punkt { background: #f59e0b; }
.st-vorstellungsgespraech .bwd-punkt { background: #0ea5e9; }
.st-probearbeiten .bwd-punkt { background: #14b8a6; }
.st-eingestellt .bwd-punkt { background: #22a04b; }
.st-abgelehnt .bwd-punkt { background: #e5484d; }
/* Antworten: Frage klein, Antwort darunter */
.bwd-antworten { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: var(--bg); }
.bwd-antworten li { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bwd-antworten li:last-child { border-bottom: 0; }
.bwd-frage { font-size: 13px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.bwd-antwort { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.bwd-antwort .pill { margin-left: 6px; vertical-align: 1px; }
.bwd-abschnitt .bw-fragen { margin: 0 0 10px; }
/* Notizen: Eingabe als Karte, Verlauf als Chat-Karten (Agentur grün rechts, Kunde grau links) */
.bwd-notiz-neu { padding: 10px 12px 12px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
.bwd-notiz-neu:focus-within { box-shadow: inset 0 0 0 2px var(--text); }
.bwd-notiz-neu .bw-notiz-eingabe { margin: 0; min-height: 52px; border: 0; padding: 4px; background: transparent; box-shadow: none; resize: vertical; outline: none; }
.bwd-notiz-neu .bw-notiz-aktion { margin-top: 8px; }
.bwd-notiz-neu .bw-notiz-aktion button { height: 40px; }
.bwd-modal .bw-notiz-log { gap: 10px; }
.bwd-modal .bw-notiz { padding: 12px 14px; border-radius: 18px; }
.bwd-modal .bw-notiz.agentur { background: var(--gruen-soft); margin-left: 32px; border-bottom-right-radius: 6px; }
.bwd-modal .bw-notiz.kunde { background: var(--bg); margin-right: 32px; border-bottom-left-radius: 6px; }
.bwd-modal .bw-notiz-kopf { flex-wrap: nowrap; align-items: center; gap: 8px; }
.bwd-modal .bw-notiz-kopf strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.bwd-modal .bw-notiz-kopf .muted { flex: none; }
.bwd-modal .bw-notiz-text { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.bwd-modal .bw-notiz .bw-notiz-eingabe { background: var(--surface); }
/* Lebenslauf */
.bwd-modal .bw-ll { margin-top: 0; flex-wrap: wrap; }
.bwd-datei { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--surface); color: var(--text); }
.bwd-modal .bw-ll-name { flex: 1 1 calc(100% - 60px); min-width: 0; }
.bwd-modal .bw-ll .danger-btn { margin-left: auto; }
.bwd-modal .bw-ll-add { margin-top: 0; min-height: 72px; }
.bwd-modal .bw-mail { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bwd-fuss { display: flex; justify-content: flex-end; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.bwd-fuss .danger-btn { height: 40px; padding: 0 16px; margin: 0; font-size: 14px; }
@media (max-width: 560px) {
  .bwd-modal { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .bwd-kopf { padding: 14px 16px 12px; }
  .bwd-avatar { width: 38px; height: 38px; font-size: 14px; }
  .bwd-name h2 { font-size: 20px; }
  .bwd-meta { font-size: 13px; }
  .bwd-aktionen { flex-wrap: wrap; margin-top: 12px; }
  .bwd-tel { flex: 1 1 auto; min-width: 0; }
  .bwd-mail { order: 3; flex: 1 1 100%; }
  .bwd-inhalt { padding: 0 16px 24px; }
  .bwd-abschnitt { padding-top: 18px; }
  .bwd-status { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .bwd-status::-webkit-scrollbar { display: none; }
  .bwd-modal .bw-notiz.agentur { margin-left: 16px; }
  .bwd-modal .bw-notiz.kunde { margin-right: 16px; }
}
/* Einstellungen → Absender für Mails: eigener Mailserver (SMTP, app/absender.js) */
.smtp-anbieter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.smtp-form { max-width: 460px; }
.smtp-form label { margin-top: 14px; }
.smtp-form input, .smtp-form select { width: 100%; box-sizing: border-box; }
.smtp-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.hinweis.smtp-fehler { background: #fdecec; color: #7a1d1d; }
.smtp-hilfe { margin-top: 22px; max-width: 640px; }
.smtp-hilfe h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.smtp-hilfe details { border-top: 1px solid var(--line); padding: 10px 0; }
.smtp-hilfe summary { cursor: pointer; font-weight: 600; }
.smtp-hilfe ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.smtp-hilfe code { overflow-wrap: anywhere; }
.banner-knoepfe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* SMS an Bewerber (app/sms.js): Absender je Kunde, SMS-Regeln, „SMS senden“ im Bewerber-Fenster */
.hinweis.sms-bald { background: #fff4d6; color: #6b4e00; font-weight: 500; }
.sms-kunden { display: flex; flex-direction: column; margin-top: 10px; }
.sms-kunde { margin: 0; flex-direction: row; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sms-kunde:first-child { border-top: 0; }
.sms-kunde label { display: flex; flex-direction: row; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 0; margin: 0; }
.sms-kunde .sms-firma { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.sms-kunde input { width: 150px; flex: none; }
.sms-kunde [data-sms-kunde-msg] { flex-basis: 100%; }
.sms-kunde [data-sms-kunde-msg]:empty { display: none; }
.sms-blase { margin-top: 10px; background: var(--gruen-soft); color: var(--text); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 420px; }
.sms-regel-form label { margin-top: 12px; }
.sms-regel-form select, .sms-regel-form textarea { width: 100%; box-sizing: border-box; }
.sms-zaehler { margin-top: 6px; }
.sms-senden textarea { width: 100%; box-sizing: border-box; margin-top: 8px; }
.sms-vorschau { margin-top: 10px; }
.sms-sperre { display: flex; flex-direction: row; align-items: flex-start; font-weight: 500; gap: 8px; margin-top: 12px; font-size: 14px; }
.sms-sperre input { margin-top: 3px; flex: none; }
button.bwd-knopf.bwd-sms { font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border: 0; margin: 0; width: auto; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
button.bwd-knopf.bwd-sms:hover { background: var(--bg); }
.sms-kunde button { margin: 0; flex: none; }
/* Handy: Firmenname oben, Eingabe und „Speichern“ in einer Zeile darunter */
@media (max-width: 600px) {
  .sms-kunde { align-items: flex-end; }
  .sms-kunde label { flex: 1 1 0; flex-wrap: wrap; gap: 6px; }
  .sms-kunde .sms-firma { flex-basis: 100%; }
  .sms-kunde input { flex: 1 1 0; width: auto; min-width: 0; }
}
.sms-regel-form, .sms-senden { margin-top: 0; gap: 0; }
.smtp-form { gap: 0; }

/* Tablet (721–900 px): Kennzahlen auf der Startseite nebeneinander statt drei volle Breiten untereinander */
@media (min-width: 721px) and (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 22px; border-radius: 24px; }
  .stat b { font-size: 17px; }
  .stat .pfeil { top: 16px; right: 16px; width: 36px; height: 36px; }
}
/* Bewerber-Akte: Datenschutz (Einwilligung SMS/WhatsApp, automatische Löschung) */
.bw-ds { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bw-ds-titel { margin: 10px 0 0; font-size: 14px; font-weight: 650; }
.bw-ds .sms-sperre { margin-top: 4px; }
.bw-ds-aktion { display: flex; }
.bw-ds pre { white-space: pre-wrap; font: inherit; font-size: 13px; }
/* Einstellungen → Impressum & Datenschutz: Textfelder normal statt fett (erben sonst vom Label) */
.recht-form textarea { font-weight: 400; font-size: 15px; line-height: 1.5; }
.recht-form details pre { white-space: pre-wrap; font: inherit; font-size: 13px; font-weight: 400; }

/* Tastatur-Fokus überall sichtbar: viele Knöpfe setzen „all: unset“ und verlieren damit den Fokusrahmen des Browsers.
   Steht am Ende und ist spezifischer als diese Regeln; Eingabefelder behalten ihren eigenen Rahmen (box-shadow). */
body.panel :is(a, button, summary, [role="tab"], [tabindex]:not(input, textarea, select)):focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
