/* NF ONE — schwarz, weiß, viel Raum. */

:root {
  --grund: #ffffff;
  --schrift: #000000;
  --leise: #8e8e8e;
  --linie: #ececec;
  --flaeche: rgba(255, 255, 255, 0.86);
  --rand: 28px;
  --breite: 560px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #000000;
    --schrift: #ffffff;
    --leise: #7c7c7c;
    --linie: #1c1c1c;
    --flaeche: rgba(0, 0, 0, 0.86);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.leise { color: var(--leise); }

/* ---------- Rahmen ---------- */

main, .anmeldung {
  max-width: var(--breite);
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 36px)
    calc(env(safe-area-inset-right) + var(--rand))
    calc(env(safe-area-inset-bottom) + 120px)
    calc(env(safe-area-inset-left) + var(--rand));
}

.kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 72px;
}

.marke {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
}
.logo { display: block; height: 28px; width: auto; }
.logo-gross { display: block; align-self: flex-start; height: 80px; width: auto; margin-left: -4px; }

#datum { font-size: 15px; }

/* ---------- Eingabe ---------- */

.eingabe { margin-bottom: 64px; }

#text {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 40vh;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--linie);
  border-radius: 0;
  background: transparent;
  resize: none;
  outline: none;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: border-color 0.2s;
}
#text::placeholder { color: var(--leise); opacity: 1; }
#text:focus { border-bottom-color: var(--schrift); }

.aktionen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.rund {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rund svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.rund[aria-pressed="true"] { background: var(--schrift); color: var(--grund); border-color: var(--schrift); }
.rund[aria-pressed="true"] svg { animation: atmen 1.4s ease-in-out infinite; }
@keyframes atmen { 50% { opacity: 0.35; } }

.pille {
  height: 44px;
  padding: 0 24px;
  border-radius: 22px;
  background: var(--schrift);
  color: var(--grund);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}
.pille:disabled { opacity: 0.18; cursor: default; }

.meldung {
  min-height: 1.45em;
  margin: 16px 0 0;
  font-size: 14px;
}

/* ---------- Filter ---------- */

.filter {
  display: flex;
  gap: 22px;
  margin-bottom: 20px;
  font-size: 15px;
}
.filter button { color: var(--leise); padding: 6px 0; }
.filter button[aria-pressed="true"] { color: var(--schrift); font-weight: 600; }
.filter .zahl { font-weight: 400; color: var(--leise); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Liste ---------- */

.liste { list-style: none; margin: 0; padding: 0; }

.eintrag {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  gap: 0 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--linie);
  transition: opacity 0.4s;
}
.eintrag.weg { opacity: 0; }

.haken {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--leise);
  display: grid;
  place-items: center;
}
.haken svg { width: 12px; height: 12px; fill: none; stroke: var(--grund); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.eintrag.idee .haken { border-style: dashed; }
.eintrag.erledigt .haken { background: var(--schrift); border-color: var(--schrift); border-style: solid; }
.eintrag.erledigt .haken svg { opacity: 1; }
.eintrag.erledigt .titel { color: var(--leise); }

.inhalt { min-width: 0; cursor: pointer; }
.titel { margin: 0; overflow-wrap: anywhere; }
.details {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--leise);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eintrag.offen-auf .details { -webkit-line-clamp: unset; display: block; white-space: pre-wrap; }
.meta { margin: 6px 0 0; font-size: 13px; color: var(--leise); }
.meta .faellig-heute { color: var(--schrift); font-weight: 600; }

/* Zugeklappt nur eine Zeile, aufgeklappt alles. */
.eintrag:not(.offen-auf) .titel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag:not(.offen-auf) .details, .eintrag:not(.offen-auf) .meta { display: none; }
.eintrag.dringend .titel { font-weight: 600; }
.pfeil { width: 28px; height: 24px; display: grid; place-items: center; align-self: start; color: var(--leise); }
.pfeil svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.pfeil[aria-expanded="true"] svg { transform: rotate(90deg); }

.leer { margin: 48px 0; text-align: center; font-size: 15px; }

/* ---------- Apps ---------- */

.apps { list-style: none; margin: 0; padding: 0; }
.apps li { border-bottom: 1px solid var(--linie); }
.apps a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
}
.apps .name { font-size: 26px; letter-spacing: -0.01em; }
.apps .beschreibung { font-size: 14px; color: var(--leise); text-align: right; }
.apps a:active .name { color: var(--leise); }

.fuss { margin-top: 48px; font-size: 13px; text-align: center; }

/* ---------- Antwort des Assistenten ---------- */

.antwort { margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: var(--linie); }
.antwort p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.aktionsliste { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; color: var(--leise); }
.aktionsliste li { padding: 3px 0; }
.aktionsliste a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Heute ---------- */

