:root{
  /* Prima-Food: Navy-Grund, Blau-Akzent, Beige als Highlight (aus prima-food.de abgeleitet) */
  --bg:#0c1a3b;
  --panel:#13275a;
  --panel2:#1a3270;
  --text:#f4f2ee;
  --muted:#c3c9d9;
  --accent:#4d7cff;
  --accent2:#8fb0ff;
  --highlight:#e0dcd6;
}
*{ box-sizing:border-box; font-family:"Archivo", system-ui, -apple-system, sans-serif; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); overflow-x:hidden; }
body { padding-top: 48px; }
/* HERO */
.hero{
  position: relative;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 56px 24px 52px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(77,124,255,.28), transparent 60%),
    radial-gradient(700px 380px at 90% 100%, rgba(143,176,255,.18), transparent 60%),
    linear-gradient(135deg, #0c1a3b 0%, #142c66 100%);
}
.hero-inner{
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}
.hero-headline{
  margin: 0 0 14px;
  font-family: "Poppins", "Archivo", sans-serif;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}
.hero-lead{
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.hero-visual{
  position: relative;
  border-radius: 24px;
  padding: 30px 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.hero-illu{
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  color: var(--accent2);
}
.team-logo{
  width: 150px;
  max-width: 60vw;
  margin: 0 0 26px;
  display:block;
}
@media (max-width: 860px){
  .hero{ padding: 40px 20px 36px; }
  .hero-inner{ grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .team-logo{ margin: 0 auto 18px; }
  .hero-headline{ font-size: 30px; }
  .hero-lead{ margin: 0 auto; font-size: 15px; }
  .hero-visual{ max-width: 420px; margin: 0 auto; }
}
.hero-title{
  margin: 8px 0 8px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: .02em;
  font-size: 44px;
  line-height: 1.15em;
  text-transform: uppercase;
}
.hero-title .accent{ color: var(--accent2); }
.hero-title .light{ color: #fff; }
.hero-subtitle{
  margin: 14px 0 6px;
  font-family: "Poppins";
  font-size: 24px;
  font-weight: 400;
}

/* MAIN */
.main{ padding: 10px 20px 40px; }
.bereit{
  max-width: 900px;
  margin: 0 auto;
  padding-top: 40px;
  text-align:center;
  overflow: visible;
}
.ready-title{
  font-family: "Nunito Sans";
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 36px;
}
/* STEP INDICATOR */
.step-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid #444;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  color: #666;
  transition: background .3s, border-color .3s, color .3s;
}
.step-label {
  font-size: 11px; color: #666;
  transition: color .3s;
  white-space: nowrap;
}
.step-connector {
  width: 40px; height: 2px;
  background: #333;
  flex-shrink: 0;
  margin: 15px 6px 0;
  transition: background .3s;
}
.step-item.active .step-num  { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-item.active .step-label { color: var(--accent); font-weight: 600; }
.step-item.done .step-num    { background: #333; border-color: #555; color: #aaa; }
.step-item.done .step-label  { color: #555; }
.step-connector.done         { background: #555; }
.step-item.done              { cursor: pointer; }
.step-item.done:hover .step-num  { border-color: var(--accent); color: #ccc; }
.step-item.done:hover .step-label { color: #999; }

/* FORM/WIDGET container */
#form-or-widget{
  width:100%;
  max-width: 720px;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
  overflow: visible;
}
/* Reset link */
.reset-link{
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: underline;
  opacity: .7;
  padding: 0;
}
.reset-link:hover{ opacity: 1; color: var(--text); }
/* Context step */
#context-step{
  width: 100%;
  text-align: left;
  padding: 24px 0 8px;
}
.context-label{
  font-family: "Poppins";
  font-size: 15px;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.6;
  display: block;
}
.context-optional{
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}
.mic-error{
  font-size: 12px;
  color: #f87171;
  margin: 4px 0 0;
}
.context-hint{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.context-field{
  width: 100%;
  margin-bottom: 14px;
}
.context-goal-field{
  background: rgba(226, 0, 26, 0.06);
  border: 1px solid rgba(226, 0, 26, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.context-goal-field .context-field-label{
  font-weight: 600;
  color: var(--text);
}
.context-field-label{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.context-text-input{
  width: 100%;
  background: var(--bg);
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  color: #e5e5e5;
  font-family: "Archivo";
  font-size: 15px;
  padding: 12px 14px;
  line-height: 1.5;
}
.context-text-input:focus{
  outline: none;
  border-color: var(--accent);
}
.context-input-wrap{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
textarea#user-context{
  flex: 1;
  background: var(--bg);
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  color: #e5e5e5;
  font-family: "Archivo";
  font-size: 15px;
  padding: 12px 14px;
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
textarea#user-context:focus{
  outline: none;
  border-color: var(--accent);
}
.mic-btn{
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: var(--bg);
  color: #e5e5e5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
  margin-top: 2px;
}
.mic-btn:hover{ border-color: var(--accent); color: var(--accent); }
.mic-btn.listening{
  border-color: #f87171;
  color: #f87171;
  animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(248,113,113,.4); }
  50%     { box-shadow: 0 0 0 8px rgba(248,113,113,0); }
}
.context-privacy{
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
  opacity: .8;
}
.context-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}

/* Context choice */
#context-choice{
  width: 100%;
}
.context-choice-box{
  background: var(--panel);
  border-radius: 18px;
  padding: 36px 28px 32px;
  width: 100%;
  text-align: center;
}
.context-choice-label{
  font-family: "Poppins";
  font-size: 16px;
  font-weight: 550;
  color: var(--text);
  margin: 0 0 8px;
}
.context-choice-hint{
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}
.context-choice-actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Scenario hint */
.scenario-hint{
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 20px;
  text-align: left;
  min-height: 16px;
}
/* Form */
#name-form{
  transition: opacity .25s ease;
}
#name-form.fading{ opacity: 0; }
#name-form{
  width:100%;
  background: var(--panel);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 34px 28px 32px;
  border-radius: 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
}
#name-form > div{ width:100%; }
#name-form input[type="text"]{
  width:100%;
  background: var(--bg);
  padding: 16px 17px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color:#e5e5e5;
}
.scenario-select-wrapper{ width:100%; margin-top: 16px; padding-bottom: 10px; }
#submit-main-challenge-button{ margin-top: 12px; }
.scenario-label{
  display:block;
  margin: 0 0 8px;
  font-size:14px;
  color: var(--muted);
  text-align:left;
}
#name-form select{
  width:100%;
  background: var(--bg);
  padding: 16px 44px 16px 17px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color:#e5e5e5;
  appearance:none;
  -webkit-appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ec6605'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 26px;
}
/* Custom Scenario Dropdown */
.scenario-custom-select{
  position: relative;
  width: 100%;
  user-select: none;
}
.scenario-custom-trigger{
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 12px 14px 17px;
  cursor: pointer;
  min-height: 68px;
  transition: border-color .15s;
}
.scenario-custom-select.open .scenario-custom-trigger{
  border-color: var(--accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.scenario-custom-selected{
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.scenario-opt-label{
  font-size: 14px;
  color: #e5e5e5;
  font-weight: 600;
  line-height: 1.3;
}
.scenario-opt-desc{
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.3;
}
.scenario-arrow{
  flex-shrink: 0;
  transition: transform .2s;
}
.scenario-custom-select.open .scenario-arrow{ transform: rotate(180deg); }
.scenario-custom-dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #111;
  border: 1.5px solid var(--accent);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  list-style: none;
  margin: 0; padding: 0;
  z-index: 100;
  overflow: hidden;
}
.scenario-custom-select.open .scenario-custom-dropdown{ display: block; }
.scenario-custom-option{
  padding: 12px 17px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background .15s;
}
.scenario-custom-option:hover{ background: #1c1c1c; }
.scenario-custom-option[aria-selected="true"]{ background: #1a1a1a; }
.scenario-custom-option[aria-selected="true"] .scenario-opt-label{ color: var(--accent); }
/* Intro Box */
.challenge-intro {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 30px 32px;
  max-width: 100%;
  margin: 18px auto 18px auto;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  color: var(--text);
}
.challenge-intro p {
  margin: 0.3em 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  padding-bottom: 8px;
}
.challenge-headline{
  font-size:20px !important;
  font-weight:700;
  margin: 0 0 8px;
}
.challenge-highlight{ color: var(--highlight); }
.challenge-subheadline{
  font-size:13px;
  font-weight:600;
  color: var(--accent2);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom:14px;
}
.challenge-intro .challenge-person{ font-weight:500; color: var(--text); }
.challenge-intro .challenge-task{ color: var(--muted); }
.challenge-intro .challenge-cta{
  margin-top:18px;
  background: rgba(77,124,255,.14);
  border: 1px solid rgba(77,124,255,.35);
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  font-style: normal;
}
.challenge-intro .challenge-cta em{ font-style: normal; }
/* Call timer */
#call-timer {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 8px;
  font-family: inherit;
}
.call-timer-label {
  font-size: 13px;
  color: #aaa;
}
#call-timer-display {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.call-timer-limit {
  font-size: 12px;
  color: #666;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}
/* Widget loading state */
.widget-loading-state{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
  color: #bbb;
  font-size: 15px;
}
.widget-loading-state .feedback-waiting-spinner{
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
/* Widget wrapper */
#widget-center-wrapper{
  width:100%;
  display:none;
  justify-content: center;
  align-items: flex-start;
  margin-top: 0;
  position: relative;
  min-height: auto;
  overflow: visible !important;
  padding-top: 0;
  transform: translateZ(0);
}
elevenlabs-convai{
  display:block;
  margin: 0 auto;
  z-index: 50;
}
/* Buttons */
button.custom-challenge-button{
  background-image: linear-gradient(to bottom, var(--accent2), var(--accent));
  color:#fff;
  border: 1px solid rgba(77,124,255,.6);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight:500;
  font-size:15px;
  cursor:pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  box-shadow: 0 4px 6px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.3);
  transition: all .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
}
button.custom-challenge-button:hover:not(:disabled){
  transform: translateY(-1px);
}
/* Sekundär auf dunklem Grund: Glas-Optik statt Hellgrau. In hellen Modals (Verlauf) bleibt es hell. */
button.custom-challenge-button.secondary{
  background-color: transparent;   /* sonst scheint der helle Browser-Standard durch das Glas */
  background-image: linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,.05));
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  text-shadow:none;
  box-shadow: none;
}
button.custom-challenge-button.secondary:hover:not(:disabled){
  border-color: var(--accent2);
  background-image: linear-gradient(to bottom, rgba(77,124,255,.22), rgba(77,124,255,.12));
}
.history-modal-content button.custom-challenge-button.secondary,
.feedback-modal-content button.custom-challenge-button.secondary{
  background-image: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  color:#343a40;
  border-color:#ced4da;
}
button.custom-challenge-button:disabled{ opacity:.7; cursor:not-allowed; }
.custom-challenge-button .spinner{
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,1);
  opacity: 0;
  transition: all .15s ease;
}
.custom-challenge-button.loading .spinner{
  width: 16px;
  height: 16px;
  opacity: 1;
  animation: spin .8s linear infinite;
}

.sdk-call-btn--ghost{
  background: none !important;
  background-image: none !important;
  border: 1.5px solid #555 !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.sdk-call-btn--ghost:hover:not(:disabled){
  border-color: var(--accent) !important;
  color: var(--text) !important;
}

#feedback-button{
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
  min-width: 250px;
}

@keyframes spin { to { transform: rotate(360deg);} }
/* Feedback hint / waiting / button */
.feedback-hint{
  margin-top:12px;
  font-size:13px;
  color:#b5b5b5;
  line-height:1.4;
  text-align:center;
  max-width:650px;
  margin-left:auto;
  margin-right:auto;
  opacity:.9;
  display:none;
}
#feedback-container{
  width:100%;
  text-align:center;
  margin-top:25px;
  display:none;
}
.feedback-waiting{
  width:100%;
  text-align:center;
  margin-top:30px;
  display:none;
}
.feedback-waiting-inner{
  display:inline-flex;
  align-items:center;
  padding: 20px 35px;
  border-radius:14px;
  background: var(--panel2);
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 0 20px rgba(77,124,255,.5);
  transform: scale(1.05);
}
.feedback-waiting-text{
  color:#fff;
  font-size:15px;
  font-weight:600;
  letter-spacing:.3px;
}
.feedback-waiting-spinner{
  width:34px;height:34px;
  margin-right:10px;
  animation: rotate-spinner 1s linear infinite;
}
.feedback-waiting-spinner .path{
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 1,150;
  stroke-dashoffset: 0;
  animation: dash-spinner 1.5s ease-in-out infinite;
}
@keyframes rotate-spinner{ 100%{ transform: rotate(360deg)} }
@keyframes dash-spinner{
  0%{ stroke-dasharray:1,150; stroke-dashoffset:0 }
  50%{ stroke-dasharray:110,150; stroke-dashoffset:-40 }
  100%{ stroke-dasharray:110,150; stroke-dashoffset:-120 }
}
/* Pulse when new feedback ready */
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(77,124,255,.7) }
  70%{ box-shadow:0 0 0 10px rgba(77,124,255,0) }
  100%{ box-shadow:0 0 0 0 rgba(77,124,255,0) }
}
button.new-feedback-indicator{ animation: pulse 2s infinite; }
/* Modal */
.feedback-modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.6);
  z-index:10000;
  justify-content:center;
  align-items:center;
  padding:20px;
}
.feedback-modal-overlay.visible{ display:flex; }
.feedback-modal-content{
  background:#fff;
  border-radius:12px;
  padding:30px;
  width:100%;
  max-width:650px;
  max-height:90vh;
  overflow-y:auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  text-align:left;
  color:#333;
}
.feedback-modal-header{
  display:flex;
  align-items:center;
  margin-bottom:25px;
  border-bottom:1px solid #e0e0e0;
  padding-bottom:20px;
}
.feedback-avatar{
  width:60px;height:60px;
  border-radius:50%;
  object-fit:cover;
  margin-right:20px;
  border:2px solid var(--accent);
  flex-shrink:0;
}
  
 .feedback-fallback {
  background: #FAEEDA;
  border-left: 3px solid #BA7517;
  padding: 12px 16px;
  font-size: 14px;
  color: #633806;
  border-radius: 6px;
  line-height: 1.65;

}
.feedback-intro-text{
  font-size:15px;
  line-height:1.5;
  color:#333;
}
.feedback-intro-text span{
  font-weight:600;
  color: var(--accent);
}
.feedback-modal-body{
  line-height:1.6;
  color:#444;
}
.feedback-modal-body h3{
  font-size:18px;
  margin:10px 0;
  color:#1a1a1a;
  border-bottom:2px solid var(--accent);
  padding-bottom:8px;
}
.feedback-modal-body h4{
  font-size:14px;
  font-weight:800;
  margin:10px 0;
  color:#333;
}
.feedback-modal-body ul{
  list-style:none;
  padding-left:20px;
  margin-bottom:10px;
  font-size:14px;
}
.feedback-modal-body li{
  padding-left:10px;
  position:relative;
  color:#444;
  font-size:14px;
  padding-bottom:5px;
}
.feedback-modal-body li::before{
  content:"■";
  position:absolute;
  left:-15px;
  top:1px;
  color: var(--accent);
  font-size:12px;
}
.feedback-modal-body p{
  margin-bottom:8px;
  color:#444;
  font-size:14px;
}
.feedback-modal-footer{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid #e0e0e0;
  text-align:center;
}
.feedback-copy-hint{
  margin-bottom:20px;
  font-style:italic;
  font-size:14px;
  color:#6c757d;
}
.footer-buttons{
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}
/* Footer */
.footer-brand{ margin-top: 60px; opacity: .9; }
.footer-text{ margin: 0 0 8px; color:#d9d9d9; font-size: 14px; }
.bgl-logo{ width: 240px; max-width: 70vw; }
/* USER NAV */
.user-nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
  background: #0c1a3b;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}
.user-nav-name{
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-size: 14px;
}
.user-nav-name svg{ flex-shrink: 0; }
.user-nav-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-nav-btn{
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1px solid #444;
  color: var(--text);
  font-size: 13px;
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  line-height: 1.4;
}
.user-nav-btn:hover{
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(77,124,255,.07);
}
.user-nav-btn--ghost{
  border-color: transparent;
  color: var(--muted);
}
.user-nav-btn--ghost:hover{
  border-color: #555;
  color: var(--text);
  background: none;
}
@media (max-width: 480px){
  .user-nav{ padding: 10px 16px; }
  .user-nav-btn{ padding: 5px 10px; font-size: 12px; }
  body { padding-top: 46px; }
}

/* PRIVACY NOTICE MODAL */
.privacy-notice-content{
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,.6), 0 0 32px rgba(77,124,255,.25);
  animation: privacy-pop .25s ease;
}
@keyframes privacy-pop{
  from{ transform: scale(.92); opacity: 0; }
  to  { transform: scale(1);   opacity: 1; }
}
.privacy-notice-icon{
  font-size: 42px;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--accent);
}
.privacy-notice-title{
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
}
.privacy-notice-text{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}
.privacy-notice-text strong{
  color: var(--text);
}

