/* ============================================================
   LEADERSIM – Leadership Simulation Lab
   Light Mode Design – Mai 2026
   ============================================================ */
 
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');
 
:root {
  --bg:           #F6F5F2;
  --bg-soft:      #EEECEA;
  --panel:        #FFFFFF;
  --panel-2:      #F6F5F2;
  --panel-3:      #EEECEA;
  --line:         rgba(0,0,0,0.08);
  --line-strong:  rgba(0,0,0,0.13);
  --text:         #141414;
  --muted:        #6B6B6B;
  --muted-2:      #444444;
  --accent:       #3F3266;
  --accent-2:     #5C4E8A;
  --accent-soft:  rgba(63,50,102,0.08);
  --copper:       #B36B44;
  --copper-soft:  rgba(179,107,68,0.10);
  --success:      #2E6B4E;
  --success-soft: rgba(46,107,78,0.10);
  --warning:      #854F0B;
  --warning-soft: rgba(133,79,11,0.10);
  --danger:       #A32D2D;
  --danger-soft:  rgba(163,45,45,0.10);
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --radius-xl:    24px;
  --radius-lg:    16px;
  --radius-md:    10px;
  --sidebar-width:280px;
  --transition:   160ms ease;
}
 
* { box-sizing: border-box; }
 
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
 
button, textarea, input { font: inherit; }
button { cursor: pointer; }
 
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0,1fr);
  min-height: 100vh;
}
 
/* ---- SIDEBAR ---- */
.sidebar {
  border-right: 0.5px solid var(--line-strong);
  background: var(--panel);
  padding: 24px 18px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
 
.brand-block { padding: 4px 2px 0; }
.brand-kicker { color: var(--copper); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 8px; }
.brand-block h1 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--accent); }
.brand-subline { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.82rem; }
 
.mission-card, .content-card, .progress-card {
  background: var(--panel);
  border: 0.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
 
.mission-card { padding: 16px; }
.mission-card h2 { margin: 8px 0 8px; font-size: 1rem; color: var(--text); }
.mission-card p { margin: 0; color: var(--muted-2); line-height: 1.55; font-size: 0.85rem; }
 
.card-label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); background: var(--accent-soft);
  border: 0.5px solid rgba(63,50,102,0.20);
  border-radius: 999px; padding: 4px 10px;
  font-size: 0.70rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
}
 
/* ---- STEP NAV ---- */
.step-nav { display: flex; flex-direction: column; gap: 6px; }
 
.step-nav-item {
  width: 100%; border: 0.5px solid var(--line);
  background: transparent; color: var(--text);
  border-radius: 10px; padding: 11px 12px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  transition: border-color var(--transition), background var(--transition);
}
.step-nav-item:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.step-nav-item.active { border-color: rgba(63,50,102,0.35); background: var(--accent-soft); }
 
.step-index {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--muted);
  font-weight: 600; flex-shrink: 0; font-size: 0.80rem;
}
.step-nav-item.active .step-index { background: var(--accent); color: white; }
.step-text { display: flex; flex-direction: column; gap: 1px; }
.step-text strong { font-size: 0.88rem; color: var(--text); }
.step-text small { color: var(--muted); font-size: 0.75rem; }
 