.block { margin-bottom: 56px; }
.abschnitt { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leise); }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; margin-bottom: 14px; }
.kachel { display: flex; flex-direction: column; gap: 2px; }
.zahl-gross { font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.klein { font-size: 13px; }
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeilen li, .zeilen a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.zeilen li:has(> a) { display: block; padding: 0; }
.zeilen .zeit { color: var(--leise); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeilenknopf { width: 100%; text-align: left; font-size: 20px; padding: 6px 0; }
.als-link { display: inline-flex; align-items: center; margin-top: 12px; }

/* ---------- Beratung ---------- */

.gespraech { grid-template-columns: 20px 1fr; }
.neu-punkt { width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; }
.gespraech.neu .neu-punkt { background: var(--schrift); }
.gespraech.neu .titel { font-weight: 600; }
.zurueck { font-size: 15px; padding: 6px 0; margin-bottom: 20px; }
.gespraech-kopf { margin: 0 0 28px; font-size: 15px; color: var(--leise); }
.verlauf { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.blase { max-width: 84%; padding: 11px 15px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.blase.kunde { align-self: flex-start; background: var(--linie); border-bottom-left-radius: 6px; }
.blase.team { align-self: flex-end; background: var(--schrift); color: var(--grund); border-bottom-right-radius: 6px; }
.blase.bild { padding: 4px; background: transparent; }
.blase img { display: block; max-width: 100%; max-height: 320px; border-radius: 14px; }
.blase audio { display: block; width: 240px; max-width: 100%; }
.blase a { text-decoration: underline; text-underline-offset: 3px; }
.antwort-form textarea {
  display: block; width: 100%; min-height: 72px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--linie);
  background: transparent; resize: vertical; outline: none; font-size: 17px;
}
.antwort-form textarea:focus { border-bottom-color: var(--schrift); }
.antwort-form .aktionen span { display: flex; gap: 20px; font-size: 14px; }

/* ---------- Akquise ---------- */

#akquise-produkte { flex-wrap: wrap; gap: 4px 18px; font-size: 14px; margin-bottom: 14px; }
.pitch { margin: 0 0 10px; font-size: 15px; }
.pitch summary { cursor: pointer; list-style: none; font-size: 14px; padding: 4px 0; }
.pitch summary::-webkit-details-marker { display: none; }
.pitch summary::after { content: " ›"; }
.pitch[open] summary::after { content: " ‹"; }
.pitch p { margin: 8px 0 4px; white-space: pre-wrap; }
#akquise-pool { margin: 0 0 8px; }
.anruf .anruf-kopf, .anruf .meta { cursor: pointer; }
.anruf-details { display: none; padding-top: 14px; }
.anruf.offen-auf .anruf-details { display: block; }
.wege { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 10px; }
.wege .pille { margin-top: 0; font-variant-numeric: tabular-nums; }
.wege a.leise { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.anruf-details > p { margin: 4px 0 0; }
.kontakt { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.kontakt li { display: flex; gap: 12px; padding: 5px 0; align-items: baseline; }
.kontakt .art { flex: 0 0 64px; }
.kontakt a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.werkzeuge { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; }
.werkzeuge button { padding: 6px 0; }
.kontakt-form { margin-top: 10px; }
.kontakt-form .feld { display: block; margin-top: 10px; }
.kontakt-form .feld span { display: block; }
.kontakt-form input {
  display: block; width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid var(--linie);
  background: transparent; font-size: 16px; outline: none; border-radius: 0;
}
.kontakt-form input:focus { border-bottom-color: var(--schrift); }
.kontakt-form .aktionen { margin-top: 14px; }
#akquise-neu:not(:empty) { margin-top: 24px; }
.akquise-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.akquise-fuss button:disabled { opacity: .5; }
.notizen { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; color: var(--leise); }
.notizen li { padding: 2px 0; overflow-wrap: anywhere; }
.anruf-form { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--linie); font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--schrift); color: var(--grund); border-color: var(--schrift); }
.anruf-form input[type="date"] {
  display: block; margin-top: 12px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--linie);
  background: transparent; font-size: 16px; outline: none;
}
.anruf-form textarea {
  display: block; width: 100%; margin-top: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--linie);
  background: transparent; resize: vertical; outline: none; font-size: 16px;
}
.anruf-form textarea:focus, .anruf-form input:focus { border-bottom-color: var(--schrift); }
.anruf-form .aktionen { margin-top: 14px; }

/* ---------- Zentrale: CRM, Wissen, Zahlen ---------- */

.unterstrichen { text-decoration: underline; text-underline-offset: 3px; }
.suche input {
  display: block; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--linie);
  background: transparent; font-size: 16px; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.suche input:focus { border-bottom-color: var(--schrift); }
.zeilen .wissen-zeile a { display: flex; flex-direction: column; gap: 2px; grid-template-columns: none; }
.ausschnitt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seite { margin-bottom: 26px; }
.seite-kopf { margin: 0 0 12px; font-size: 15px; }
.top { margin-top: 10px; }
.top > p { margin: 0; }
.top .zeilen li { grid-template-columns: 84px 1fr; padding: 8px 0; font-size: 15px; overflow-wrap: anywhere; }
#zahlen-meldung:empty { display: none; }

.tabs .punkt { display: inline-block; width: 6px; height: 6px; margin-left: 4px; vertical-align: super; border-radius: 50%; background: var(--schrift); }

/* ---------- Tabs ---------- */

.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2.6vw, 28px);
  padding: 14px 0 calc(env(safe-area-inset-bottom) + 14px);
  background: var(--flaeche);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--linie);
  font-size: clamp(12px, 3.7vw, 15px);
}
.tabs button { color: var(--leise); padding: 6px 2px; }
.tabs button[aria-pressed="true"] { color: var(--schrift); font-weight: 600; }

/* ---------- Anmeldung ---------- */

.anmeldung { display: flex; flex-direction: column; gap: 120px; }
.anmeldung form { display: flex; flex-direction: column; gap: 16px; }
.anmeldung label { font-size: 14px; }
#code {
  border: 0;
  border-bottom: 1px solid var(--linie);
  border-radius: 0;
  background: transparent;
  padding: 8px 0 12px;
  font-size: 26px;
  outline: none;
}
#code:focus { border-bottom-color: var(--schrift); }
.anmeldung .pille { align-self: flex-start; margin-top: 12px; }

@media (min-width: 900px) {
  .kopf { margin-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