/* HISTORY MODAL */
.history-modal-content{
  max-width: 720px !important;
  max-height: 88vh;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.history-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.history-modal-title{
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}
.history-close-btn{
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0 4px;
}
.history-close-btn:hover{ color: #333; }
.history-list{
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 16px;
}
.history-loading,
.history-empty{
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.history-card{
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
}
.history-card-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.history-card-scenario{
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.3;
  flex: 1;
}
.history-card-check {
  display: flex;
  align-items: center;
  margin-right: 8px;
  cursor: pointer;
}
.history-export-cb {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}
#export-pdf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}
.history-card-date{
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}
.history-card-row{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.history-card-name{
  font-size: 13px;
  color: #555;
}
.history-card-duration{
  font-size: 13px;
  color: #555;
}
.history-card-goal{
  font-size: 13px;
  color: #444;
  background: rgba(226, 0, 26, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 5px 9px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.history-feedback-toggle{
  font-size: 13px;
  color: var(--accent) !important;
  margin-top: 4px;
}
.history-no-feedback{
  font-size: 12px;
  color: #aaa;
  font-style: italic;
}
.history-feedback-body{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: #444;
  line-height: 1.55;
}
.history-feedback-body h3{
  font-size: 15px;
  margin: 8px 0 4px;
  color: #1a1a1a;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.history-feedback-body h4{
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 3px;
  color: #333;
}
.history-feedback-body ul{
  list-style: none;
  padding-left: 18px;
  margin: 4px 0 8px;
}
.history-feedback-body li{
  position: relative;
  padding-left: 10px;
  padding-bottom: 3px;
  font-size: 13px;
  color: #444;
}
.history-feedback-body li::before{
  content: "■";
  position: absolute;
  left: -12px;
  top: 1px;
  color: var(--accent);
  font-size: 10px;
}
.history-modal-footer{
  display: flex;
  justify-content: space-between;
  /* Schließen bleibt rechts, auch wenn der Export-Button (nur Tab Verlauf) ausgeblendet ist */
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  gap: 10px;
  flex-wrap: wrap;
}
.history-modal-footer #close-history-btn2{ margin-left: auto; }
.history-delete-btn{
  background-image: none !important;
  background: #f8d7da !important;
  color: #721c24 !important;
  border-color: #f5c6cb !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  text-shadow: none !important;
  box-shadow: none !important;
  align-self: flex-start;   /* ← neu */
}
.history-delete-btn:hover:not(:disabled){
  background: #f1b0b7 !important;
  transform: none !important;
}

/* Agent Card */
.agent-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
/* Avatar */
.agent-avatar-wrap{
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
}
.agent-avatar{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.18);
  display: block;
  background: #1a1a1a;
}
/* Connecting: rotating ring */
.agent-avatar-wrap--connecting::after{
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  animation: agent-spin 1s linear infinite;
}
@keyframes agent-spin{ to{ transform: rotate(360deg); } }
/* Active: pulsing ring */
.agent-avatar-wrap--active .agent-avatar{
  border-color: var(--accent);
}
.agent-avatar-wrap--active::after{
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  animation: agent-pulse 1.8s ease-out infinite;
}
@keyframes agent-pulse{
  0%  { transform: scale(1);    opacity: .9; }
  100%{ transform: scale(1.18); opacity: 0;  }
}
/* Active: background glow */
.agent-avatar-wrap--active::before{
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,124,255,.18) 0%, transparent 70%);
  z-index: -1;
}
/* Audio bars */
.agent-audio-bars{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 20px;
  margin-top: 5px;
  min-height: 20px;
  opacity: 0;
  transition: opacity .3s;
}
.agent-audio-bars span{
  display: block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: height .15s ease;
}
.agent-audio-bars--speaking{
  opacity: 1;
}
.agent-audio-bars--speaking span{
  animation: audio-bar .8s ease-in-out infinite alternate;
}
.agent-audio-bars--speaking span:nth-child(1){ animation-delay: 0s; }
.agent-audio-bars--speaking span:nth-child(2){ animation-delay: .15s; }
.agent-audio-bars--speaking span:nth-child(3){ animation-delay: .3s; }
.agent-audio-bars--speaking span:nth-child(4){ animation-delay: .1s; }
@keyframes audio-bar{
  0%  { height: 4px; }
  100%{ height: 18px; }
}
.agent-audio-bars--listening{
  opacity: .5;
}
.agent-audio-bars--listening span{
  height: 4px;
  animation: none;
}
/* In-card timer */
.agent-timer{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
}
.agent-role{
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
  min-height: 18px;
}
/* Recording notice */
.agent-notice{
  background: rgba(77,124,255,.07);
  border: 1px solid rgba(77,124,255,.3);
  border-radius: 10px;
  padding: 14px 16px;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
  max-height: 300px;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease, padding .4s ease, margin .3s ease, border-color .3s ease;
}
.agent-notice--hiding{
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-color: transparent;
}
.agent-notice-header{
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.agent-notice-icon{ font-size: 14px; }
.agent-notice-text{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}
.agent-notice-label{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
}
.agent-notice-label input[type="checkbox"]{
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
/* Call button states */
.sdk-call-btn{
  min-width: 220px;
  margin-top: 6px;
}
.sdk-call-btn--active{
  background: #e74c3c !important;
  background-image: none !important;
}
.sdk-call-btn--active:hover:not(:disabled){
  background: #c0392b !important;
}
.sdk-call-status{
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  min-height: 18px;
  margin: 0;
}
.sdk-call-status--error{
  color: #e74c3c;
}

.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 4px;
}
.history-filter-btn {
  padding: 4px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.history-filter-btn.active,
.history-filter-btn:hover {
  background: var(--accent);
  color: #fff;
}
.history-month-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  padding: 14px 16px 4px;
}

.feedback-scores {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 44px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
}
.feedback-score-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: normal;
  word-break: break-word;
}

.feedback-score-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.feedback-score-detail {
  display: none;
  padding: 10px 14px 14px;
  font-size: 13px;
  color: #444;
  line-height: 1.75;
  border-top: 1px solid #efefef;
  background: #fafafa;
  border-radius: 0 0 6px 6px;
}
.feedback-score-detail--open {
  display: block;
}
.feedback-score-detail blockquote {
  border-left: 3px solid var(--sc-color, #ccc);
  background: #f9f9f9;
  padding: 8px 12px;
  font-style: italic;
  margin: 8px 0;
  border-radius: 0 4px 4px 0;
}

.feedback-score-bar-wrap {
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}
.feedback-score-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width .4s ease;
}
.feedback-score-bar--na {
  background: #ccc;
}
.feedback-score-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}
.feedback-score-value--na {
  color: #aaa;
}

.feedback-score-item--expandable .feedback-score-row {
  grid-template-columns: minmax(0, 1fr) 120px 44px 18px;
  cursor: pointer;
}
.feedback-score-item--expandable .feedback-score-row:hover {
  background: #f5f5f5;
}
.feedback-score-chevron {
  font-size: 12px;
  color: #aaa;
  transition: transform .2s;
  justify-self: center;
}
.feedback-score-detail {
  display: none;
  padding: 10px 14px 14px;
  font-size: 13px;
  color: #444;
  line-height: 1.65;
  border-top: 1px solid #efefef;
  background: #fafafa;
  border-radius: 0 0 6px 6px;
}
.feedback-score-detail--open {
  display: block;
}

.feedback-scores-hint {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 8px;
}
.feedback-score-summary {
  border-top: 2px solid #e8e8e8;
  margin-top: 14px;
  padding-top: 12px;
}
.feedback-score-label--avg {
  font-weight: 700;
}
.feedback-score-fazit {
  font-style: italic;
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin: 12px 10px 4px;
}

.feedback-score-row--avg {
  grid-template-columns: minmax(0, 1fr) 120px 44px 18px;
}

/* Szenario-Karten */
.scenario-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
  align-items: stretch;
}
/* Ab dieser Breite haben zwei Spalten genug Platz für die Ziel-Zeile, ohne dass
   sie zerfranst. Bei vier Szenarien halbiert das die Scrollstrecke der Auswahl. */
@media (min-width: 760px) {
  .scenario-cards { grid-template-columns: 1fr 1fr; }
}
.scenario-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 13px 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
/* Mitgestalten-Einladung: steht über der Szenario-Auswahl und sieht bewusst
   anders aus als eine Trainingskarte – befristete Aktion, kein Übungsangebot. */
.survey-invite {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 12px 16px 14px;
  margin: 0 0 18px;
  text-align: center;
}
.survey-invite-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.survey-invite-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}
.survey-invite-frist { font-size: 11.5px; color: var(--muted); }
.survey-invite-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 5px;
}
.survey-invite-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto 12px;
  max-width: 46em;
}
/* Zurückhaltender Outline-Button: der Block lädt ein, er ruft nicht.
   #ec6605 auf dem dunklen Panel liegt bei ~5:1 Kontrast – für 12,5 px ausreichend. */