.sidebar-footer { margin-top: auto; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0.5px solid var(--line-strong); border-radius: 999px;
  padding: 8px 12px; color: var(--muted); background: var(--bg-soft); font-size: 0.80rem;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
 
/* ---- MAIN STAGE ---- */
.main-stage { display: flex; flex-direction: column; min-width: 0; }
 
.topbar {
  padding: 20px 28px 18px;
  border-bottom: 0.5px solid var(--line-strong);
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  background: var(--panel); position: sticky; top: 0; z-index: 10;
}
.topbar-left { min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
 
.eyebrow { color: var(--copper); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.10em; font-weight: 600; margin-bottom: 8px; }
.page-title-wrap h2 { margin: 0 0 4px; font-size: 1.65rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.page-title-wrap p { margin: 0; color: var(--muted); font-size: 0.9rem; }
 
.progress-card { min-width: 220px; padding: 14px 16px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 0.82rem; }
.progress-bar { height: 5px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width 400ms ease; }
 
/* ---- STEP PANELS ---- */
.step-panel { display: none; padding: 28px; }
.step-panel.active { display: block; }
 
/* ---- CONTENT GRID ---- */
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.briefing-grid { grid-template-columns: 1.2fr 1fr; }
.hero-card, .side-card, .content-card { padding: 22px; }
 
.content-card h3 { margin: 10px 0 10px; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; color: var(--text); }
.content-card p { margin: 0 0 12px; line-height: 1.65; color: var(--muted-2); }
 
.highlight-box {
  margin-top: 18px; padding: 14px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-top: 0.5px solid var(--line);
  border-right: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  border-radius: 0 8px 8px 0;
}
.highlight-box strong { display: block; margin-bottom: 5px; font-size: 0.88rem; color: var(--accent); }
.highlight-box p { margin: 0; font-size: 0.88rem; color: var(--muted-2); }
 
.clean-list { margin: 0; padding-left: 18px; color: var(--muted-2); }
.clean-list li { margin-bottom: 8px; line-height: 1.55; font-size: 0.88rem; }
 
.action-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
 
/* ---- BUTTONS ---- */
.btn { border: none; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 0.90rem; transition: transform var(--transition), background var(--transition); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: var(--bg-soft); color: var(--text); border: 0.5px solid var(--line-strong); }
.btn-secondary:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--muted); border: 0.5px dashed var(--line-strong); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border: 0.5px solid rgba(163,45,45,0.25); }
.btn-danger:hover { background: rgba(163,45,45,0.18); }
 
/* ---- MODULE LIST ---- */
.module-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.module-btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 0.5px solid var(--line-strong);
  border-radius: 10px; background: var(--panel); color: var(--text); text-align: left;
  transition: all var(--transition);
}
.module-btn:hover:not(:disabled) { border-color: rgba(63,50,102,0.3); background: var(--bg-soft); }
.module-btn.active { border-color: rgba(63,50,102,0.4); background: var(--accent-soft); }
.module-btn.disabled, .module-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.module-icon { font-size: 1.2rem; flex-shrink: 0; }
.module-text { display: flex; flex-direction: column; gap: 1px; }
.module-text strong { font-size: 0.88rem; color: var(--text); }
.module-text small { color: var(--muted); font-size: 0.75rem; }
 
