/* Neuriq Lead-Cockpit. Look as in the approved screenshots: dark sidebar, light page, white cards. Font: Inter (SIL OFL). */
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --dunkel: #0a0c14; --seite: #f1f2f7; --karte: #fff; --rand: #e4e6ee; --text: #0a0c14; --grau: #5d6377; --hell: #eef0f6;
  --blau: #58607f; --blauhell: #e3e6f0; --rot: #c0392b; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 Inter, system-ui, "Segoe UI", sans-serif; color: var(--text); background: var(--seite); display: flex; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); margin: 0 0 12px; font-weight: 600; }

/* sidebar */
nav { width: 240px; flex: none; background: var(--dunkel); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; padding: 0 10px 22px; text-decoration: none; }
.logo i { width: 32px; height: 32px; border-radius: 8px; background: #8089a8; color: var(--dunkel); display: grid; place-items: center; font-style: normal; }
.logo span { color: #8c94b3; font-weight: 500; }
nav a.nav { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; color: #dfe2ee; }
nav a.nav.aktiv { background: #1b1e2c; color: #fff; font-weight: 600; }
.badge { background: #8089a8; color: var(--dunkel); border-radius: 99px; font-size: 12px; font-weight: 700; padding: 1px 8px; }
nav .unten { margin-top: auto; padding: 0 14px; font-size: 13px; color: #aab0c8; display: grid; gap: 8px; }
nav .unten a, nav .unten button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; }
main { flex: 1; min-width: 0; padding: 32px 36px 110px; overflow-y: auto; }

/* building blocks */
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 16px; padding: 22px 24px; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.klein { font-size: 13px; color: var(--grau); }
.rot { color: var(--rot); }
.btn { background: var(--dunkel); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 600; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn.gross { padding: 14px 22px; font-size: 16px; }
.btn.hell { background: #fff; color: var(--text); border: 1px solid #b9bdcb; }
.btn.link { background: none; color: var(--grau); padding: 9px 6px; font-weight: 500; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { background: #fff; border: 1px solid #cfd2de; border-radius: 99px; padding: 7px 16px; }
.chip.klein { padding: 5px 13px; font-size: 14px; color: #2c3040; }
.chip.an { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
.tag { background: var(--hell); border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 500; display: inline-block; }
input[type=text], input[type=email], input[type=search], input[type=url], input[type=number], input[type=date], input[type=time], input[type=password], select, textarea {
  background: #fff; border: 1px solid #d5d8e2; border-radius: 10px; padding: 10px 14px; width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--blau); outline-offset: 1px; }
input.still { border-color: transparent; background: transparent; padding: 2px 6px; margin-left: -6px; width: auto; min-width: 0; field-sizing: content; }
input.still:hover { border-color: #d5d8e2; }
input.still::placeholder { color: #a3a8b8; }
label { font-size: 13px; font-weight: 600; color: #3a3f52; display: grid; gap: 5px; }

/* Heute */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kachel { background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 18px 20px; font-size: 13px; color: #3a3f52; }
.kachel b { display: block; font-size: 30px; line-height: 1.2; color: var(--text); margin-top: 4px; }
.kachel b small { font-size: 14px; font-weight: 500; color: var(--grau); }
.kachel.dunkel { background: var(--dunkel); border-color: var(--dunkel); color: #c6cbe0; }
.kachel.dunkel b { color: #fff; }
.gruppen { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.gruppen .breit { grid-column: 1 / -1; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hell); }
.zeile:first-of-type { border-top: 0; padding-top: 0; }
.zeile:last-child { padding-bottom: 0; }
.zeile .wer { flex: 1; min-width: 0; }
.zeile .wer a { font-weight: 600; text-decoration: none; }
.zeile .wer div { font-size: 13px; color: var(--grau); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile input { max-width: 220px; padding: 7px 10px; font-size: 13px; }

/* Anrufen */
.anruf { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 22px; align-items: start; }
.ziel { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #3a3f52; }
.balken { width: 170px; height: 8px; border: 0; border-radius: 99px; background: #dfe2ec; overflow: hidden; appearance: none; -webkit-appearance: none; }
.balken::-webkit-progress-bar { background: #dfe2ec; }
.balken::-webkit-progress-value { background: var(--blau); border-radius: 99px; }
.balken::-moz-progress-bar { background: var(--blau); border-radius: 99px; }
.lead h1 { margin: 10px 0 4px; }
.lead .oben { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.lead .wo { color: #3a3f52; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.box { background: var(--seite); border-radius: 10px; padding: 12px 18px; margin: 14px 0 0; }
.box.notiz { background: #fff6d6; font-size: 18px; font-weight: 600; }
.telefon { display: flex; justify-content: center; align-items: center; gap: 12px; background: var(--dunkel); color: #fff; border-radius: 12px; padding: 16px;
  font-size: 26px; font-weight: 700; text-decoration: none; margin: 22px 0; letter-spacing: .01em; }
.telefon svg { width: 24px; height: 24px; opacity: .7; }
.knoepfe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 8px 0 12px; }
.knoepfe button { border: 1px solid #cfd2de; background: #fff; border-radius: 10px; padding: 12px 4px 14px; font-weight: 600; }
.knoepfe button small { display: block; font-weight: 400; color: var(--grau); font-size: 12px; margin-bottom: 4px; }
.knoepfe button[data-k=rueckruf] { background: var(--blauhell); border-color: #9299b3; }
.knoepfe button[data-k=interesse] { background: var(--blau); border-color: var(--blau); color: #fff; }
.knoepfe button[data-k=termin] { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
.knoepfe button[data-k=interesse] small, .knoepfe button[data-k=termin] small { color: #c6cbe0; }
.knoepfe button.an { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--dunkel); }
.extra { display: grid; gap: 10px; margin: 14px 0; }
.extra .chips > span { font-size: 14px; color: #3a3f52; margin-right: 2px; }
.extra input[type=date], .extra input[type=time] { width: auto; padding: 5px 10px; }
.mailbox { margin-top: 10px; }
.mailbox input { flex: 1 1 220px; width: auto; }
.nurhandy { display: none; }
.neben { display: flex; gap: 6px; justify-content: space-between; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.skript { background: var(--dunkel); color: #fff; border-radius: 16px; padding: 24px 26px; white-space: pre-wrap; font-weight: 500; font-size: 16px; line-height: 1.55; }
.skript h2 { color: #aab0c8; }
.naechste { margin-top: 22px; }
.naechste .zeile { justify-content: space-between; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 120px); transform: translateX(-50%); background: var(--dunkel); color: #fff; border-radius: 99px;
  padding: 9px 12px 9px 22px; display: flex; gap: 16px; align-items: center; font-weight: 500; box-shadow: 0 6px 24px #0a0c1433; max-width: 92vw; z-index: 5; }
.toast button { background: #8089a8; color: var(--dunkel); border: 0; border-radius: 99px; padding: 6px 16px; font-weight: 700; }
.toast.fehler { background: var(--rot); padding-right: 22px; }
.leer { text-align: center; padding: 70px 20px; color: var(--grau); }

/* Leads, Zahlen */
.filter { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); font-weight: 600; padding: 0 12px 10px 0; }
.tabelle td { padding: 11px 12px 11px 0; border-top: 1px solid var(--hell); vertical-align: top; }
.tabelle tr.klick { cursor: pointer; }
.tabelle tr.klick:hover td { background: #fafbfd; }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; padding-right: 0; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tabelle td.zahl small, .kachel small.vor { color: var(--grau); font-weight: 400; font-size: 12px; margin-left: 6px; }
.rollen { overflow-x: auto; }
.felder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.felder .breit { grid-column: 1 / -1; }
.verlauf .zeile { align-items: start; font-size: 14px; }
.verlauf time { color: var(--grau); width: 118px; flex: none; }
.stapel { display: grid; gap: 20px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
dialog { border: 0; border-radius: 16px; padding: 26px; width: min(900px, 94vw); max-height: 90vh; }
dialog::backdrop { background: #0a0c1466; }
textarea { min-height: 150px; resize: vertical; }

/* login */
body.login { display: grid; place-items: center; background: var(--dunkel); }
body.login form { background: #fff; border-radius: 16px; padding: 32px; width: min(360px, 92vw); display: grid; gap: 14px; }
body.login .logo { color: var(--text); padding: 0 0 6px; }

/* phone */
@media (max-width: 900px) {
  body { flex-direction: column-reverse; }
  nav { width: auto; flex-direction: row; padding: 6px 8px; gap: 2px; align-items: center; }
  nav .logo, nav .unten span, nav .unten form { display: none; }
  .nurhandy { display: block; }
  nav .unten a { font-size: 12px; }
  nav a.nav { flex: 1; justify-content: center; gap: 6px; padding: 10px 4px; font-size: 14px; }
  nav .unten { margin: 0; padding: 0 6px; display: flex; }
  main { padding: 18px 14px 90px; }
  h1 { font-size: 24px; }
  .kacheln { grid-template-columns: 1fr 1fr; }
  .gruppen, .anruf, .zwei, .felder, .filter { grid-template-columns: 1fr; }
  .knoepfe { gap: 6px; }
  .knoepfe button { font-size: 12px; padding: 10px 2px; }
  .telefon { font-size: 22px; margin: 16px 0; }
  .toast { left: 50%; bottom: 70px; }
  .balken { width: 80px; }
  .zeile { flex-wrap: wrap; }
}

/* Stern prüfen */
.stern { max-width: 760px; display: grid; gap: 16px; }
.stern h1 { margin: 0; }
.stern .btn small { opacity: .6; margin-left: 8px; }
.knoepfe.zwei-k { grid-template-columns: 1fr 1fr; margin: 0; }
