/* 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.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; }
.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; }

/* 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%; }
}

/* 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; }
}