/* ---- SCENARIO GRID ---- */
.scenario-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  max-height: 380px; overflow-y: auto; padding-right: 4px; gap: 12px; margin-top: 12px;
}
.scenario-card {
  padding: 16px; border: 0.5px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--panel); color: var(--text); text-align: left; transition: all var(--transition); cursor: pointer;
}
.scenario-card:hover:not(:disabled) { border-color: rgba(63,50,102,0.3); background: var(--bg-soft); }
.scenario-card.active { border-color: rgba(63,50,102,0.5); background: var(--accent-soft); }
.scenario-card.locked, .scenario-card:disabled { opacity: 0.35; cursor: not-allowed; }
.scenario-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.scenario-tag { font-size: 0.70rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 0.5px solid rgba(63,50,102,0.18); }
.scenario-difficulty { font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.scenario-difficulty.easy   { background: var(--success-soft); color: var(--success); border: 0.5px solid rgba(46,107,78,0.2); }
.scenario-difficulty.medium { background: var(--warning-soft); color: var(--warning); border: 0.5px solid rgba(133,79,11,0.2); }
.scenario-difficulty.hard   { background: var(--danger-soft);  color: var(--danger);  border: 0.5px solid rgba(163,45,45,0.2); }
.scenario-card h4 { margin: 0 0 5px; font-size: 0.95rem; color: var(--text); }
.scenario-card p  { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
 
/* ---- HOW IT WORKS ---- */
.how-it-works { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.how-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 0.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--bg-soft); }
.how-num { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: white; display: grid; place-items: center; font-weight: 600; font-size: 0.80rem; flex-shrink: 0; }
.how-step strong { display: block; margin-bottom: 3px; font-size: 0.86rem; color: var(--text); }
.how-step p { margin: 0; color: var(--muted); font-size: 0.80rem; line-height: 1.5; }
 
/* ---- CALL LAYOUT ---- */
.call-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 20px; align-items: start; }
.call-main-card { background: var(--panel); border: 0.5px solid var(--line-strong); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.call-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.call-topbar h3 { color: var(--text); font-size: 1.05rem; }
.call-status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--muted-2); font-size: 0.78rem; font-weight: 600; border: 0.5px solid var(--line-strong); }
.call-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.call-status-dot.connected { background: var(--success); }
.call-status-dot.ringing   { background: var(--warning); animation: blink 0.8s infinite; }
.call-status-dot.listening { background: #3B8BD4; }
 
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
 
.call-stage {
  min-height: 340px; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--bg-soft); border: 0.5px solid var(--line);
  padding: 28px; margin-bottom: 18px;
}
.participant-card { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.participant-avatar-wrap { position: relative; width: 160px; height: 160px; margin-bottom: 18px; }
.avatar-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(63,50,102,0.15); transition: all 0.25s ease; }
.participant-avatar-wrap.speaking .avatar-ring { border-color: rgba(63,50,102,0.7); box-shadow: 0 0 0 8px rgba(63,50,102,0.07), 0 0 28px rgba(63,50,102,0.18); animation: pulseRing 1.2s infinite ease-in-out; }
.participant-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; border: 2px solid var(--line-strong); background: var(--bg-soft); }
.participant-avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; background: var(--accent-soft); border: 2px solid rgba(63,50,102,0.2); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.participant-meta h4 { margin: 0 0 4px; font-size: 1.2rem; color: var(--text); }
.participant-meta p  { margin: 0; color: var(--muted); font-size: 0.86rem; }
.voice-bars { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 32px; margin-top: 14px; }
.voice-bars span { width: 5px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: all 0.2s ease; }
.voice-bars.active span { background: var(--accent); animation: voiceBars 0.9s infinite ease-in-out; }
.voice-bars.active span:nth-child(2){animation-delay:0.1s}
.voice-bars.active span:nth-child(3){animation-delay:0.18s}
.voice-bars.active span:nth-child(4){animation-delay:0.28s}
.voice-bars.active span:nth-child(5){animation-delay:0.36s}
 
.call-mic-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; border: 0.5px solid var(--line-strong); background: var(--bg-soft); }
.mic-status { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted-2); }
.mic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.mic-dot.listening { background: #3B8BD4; animation: blink 1.5s infinite; }
.mic-dot.active    { background: var(--danger); animation: blink 0.6s infinite; }
.mic-dot.idle      { background: var(--success); }
 
.call-side-panel { display: flex; flex-direction: column; gap: 18px; }
.conversation-window { min-height: 260px; max-height: 360px; overflow-y: auto; border-radius: 10px; border: 0.5px solid var(--line-strong); background: var(--panel); padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.conversation-window::-webkit-scrollbar{width:3px}
.conversation-window::-webkit-scrollbar-track{background:transparent}
.conversation-window::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:2px}
 
.message { display: flex; flex-direction: column; gap: 4px; max-width: 88%; }
.message-system { max-width: 100%; }
.message-ai   { align-self: flex-start; }
.message-user { align-self: flex-end; }
.message-meta { font-size: 0.70rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.message-bubble { padding: 9px 12px; border-radius: 12px; line-height: 1.5; color: var(--text); border: 0.5px solid var(--line-strong); background: var(--bg-soft); font-size: 0.85rem; }
.message-user .message-bubble { background: var(--accent-soft); border-color: rgba(63,50,102,0.22); }
.message-system .message-bubble { background: var(--success-soft); border-color: rgba(46,107,78,0.18); color: var(--muted-2); font-size: 0.80rem; }
 
.typing-indicator { display: flex; align-items: center; gap: 5px; padding: 9px 13px; background: var(--bg-soft); border: 0.5px solid var(--line-strong); border-radius: 12px; width: fit-content; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typingBounce 1.2s infinite; }
.typing-dot:nth-child(2){animation-delay:0.2s}
.typing-dot:nth-child(3){animation-delay:0.4s}
@keyframes typingBounce { 0%,60%,100%{transform:translateY(0);opacity:0.5} 30%{transform:translateY(-5px);opacity:1} }
 
/* ---- DEBRIEF ---- */
.debrief-grid { grid-template-columns: 0.9fr 1.3fr; }
.score-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.score-item { padding: 14px; border-radius: 10px; border: 0.5px solid var(--line-strong); background: var(--panel); }
.score-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--text); font-weight: 600; font-size: 0.88rem; }
.score-bar { height: 6px; border-radius: 999px; overflow: hidden; background: var(--bg-soft); margin-bottom: 8px; }
.score-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.score-item p { margin: 0; font-size: 0.82rem; color: var(--muted-2); line-height: 1.5; }
 