.survey-invite-btn {
  background: rgba(77,124,255,.10);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.survey-invite-btn:hover {
  background: rgba(77,124,255,.2);
  transform: translateY(-1px);
}

/* Abschluss nach dem Interview – ersetzt die Feedback-Warteschleife */
.survey-done { text-align: center; margin-top: 16px; }
.survey-done-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Einmaliger Hinweis beim ersten Besuch */
.survey-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.survey-modal-overlay.open { display: flex; }
.survey-modal {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 22px 20px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  text-align: center;
}
.survey-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 10px;
  line-height: 1.35;
}
.survey-modal-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 10px;
}
.survey-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.survey-modal-later {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  padding: 10px 4px;
  text-decoration: underline;
}
.survey-modal-later:hover { color: var(--text); }
.scenario-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.scenario-card.active {
  border-color: var(--accent);
  background: rgba(77,124,255,.12);
}
.scenario-card-icon{
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  color: var(--accent2);
}
.scenario-card-icon svg{ width: 100%; height: 100%; }
/* Platzhalter: zeigt, dass die Auswahl wachsen kann – bewusst nicht klickbar */
.scenario-card--soon{
  border-style: dashed;
  background: transparent;
  cursor: default;
  opacity: .7;
}
.scenario-card--soon:hover{ border-color: rgba(255,255,255,.12); transform: none; }
.scenario-card--soon .scenario-card-icon{ color: var(--muted); }
.scenario-card-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.scenario-card-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.scenario-card-goal {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 9px;
}
.scenario-card-goal-label {
  color: var(--accent2);
  font-weight: 700;
}

