/* NF Marketing Mastermind · Onboarding-Chat „Jarvis“ (BUILD-SPEC §6)
 *
 * WhatsApp-artiger iOS-Look in der NF-Marke, kein WhatsApp-Klon. Token-Namen aus tokens.css (§2)
 * mit Fallback-Werten, damit die Datei auch allein funktioniert.
 *
 * Wiederverwendbar für das Landing-Mockup (Sektion 8), ohne .nfc-Wurzel:
 *   <div class="nfc-bubble--bot nfc-bubble--tail"><p class="nfc-bubble__text">…</p>
 *     <span class="nfc-bubble__meta"><time>10:42</time></span></div>
 *   <div class="nfc-bubble--user">…</div>
 *   <button class="nfc-quick nfc-quick--lg">Ja</button>   (Chip-Variante: .nfc-quick--chip)
 *   <div class="nfc-typing"><span></span><span></span><span></span></div>
 *
 * Formsystem: Bubbles 16px, große Antwort-Buttons 14px, Chips/Composer als Pille,
 * der Absende-CTA eckig wie die Marken-CTAs der Landingpage.
 * Eingabeflächen in neutralen Kontrastfarben, Markenrot nur für Fortschritt und CTA.
 */

/* ───────────── Seite sperren, solange der Chat offen ist ───────────── */
html.nfc-locked,
html.nfc-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}
html.nfc-locked body { padding-right: var(--nfc-scrollbar, 0px); }

/* ───────────── Standalone-Bausteine (auch Landing-Mockup) ───────────── */
.nfc-ico { display: block; width: 1em; height: 1em; }

.nfc-bubble,
.nfc-bubble--bot,
.nfc-bubble--user {
  position: relative;
  box-sizing: border-box;
  width: fit-content;
  max-width: min(82%, 30rem);
  padding: 7px 10px 8px 11px;
  border-radius: 16px;
  font-family: var(--font-sans, "Nunito Sans", system-ui, -apple-system, sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0.5px rgb(0 0 0 / 0.24);
}
.nfc-bubble--bot {
  margin-right: auto;
  background: #1E1E22;
  color: var(--nf-cream, #F1EDE8);
}
.nfc-bubble--user {
  margin-left: auto;
  background: #ECE7E1;
  color: #141414;
}
.nfc-bubble__text {
  margin: 0;
  white-space: pre-wrap;
}
/* Platzhalter am Textende, damit Uhrzeit/Häkchen in der letzten Zeile Platz finden */
.nfc-bubble__text::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
}
.nfc-bubble--user .nfc-bubble__text::after { width: 52px; }
.nfc-bubble--user.has-via .nfc-bubble__text::after { width: 68px; }
.nfc-bubble__meta {
  position: absolute;
  right: 9px;
  bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgb(241 237 232 / 0.62);
  pointer-events: none;
}
.nfc-bubble--user .nfc-bubble__meta { color: rgb(20 20 20 / 0.58); }
.nfc-bubble__meta .nfc-ico,
.nfc-bubble__via { width: 12px; height: 12px; }
.nfc-ticks { display: inline-flex; color: rgb(20 20 20 / 0.42); transition: color 300ms ease; }
.nfc-ticks .nfc-ico { width: 16px; height: 16px; }
.nfc-ticks.is-read { color: #2F7FC1; }

/* Bubble-Tail wie bei WhatsApp: nur an der ersten Bubble einer Gruppe, oben */
.nfc-bubble--tail::before {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 13px;
  background: inherit;
}
.nfc-bubble--bot.nfc-bubble--tail { border-top-left-radius: 0; }
.nfc-bubble--bot.nfc-bubble--tail::before {
  left: -7.5px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  clip-path: path("M8 0H1.5Q0 0 .8 1.2Q5 6 8 13Z");
}
.nfc-bubble--user.nfc-bubble--tail { border-top-right-radius: 0; }
.nfc-bubble--user.nfc-bubble--tail::before {
  right: -7.5px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  clip-path: path("M0 0H6.5Q8 0 7.2 1.2Q3 6 0 13Z");
}

/* Tipp-Indikator */
.nfc-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 12px 14px;
}
.nfc-typing.nfc-bubble,
.nfc-typing { color: var(--nf-cream, #F1EDE8); }
.nfc-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: nfc-dot 1.2s ease-in-out infinite;
}
.nfc-typing span:nth-child(2) { animation-delay: 0.15s; }
.nfc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes nfc-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-3px); opacity: 0.9; }
}