@keyframes pulseRing { 0%{transform:scale(1);opacity:0.9} 50%{transform:scale(1.03);opacity:1} 100%{transform:scale(1);opacity:0.9} }
@keyframes voiceBars { 0%{height:6px;opacity:0.5} 25%{height:24px;opacity:1} 50%{height:12px;opacity:0.7} 75%{height:28px;opacity:1} 100%{height:8px;opacity:0.6} }
 
.hidden { display: none !important; }
 
/* ---- RESPONSIVE ---- */
@media (max-width:1180px) {
  .app-shell{grid-template-columns:1fr}
  .sidebar{border-right:none;border-bottom:0.5px solid var(--line-strong);position:static;height:auto}
  .call-layout,.content-grid,.debrief-grid,.briefing-grid{grid-template-columns:1fr}
  .scenario-grid{grid-template-columns:1fr 1fr}
  .how-it-works{grid-template-columns:1fr}
}
@media (max-width:780px) {
  /* ---- Grundlayout ---- */
  .topbar,.step-panel,.sidebar{padding-left:16px;padding-right:16px}
  .action-row{flex-direction:column}
  .btn{width:100%;text-align:center}
  .scenario-grid{grid-template-columns:1fr}
  .participant-avatar-wrap{width:130px;height:130px}
  .call-stage{min-height:260px}
  .call-mic-row{flex-direction:column;align-items:stretch}
 
  /* ---- Topbar: kompakter auf Mobile ---- */
  .topbar{flex-direction:column;align-items:stretch;padding-top:12px;padding-bottom:12px;gap:10px}
  .topbar-left .eyebrow{display:none}
  .page-title-wrap h2{font-size:1.2rem;margin:0}
  .page-title-wrap p{font-size:0.78rem;margin:2px 0 0}
 
  /* Topbar-Boxen: alle 3 nebeneinander in einer Zeile */
  .topbar-right{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;width:100%;box-sizing:border-box;align-items:stretch}
  .topbar-box{min-width:0 !important;padding:8px 8px;box-sizing:border-box;overflow:hidden}
  .topbar-box-label{font-size:0.55rem;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-box-value{font-size:0.80rem}
  .topbar-box-main{gap:4px}
  .topbar-box-text{min-width:0;overflow:hidden}
  .topbar-box-text #account-label{font-size:0.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-box-sub{font-size:0.58rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .account-avatar{width:20px;height:20px;font-size:0.62rem;flex-shrink:0}
 
  /* ---- Sidebar: kompakter auf Mobile ---- */
  .brand-block{padding-bottom:8px;margin-bottom:8px}
  .brand-block h1{font-size:1.05rem}
  .brand-kicker{font-size:0.60rem}
  .brand-subline{display:none}
  .mission-card{display:none}
 
  /* Step-Nav horizontal scrollen statt vertikal stapeln */
  .step-nav{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .step-nav::-webkit-scrollbar{display:none}
  .step-nav-item{flex-shrink:0;flex-direction:row;gap:8px;padding:8px 12px;min-width:auto}
  .step-index{width:22px;height:22px;font-size:0.65rem;flex-shrink:0}
  .step-text strong{font-size:0.78rem}
  .step-text small{display:none}
 
  /* ---- Simulation ---- */
  .call-topbar{flex-direction:column;gap:8px}
  .call-layout,.content-grid,.debrief-grid,.briefing-grid{grid-template-columns:1fr}
  .progress-card{min-width:0}
}
 
/* ---- PROTOKOLL TOGGLE ---- */
.protocol-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; padding-bottom: 8px; border-bottom: 0.5px solid var(--line-strong); margin-bottom: 4px; }
.protocol-toggle h3 { margin: 0; font-size: 0.90rem; color: var(--text); }
.protocol-toggle-icon { width: 26px; height: 26px; border-radius: 7px; border: 0.5px solid var(--line-strong); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); transition: all var(--transition); flex-shrink: 0; }
.protocol-toggle:hover .protocol-toggle-icon { color: var(--text); }
.conversation-window.collapsed { display: none; }
 
