/* Academy Sales · Ergänzungen zum Grundstil (styles.css, claude.ai-Anmutung) */

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 34px 0 20px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0; }
.page-head .lead { margin: 6px 0 0; }
.section { margin-top: 34px; }
.section > h2 { font-size: 1.45rem; margin-bottom: 4px; }
.section > .sub { color: var(--ink-3); font-size: .92rem; margin-bottom: 14px; }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpis .card { padding: 16px 18px; }
.kpis .kpi { font-size: 2rem; }
.kpis .card.hebel { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpis .card.hebel .kpi, .kpis .card.hebel .eyebrow, .kpis .card.hebel .small { color: #fff; }

/* Matrix beidseitige Passung */
.matrix { display: grid; grid-template-columns: 30px 1fr 1fr; grid-template-rows: 1fr 1fr 28px; gap: 10px; }
.matrix .ax-y { grid-row: 1 / 3; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .78rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.matrix .ax-x { grid-row: 3; grid-column: 2 / 4; text-align: center; font-size: .78rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.feld { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); min-height: 190px; }
.feld h4 { margin: 0 0 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.feld h4 a { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.feld p { font-size: .84rem; color: var(--ink-2); margin: 0 0 10px; }
.feld.zusammen { background: var(--teal-soft); border-color: #C6E6E0; }
.feld.kennenlernen { background: #E7ECF5; border-color: #CCD6E8; }
.feld.verbunden { background: var(--gold-soft); border-color: #EBDDB3; }
.feld .namen { display: flex; flex-wrap: wrap; gap: 5px; }
.feld .namen a { font-size: .8rem; background: rgba(255, 255, 255, .7); border: 1px solid rgba(0, 0, 0, .06); padding: 2px 9px; border-radius: 999px; }
@media (max-width: 720px) { .matrix { grid-template-columns: 1fr; grid-template-rows: none; } .matrix .ax-y, .matrix .ax-x { display: none; } }

/* Weg (Trichter) */
.weg { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.weg-gruppe h4 { margin-bottom: 8px; }
.balken { display: grid; grid-template-columns: 110px 1fr 54px; gap: 8px; align-items: center; font-size: .88rem; padding: 3px 0; }
.balken .b { height: 16px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.balken .b i { display: block; height: 100%; background: var(--navy); border-radius: 999px; min-width: 2px; }
.balken.vertrauen .b i { background: var(--accent); }
.balken.zusammen .b i { background: var(--teal); }
.balken .n { text-align: right; font-variant-numeric: tabular-nums; }
.balken .plus { color: var(--teal); font-size: .76rem; margin-left: 4px; }
.balken a:hover { text-decoration: underline; }

/* Kleine Messbalken in Tabellen */
.mess { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-size: .84rem; }
.mess .b { width: 54px; height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.mess .b i { display: block; height: 100%; background: var(--navy); }
.mess.res .b i { background: var(--accent); }
.mess.pot .b i { background: var(--gold); }

.badge.ph-kennen { background: #E7ECF5; color: var(--navy); }
.badge.ph-vertrauen { background: var(--accent-soft); color: var(--accent-2); }
.badge.ph-zusammen { background: var(--teal-soft); color: #1E7A6F; }
.badge.ph-neben { background: var(--bg-2); color: var(--ink-3); }
.badge.weg-plattform-partner { background: var(--navy); color: #fff; }
.badge.weg-partner-kandidat { background: var(--gold-soft); color: #8A6B12; }
.badge.weg-wiederverkauf, .badge.weg-multiplikator { background: #E7ECF5; color: var(--navy); }
.badge.manuell::after { content: " ✎"; }

/* Heute dran */
.heute { list-style: none; margin: 0; padding: 0; }
.heute li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.heute li:last-child { border-bottom: 0; }
.heute .wer { font-weight: 600; }
.heute .was { font-size: .9rem; color: var(--ink-2); }
.prio1 .wer::before { content: "●"; color: var(--accent); margin-right: 6px; }

/* Filter */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filterbar input[type=text], .filterbar select { width: auto; min-width: 140px; padding: 8px 12px; font-size: .9rem; }
.filterbar input[type=text] { min-width: 220px; flex: 1 1 220px; }
.filterbar label.chk { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: .88rem; }

table.personen td { vertical-align: middle; }
table.personen .name a { font-weight: 600; }
table.personen .rolle { font-size: .8rem; color: var(--ink-3); max-width: 420px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: .9rem; }

/* Person */
.person-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; margin: 30px 0 18px; }
.person-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 4px; }
.person-head .links a { margin-right: 14px; font-size: .9rem; color: var(--blue); }
.person-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .person-grid, .person-head { grid-template-columns: 1fr; } }
.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.werte .w { background: var(--bg); border-radius: var(--radius-s); padding: 12px; }
.werte .w .kpi { font-size: 1.8rem; }
.werte .w ul { margin: 6px 0 0; padding-left: 16px; font-size: .78rem; color: var(--ink-2); }
@media (max-width: 640px) { .werte { grid-template-columns: 1fr; } }
.aktionen-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.aktionen-knoepfe .btn { font-size: .85rem; padding: 7px 13px; }
.zeit { list-style: none; padding: 0; margin: 0; }
.zeit li { padding: 9px 0 9px 16px; border-left: 2px solid var(--line-2); position: relative; }
.zeit li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.zeit li.linkedin::before { background: var(--blue); }
.zeit li.mail-ein::before { background: var(--accent); }
.zeit li.mail-aus::before { background: var(--navy); }
.zeit li.meeting::before { background: var(--teal); }
.zeit .t { font-size: .76rem; color: var(--ink-3); }
.zeit .x { font-size: .84rem; color: var(--ink-2); white-space: pre-wrap; max-height: 5.4em; overflow: hidden; }
.form-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; align-items: end; }
.form-inline .field { margin: 0; }

/* Agentenläufe und Entwürfe */
.lauf { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; background: #fff; }
.lauf + .lauf { margin-top: 10px; }
.lauf .kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.lauf .kopf b { font-size: .95rem; }
.lauf textarea { min-height: 160px; font-size: .92rem; margin-top: 8px; }
.lauf .md { margin-top: 8px; max-height: 420px; overflow: auto; }
.badge.st-laeuft { background: var(--gold-soft); color: #8A6B12; }
.badge.st-entwurf { background: var(--accent); color: #fff; }
.badge.st-gesendet { background: var(--teal); color: #fff; }
.badge.st-fertig { background: var(--teal-soft); color: #1E7A6F; }
.badge.st-fehler, .badge.st-nicht-gesendet, .badge.st-unklar { background: var(--red-soft); color: var(--red); }
.badge.st-verworfen, .badge.st-freigegeben { background: var(--bg-2); color: var(--ink-3); }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: drehen .8s linear infinite; vertical-align: -1px; }
@keyframes drehen { to { transform: rotate(360deg); } }

.schalter { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.schalter label { margin: 0; padding: 7px 14px; cursor: pointer; font-size: .88rem; color: var(--ink-2); }
.schalter input { display: none; }
.schalter input:checked + span { color: #fff; }
.schalter label:has(input:checked) { background: var(--ink); color: #fff; }

/* Events, Kampagnen, Partner */
.ev-card .datum { font-family: var(--serif); font-size: 1.3rem; }
.zahlenreihe { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: .88rem; }
.zahlenreihe b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: block; }
.partner-card .mrr { font-family: var(--serif); font-size: 1.6rem; }
.partner-card .form-inline { margin-top: 10px; }
.hebel-text { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 24px; }
.hebel-text h3 { color: #fff; }
.hebel-text p { margin: 0; color: #E3E7F0; }
.leer { color: var(--ink-3); font-size: .9rem; padding: 10px 0; }
details.mehr summary { cursor: pointer; color: var(--blue); font-size: .88rem; margin-top: 8px; }
.quelle-zeile { font-size: .84rem; }
.quelle-zeile .fehler { color: var(--red); }

/* Chat-Reiter: links die Gespräche, Mitte das Gespräch, rechts der Partner (Aufbau wie der Werkstatt-Chat) */
.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr) 290px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; margin: 18px 0 20px; height: calc(100vh - 128px); min-height: 520px; box-shadow: var(--shadow); }
.chat-left { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-left-head { padding: 16px 16px 8px; font-size: .95rem; }
.chat-wahl { display: flex; gap: 6px; margin: 4px 12px 8px; }
.chat-wahl a { flex: 1; display: flex; gap: 7px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; font-size: .88rem; color: var(--ink-2); text-decoration: none; background: transparent; }
.chat-wahl a:hover { background: var(--paper); text-decoration: none; }
.chat-wahl a.an { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.wahl-bild { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: 0 0 20px; }
.chat-new { margin: 6px 12px 10px; width: calc(100% - 24px); justify-content: center; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.chat-threads { flex: 1; overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.chat-thread { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.chat-thread:hover { background: var(--paper); text-decoration: none; }
.chat-thread.active { background: var(--paper); box-shadow: var(--shadow); }
.chat-thread-title, .chat-trunc { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-person { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 6px; margin-left: 6px; }
.chat-thread-tools { display: none; gap: 2px; }
.chat-thread:hover .chat-thread-tools { display: flex; }
.chat-icon { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 3px 5px; border-radius: 6px; line-height: 1; display: inline-flex; align-items: center; font-size: .85rem; }
.chat-icon:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.chat-icon.danger:hover { color: var(--red); }
.chat-left-foot { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.chat-user-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: 0 0 9px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: .92rem; font-weight: 600; background: var(--paper); min-height: 48px; }
.chat-head .btn { flex: 0 0 auto; }
.chat-messages { flex: 1; overflow-y: auto; padding: 26px 24px; min-height: 0; }
.chat-messages-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.msg.user { display: flex; flex-direction: column; align-items: flex-end; }
.msg-bubble { background: var(--bg-2); border-radius: 16px 16px 4px 16px; padding: 10px 14px; max-width: 80%; font-size: .95rem; }
.msg.user.sprache .msg-bubble { background: var(--accent-soft); }
.msg-meta { font-size: .74rem; color: var(--ink-3); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.msg.agent { display: flex; gap: 12px; align-items: flex-start; }
.msg.agent .msg-meta { margin: 0 0 4px; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 34px; }
.ersatz { display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; font-size: .9em; }
.msg-body { min-width: 0; flex: 1; }
.msg-content .md { font-size: .95rem; }
.msg-content .md p:first-child { margin-top: 0; }
.msg-live { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: .9rem; margin-top: 6px; }
.chat-empty { text-align: center; padding: 50px 0 20px; }
.chat-empty-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; font-size: 1.6rem; }
.chat-empty-title { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 8px; }
.chat-start { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chat-start .btn { white-space: normal; text-align: left; }
.chat-input { padding: 0 24px 14px; }
.chat-input-card { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.chat-input-card textarea { width: 100%; border: 0; background: transparent; resize: none; padding: 14px 16px 6px; font: inherit; font-size: .98rem; outline: none; max-height: 220px; min-height: 48px; box-shadow: none; }
.chat-input-card textarea:focus { box-shadow: none; border: 0; }
.chat-input-row { display: flex; gap: 4px; align-items: center; padding: 4px 10px 10px; }
.chat-btn { border: 0; background: transparent; color: var(--ink-2); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; font-size: 1rem; }
.chat-btn:hover { background: rgba(0, 0, 0, .05); }
.chat-btn:disabled { opacity: .4; cursor: default; }
.chat-btn.send { background: var(--ink); color: #fff; }
.chat-btn.send:hover { background: var(--navy); }
.chat-btn.rec { color: var(--accent); background: var(--accent-soft); }
.chat-right { border-left: 1px solid var(--line); background: var(--paper); padding: 18px; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.chat-right h4 { margin: 0 0 8px; font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; }
.chat-right .start-q { display: block; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .86rem; cursor: pointer; margin-bottom: 6px; color: var(--ink); }
.chat-right .start-q:hover { border-color: var(--accent); background: #fff; }
.partner-bild { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; font-size: 1.3rem; }
.chat-stimme { max-width: 820px; margin: 0 auto 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--accent-soft); padding: 10px 14px; font-size: .86rem; }
.stimme-text { max-height: 140px; overflow-y: auto; margin-top: 6px; }
.stimme-text .er b { color: var(--accent-2); }
.live-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 4px; }
.live-punkt.live { background: var(--red); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .35; } }
.chatknopf { border: 0; background: none; cursor: pointer; padding: 0 2px; font-size: .95rem; opacity: .55; text-decoration: none; }
.chatknopf:hover { opacity: 1; text-decoration: none; }
@media (max-width: 1100px) { .chat { grid-template-columns: 240px minmax(0, 1fr); } .chat-right { display: none; } }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-left { max-height: 240px; } .chat-messages { max-height: 60vh; } }
