/* formstube · Brand-Modal-Component
 * ════════════════════════════════════════════════════════════════
 *  Zentriertes Dark-Modal mit Hex-Accent + Lime-Akzent
 *  Ersetzt native confirm() / alert() im Controlling.
 *  Auto-Attach via data-fs-confirm="…" auf Form oder Button.
 */

.fs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out, ease-out);
}
.fs-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fs-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fs-modal-card {
  position: relative;
  background: var(--ink, #0A0A0C);
  border: 1px solid rgba(216,255,60,0.25);
  border-radius: 8px;
  width: min(520px, calc(100vw - 32px));
  padding: 32px 36px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.65), 0 0 0 1px rgba(216,255,60,0.05);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s var(--ease-out, ease-out);
}
.fs-modal.is-open .fs-modal-card { transform: translateY(0) scale(1); }

/* Hex-Marker oben links · Lime Filled, brand-signal */
.fs-modal-hex {
  position: absolute;
  top: -16px; left: 36px;
  width: 32px;
  aspect-ratio: 1 / 1;
  background: var(--accent, #D8FF3C);
  clip-path: var(--hex-clip, polygon(50% 0%, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%));
  box-shadow: 0 4px 12px rgba(216,255,60,0.4);
}
.fs-modal--danger .fs-modal-hex {
  background: #FF6B6B;
  box-shadow: 0 4px 12px rgba(255,107,107,0.4);
}
.fs-modal--warn .fs-modal-hex {
  background: #FFB13C;
  box-shadow: 0 4px 12px rgba(255,177,60,0.4);
}

.fs-modal-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, #D8FF3C);
  margin: 4px 0 14px;
  font-weight: 700;
}
.fs-modal--danger .fs-modal-eyebrow { color: #FF6B6B; }
.fs-modal--warn   .fs-modal-eyebrow { color: #FFB13C; }

.fs-modal-title {
  font-family: 'Mona Sans', sans-serif;
  font-weight: 900;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--paper, #F0F0F0);
  margin: 0 0 14px;
}
.fs-modal-title .dot { color: var(--accent, #D8FF3C); }

.fs-modal-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--stone, #888);
  margin: 0 0 28px;
}
.fs-modal-body:empty { display: none; }

.fs-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.fs-modal-actions .btn {
  min-width: 120px;
  justify-content: center;
}

/* Danger-Variant OK-Button → rot */
.fs-modal--danger .fs-modal-ok {
  background: #FF6B6B;
  color: var(--ink, #0A0A0C);
  border-color: #FF6B6B;
}
.fs-modal--danger .fs-modal-ok:hover {
  background: #FF8585;
  border-color: #FF8585;
}

/* Warn-Variant OK → orange */
.fs-modal--warn .fs-modal-ok {
  background: #FFB13C;
  color: var(--ink, #0A0A0C);
  border-color: #FFB13C;
}
.fs-modal--warn .fs-modal-ok:hover {
  background: #FFC15C;
  border-color: #FFC15C;
}

@media (max-width: 540px) {
  .fs-modal-card { padding: 28px 24px 22px; }
  .fs-modal-actions .btn { flex: 1; min-width: 0; }
}