/* ============================================================
   ACCOUNT
   ============================================================ */
 
/* ---- Neue Topbar 3-Boxen ---- */
.topbar-box {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-soft); border: 0.5px solid var(--line-strong);
  border-radius: var(--radius-md); padding: 10px 14px;
  min-width: 140px; cursor: default;
  transition: border-color var(--transition), background var(--transition);
  color: var(--text); text-align: left; box-sizing: border-box;
  align-self: stretch;
}
button.topbar-box { cursor: pointer; }
button.topbar-box:hover { border-color: rgba(63,50,102,0.3); background: var(--bg); }
button.topbar-box.logged-in { border-color: rgba(63,50,102,0.35); background: var(--accent-soft); }
 
.topbar-box-label { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 5px; }
.topbar-box-main  { display: flex; align-items: center; gap: 8px; }
.topbar-box-value { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.topbar-box-text #account-label { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.topbar-box-sub   { font-size: 0.66rem; color: var(--muted); }
 
/* Legacy – behalten für Kompatibilität */
.topbar-account-btn { display: flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 0.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 10px 13px; cursor: pointer; color: var(--text); transition: border-color var(--transition), background var(--transition); white-space: nowrap; height: 100%; box-sizing: border-box; }
.topbar-account-btn:hover { border-color: rgba(63,50,102,0.3); background: var(--bg); }
.topbar-account-btn.logged-in { border-color: rgba(63,50,102,0.35); background: var(--accent-soft); }
.topbar-account-text { text-align: left; }
.topbar-account-text #account-label { font-size: 0.76rem; font-weight: 600; color: var(--text); }
.topbar-account-text #account-sub   { font-size: 0.66rem; color: var(--muted); }
 
.account-sidebar-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--bg-soft); border: 0.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 11px 13px; cursor: pointer; text-align: left; transition: border-color var(--transition), background var(--transition); color: var(--text); }
.account-sidebar-btn:hover { border-color: rgba(63,50,102,0.3); }
.account-sidebar-btn.logged-in { border-color: rgba(63,50,102,0.35); background: var(--accent-soft); }
.account-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); border: 0.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.account-avatar:not(.empty) { background: var(--accent-soft); border-color: rgba(63,50,102,0.3); color: var(--accent); }
#account-label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
#account-sub   { font-size: 0.72rem; color: var(--muted); }
 
.account-panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.28); z-index: 200; display: none; align-items: flex-start; justify-content: flex-end; }
.account-panel-overlay.open { display: flex; }
.account-panel { width: 400px; max-width: 95vw; height: 100vh; background: var(--panel); border-left: 0.5px solid var(--line-strong); overflow-y: auto; padding: 26px 22px; display: flex; flex-direction: column; gap: 0; box-shadow: -4px 0 20px rgba(0,0,0,0.10); }
.account-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.account-panel-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.account-panel-close { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; border-radius: 7px; line-height: 1; }
.account-panel-close:hover { color: var(--text); background: var(--bg-soft); }
 