/* Antwort-Buttons */
.nfc-quick {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 48px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #ECE7E1;
  color: #141414;
  font-family: var(--font-sans, "Nunito Sans", system-ui, -apple-system, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.nfc-quick:active:not(:disabled) { transform: scale(0.97); }
.nfc-quick:disabled { cursor: default; }
.nfc-quick--lg {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 800;
}
.nfc-quick--chip {
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--nf-cream, #F1EDE8);
  box-shadow: inset 0 0 0 1.5px rgb(241 237 232 / 0.34);
  font-weight: 600;
  text-align: left;
}
.nfc-quick--solid,
.nfc-quick--toggle[aria-pressed="true"] {
  background: #ECE7E1;
  color: #141414;
  box-shadow: none;
}
.nfc-quick--ghost {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.9375rem;
  box-shadow: inset 0 0 0 1px rgb(241 237 232 / 0.26);
}
.nfc-quick .nfc-quick__check { width: 16px; height: 16px; display: none; flex: none; }
.nfc-quick--toggle[aria-pressed="true"] .nfc-quick__check { display: block; }
.nfc-quick.is-current { box-shadow: 0 0 0 2px #0B0B0D, 0 0 0 4px rgb(236 231 225 / 0.9); }
.nfc-quick--chip.is-current { background: #ECE7E1; color: #141414; }
@media (hover: hover) and (pointer: fine) {
  .nfc-quick:hover:not(:disabled) { background: #FFFFFF; }
  .nfc-quick--chip:hover:not(:disabled) { background: rgb(241 237 232 / 0.1); }
  .nfc-quick--solid:hover:not(:disabled),
  .nfc-quick--toggle[aria-pressed="true"]:hover:not(:disabled),
  .nfc-quick--chip.is-current:hover:not(:disabled) { background: #FFFFFF; }
}

/* ───────────── Overlay und Panel ───────────── */
.nfc {
  --nfc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --nfc-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --nfc-ease-spring: cubic-bezier(0.34, 1.28, 0.64, 1);
  --nfc-bar: rgb(15 15 18 / 0.86);
  --nfc-line: rgb(241 237 232 / 0.09);
  --nfc-text: var(--nf-cream, #F1EDE8);
  --nfc-focus: var(--nf-cream, #F1EDE8);

  position: fixed;
  left: 0;
  right: 0;
  top: var(--nfc-vtop, 0px);
  height: var(--nfc-vh, 100vh);
  height: var(--nfc-vh, 100dvh);
  z-index: var(--z-chat, 100);
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: var(--nfc-text);
  font-family: var(--font-sans, "Nunito Sans", system-ui, -apple-system, sans-serif);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}
.nfc[hidden] { display: none; }
.nfc *,
.nfc *::before,
.nfc *::after { box-sizing: border-box; }
.nfc button,
.nfc textarea { font-family: inherit; }
.nfc :focus { outline: none; }
.nfc :focus-visible {
  outline: 2px solid var(--nfc-focus);
  outline-offset: 3px;
}
.nfc a { color: inherit; }

.nfc-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(5 5 6 / 0.6);
  opacity: 0;
  transition: opacity 300ms ease;
}
.nfc-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: none;
  background-color: #0B0B0D;
  /* dezentes Muster + Bordeaux-Schimmer oben, wie ein ruhiges Chat-Wallpaper */
  background-image:
    radial-gradient(120% 55% at 50% -12%, rgb(45 9 18 / 0.6), transparent 62%),
    radial-gradient(rgb(241 237 232 / 0.045) 1px, transparent 1.4px);
  background-size: 100% 100%, 22px 22px;
  transform: translateY(100%);
  transition: transform 460ms var(--nfc-ease-drawer);
}
.nfc[data-state="open"] .nfc-backdrop { opacity: 1; }
.nfc[data-state="open"] .nfc-panel { transform: none; }
.nfc[data-state="closing"] .nfc-panel {
  transform: translateY(100%);
  transition-duration: 300ms;
}

/* Kopf: Avatar, Name, Status, Fortschritt */
.nfc-top {
  position: relative;
  z-index: 2;
  flex: none;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nfc-bar);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--nfc-line);
  touch-action: none;
}
.nfc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 8px 6px 14px;
}
.nfc-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--nf-bordeaux-2, #1F070E);
  box-shadow: 0 0 0 1px rgb(241 237 232 / 0.12);
}
.nfc-avatar--fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--nf-cream, #F1EDE8);
}
.nfc-head__who { flex: 1; min-width: 0; }
.nfc-head__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--nf-cream, #F1EDE8);
}
.nfc-head__status {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: rgb(241 237 232 / 0.66);
  transition: color 200ms ease;
}
.nfc-head__status.is-typing { color: var(--nf-cream, #F1EDE8); font-style: italic; }

.nfc-progress {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 12px;
  padding: 0 16px 9px 66px;
}
.nfc-progress__label {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgb(241 237 232 / 0.6);
}
.nfc-progress__count {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgb(241 237 232 / 0.82);
}
.nfc-progress__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgb(241 237 232 / 0.08);
}
.nfc-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--nf-red, #B4121E);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms var(--nfc-ease-out);
}

