/**
 * Mini-Gratisversion (Landingpage-Block #teaser-sim)
 * Layout/Komponenten – Farben siehe teaser-theme.css
 */
#teaser-sim .teaser-panel {
  background: var(--ak-paper, #fff);
  border: 1px solid var(--ak-border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--ak-shadow);
}

/* Szenario-Auswahl (ersetzt die früheren Eingabefelder) */
#teaser-sim .teaser-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
@media (max-width: 720px) {
  #teaser-sim .teaser-scenarios { grid-template-columns: 1fr; }
}
#teaser-sim .teaser-scenario {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  font: inherit;
  padding: 0.95rem 1.1rem;
  min-height: 84px;
  border: 2px solid var(--ak-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ak-text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#teaser-sim .teaser-scenario:hover { border-color: rgba(195, 154, 62, 0.6); }
#teaser-sim .teaser-scenario:focus-visible { outline: 3px solid rgba(195, 154, 62, 0.55); outline-offset: 2px; }
#teaser-sim .teaser-scenario.is-on {
  border-color: var(--ak-gold);
  background: rgba(195, 154, 62, 0.08);
  box-shadow: 0 4px 16px rgba(195, 154, 62, 0.22);
}
#teaser-sim .teaser-scenario .sc-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ak-navy);
}
#teaser-sim .teaser-scenario .sc-text {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ak-text-mid);
}

/* Zahlen des gewählten Szenarios (nur Anzeige) */
#teaser-sim .teaser-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(22, 41, 75, 0.04);
}
@media (max-width: 800px) {
  #teaser-sim .teaser-facts { grid-template-columns: repeat(2, 1fr); }
}
#teaser-sim .teaser-facts dt {
  font-size: 0.74rem;
  color: var(--ak-text-mid);
  margin: 0;
}
#teaser-sim .teaser-facts dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ak-navy);
  font-size: 0.95rem;
}

#teaser-sim .teaser-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 720px) {
  #teaser-sim .teaser-kpis { grid-template-columns: 1fr; }
}

#teaser-sim .teaser-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 1rem 1.1rem 1.05rem;
  background: linear-gradient(145deg, #1a3158 0%, var(--ak-navy) 100%);
  color: #fff;
  min-height: 96px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#teaser-sim .teaser-kpi.is-flash {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 41, 75, 0.28);
}
#teaser-sim .teaser-kpi.is-good { background: linear-gradient(145deg, #2f4f45 0%, #243f38 100%); }
#teaser-sim .teaser-kpi.is-warn { background: linear-gradient(145deg, #5a3d28 0%, #3d2a1c 100%); }
#teaser-sim .teaser-kpi.is-bad { background: linear-gradient(145deg, #6b2a24 0%, #4a1d19 100%); }
#teaser-sim .teaser-kpi .kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
  margin: 0 0 0.35rem;
}
#teaser-sim .teaser-kpi .kpi-value {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
}
#teaser-sim .teaser-kpi .kpi-sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
}
#teaser-sim .teaser-kpi::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(195, 154, 62, 0.18);
}

#teaser-sim .teaser-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 800px) {
  #teaser-sim .teaser-charts { grid-template-columns: 1fr; }
}
#teaser-sim .teaser-chart-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--ak-navy);
}
#teaser-sim .teaser-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  background: #fbfaf7;
  border-radius: 8px;
  border: 1px solid var(--ak-border);
}
#teaser-sim .teaser-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--ak-text-mid);
}
#teaser-sim .teaser-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.3rem;
  vertical-align: -1px;
}

#teaser-sim .teaser-feedback {
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--ak-gold-d);
  margin: 0.75rem 0 1rem;
  font-weight: 500;
}

#teaser-sim .teaser-levers {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}
#teaser-sim .teaser-lever {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr auto;
  gap: 0.65rem 1rem;
  align-items: center;
}
@media (max-width: 640px) {
  #teaser-sim .teaser-lever {
    grid-template-columns: 1fr auto;
    grid-template-areas: "title value" "slider slider";
  }
  #teaser-sim .teaser-lever-title { grid-area: title; }
  #teaser-sim .teaser-lever-value { grid-area: value; }
  #teaser-sim .teaser-lever-slider { grid-area: slider; }
}
#teaser-sim .teaser-lever-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ak-navy);
}
#teaser-sim .teaser-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ak-border);
  background: #fff;
  color: var(--ak-text-mid);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: help;
}
#teaser-sim .teaser-tip:focus { outline: 2px solid rgba(195, 154, 62, 0.45); }
#teaser-sim .teaser-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(260px, 70vw);
  padding: 0.55rem 0.7rem;
  background: var(--ak-navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 5;
  text-align: left;
}
#teaser-sim .teaser-tip:hover::after,
#teaser-sim .teaser-tip:focus::after { opacity: 1; }

#teaser-sim input[type="range"] {
  width: 100%;
  accent-color: var(--ak-gold);
  height: 28px;
}
#teaser-sim .teaser-lever-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ak-navy);
  min-width: 5.5rem;
  text-align: right;
  font-size: 0.9rem;
}
#teaser-sim .teaser-disclaimer {
  font-size: 0.82rem;
  color: var(--ak-text-mid);
  background: rgba(22, 41, 75, 0.04);
  border-left: 3px solid var(--ak-gold);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.25rem;
}
#teaser-sim .teaser-disclaimer strong { color: var(--ak-navy); }

#teaser-sim .teaser-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Touch (Zielgruppe 55+): grössere Ziele. Tooltip hängt an der Titelzeile, damit er nicht über den Rand ragt. */
@media (max-width: 640px) {
  #teaser-sim .teaser-lever-title { position: relative; }
  #teaser-sim .teaser-tip { position: static; width: 36px; height: 36px; font-size: 0.9rem; }
  #teaser-sim .teaser-tip[data-tip]::after { left: 0; right: auto; transform: none; width: min(280px, calc(100vw - 3rem)); }
  #teaser-sim input[type="range"] { height: 40px; }
  #teaser-sim .teaser-lever-title { min-width: 0; flex-wrap: wrap; }
  #teaser-sim .teaser-lever-value { min-width: 0; white-space: nowrap; }
}
