/* ============================================================
   view-mode.css – Ansicht "Einfach" / "Erweitert" (VORSCHLAG)
   ============================================================
   Steuerung über die Klasse fl-ext am <body> (www/view-mode.js).
   Elemente bleiben im DOM, Filterwerte bleiben dadurch erhalten.
     .basis-only        nur in "Einfach"
     .pro-only          nur in "Erweitert" (Block)
     .pro-only-inline   nur in "Erweitert" (im Fließtext)
   ============================================================ */

body:not(.fl-ext) .pro-only,
body:not(.fl-ext) .pro-only-inline,
body:not(.fl-ext) .filter-more {          /* "Weitere Filter" im Drawer */
  display: none !important;
}
body.fl-ext .basis-only {
  display: none !important;
}

/* ---------- Umschalter (Segment-Schalter aus zwei Radio-Buttons) ---------- */
.view-switch-wrap {
  margin: 0 0 18px 0;
}
.view-switch {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.view-switch-legend {
  float: left;                 /* Legende neben den Segmenten */
  width: auto;
  border: 0;
  margin: 0 12px 0 0;
  padding: 0;
  line-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: #2C3E50;
}
.view-switch-options {
  display: inline-flex;
  border: 2px solid #c45500;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.view-switch-option {
  position: relative;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
}
/* Radio unsichtbar, aber fokussier- und vorlesbar */
.view-switch-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.view-switch-option span {
  display: block;
  min-height: 40px;            /* mit Rahmen 44 px Zielgröße */
  line-height: 24px;
  padding: 8px 24px;
  font-size: 15px;
  color: #8c3d00;
  transition: background-color .15s ease, color .15s ease;
}
.view-switch-option + .view-switch-option span {
  border-left: 2px solid #c45500;
}
.view-switch-option:hover input:not(:checked) + span {
  background: #fff3e8;
}
/* Gefüllt wie fl-btn-primary: weiße Schrift auf #C45500 = 4,5 : 1 */
.view-switch-option input:checked + span {
  background: #c45500;
  color: #fff;
}
.view-switch-option input:focus-visible + span {
  outline: 3px solid #1f2a44;
  outline-offset: -5px;
}
.view-switch-desc {
  clear: both;
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #555;
}

@media (max-width: 767px) {
  .view-switch-legend {
    float: none;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .view-switch-options {
    display: flex;
    width: 100%;
  }
  .view-switch-option {
    flex: 1 1 50%;
    text-align: center;
  }
}

/* ---------- Streudiagramm ---------- */
.scatter-section h3 {
  margin-top: 10px;
}
.scatter-section .shiny-options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.scatter-section .radio-inline {
  margin-left: 0 !important;
  min-height: 32px;
  line-height: 24px;
}
.scatter-note {
  margin: 8px 0 16px 0;
  padding: 8px 12px;
  border-left: 3px solid #8a8a8a;
  background: #f6f6f6;
  font-size: 13px;
  color: #444;
}
.scatter-note p {
  margin: 0;
}
.scatter-note p + p {
  margin-top: 4px;
}

/* ---------- Zwei Varianten zur Diskussion (VORSCHLAG) ---------- */
.variant-banner {
  margin: 10px 0 14px 0;
  padding: 10px 14px;
  border: 1px dashed #8c3d00;
  border-radius: 6px;
  background: #fff8f1;
  color: #5c2800;
  font-size: 14px;
}
.variant-block {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e3e3e3;
}
.variant-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #1f2a44;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  vertical-align: 3px;
}

/* Fondssuche bei voller Vergleichsliste (selection-feedback.js,
   isinSearchState) - vorher style="opacity: 0.6" am neu gezeichneten Feld */
.isin-search.is-full {
  opacity: 0.6;
}
