/* ===== F.R.I.D.A.Y. - Chat-Oberflaeche (Seite, Auftrags-Reiter, Menueeintrag) =====
   Nachbau der J.A.R.V.I.S-Stile aus Immo_v2 (style.css Z. 1820-1850, index.html Z. 9-24).
   Einziger gewollter Unterschied (Vorgabe Ben 2026-09-26): futuristischer - holografischer
   Avatar, leuchtender Menueeintrag, HUD-Kopf, Reiter mit Verlaufskante. Aufbau, Knoepfe,
   Karten und Ablaeufe bleiben wie bei Jarvis.
   Die Farbwerte auf :root benutzt auch friday-gedaechtnis.css. */

:root {
  --fr-cyan: #22d3ee;
  --fr-blau: #3b82f6;
  --fr-violett: #8b5cf6;
  --fr-magenta: #d946ef;
  --fr-verlauf: linear-gradient(135deg, #22d3ee 0%, #3b82f6 48%, #8b5cf6 100%);
  --fr-nacht: #0b1020;
  --fr-nacht-2: #121a36;
  --fr-glas: rgba(255, 255, 255, .06);
  --fr-rand: rgba(129, 140, 248, .35);
  --fr-glow: 0 0 18px rgba(56, 189, 248, .45);
  --fr-text-hell: #e6ecff;
  /* hellere Verlaufsschrift fuer dunkle Flaechen (Menue, HUD) - #8b5cf6 waere dort zu dunkel */
  --fr-verlauf-hell: linear-gradient(90deg, #67e8f9 0%, #60a5fa 50%, #c4b5fd 100%);
}

/* Die Seite und der Auftrags-Reiter duerfen den Inhaltsbereich nicht verbreitern. #main-content
   ist ein Flex-Element ohne min-width:0 und waechst mit seinem breitesten Kind: Die
   Gedaechtnis-Tabelle (nicht umbrechende Spalten) schob so die ganze Seite ueber den
   Fensterrand, Knoepfe und die Statusspalte waren abgeschnitten (Test 2026-09-26). Mit
   inline-size-Containment zaehlt die Breite des Inhalts nicht mehr nach aussen - breite
   Tabellen scrollen dann in ihrer eigenen .table-wrapper. */
.friday-seite, #friday-akte-root { contain: inline-size; }

/* ===== Gemeinsame Animationen ===== */
@keyframes friday-dreh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes friday-atmen {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@keyframes friday-scan {
  0% { transform: translateY(-12px); opacity: 0; }
  20% { opacity: .8; }
  80% { opacity: .8; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes friday-schimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
@keyframes friday-nav-glow {
  0%, 100% { filter: drop-shadow(0 0 1.5px rgba(34, 211, 238, .45)); }
  50% { filter: drop-shadow(0 0 5px rgba(139, 92, 246, .9)); }
}
@keyframes friday-kern-puls {
  0%, 100% { transform: scale(1); box-shadow: 0 0 5px rgba(34, 211, 238, .75), 0 0 10px rgba(139, 92, 246, .35); }
  50% { transform: scale(1.18); box-shadow: 0 0 8px rgba(34, 211, 238, .95), 0 0 16px rgba(139, 92, 246, .6); }
}
@keyframes friday-tippen {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@keyframes friday-glanz {
  0% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translateX(760%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(760%) skewX(-18deg); opacity: 0; }
}

/* ===== Avatar (holografischer KI-Kern, fridayAvatarSvg) ===== */
.friday-avatar { display: block; flex: 0 0 auto; overflow: visible; }
.friday-avatar-gross { filter: drop-shadow(0 0 8px rgba(56, 189, 248, .45)); }
.friday-ring-langsam { animation: friday-dreh 18s linear infinite; }
.friday-ring-schnell { animation: friday-dreh 7s linear infinite reverse; }
.friday-hex { animation: friday-dreh 36s linear infinite; }
.friday-iris { animation: friday-dreh 5s linear infinite reverse; }
.friday-kern-glow { animation: friday-atmen 3.2s ease-in-out infinite; }
.friday-scanlinie { animation: friday-scan 3.6s ease-in-out infinite; }
/* denkt: alles schneller, solange eine Antwort laeuft */
.friday-avatar.friday-denkt .friday-ring-langsam { animation-duration: 2.2s; }
.friday-avatar.friday-denkt .friday-ring-schnell { animation-duration: 1.2s; }
.friday-avatar.friday-denkt .friday-hex { animation-duration: 6s; }
.friday-avatar.friday-denkt .friday-iris { animation-duration: 1s; }
.friday-avatar.friday-denkt .friday-kern-glow { animation: friday-atmen .8s ease-in-out infinite; }
.friday-avatar.friday-denkt .friday-scanlinie { animation-duration: 1.1s; }

/* ===== Menueeintrag #nav-friday (li#nav-friday > a.nav-link > span.nav-icon + span.nav-friday-text) ===== */
#nav-friday .nav-link { position: relative; }
#nav-friday .nav-icon svg { animation: friday-nav-glow 3.6s ease-in-out infinite; }
#nav-friday .friday-nav-ring { transform-origin: 12px 12px; animation: friday-dreh 10s linear infinite; }
#nav-friday .nav-friday-text {
  font-weight: 600;
  letter-spacing: 1.4px;
  background: var(--fr-verlauf-hell);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: friday-schimmer 7s linear infinite;
}
#nav-friday .nav-link:hover {
  background: linear-gradient(90deg, rgba(34, 211, 238, .10), rgba(139, 92, 246, .10)), var(--sidebar-active, #1f2937);
}
/* Aktiv: dunkles Glas mit Verlaufsrand statt des normalen Blau */
#nav-friday .nav-link.active {
  background: linear-gradient(90deg, rgba(34, 211, 238, .16) 0%, rgba(59, 130, 246, .10) 45%, rgba(139, 92, 246, .18) 100%), var(--fr-nacht);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--fr-rand), 0 0 14px rgba(56, 189, 248, .18);
}
#nav-friday .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--fr-verlauf);
  box-shadow: 0 0 8px rgba(34, 211, 238, .7);
}

/* ===== Reiter im Auftrag (button.akte-tab.akte-tab-friday, Beschriftung fridayAkteTabLabel) ===== */
.akte-tab.akte-tab-friday,
.akte-tab[data-tab="friday"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.friday-tab-kern {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 18%, #22d3ee 40%, #3b82f6 70%, #8b5cf6 100%);
  animation: friday-kern-puls 2.8s ease-in-out infinite;
}
.friday-tab-text {
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--fr-verlauf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: .8;
  transition: opacity .15s;
}
.akte-tab.akte-tab-friday:hover .friday-tab-text,
.akte-tab[data-tab="friday"]:hover .friday-tab-text { opacity: 1; }
/* aktiv: Verlaufsunterstrich statt der blauen Linie */
.akte-tab.akte-tab-friday.active,
.akte-tab[data-tab="friday"].active { border-bottom-color: transparent; }
.akte-tab.akte-tab-friday.active .friday-tab-text,
.akte-tab[data-tab="friday"].active .friday-tab-text { opacity: 1; filter: drop-shadow(0 0 4px rgba(56, 189, 248, .35)); }
.akte-tab.akte-tab-friday.active::after,
.akte-tab[data-tab="friday"].active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--fr-verlauf);
  box-shadow: 0 0 8px rgba(56, 189, 248, .6);
}

/* ===== Seitenkopf: dunkles HUD-Band ===== */
.friday-hud {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 16px;
  color: var(--fr-text-hell);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(34, 211, 238, .18) 0%, transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(139, 92, 246, .24) 0%, transparent 60%),
    var(--fr-nacht);
  box-shadow: 0 10px 30px rgba(11, 16, 32, .22), inset 0 0 0 1px var(--fr-rand);
}
/* feines Raster */
.friday-hud::before,
.friday-akte-kopf::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(129, 140, 248, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .2));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .2));
}
/* Verlaufskante unten */
.friday-hud::after,
.friday-akte-kopf::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--fr-verlauf);
  box-shadow: 0 0 12px rgba(56, 189, 248, .6);
}
/* langsamer Lichtstreif ueber das Band */
.friday-hud-glanz {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -25%;
  width: 18%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  animation: friday-glanz 9s ease-in-out infinite;
}
.friday-hud-inhalt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.friday-hud-text { min-width: 0; }
.friday-hud-titel {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 6px;
  background: var(--fr-verlauf-hell);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.friday-hud-unterzeile {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(230, 236, 255, .62);
  margin-top: 3px;
}
.friday-hud-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(34, 211, 238, .08);
  color: #67e8f9;
  font: 600 11px/1 ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.friday-hud-punkt {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fr-cyan);
  box-shadow: 0 0 8px var(--fr-cyan);
  animation: friday-atmen 2.2s ease-in-out infinite;
}