.account-form-label { font-size: 0.76rem; color: var(--muted-2); font-weight: 500; margin-bottom: 5px; display: block; }
.account-form-input { width: 100%; padding: 10px 13px; font-size: 0.88rem; background: var(--bg-soft); border: 0.5px solid var(--line-strong); border-radius: var(--radius-md); color: var(--text); box-sizing: border-box; margin-bottom: 12px; }
.account-form-input:focus { outline: none; border-color: rgba(63,50,102,0.45); background: var(--accent-soft); }
.account-error { font-size: 0.78rem; color: var(--danger); min-height: 18px; margin-bottom: 8px; }
.account-divider { text-align: center; color: var(--muted); font-size: 0.76rem; margin: 12px 0; }
.account-anon { text-align: center; font-size: 0.76rem; color: var(--muted); margin-top: 12px; }
.account-anon a { color: var(--accent-2); cursor: pointer; text-decoration: underline; }
 
.account-code-box { background: var(--accent-soft); border: 0.5px solid rgba(63,50,102,0.25); border-radius: var(--radius-md); padding: 18px; text-align: center; margin: 14px 0; }
.account-code-big { font-size: 1.8rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.account-code-hint { font-size: 0.76rem; color: var(--muted); margin-top: 5px; }
 
/* ---- COCKPIT ---- */
.cockpit-section-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--accent-soft); border: 0.5px solid rgba(63,50,102,0.18); border-radius: 999px; padding: 3px 10px; display: inline-block; margin: 16px 0 8px; }
.cockpit-section-label:first-child { margin-top: 0; }
.cockpit-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 4px; }
.cockpit-metric { background: var(--bg-soft); border: 0.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 9px 11px; }
.cockpit-metric-val { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.cockpit-metric-lbl { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
 
/* Trainingsminuten-Fortschrittsbalken */
.cockpit-minutes-bar { margin: 4px 0 12px; }
.cockpit-minutes-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-bottom: 5px; }
.cockpit-minutes-label span:last-child { font-weight: 600; color: var(--text); }
.cockpit-minutes-track { height: 5px; background: var(--bg-soft); border-radius: 999px; border: 0.5px solid var(--line); }
.cockpit-minutes-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.5s ease; }
.cockpit-minutes-fill.warning { background: var(--warning); }
.cockpit-minutes-fill.danger  { background: var(--danger); }
 
.cockpit-comp-card { background: var(--bg-soft); border: 0.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 13px; margin-bottom: 4px; }
.cockpit-comp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cockpit-comp-row:last-child { margin-bottom: 0; }
.cockpit-comp-name  { font-size: 0.76rem; color: var(--muted-2); min-width: 140px; }
.cockpit-comp-track { flex:1; height:4px; background: var(--line-strong); border-radius:2px; }
.cockpit-comp-fill  { height:4px; border-radius:2px; background: var(--accent); transition: width 0.5s ease; }
.cockpit-comp-val   { font-size: 0.76rem; font-weight: 600; min-width: 26px; text-align:right; color: var(--text); }
 
