/* ==========================================
   GVG_FP-Seite spezifisches CSS
   Nutzt atomare Elemente aus main.css
   ========================================== */

/* Pill-Switch Toggle */
.gbg-fp-pill-toggle {
  display: inline-flex;
  flex-direction: row;
  gap: 0;
  background: var(--color-highlight-strong);
  border-radius: var(--radius-lg);
  padding: 4px;
  width: fit-content;
  margin: 0 auto;
}

.gbg-fp-pill-option {
  cursor: pointer;
  padding: 10px 24px;
  text-align: center;
  font-size: inherit;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.gbg-fp-pill-option:hover {
  color: var(--color-text-primary);
}

/* Aktiver Zustand via .active Klasse */
.gbg-fp-pill-option.active {
  background: var(--state-bg-info);
  color: var(--state-bg-info-text) !important;
  font-weight: bold;
}

/* ==========================================
   Inlay-Elemente (eingebettet in Haupt-Cards)
   ========================================== */

/* Passive Inlay (links): tertiary-Background, leicht eingetaucht */
.gbg-fp-inlay-passive {
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.25rem 0.5rem;
  box-shadow: inset 1px -1px 4px var(--color-highlight-soft), inset -1px 1px 4px var(--color-shadow);
}

/* Active Inlay (rechts): tertiary-Background, stärker eingetaucht */
.gbg-fp-inlay-active {
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.25rem 0.5rem;
  box-shadow: inset 2px -2px 6px var(--color-highlight-medium), inset -2px 2px 6px var(--color-shadow);
}

/* ==========================================
   Responsive Anpassungen
   ========================================== */

/* Portrait: gestapeltes Layout (kein overflow hier → #content scrollt) */
@media (orientation: portrait) {
  #gbgFpContent {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* Kleine Viewports: weniger Gap */
@media (max-width: 480px) {
  #gbgFpContent {
    gap: 0.2rem;
  }
}

/* ==========================================
   Stepper-Buttons für Restzeit
   ========================================== */

.gbg-fp-stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-highlight-medium);
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1;
}

.gbg-fp-stepper-btn:hover {
    background: var(--state-bg-info);
    color: var(--state-bg-info-text);
}

.gbg-fp-stepper-btn:active {
    transform: scale(0.95);
}