.nfc-iconbtn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgb(241 237 232 / 0.86);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--nfc-ease-out);
}
.nfc-iconbtn .nfc-ico { width: 22px; height: 22px; }
.nfc-iconbtn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .nfc-iconbtn:hover { background: rgb(241 237 232 / 0.08); color: var(--nf-cream, #F1EDE8); }
}

/* Verlauf */
.nfc-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgb(241 237 232 / 0.2) transparent;
}
.nfc-log:focus-visible { outline-offset: -3px; }
.nfc-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nfc-row {
  display: flex;
  margin-top: 2px;
}
.nfc-row.is-first { margin-top: 10px; }
.nfc-row--bot { justify-content: flex-start; padding-left: 8px; }
.nfc-row--user { justify-content: flex-end; padding-right: 8px; }
.nfc-row > .nfc-bubble,
.nfc-row > .nfc-summary {
  transform-origin: 0% 100%;
  transition: transform 380ms var(--nfc-ease-spring), opacity 220ms ease;
}
.nfc-row--user > .nfc-bubble { transform-origin: 100% 100%; }
.nfc-row.is-entering > .nfc-bubble,
.nfc-row.is-entering > .nfc-summary {
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  transition: none;
}
.nfc-row--typing > .nfc-bubble { padding: 12px 14px; }