/* History Tabs */
.history-tabs {
  display: flex;
  border-bottom: 2px solid rgba(255,255,255,.12);
  padding: 0 16px;
  flex-shrink: 0
}
.history-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: "Archivo", sans-serif;
  position: relative;
  transition: color .2s;
}
.history-tab-btn.active {
  color: var(--accent);
}
.history-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.history-tab-panel { display: none; }
.history-tab-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Einstellungen */
.settings-panel {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
}
.settings-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.settings-input { flex: 1; margin: 0; }
.settings-save-btn { white-space: nowrap; }
.settings-msg {
  font-size: 13px;
  color: #4ade80;
  margin: 0;
}
.settings-section--danger {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* History/Einstellungen Modal – kompakte Buttons & helles Input */
.history-modal-content button.custom-challenge-button {
  font-size: 13px;
  padding: 7px 14px;
  min-height: 34px;
}
.settings-input {
  background: #f8f9fa !important;
  color: #1a1a1a !important;
  border-color: #ced4da !important;
  font-size: 14px;
}
.settings-input:focus {
  border-color: var(--accent) !important;
}


/* Responsive */
@media (max-width: 1023px){
  .hero-title{ font-size: 36px; }
}
@media (max-width: 767px){
  .hero-title{ font-size: 26px; }
  .ready-title{ font-size: 22px; }
  #name-form{ padding: 28px 18px 24px; }
}

/* ── Prototyp-Feedback nach dem Gespräch (Testphase Angebotsnachverfolgung) ──
   Erscheint direkt nach dem Anruf, solange der Eindruck frisch ist. Bewusst
   ruhiger als eine Trainingskarte – es ist kein Teil des Trainings. */
.prototyp-fb {
  margin-top: 16px;
  padding: 16px 16px 12px;
  border: 1px dashed rgba(77,124,255,.55);
  border-radius: 14px;
  background: rgba(77,124,255,.06);
}
.prototyp-fb-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.prototyp-fb-hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}
.prototyp-fb-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.prototyp-fb-btn {
  border: 1px solid #3a3a3a;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.prototyp-fb-btn:hover { border-color: rgba(77,124,255,.7); }
.prototyp-fb-btn.sel {
  border-color: rgba(77,124,255,.9);
  background: rgba(77,124,255,.18);
}
.prototyp-fb textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px;
  resize: vertical;
}
.prototyp-fb textarea:focus { outline: none; border-color: rgba(77,124,255,.8); }
.prototyp-fb-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.prototyp-fb-msg {
  font-size: 12.5px;
  margin: 8px 0 0;
  min-height: 16px;
  color: var(--muted);
}
.prototyp-fb-msg.ok  { color: #5cd18a; }
.prototyp-fb-msg.err { color: #ff7a7a; }

/* ── Prototyp-Kennzeichnung der Szenario-Karte ───────────────────────────────
   „Neu" steht am Titel, wo der Blick zuerst hinfällt; die Frist steht als
   eigene Zeile am Kartenfuß, nicht versteckt im Beschreibungssatz. */
.scenario-card--neu {
  border-color: rgba(77,124,255,.45);
  background: linear-gradient(180deg, rgba(77,124,255,.07), rgba(77,124,255,0) 60%), var(--panel);
}
.scenario-card--neu:hover { border-color: var(--accent); }
.scenario-card-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.scenario-card-test {
  display: block;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(77,124,255,.22);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--accent2);
}

/* ── Raum-Szene im Gesprächs-Widget (ersetzt den Rundavatar) ─────────────────── */
.agent-scene{
  position: relative;
  width: 100%;
  max-width: 400px;   /* vor dem Start klein, ab Verbindungsaufbau groesser (Zoom) */
  margin: 0 auto 8px;
  border-radius: 18px;
  transition: max-width .9s cubic-bezier(.2,.7,.2,1), box-shadow .9s ease;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  overflow: hidden;
}
.agent-scene-svg{ display:block; width:100%; height:auto; }
.agent-scene--connecting, .agent-scene--active{ max-width: 640px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.scene-waves{ opacity: 0; transition: opacity .2s; }
.scene-door{ transform-box: fill-box; transform-origin: left center; transition: transform .6s ease; }
.scene-person{ transition: opacity .3s; }
/* Vor dem Start: Teammitglied noch nicht im Raum */
/* Vor dem Start: Stuhl leer, kein Namensschild. Sichtbar erst, wenn der Stuhl-Clip läuft
   (Klasse agent-scene--enter setzt app.js beim Start des Clips) oder das Gespräch aktiv ist. */
.agent-scene:not(.agent-scene--active):not(.agent-scene--enter) .scene-person--agent,
.agent-scene:not(.agent-scene--active):not(.agent-scene--enter) .scene-name--agent{ opacity: 0; }
.scene-name{ transition: opacity .6s ease; }
/* Tür geht auf, sobald die Schritte zu hören sind (Klasse agent-scene--door) */
.agent-scene--door .scene-door{ animation: scene-door-open .7s ease forwards; }
@keyframes scene-door-open{ to{ transform: perspective(300px) rotateY(-55deg); } }
.agent-scene--enter .scene-person--agent{ animation: scene-enter 1.1s ease forwards; }
.agent-scene--enter .scene-name--agent{ opacity: 1; transition-delay: .8s; }
/* Hände: der ganze Arm hebt sich an der Schulter, solange die Person spricht */
.scene-arm{ transform-box: fill-box; transform-origin: 0% 0%; }
.scene-arm--agent{ transform-origin: 100% 0%; }
.agent-scene--user  .scene-arm--user { animation: scene-gesture-l 1.3s ease-in-out infinite; }
.agent-scene--agent .scene-arm--agent{ animation: scene-gesture-r 1.3s ease-in-out infinite; }
@keyframes scene-gesture-l{ 0%,100%{ transform: rotate(0deg); } 40%{ transform: rotate(-16deg); } 70%{ transform: rotate(-6deg); } }
@keyframes scene-gesture-r{ 0%,100%{ transform: rotate(0deg); } 40%{ transform: rotate(16deg); } 70%{ transform: rotate(6deg); } }
@keyframes scene-enter{ from{ opacity:0; transform: translateX(-24px); } to{ opacity:1; transform: translateX(0); } }
/* Gespräch läuft: Wellen bei der Person, die gerade spricht */
.agent-scene--agent .scene-waves--agent,
.agent-scene--user  .scene-waves--user{ opacity: 1; }
.agent-scene--agent .scene-waves--agent path,
.agent-scene--user  .scene-waves--user path{ animation: scene-wave 1.1s ease-in-out infinite; }
.scene-waves path:nth-child(2){ animation-delay: .15s !important; }
.scene-waves path:nth-child(3){ animation-delay: .3s !important; }
@keyframes scene-wave{ 0%,100%{ opacity:.35; } 50%{ opacity:1; } }
.agent-scene--agent .scene-person--agent,
.agent-scene--user  .scene-person--user{ filter: drop-shadow(0 0 6px rgba(143,176,255,.6)); }