.cockpit-module-section { margin-bottom: 16px; }
.cockpit-module-title { font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-bottom: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
.cockpit-sc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.cockpit-sc-card { background: var(--panel); border: 0.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 12px 14px; }
.cockpit-sc-card.done { border-color: rgba(46,107,78,0.3); background: var(--success-soft); }
.cockpit-sc-name  { font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cockpit-sc-score { font-size: 1.05rem; font-weight: 700; margin: 4px 0; color: var(--accent); }
.cockpit-sc-score.muted { color: var(--muted); }
.cockpit-sc-bar-bg { height: 3px; background: var(--line-strong); border-radius: 2px; margin: 4px 0; }
.cockpit-sc-bar    { height: 3px; border-radius: 2px; background: var(--accent); }
.cockpit-sc-badge  { display: inline-block; font-size: 0.66rem; padding: 2px 7px; border-radius: 999px; margin-top: 5px; font-weight: 500; background: var(--bg-soft); color: var(--muted); border: 0.5px solid var(--line-strong); }
.cockpit-sc-badge.done { background: var(--success-soft); color: var(--success); border-color: rgba(46,107,78,0.25); }
 
.cockpit-hist-card { background: var(--bg-soft); border: 0.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 4px 16px; }
.cockpit-hist-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 0.5px solid var(--line); font-size: 0.78rem; }
.cockpit-hist-row:last-child { border-bottom: none; }
.cockpit-hist-date  { color: var(--muted); min-width: 65px; }
.cockpit-hist-name  { flex:1; color: var(--muted-2); }
.cockpit-hist-score { font-weight: 700; min-width: 30px; text-align: right; color: var(--text); }
 
.mic-hint { margin-top: 6px; font-size: 0.80rem; color: var(--warning); background: var(--warning-soft); border: 0.5px solid rgba(133,79,11,0.2); border-radius: var(--radius-md); padding: 7px 10px; line-height: 1.5; }
 
/* ---- DEMO BANNER ---- */
.demo-banner { background: var(--copper-soft); border-bottom: 0.5px solid rgba(179,107,68,0.2); padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 0.82rem; }
.demo-banner-text { color: var(--copper); font-weight: 500; }
.demo-banner-text strong { font-weight: 700; }
.demo-banner-cta { background: var(--copper); color: #fff; border: none; padding: 7px 16px; border-radius: 7px; font-size: 0.80rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.15s; }
.demo-banner-cta:hover { opacity: 0.88; }
 
/* ---- GESPRÄCHSDAUER WARNUNG ---- */
.duration-warning { background: var(--warning-soft); border: 0.5px solid rgba(133,79,11,0.2); border-radius: var(--radius-md); padding: 9px 13px; font-size: 0.82rem; color: var(--warning); margin-top: 10px; display: none; }
.duration-warning.visible { display: block; }
 
/* ============================================================
   MODALS (Invite + B2B Order)
   ============================================================ */
.lsl-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lsl-modal {
  background: var(--bg); border: 0.5px solid var(--line-strong);
  border-radius: var(--radius-lg); width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: flex; flex-direction: column; max-height: 90vh; overflow: hidden;
}
.lsl-modal-wide { max-width: 560px; }
.lsl-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 0.5px solid var(--line);
}
.lsl-modal-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.lsl-modal-close {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: var(--bg-soft); color: var(--muted); font-size: 0.8rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lsl-modal-close:hover { background: var(--line-strong); }
.lsl-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.lsl-modal-footer {
  padding: 14px 20px 18px; border-top: 0.5px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end;
}
 
/* Form elements */
.lsl-form-group { margin-bottom: 14px; }
.lsl-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.06em; }
.lsl-input {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 0.5px solid var(--line-strong); background: var(--panel);
  color: var(--text); font-size: 0.85rem; box-sizing: border-box;
  transition: border-color var(--transition);
}
.lsl-input:focus { outline: none; border-color: var(--accent); }
.lsl-form-error { font-size: 0.78rem; color: var(--danger); margin-top: 8px; padding: 8px 12px; background: rgba(163,45,45,0.06); border-radius: 7px; border: 0.5px solid rgba(163,45,45,0.2); }
 
/* Buttons */
.lsl-btn-primary {
  padding: 10px 20px; border-radius: 8px; border: none;
  background: var(--accent); color: #fff; font-size: 0.83rem;
  font-weight: 600; cursor: pointer; transition: opacity 0.15s;
}
.lsl-btn-primary:hover { opacity: 0.88; }
.lsl-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.lsl-btn-secondary {
  padding: 10px 20px; border-radius: 8px;
  border: 0.5px solid var(--line-strong); background: var(--panel);
  color: var(--muted-2); font-size: 0.83rem; font-weight: 500; cursor: pointer;
}
.lsl-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
 
/* B2B Pricing */
.b2b-pricing-grid { border: 0.5px solid var(--line-strong); border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.b2b-pricing-row { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; padding: 8px 14px; font-size: 0.80rem; border-bottom: 0.5px solid var(--line); }
.b2b-pricing-row:last-child { border-bottom: none; }
.b2b-pricing-header { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-soft); }
.b2b-price { font-weight: 700; color: var(--accent); }
.b2b-example { color: var(--muted); font-size: 0.75rem; }
.b2b-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 16px; }
.b2b-notice { font-size: 0.75rem; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 10px 13px; margin-top: 14px; border: 0.5px solid var(--line); line-height: 1.5; }
