/* Schrift Outfit lokal (SIL Open Font License) – kein Google-Fonts-Abruf */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/outfit-latin-700-normal.woff2') format('woff2'); }
/* Best ADRESS Gründer-Radar – CI: Navy #07192a, Grün #9ec54e, Blau #0f3d6e, Outfit */
:root {
  --navy: #07192a;
  --blau: #0f3d6e;
  --gruen: #9ec54e;
  --gruen-dunkel: #7a9a1e;
  --grund: #f3f6fa;
  --karte: #ffffff;
  --linie: #dde5ee;
  --text: #13212f;
  --text-leise: #5b6b7c;
  --rot: #c0392b;
  --gelb: #f0b429;
  --radius: 12px;
  --schatten: 0 1px 2px rgba(7, 25, 42, .06), 0 4px 16px rgba(7, 25, 42, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--grund);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--blau); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; color: var(--navy); font-weight: 700; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; color: var(--navy); font-weight: 600; }
h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--navy); font-weight: 600; }
.leise { color: var(--text-leise); }
.klein { font-size: .85rem; }

/* Kopfleiste */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 1000; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; gap: 24px; }
.marke { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; }
.marke-logo { display: block; height: 58px; width: auto; } /* Originalgröße 120 × 58 px = scharf */
.marke-produkt { color: var(--gruen); font-weight: 600; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .25); line-height: 1.3; }
.hauptnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hauptnav a { color: #c9d6e3; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.hauptnav a:hover, .hauptnav a.aktiv { color: #fff; background: rgba(255, 255, 255, .08); }
.hauptnav .credit-badge { background: var(--gruen); color: var(--navy); font-weight: 700; margin-left: 8px; }
.hauptnav .credit-badge:hover { background: #b2d66a; color: var(--navy); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

.inhalt { max-width: 1280px; margin: 0 auto; padding: 24px 20px 40px; min-height: calc(100vh - 160px); }
.fuss { max-width: 1280px; margin: 0 auto; padding: 20px; color: var(--text-leise); font-size: .82rem; display: grid; gap: 4px; }
.fuss a { color: var(--text-leise); }

/* Bausteine */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 20px; }
.raster { display: grid; gap: 16px; }
.raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kopfzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.zeile { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primaer { background: var(--gruen); color: var(--navy); }
.btn-primaer:hover { background: #b2d66a; }
.btn-dunkel { background: var(--navy); color: #fff; }
.btn-dunkel:hover { background: var(--blau); }
.btn-rand { background: #fff; color: var(--navy); border-color: var(--linie); }
.btn-rand:hover { border-color: var(--blau); }
.btn-klein { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Formulare */
label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(158, 197, 78, .5); border-color: var(--gruen-dunkel); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { margin-top: 4px; }
.feldfehler { color: var(--rot); font-size: .85rem; margin-top: 4px; }
.formular-schmal { max-width: 460px; margin: 30px auto; }
.hinweis { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; }
.hinweis-ok { background: #f1f8e6; border-color: #cfe5a6; color: #3f5c0b; }
.hinweis-fehler { background: #fdecea; border-color: #f5c2bd; color: #8a2419; }
.hinweis-info { background: #eaf2fb; border-color: #c4d8ee; color: #0f3d6e; }

/* Kennzahlen */
.kpi { padding: 18px 20px; }
.kpi-wert { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.kpi-label { color: var(--text-leise); font-size: .9rem; margin-top: 4px; }
.kpi-akzent { border-top: 4px solid var(--gruen); }

/* Tabelle */
.tabelle-wrap { overflow-x: auto; }
table.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th { text-align: left; font-weight: 600; color: var(--text-leise); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px;
  padding: 10px 10px; border-bottom: 1px solid var(--linie); white-space: nowrap; background: #fafcfe; position: sticky; top: 0; }
.tabelle td { padding: 10px; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.tabelle tr:hover td { background: #f8fbff; }
.maskiert { filter: blur(4px); user-select: none; }
.pille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef3f8; color: var(--blau); white-space: nowrap; }
.pille-gruen { background: #edf6dd; color: #4b6b10; }
.pille-grau { background: #f0f2f5; color: #5b6b7c; }

/* Radar-Dashboard */
.filterleiste { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filterleiste select, .filterleiste input[type=search] { width: auto; min-width: 160px; }
.filterleiste .check { margin: 0; align-items: center; white-space: nowrap; }
.filterleiste .check input { margin: 0; width: auto; min-width: 0; }
.segment-tabs { display: inline-flex; background: #e7edf4; border-radius: 10px; padding: 3px; }
.segment-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--text-leise); cursor: pointer; }
.segment-tabs button[disabled] { opacity: .55; cursor: not-allowed; }
.segment-tabs button.aktiv { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
#karte { height: 420px; border-radius: 10px; }
.karte-klein #karte, #radarKarte { height: 360px; border-radius: 10px; }
.diagramm { position: relative; height: 260px; }
.lade { display: flex; align-items: center; gap: 10px; color: var(--text-leise); padding: 30px; justify-content: center; }
.lade::before { content: ""; width: 18px; height: 18px; border: 3px solid #cfd9e4; border-top-color: var(--gruen-dunkel); border-radius: 50%; animation: dreh 1s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.teaser { background: linear-gradient(135deg, var(--navy), var(--blau)); color: #fff; border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.teaser strong { color: var(--gruen); }

/* Detail-Dialog */
dialog.detail { border: 0; border-radius: 14px; padding: 0; width: min(640px, 94vw); box-shadow: 0 20px 60px rgba(7, 25, 42, .35); }
dialog.detail::backdrop { background: rgba(7, 25, 42, .45); }
.detail-kopf { background: var(--navy); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-kopf h2 { color: #fff; margin: 0; }
.detail-inhalt { padding: 20px 22px; }
.detail-inhalt dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; margin: 0; }
.detail-inhalt dt { color: var(--text-leise); }
.detail-inhalt dd { margin: 0; }
.schliessen { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }

/* Preise */
.preis-karte { display: flex; flex-direction: column; gap: 8px; }
.preis-karte .preis { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.preis-karte.empfohlen { border: 2px solid var(--gruen); }

/* Landing */
.held { background: linear-gradient(135deg, var(--navy) 0%, var(--blau) 100%); color: #fff; border-radius: 18px; padding: 48px 40px; margin-bottom: 24px; }
.held h1 { color: #fff; font-size: 2.2rem; max-width: 760px; }
.held p { color: #d7e2ee; font-size: 1.1rem; max-width: 680px; }
.held .akzent { color: var(--gruen); }

/* Briefe */
.liste-eng { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.logo-vorschau { border: 1px dashed var(--linie); border-radius: 10px; padding: 14px; background: #fff; display: flex; justify-content: flex-end; }
.logo-vorschau img { max-width: 100%; max-height: 90px; display: block; }
.plz-ort { grid-template-columns: 110px 1fr; gap: 12px; }
.tab-offen { font-size: .7rem; font-weight: 600; color: #8a5a00; background: #fff3d6; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
/* Absender links, Brieftexte rechts – fest platziert, damit nichts anderes im Raster die Reihenfolge verschiebt */
@media (min-width: 961px) {
  .vorlage-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vorlage-raster > .karte-absender { grid-column: 1; grid-row: 1; }
  .vorlage-raster > .karte-texte { grid-column: 2; grid-row: 1; }
}
.speicherleiste { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding: 12px 16px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
code { background: #eef3f8; border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.brief-box { border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; margin-top: 16px; background: #fafcfe; }
.brief-box h3 { margin-bottom: 8px; }
.brief-box input[type=text] { margin-bottom: 4px; }
.pille-rot { background: #fdecea; color: #8a2419; }
.leads-tabelle td.auswahl, .leads-tabelle th.auswahl { width: 28px; padding-right: 0; }
.linkknopf { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--blau); text-decoration: underline; cursor: pointer; font: inherit; }
.linkknopf.klein { font-size: .8rem; }
.sammelleiste { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: #eef3f8; }

/* Öffentliche Startseite (lp-) */
.lp-held { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.lp-held::after { content: ""; position: absolute; right: -140px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: rgba(158, 197, 78, .08); pointer-events: none; }
.lp-held-text, .lp-mock { position: relative; z-index: 1; }
.lp-label { display: flex; align-items: center; gap: 10px; font-size: .74rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gruen) !important; margin: 0 0 14px; }
.lp-neu { background: var(--gruen); color: var(--navy); border-radius: 999px; padding: 2px 9px; font-size: .66rem; letter-spacing: .06em; }
.lp-fein { font-size: .85rem !important; color: rgba(255, 255, 255, .6) !important; margin: 14px 0 0; }
.lp-mock { background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; color: var(--text); }
.lp-mock-top { background: var(--navy); padding: 12px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lp-mock-top span { font-size: .8rem; font-weight: 700; color: var(--gruen); }
.lp-mock-top em { font-style: normal; font-size: .72rem; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.lp-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 6px; }
.lp-mock-kpis div { background: #f4f7fa; border-radius: 10px; padding: 9px 10px; }
.lp-mock-kpis b { display: block; font-size: 1.3rem; color: var(--navy); line-height: 1.1; }
.lp-mock-kpis small { font-size: .7rem; color: var(--text-leise); }
.lp-mock-balken { display: flex; align-items: flex-end; gap: 8px; height: 54px; margin: 8px 16px 4px; padding-bottom: 4px; border-bottom: 1px solid #eef2f6; }
.lp-mock-balken i { flex: 1; background: var(--gruen); border-radius: 4px 4px 0 0; }
.lp-mock-zeile { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; padding: 9px 16px; border-bottom: 1px solid #eef2f6; font-size: .8rem; }
.lp-mock-zeile span { color: var(--text-leise); font-size: .72rem; }
.lp-mock-zeile b { color: var(--navy); line-height: 1.3; }
.lp-mock-zeile b small { display: block; font-weight: 400; color: var(--text-leise); font-size: .7rem; }
.lp-mock-zeile em { font-style: normal; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eaf2fb; color: var(--blau); white-space: nowrap; }
.lp-mock-zeile em.ok { background: #edf6dd; color: #4b6b10; }
.lp-mock-hinweis { font-size: .68rem !important; color: #94a3b8 !important; margin: 8px 16px 12px !important; }
.lp-fakten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 48px; }
.lp-fakten div { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.lp-fakten b { font-size: 1.5rem; color: var(--navy); white-space: nowrap; }
.lp-fakten span { color: var(--text-leise); font-size: .9rem; line-height: 1.4; }
.lp-abschnitt { margin: 0 0 56px; scroll-margin-top: 90px; }
.lp-ueber { text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-dunkel); margin: 0 0 8px; }
.lp-h2 { text-align: center; font-size: 1.75rem; margin: 0 auto 10px; max-width: 760px; }
.lp-unter { text-align: center; max-width: 680px; margin: 0 auto 26px; }
.lp-schritte { margin-top: 24px; }
.lp-schritte .karte { position: relative; padding-top: 26px; }
.lp-nr { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--gruen); color: var(--navy); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.lp-zwei { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; margin-top: 24px; }
.lp-funktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-funktion { display: flex; gap: 12px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; }
.lp-funktion > span { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #f0f8e0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.lp-funktion h3 { margin: 0 0 4px; font-size: .98rem; }
.lp-funktion p { margin: 0; font-size: .88rem; line-height: 1.5; }
.lp-brief { background: #fff; border-radius: 6px; box-shadow: 0 18px 48px rgba(7, 25, 42, .18); padding: 26px 28px 30px; font-size: .74rem; color: #333; position: sticky; top: 90px; transform: rotate(1deg); }
.lp-brief p { margin: 0 0 8px; line-height: 1.5; }
.lp-brief-logo { margin-left: auto; width: max-content; border: 1.5px dashed #c9d3de; border-radius: 6px; padding: 8px 18px; color: #94a3b8; font-weight: 600; margin-bottom: 26px; }
.lp-brief-absender { font-size: .6rem; color: #777; border-bottom: 1px solid #bbb; display: inline-block; margin-bottom: 6px; }
.lp-brief-an { line-height: 1.45; margin-bottom: 22px; }
.lp-brief-betreff { font-weight: 700; color: #111; margin-bottom: 12px; }
.lp-brief-zeilen i { display: block; height: 6px; background: #eef1f4; border-radius: 3px; margin: 0 0 7px; }
.lp-brief-stempel { margin-top: 16px; display: inline-block; font-weight: 700; color: #4b6b10; background: #edf6dd; border-radius: 999px; padding: 5px 12px; font-size: .72rem; }
.lp-branchen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-branchen div { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; }
.lp-branchen span { grid-row: span 2; font-size: 1.4rem; }
.lp-branchen b { color: var(--navy); }
.lp-branchen small { color: var(--text-leise); font-size: .82rem; }
.lp-kosten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin: 0 auto 22px; }
.lp-kosten div { background: #f0f8e0; border: 1px solid #cfe5a6; border-radius: 12px; padding: 12px 16px; }
.lp-kosten b { display: block; color: var(--navy); font-size: 1.15rem; }
.lp-kosten span { font-size: .85rem; color: #3f5c0b; }
.lp-preise { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-paket { display: flex; justify-content: space-between; border-bottom: 1px solid #eef2f6; padding: 6px 0; }
.lp-paket b { color: var(--navy); }
.lp-faq { max-width: 820px; margin: 22px auto 0; display: grid; gap: 10px; }
.lp-faq details { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 14px 18px; }
.lp-faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--gruen-dunkel); font-weight: 700; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 10px 0 0; color: var(--text-leise); line-height: 1.6; }
.lp-schluss { text-align: center; }
.lp-schluss h2 { color: #fff; font-size: 1.8rem; margin: 0 auto 8px; }
.lp-schluss p { margin: 0 auto; }
@media (max-width: 960px) {
  .lp-held { grid-template-columns: 1fr; }
  .lp-zwei { grid-template-columns: 1fr; }
  .lp-brief { position: static; transform: none; max-width: 460px; margin: 0 auto; }
  .lp-preise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-fakten, .lp-kosten { grid-template-columns: 1fr; }
  .lp-branchen { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lp-funktionen, .lp-branchen, .lp-preise { grid-template-columns: 1fr; }
  .lp-h2 { font-size: 1.4rem; }
  .lp-mock-zeile { grid-template-columns: 38px 1fr; }
  .lp-mock-zeile em { grid-column: 2; justify-self: start; }
}

/* Menü klappt ein, sobald die Einträge nicht mehr in eine Zeile passen */
@media (max-width: 1220px) {
  .nav-toggle { display: block; }
  .hauptnav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  body.nav-offen .hauptnav { display: flex; }
  .hauptnav .credit-badge { margin-left: 0; text-align: center; }
}
@media (max-width: 960px) {
  .raster-3, .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .marke-logo { height: 48px; }
  .marke-produkt { font-size: .92rem; padding-left: 10px; }
  .raster-3 { grid-template-columns: 1fr; }
  .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-wert { font-size: 1.5rem; }
  .inhalt { padding: 16px 16px 32px; }
  .held { padding: 30px 22px; }
  .held h1 { font-size: 1.6rem; }
  .detail-inhalt dl { grid-template-columns: 1fr; }
  .filterleiste select, .filterleiste input[type=search] { width: 100%; }
}

/* Briefkopf: Vorlage oder eigenes Briefpapier */
.kopf-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.kopf-option { margin: 0; font-weight: 400; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--linie); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; }
.kopf-option:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f6f9fc; }
.kopf-option input { margin-top: 3px; }
.kopf-option strong { display: block; color: var(--navy); }
.kopf-option small { color: var(--text-leise); }
.kopf-teil h3 { margin: 18px 0 8px; }
.bp-vorschau img { display: block; width: 150px; aspect-ratio: 210 / 297; object-fit: cover; border: 1px solid var(--linie); border-radius: 4px; box-shadow: 0 6px 18px rgba(7, 25, 42, .12); background: #fff; }
@media (max-width: 560px) { .kopf-wahl { grid-template-columns: 1fr; } }

/* Best SELECT (m-) */
.m-suche { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.m-filter { display: grid; gap: 12px; min-width: 0; }
.m-gruppe { padding: 0; }
.m-gruppe > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.m-gruppe > summary::-webkit-details-marker { display: none; }
.m-gruppe > summary::after { content: "+"; margin-left: auto; color: var(--gruen-dunkel); font-weight: 700; }
.m-gruppe[open] > summary::after { content: "–"; }
.m-gruppe > :not(summary) { margin-left: 18px; margin-right: 18px; }
.m-gruppe > :last-child { margin-bottom: 16px; }
.m-gruppe > input, .m-gruppe > select, .m-gruppe > .m-liste, .m-gruppe > div { width: auto; max-width: none; }
.m-gruppe > input, .m-gruppe > select { display: block; width: calc(100% - 36px); }
.m-zaehler:not(:empty) { background: var(--gruen); color: var(--navy); border-radius: 999px; font-size: .72rem; padding: 1px 8px; }
.m-label { font-size: .82rem; margin: 12px 0 6px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chip { margin: 0; font-weight: 400; display: inline-flex; position: relative; }
.m-chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.m-chip span { display: inline-block; border: 1px solid var(--linie); border-radius: 999px; padding: 4px 11px; font-size: .84rem; cursor: pointer; background: #fff; color: var(--text); user-select: none; }
.m-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.m-chip input:focus-visible + span { outline: 2px solid var(--gruen); outline-offset: 1px; }
.m-chip.m-leer span { color: #a3afbd; }
.m-liste { max-height: 190px; overflow-y: auto; border: 1px solid var(--linie); border-radius: 10px; padding: 4px 0; margin-top: 6px; background: #fff; }
.m-liste-hoch { max-height: 290px; }
.m-liste label { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; margin: 0; padding: 5px 10px; font-weight: 400; font-size: .88rem; color: var(--text); cursor: pointer; }
.m-liste label:hover { background: #f5f8fb; }
.m-liste label[hidden] { display: none; }
.m-liste small { color: var(--text-leise); font-size: .76rem; }
.m-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-zwei input, .m-zwei select { width: 100%; }
.m-rechts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.m-ergebnis { position: relative; transition: opacity .15s; }   /* scrollt mit, liegt nie über der Vorschau */
.m-ergebnis.m-laedt .m-zahl b { opacity: .45; }
.m-zahl { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.m-zahl b { font-size: 2.4rem; line-height: 1.1; color: var(--navy); }
.m-zahl span { color: var(--text-leise); font-weight: 600; }
.m-kauf-zeile { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.m-kauf-zeile label { margin: 0; }
.m-kauf-zeile input { width: 130px; }
.m-kosten { margin: 8px 0 4px; font-weight: 700; color: var(--navy); }
.m-kosten #mKosten { font-size: 1.2rem; }
.m-angebot { margin-top: 14px; border-top: 1px solid #eef2f6; padding-top: 10px; }
.m-angebot summary { cursor: pointer; font-weight: 600; color: var(--blau); }
.m-angebot textarea { width: 100%; margin-top: 8px; }
.m-vorschau td { font-size: .88rem; }
.m-kontakt span { margin-right: 6px; }
.m-kontakt sup { font-size: .6rem; color: var(--gruen-dunkel); }
tr.m-gekauft td { background: #f6faef; }
tr.m-neu td { background: #f0f8e0; }
.m-downloads { white-space: nowrap; }
.m-fortschritt { height: 12px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.m-fortschritt i { display: block; height: 100%; background: var(--gruen); transition: width .3s; }
.m-importdatei { border-bottom: 1px solid #eef2f6; padding: 10px 0; display: grid; gap: 4px; }
.lp-mock-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 2px; }
.lp-mock-filter i { font-style: normal; font-size: .72rem; font-weight: 600; background: var(--navy); color: #fff; border-radius: 999px; padding: 3px 10px; }
.lp-excel { background: #fff; border-radius: 8px; box-shadow: 0 18px 48px rgba(7, 25, 42, .18); overflow: hidden; font-size: .72rem; position: sticky; top: 90px; }
.lp-excel > div { display: grid; grid-template-columns: 1.4fr .6fr .9fr 1.2fr 1.5fr; border-bottom: 1px solid #e3e8ee; }
.lp-excel > div span { padding: 7px 8px; border-right: 1px solid #e3e8ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 30px; }
.lp-excel .lp-excel-kopf { background: #2c5f8a; color: #fff; font-weight: 700; }
.lp-excel .lp-excel-leer span { background: #fafbfc; }
.lp-branchen-zahlen div { grid-template-columns: 1fr; }
.lp-preise-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; }
@media (max-width: 1060px) {
  .m-suche { grid-template-columns: minmax(0, 1fr); }
  .m-ergebnis { position: static; }
}
@media (max-width: 560px) {
  .lp-preise-3 { grid-template-columns: 1fr; }
  .lp-excel > div { grid-template-columns: 1.4fr .7fr 1fr; }
  .lp-excel > div span:nth-child(n+4) { display: none; }
  .m-zwei { grid-template-columns: 1fr; }
}

/* Druckansicht (Meine Leads → Drucken / PDF) */
.nur-drucken { display: none; }
@media print {
  .topbar, .fuss, .nicht-drucken, .flash, .hinweis { display: none !important; }
  .nur-drucken { display: inline; white-space: pre-wrap; }
  body { background: #fff; }
  .inhalt { padding: 0; max-width: none; }
  .karte { box-shadow: none; border: 0; padding: 0; }
  .tabelle { font-size: 10pt; }
  .tabelle tr { break-inside: avoid; }
  .tabelle-wrap { overflow: visible; }
}

/* Best SELECT: Hinweis „nur ein Auszug“ (1.8.7) */
.m-auszug { margin: 0 0 40px; line-height: 1.5; }
.m-auszug-zeile { margin: -10px 0 18px; }

/* Best SELECT: Briefe an gekaufte Datensätze (1.9.0) */
.sb-leiste { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
#sbTabelle td { vertical-align: top; }
#sbTabelle tr[hidden] { display: none; }
