/* SZM Coach — Persona-Brand Layer
 * Über styles.css gelegt. Anthrazit + SZM-Rot Akzente.
 * Direkt-konfrontativ, kein soft-coach-purple-baroque.
 */

:root {
  --szm-bg: #0a0a0f;
  --szm-surface: #14131a;
  --szm-surface-elev: #1c1b25;
  --szm-line: #2a2935;
  --szm-text: #e8e6f0;
  --szm-text-mute: #8b8a99;
  --szm-accent: #dc2626;       /* SZM red */
  --szm-accent-hover: #b91c1c;
  --szm-accent-soft: rgba(220, 38, 38, 0.12);
  --szm-success: #10b981;
}

body {
  background: var(--szm-bg);
  color: var(--szm-text);
}

/* Topbar mit SZM-Brand */
.app .topbar {
  border-bottom: 1px solid var(--szm-line);
  background: var(--szm-bg);
}
.brand-icon.szm-icon {
  background: var(--szm-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  width: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand small {
  color: var(--szm-text-mute);
}
.status {
  color: var(--szm-success);
  font-size: 0.78rem;
}

/* Tabs der Engine sind weg (welcome.html mappt sie aus) */
.tabbar { display: none !important; }

/* Hero */
.szm-welcome {
  display: block !important;
  text-align: left !important;
  padding: 1.4rem 1.6rem 0 !important;
  min-height: auto !important;
  max-width: 880px;
  margin: 0 auto;
  visibility: visible !important;
  opacity: 1 !important;
}
.szm-welcome.hidden { visibility: hidden; opacity: 0; pointer-events: none; }

.szm-hero {
  position: relative;
  border-radius: 18px;
  padding: 2.6rem 2.2rem 2.4rem;
  margin: 0.5rem 0 1.6rem;
  background:
    radial-gradient(900px 220px at 0% 0%, rgba(220, 38, 38, 0.18), transparent 60%),
    radial-gradient(700px 160px at 100% 100%, rgba(220, 38, 38, 0.08), transparent 60%),
    linear-gradient(160deg, #181621 0%, #100e18 60%, var(--szm-bg) 100%);
  border: 1px solid rgba(220, 38, 38, 0.22);
  overflow: hidden;
}
.szm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(220, 38, 38, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.45;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}
.szm-hero > * { position: relative; z-index: 1; }

.szm-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--szm-accent);
  margin-bottom: 0.6rem;
}
.szm-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
}
.szm-accent {
  color: var(--szm-accent);
}
.szm-hero-sub {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--szm-text);
  opacity: 0.92;
  margin: 0 0 1.2rem;
  max-width: 560px;
}
.szm-hero-meta {
  font-size: 0.82rem;
  color: var(--szm-text-mute);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Action-Buttons (Quick-Start) */
.szm-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0 1.6rem;
}
.szm-action {
  background: var(--szm-surface);
  border: 1px solid var(--szm-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--szm-text);
  font-family: inherit;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.szm-action:hover {
  border-color: var(--szm-accent);
  background: var(--szm-surface-elev);
  transform: translateY(-1px);
}
.szm-action:active {
  transform: translateY(0);
}
.szm-action:focus-visible {
  outline: 2px solid var(--szm-accent);
  outline-offset: 2px;
}
.szm-action-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 0.05rem;
}
.szm-action-title {
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}
.szm-action-sub {
  font-size: 0.82rem;
  color: var(--szm-text-mute);
  line-height: 1.45;
}

.szm-disclaimer {
  font-size: 0.78rem;
  color: var(--szm-text-mute);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px dashed var(--szm-line);
  padding-top: 0.9rem;
  margin: 0;
}
.szm-disclaimer em {
  color: var(--szm-text);
  font-style: normal;
  font-weight: 600;
}

/* Composer */
.composer {
  background: var(--szm-surface);
  border-top: 1px solid var(--szm-line);
}
#composer:focus {
  outline-color: var(--szm-accent);
}
.send-btn {
  background: var(--szm-accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  padding: 0.6rem 1.1rem;
  font-size: 1.1rem;
}
.send-btn:hover {
  background: var(--szm-accent-hover);
}

/* Footer */
.szm-footer {
  position: sticky;
  bottom: 0;
  font-size: 0.72rem;
  color: var(--szm-text-mute);
  padding: 0.6rem 1.2rem;
  text-align: center;
  border-top: 1px solid var(--szm-line);
  background: var(--szm-bg);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.szm-footer a {
  color: var(--szm-text-mute);
  text-decoration: none;
  border-bottom: 1px dotted var(--szm-text-mute);
}
.szm-footer a:hover {
  color: var(--szm-accent);
  border-bottom-color: var(--szm-accent);
}

/* Hide welcome on first user-message (set by app.js / brand.js) */
.welcome-hidden .szm-welcome {
  display: none !important;
}

/* ==== Coaching-Bot Engine-Overrides ====
 * awareness-coach/compliance-faq Engine erwartet Lehr-Bot-Layout
 * (Quiz/Flash/Progress/Curriculum Tabs + Welcome-hidden-cycle).
 * Für Coaching-Bot: Welcome bleibt sichtbar, andere Sections weg.
 */
.welcome.hidden { display: block !important; visibility: visible !important; opacity: 1 !important; aria-hidden: false !important; }
.tabbar { display: none !important; }
section#view-quiz,
section#view-flash,
section#view-progress,
section#view-curriculum {
  display: none !important;
}
main.main {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}
section#view-chat {
  flex: 1 1 auto;
}
.toast-stack { display: none !important; }
/* Composer am Ende verankern */
form.composer { position: sticky; bottom: 0; z-index: 5; }