/* ===== Reiter der Seite (Chat | Gedaechtnis) - Masse wie .property-tabs in Immo ===== */
.friday-reiter {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.friday-reiter-knopf {
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text-muted);
}
.friday-reiter-knopf:hover { color: var(--text); background: var(--primary-light); }
.friday-reiter-knopf.active { color: #1e40af; background: var(--card-bg); }
.friday-reiter-knopf.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--fr-verlauf);
  box-shadow: 0 0 10px rgba(56, 189, 248, .5);
}

/* ===== Auftrags-Reiter: kompakter Kopf + Schnellknoepfe ===== */
.friday-akte-kopf {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  color: var(--fr-text-hell);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(34, 211, 238, .16) 0%, transparent 55%),
    radial-gradient(120% 180% at 100% 100%, rgba(139, 92, 246, .22) 0%, transparent 60%),
    var(--fr-nacht);
  box-shadow: inset 0 0 0 1px var(--fr-rand);
}
.friday-akte-kopf > * { position: relative; z-index: 1; }
.friday-akte-titelblock { min-width: 0; }
.friday-akte-titel { font-size: 15px; font-weight: 600; line-height: 1.35; }
.friday-akte-hinweis { font-size: 12px; color: rgba(230, 236, 255, .7); margin-top: 2px; line-height: 1.45; }
.friday-verlaufstext {
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--fr-verlauf-hell);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.friday-schnell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.friday-schnellknopf {
  border: 1px solid rgba(99, 102, 241, .35);
  background: linear-gradient(180deg, #ffffff, #f5f7ff);
  color: #1e3a8a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.friday-schnellknopf::before { content: '✦'; margin-right: 6px; color: var(--fr-violett); }
.friday-schnellknopf:hover {
  border-color: var(--fr-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .15), 0 0 12px rgba(59, 130, 246, .25);
}

/* ===== Werkzeugleiste ueber dem Chat ===== */
.friday-werkzeugleiste {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  /* Nicht umbrechen, sondern Suche und Unterhaltungs-Knopf schmaler machen: Mit flex-wrap
     rutschte "History" bei 1280 px Fensterbreite in eine eigene Zeile, und dem Chat fehlte
     unten genau diese Hoehe (Test 2026-09-26). */
  flex-wrap: nowrap;
  min-width: 0;
}
.friday-unterhaltungen-knopf { white-space: nowrap; max-width: 240px; min-width: 90px; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.friday-suche { position: relative; flex: 0 1 360px; min-width: 120px; }
.friday-suche-lupe {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .55;
  pointer-events: none;
}
.friday-suche input {
  width: 100%;
  padding: 7px 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}
.friday-suche input:focus { outline: none; border-color: var(--fr-blau); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.friday-suche-leeren {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  padding: 2px 4px;
}
.friday-suche-info { font-size: 12px; color: var(--text-muted); min-width: 70px; }

/* ===== Spalte Unterhaltungen + Chatkarte ===== */
.friday-chat-zeile { display: flex; gap: 12px; align-items: stretch; }
.friday-unterhaltungen { flex: 0 0 208px; flex-direction: column; }
.friday-unterhaltungen-liste {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
}
.friday-unterhaltung {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 8px;
  padding: 6px 8px;
}
.friday-unterhaltung:hover { border-color: var(--fr-blau); }
.friday-unterhaltung.aktiv {
  border-color: var(--fr-blau);
  background: linear-gradient(90deg, rgba(34, 211, 238, .10), rgba(139, 92, 246, .10)), var(--card-bg, #fff);
  box-shadow: inset 3px 0 0 var(--fr-cyan);
}
.friday-unterhaltung-kopf { display: flex; gap: 3px; align-items: center; }
.friday-unterhaltung-titel {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friday-unterhaltung-letzte {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friday-unterhaltung-leer { font-size: 12px; color: var(--text-muted); padding: 6px 2px; line-height: 1.45; }
@media (max-width: 900px) { .friday-unterhaltungen { flex-basis: 148px; } }

.card.friday-chat-karte {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, .22);
}
.card.friday-chat-karte.friday-drop { outline: 2px dashed var(--fr-blau); outline-offset: -2px; }
.friday-nachrichten {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background-color: #fbfcff;
  background-image: radial-gradient(rgba(59, 130, 246, .08) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
.friday-anhaenge { padding: 8px 16px 0; gap: 6px; flex-wrap: wrap; background: var(--card-bg); }
.friday-anhang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
}
.friday-anhang-weg {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--danger);
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
}
.friday-eingabezeile {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  align-items: flex-end;
  background: var(--card-bg);
}
.friday-eingabe {
  flex: 1;
  resize: none;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}
.friday-eingabe:focus {
  outline: none;
  border-color: var(--fr-blau);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15), 0 0 12px rgba(34, 211, 238, .18);
}

/* ===== Leerer Zustand ===== */
.friday-leer { margin: auto; text-align: center; color: var(--text-muted); }
.friday-leer-avatar { display: flex; justify-content: center; margin-bottom: 14px; }
.friday-leer-titel {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: var(--fr-verlauf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.friday-leer-text { font-size: 14px; max-width: 480px; margin: 0 auto; line-height: 1.5; }

/* ===== Tagestrenner ===== */
.friday-tag-trenner { display: flex; justify-content: center; margin: 6px 0 2px; }
.friday-tag-trenner span {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(129, 140, 248, .3);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: .4px;
}

/* ===== Blasen ===== */
.friday-zeile-nutzer { display: flex; justify-content: flex-end; }
.friday-zeile-ki,
.friday-zeile-karte { display: flex; justify-content: flex-start; align-items: flex-start; }
.friday-zeile-ki { gap: 9px; }
.friday-zeile-karte { gap: 8px; }
.friday-zeile-avatar { flex: 0 0 auto; margin-top: 2px; }
.friday-ki-spalte { max-width: 78%; min-width: 0; }
.friday-karte-spalte { max-width: 85%; min-width: 0; }
.friday-karte-spalte.friday-karte-breit { flex: 1; }
.friday-blase {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
/* Nutzer: im Verlauf */
.friday-blase-nutzer {
  max-width: 78%;
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 55%, #7c3aed 100%);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .22);
}
/* Assistent: Glasoptik mit Verlaufskante links */
.friday-blase-ki {
  position: relative;
  padding-left: 16px;
  color: var(--text, #111827);
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(238, 242, 255, .9));
  border: 1px solid rgba(129, 140, 248, .28);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.friday-blase-ki::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #22d3ee, #3b82f6 50%, #8b5cf6);
  box-shadow: 0 0 8px rgba(56, 189, 248, .5);
}
.friday-blase-denkt { opacity: .7; font-style: italic; }
.friday-tipp-punkte { display: inline-flex; gap: 3px; margin-left: 7px; vertical-align: middle; }
.friday-tipp-punkte i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fr-cyan);
  animation: friday-tippen 1.2s ease-in-out infinite;
}
.friday-tipp-punkte i:nth-child(2) { background: var(--fr-blau); animation-delay: .15s; }
.friday-tipp-punkte i:nth-child(3) { background: var(--fr-violett); animation-delay: .3s; }
.friday-abbrechen-zeile { display: flex; justify-content: flex-start; padding-left: 37px; margin-top: -4px; }
.friday-fehler { text-align: center; color: var(--danger); font-size: 13px; padding: 4px 0; }

/* ===== Unter der Antwort: Knoepfe, Schritte, Gedaechtnis-Chip ===== */
.friday-fuss { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.friday-chat-knopf {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.friday-chat-knopf:hover { color: var(--text); border-color: var(--fr-blau); box-shadow: 0 0 0 2px rgba(59, 130, 246, .12); }
.friday-chat-knopf:disabled { opacity: .6; cursor: default; box-shadow: none; }
.friday-schritte { margin-top: 4px; font-size: 11px; color: var(--text-muted); }
.friday-schritte summary { cursor: pointer; user-select: none; }
.friday-schritte-liste { padding: 4px 0 2px; }
.friday-schritt {
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}
.friday-schritt-fehler { color: var(--danger); }
.friday-chip {
  display: inline-block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(90deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .12)), var(--card-bg, #fff);
  border: 1px solid rgba(129, 140, 248, .25);
}
.friday-chip a { color: #4338ca; font-weight: 600; text-decoration: none; }
.friday-chip a:hover { text-decoration: underline; }
.friday-hervorgehoben {
  outline: 3px solid var(--fr-blau);
  outline-offset: 3px;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(56, 189, 248, .45);
  transition: outline-color .4s;
}
.friday-gedimmt { color: var(--text-muted); }
.friday-ok { color: #065f46; font-weight: 600; }
.friday-fehlertext { color: var(--danger); }

/* ===== Suche im Chat ===== */
.friday-mark {
  background: #cffafe;
  color: #0b1020;
  border-radius: 2px;
  padding: 0 1px;
}
.friday-mark-aktiv {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .3);
}
.friday-blase-nutzer .friday-mark { background: rgba(255, 255, 255, .85); color: #1e3a8a; }
.friday-blase-nutzer .friday-mark-aktiv { background: #fff; color: #4c1d95; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

/* ===== Karten (Bestaetigung, Rueckfrage, E-Mail-Entwurf) ===== */
.friday-karte {
  border: 1px solid rgba(59, 130, 246, .55);
  border-radius: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #f5f7ff);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .06);
}
.friday-karte-erledigt { opacity: .82; box-shadow: none; }
.friday-karte-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.friday-karte-kopf strong { font-size: 13px; }
.friday-karte-symbol { font-size: 15px; }
.friday-karte-zusatz { font-size: 11px; color: var(--text-muted); }
.friday-karte-beschreibung { font-size: 13px; margin-bottom: 6px; word-break: break-word; }
.friday-karte-vorschau { font-size: 12px; border-top: 1px solid var(--border); padding-top: 6px; }
.friday-karte-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.friday-karte-status { font-size: 12px; }
.friday-vorschau-zeile { display: flex; gap: 8px; }
.friday-vorschau-name { color: var(--text-muted); min-width: 110px; flex: 0 0 auto; word-break: break-word; }
.friday-vorschau-wert { min-width: 0; word-break: break-word; }
.friday-vorschau-text {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
  margin: 2px 0;
  padding: 6px 8px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
}
.friday-entwurf-feld { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; }
.friday-entwurf-name { color: var(--text-muted); min-width: 64px; flex: 0 0 auto; }
.friday-entwurf-wert { min-width: 0; word-break: break-word; font-weight: 600; }
.friday-entwurf-text {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
}

/* ===== Dokument-Karte ===== */
.friday-dokument {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  background: var(--card-bg, #fff);
  box-shadow: 0 2px 10px rgba(59, 130, 246, .06);
}
.friday-dokument-symbol { font-size: 26px; }
.friday-dokument-text { flex: 1; min-width: 200px; }
.friday-dokument-name { font-weight: 600; font-size: 14px; }
.friday-dokument-ordner { font-size: 12px; color: var(--text-muted); word-break: break-all; }

/* Wer weniger Bewegung moechte (Systemeinstellung), bekommt einen ruhigen Friday. */
@media (prefers-reduced-motion: reduce) {
  .friday-avatar *,
  #nav-friday .nav-icon svg,
  #nav-friday .friday-nav-ring,
  #nav-friday .nav-friday-text,
  .friday-tab-kern,
  .friday-hud-glanz,
  .friday-hud-punkt,
  .friday-tipp-punkte i { animation: none !important; }
}