.nfc-sys {
  display: flex;
  justify-content: center;
  margin: 10px 0 4px;
}
.nfc-sys__chip {
  padding: 5px 12px;
  border-radius: 8px;
  background: #1A1A1E;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(241 237 232 / 0.74);
}
.nfc-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 30rem;
  margin: 2px 14px 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #1A1416;
  box-shadow: inset 0 0 0 1px rgb(241 237 232 / 0.07);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(241 237 232 / 0.8);
}
.nfc-notice__ico { flex: none; width: 14px; height: 14px; margin-top: 2px; color: rgb(241 237 232 / 0.7); }
.nfc-notice a {
  font-weight: 700;
  color: var(--nf-cream, #F1EDE8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Zusammenfassung „Deine Antworten“ */
.nfc-row--card { margin-top: 12px; padding: 0 2px; }
.nfc-summary {
  width: 100%;
  padding: 16px 16px 6px;
  border-radius: 18px;
  background: #141417;
  box-shadow: inset 0 0 0 1px rgb(241 237 232 / 0.09), 0 1px 0.5px rgb(0 0 0 / 0.24);
  color: var(--nf-cream, #F1EDE8);
}
.nfc-summary__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(241 237 232 / 0.74);
}
.nfc-summary__title::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--nf-red, #B4121E);
}
.nfc-summary__list { margin: 0; }
.nfc-summary__item {
  margin: 0 -8px;
  padding: 10px 8px;
  border-top: 1px solid rgb(241 237 232 / 0.07);
}
.nfc-summary__item:first-child { border-top: 0; }
.nfc-summary__item.is-updated { animation: nfc-flash 1.6s ease-out; }
@keyframes nfc-flash {
  0% { background: rgb(241 237 232 / 0.12); }
  100% { background: transparent; }
}
.nfc-summary__item dt {
  margin: 0 0 2px;
  font-size: 0.8125rem;
  color: rgb(241 237 232 / 0.62);
}
.nfc-summary__item dd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.nfc-summary__value {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nfc-summary__value.is-muted { font-style: italic; color: rgb(241 237 232 / 0.66); }
.nfc-summary__edit {
  flex: none;
  min-height: 32px;
  margin: -7px -4px 0 0;
  padding: 6px 4px;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--nf-cream, #F1EDE8);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ───────────── Antwortbereich (Dock) ───────────── */
.nfc-dock {
  position: relative;
  z-index: 2;
  flex: none;
  max-height: 60%;
  overflow-y: auto;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--nfc-bar);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--nfc-line);
}
.nfc.is-kb .nfc-dock { padding-bottom: 8px; }
.nfc-dock > * { transition: transform 280ms var(--nfc-ease-out), opacity 200ms ease; }
.nfc-dock > .is-entering { transform: translateY(10px); opacity: 0; transition: none; }

.nfc-reply { display: flex; flex-direction: column; gap: 6px; }
.nfc-reply.is-locked,
.nfc-composer.is-locked { opacity: 0.55; pointer-events: none; }
.nfc-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nfc-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nfc-chips--skip { justify-content: flex-end; }
.nfc-reply__foot { display: flex; justify-content: flex-end; padding-top: 4px; }

.nfc-link {
  display: block;
  min-height: 44px;
  margin: 0 auto;
  padding: 10px 14px;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgb(241 237 232 / 0.84);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nfc-link.is-current { color: var(--nf-cream, #F1EDE8); font-weight: 800; }

.nfc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--nfc-ease-out), background-color 160ms ease, opacity 160ms ease;
}
.nfc-btn:active:not(:disabled) { transform: scale(0.97); }
.nfc-btn:disabled { opacity: 0.4; cursor: default; }
.nfc-btn--solid { background: #ECE7E1; color: #141414; }
.nfc-btn--wide { width: 100%; min-height: 52px; }
@media (hover: hover) and (pointer: fine) {
  .nfc-btn--solid:hover:not(:disabled) { background: #FFFFFF; }
}

/* Composer: Feld + Mikro/Senden */
.nfc-composer { display: flex; flex-direction: column; gap: 6px; }
.nfc-hint {
  margin: 0 6px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgb(241 237 232 / 0.8);
}
.nfc-hint:empty { display: none; }
.nfc-hint.is-ok { color: var(--nf-cream, #F1EDE8); }
.nfc-hint.is-error { color: #FFB4AB; }
.nfc-bar { display: flex; align-items: flex-end; gap: 8px; }
.nfc-bar[hidden] { display: none; }
.nfc-field {
  flex: 1;
  min-width: 0;
  display: flex;
  border-radius: 23px;
  background: #1F1F23;
  box-shadow: inset 0 0 0 1px rgb(241 237 232 / 0.13);
  transition: box-shadow 160ms ease;
}
.nfc-field:focus-within { box-shadow: inset 0 0 0 1.5px rgb(241 237 232 / 0.58); }
.nfc-field.is-fresh { animation: nfc-fresh 1.4s var(--nfc-ease-out); }
@keyframes nfc-fresh {
  0% { box-shadow: inset 0 0 0 2px rgb(241 237 232 / 0.95); }
  100% { box-shadow: inset 0 0 0 1.5px rgb(241 237 232 / 0.58); }
}
.nfc-input {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 46px;
  max-height: 200px;
  margin: 0;
  padding: 12px 16px 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #F4F1EC;
  caret-color: var(--nf-cream, #F1EDE8);
  font-size: 16px; /* ≥ 16px verhindert den iOS-Zoom */
  line-height: 1.4;
  resize: none;
  overflow-y: hidden;
}
.nfc-input.is-scroll { overflow-y: auto; }
.nfc .nfc-input:focus-visible { outline: none; }
.nfc-input::placeholder { color: rgb(241 237 232 / 0.6); opacity: 1; }
.nfc-input[aria-invalid="true"] { caret-color: #FFB4AB; }
.nfc-field:has(.nfc-input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px #FFB4AB; }
.nfc-input:disabled { color: rgb(241 237 232 / 0.72); }
.nfc-field__ghost {
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.4;
  color: rgb(241 237 232 / 0.32);
}
.nfc-composer.is-idle { pointer-events: none; }

.nfc-action {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ECE7E1;
  color: #141414;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--nfc-ease-out), opacity 160ms ease, background-color 160ms ease;
}
.nfc-action:active:not(:disabled) { transform: scale(0.93); }
.nfc-action:disabled { opacity: 0.38; cursor: default; }
.nfc-action.is-ghost { opacity: 0.22; }
.nfc-action .nfc-ico {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  transition: transform 220ms var(--nfc-ease-out), opacity 160ms ease, filter 220ms ease;
}
.nfc-action__send { transform: translateX(1px); }
.nfc-action[data-mode="mic"] .nfc-action__send,
.nfc-action[data-mode="send"] .nfc-action__mic {
  opacity: 0;
  transform: scale(0.6);
  filter: blur(2px);
}
.nfc-action__spin {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  border: 2px solid rgb(20 20 20 / 0.18);
  border-top-color: #141414;
  border-radius: 50%;
  opacity: 0;
}
.nfc-composer.is-transcribing .nfc-action { opacity: 1; }
.nfc-composer.is-transcribing .nfc-action .nfc-ico { opacity: 0; }
.nfc-composer.is-transcribing .nfc-action__spin { opacity: 1; animation: nfc-spin 0.7s linear infinite; }
@keyframes nfc-spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .nfc-action:hover:not(:disabled) { background: #FFFFFF; }
}

/* Aufnahme */
.nfc-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}
.nfc-rec[hidden] { display: none; }
.nfc-rec__discard { color: rgb(241 237 232 / 0.84); }
@media (hover: hover) and (pointer: fine) {
  .nfc-rec__discard:hover { color: #FF8A80; }
}
.nfc-rec__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF453A;
  animation: nfc-pulse 1.2s ease-in-out infinite;
}
@keyframes nfc-pulse { 50% { opacity: 0.3; } }
.nfc-rec__time {
  flex: none;
  min-width: 40px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--nf-cream, #F1EDE8);
}
.nfc-rec__meter {
  flex: 1;
  min-width: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
}
.nfc-rec__meter span {
  flex: 0 0 3px;
  height: 100%;
  border-radius: 2px;
  background: rgb(241 237 232 / 0.86);
  transform: scaleY(0.12);
  transition: transform 90ms linear;
}
.nfc-rec__done {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #ECE7E1;
  color: #141414;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms var(--nfc-ease-out), background-color 160ms ease;
}
.nfc-rec__done .nfc-ico { width: 18px; height: 18px; }
.nfc-rec__done:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .nfc-rec__done:hover { background: #FFFFFF; }
}

/* Absenden: eckiger Marken-CTA wie auf der Landingpage */
.nfc-submit { display: flex; flex-direction: column; gap: 8px; }
.nfc-submit .nfc-hint { margin-bottom: 2px; }
.nfc-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  background: var(--nf-red, #B4121E);
  color: var(--nf-white, #FBFBFB);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, transform 160ms var(--nfc-ease-out);
}
.nfc-cta:active:not(:disabled) { transform: scale(0.98); }
.nfc-cta:disabled { cursor: progress; opacity: 0.8; }
.nfc-cta__ico { width: 18px; height: 18px; }
.nfc-cta__line {
  width: 28px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform 320ms var(--nfc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nfc-cta:hover:not(:disabled) { background: var(--nf-red-deep, #8E1622); }
  .nfc-cta:hover:not(:disabled) .nfc-cta__line { transform: scaleX(1.6); }
}

/* ───────────── Bottom-Sheet „Antwort ändern“ ───────────── */
.nfc-sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.nfc-sheet-layer[hidden] { display: none; }
.nfc-sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.55);
  opacity: 0;
  transition: opacity 240ms ease;
}
.nfc-sheet {
  position: relative;
  max-height: 88%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #151518;
  box-shadow: 0 -1px 0 rgb(241 237 232 / 0.08), 0 -16px 40px rgb(0 0 0 / 0.45);
  outline: none;
  transform: translateY(100%);
  transition: transform 380ms var(--nfc-ease-drawer);
}
.nfc.is-kb .nfc-sheet { padding-bottom: 12px; }
.nfc-sheet-layer[data-state="open"] .nfc-sheet-scrim { opacity: 1; }
.nfc-sheet-layer[data-state="open"] .nfc-sheet { transform: none; }
.nfc-sheet-layer[data-state="closing"] .nfc-sheet { transform: translateY(100%); transition-duration: 220ms; }
.nfc-sheet__grip {
  width: 36px;
  height: 5px;
  margin: 4px auto 6px;
  border-radius: 3px;
  background: rgb(241 237 232 / 0.22);
}
.nfc-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nfc-sheet__title { margin: 0; font-size: 1rem; font-weight: 800; color: var(--nf-cream, #F1EDE8); }
.nfc-sheet__q {
  margin: 2px 0 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgb(241 237 232 / 0.8);
}
.nfc-sheet .nfc-chips { justify-content: flex-start; }

/* Nur für Screenreader */
.nfc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ───────────── Desktop: zentriertes Panel, Seite geblurrt ───────────── */
@media (min-width: 768px) {
  .nfc {
    align-items: center;
    padding: 24px;
  }
  .nfc-backdrop {
    background: rgb(5 5 6 / 0.48);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    backdrop-filter: blur(14px) saturate(115%);
  }
  .nfc-panel {
    max-width: 480px;
    height: min(860px, 100%);
    border-radius: 22px;
    box-shadow: 0 0 0 1px rgb(241 237 232 / 0.09), 0 40px 120px -20px rgb(0 0 0 / 0.75);
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: transform 380ms var(--nfc-ease-out), opacity 240ms ease;
  }
  .nfc[data-state="open"] .nfc-panel { opacity: 1; transform: none; }
  .nfc[data-state="closing"] .nfc-panel {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition-duration: 200ms;
  }
  .nfc-top { padding-top: 0; }
  .nfc-dock { padding-bottom: 12px; }
  .nfc-sheet { border-radius: 20px 20px 0 0; padding-bottom: 18px; }
}

/* ───────────── Barrierefreiheit ───────────── */
@media (prefers-reduced-motion: reduce) {
  .nfc-panel,
  .nfc[data-state="open"] .nfc-panel,
  .nfc[data-state="closing"] .nfc-panel {
    transform: none;
    transition: opacity 160ms linear;
  }
  .nfc .nfc-panel { opacity: 0; }
  .nfc[data-state="open"] .nfc-panel { opacity: 1; }
  .nfc-row > .nfc-bubble,
  .nfc-row > .nfc-summary,
  .nfc-dock > * { transition: none; }
  .nfc-typing span,
  .nfc-rec__dot,
  .nfc-field.is-fresh,
  .nfc-summary__item.is-updated { animation: none; }
  .nfc-typing span { opacity: 0.6; }
  .nfc-sheet,
  .nfc-sheet-layer[data-state="closing"] .nfc-sheet { transform: none; transition: none; }
  .nfc-progress__fill { transition: none; }
  .nfc-action .nfc-ico { transition: opacity 120ms linear; filter: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nfc-top,
  .nfc-dock { background: #0F0F12; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .nfc-bubble,
  .nfc-bubble--bot,
  .nfc-bubble--user,
  .nfc-quick,
  .nfc-action,
  .nfc-field,
  .nfc-summary,
  .nfc-cta,
  .nfc-btn { border: 1px solid CanvasText; }
  .nfc-progress__fill { background: Highlight; }
}
