/*************************************************
 * FORMAVIS UTILITIES
 * Helferklassen, Layout, Badges, Debug
 *************************************************/

/* ============================================
   1) DISPLAY & FLEX-UTILITIES
   ============================================ */

.fv-flex {
  display: flex !important;
}

.fv-inline-flex {
  display: inline-flex !important;
}

.fv-flex-col {
  flex-direction: column !important;
}

.fv-flex-row {
  flex-direction: row !important;
}

.fv-flex-wrap {
  flex-wrap: wrap !important;
}

.fv-items-center {
  align-items: center !important;
}

.fv-items-start {
  align-items: flex-start !important;
}

.fv-items-end {
  align-items: flex-end !important;
}

.fv-justify-center {
  justify-content: center !important;
}

.fv-justify-between {
  justify-content: space-between !important;
}

.fv-justify-start {
  justify-content: flex-start !important;
}

.fv-justify-end {
  justify-content: flex-end !important;
}

.fv-gap-xs {
  gap: 0.25rem !important;
}
.fv-gap-sm {
  gap: 0.5rem !important;
}
.fv-gap-md {
  gap: 0.75rem !important;
}
.fv-gap-lg {
  gap: 1.25rem !important;
}

/* ============================================
   2) ABSTAND (MARGIN / PADDING)
   ============================================ */

.fv-m-0 { margin: 0 !important; }
.fv-mt-0 { margin-top: 0 !important; }
.fv-mb-0 { margin-bottom: 0 !important; }
.fv-ml-0 { margin-left: 0 !important; }
.fv-mr-0 { margin-right: 0 !important; }

.fv-mb-xs { margin-bottom: 0.25rem !important; }
.fv-mb-sm { margin-bottom: 0.5rem !important; }
.fv-mb-md { margin-bottom: 0.75rem !important; }
.fv-mb-lg { margin-bottom: 1.25rem !important; }
.fv-mb-xl { margin-bottom: 2rem !important; }

.fv-pt-sm { padding-top: 0.5rem !important; }
.fv-pt-md { padding-top: 0.75rem !important; }
.fv-pt-lg { padding-top: 1.25rem !important; }

.fv-px-sm {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}
.fv-px-md {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.fv-px-lg {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* ============================================
   3) TEXT & FARBE
   ============================================ */

.fv-text-muted {
  color: var(--fv-text-muted, #6B7280) !important;
}

.fv-text-soft {
  color: var(--fv-text-soft, var(--fv-muted)) !important;
}

.fv-text-accent {
  color: var(--fv-accent) !important;
}

.fv-text-primary {
  color: var(--fv-primary) !important;
}

.fv-text-xs {
  font-size: 0.75rem !important;
}

.fv-text-sm {
  font-size: 0.875rem !important;
}

.fv-text-center {
  text-align: center !important;
}

.fv-text-right {
  text-align: right !important;
}

.fv-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* ============================================
   4) BACKGROUND & KARTEN-UTILITIES
   ============================================ */

.fv-bg {
  background-color: var(--fv-bg, #191B1C) !important;
}

.fv-bg-soft {
  background-color: var(--fv-bg-soft, #121314) !important;
}

.fv-bg-elevated {
  background-color: var(--fv-bg-elevated, #0B0C0D) !important;
}

.fv-border {
  border: 1px solid var(--fv-border, #2A2D30) !important;
}

.fv-border-soft {
  border: 1px solid var(--fv-border-soft, #202225) !important;
}

.fv-rounded-sm {
  border-radius: 0.5rem !important;
}

.fv-rounded-md {
  border-radius: 0.75rem !important;
}

.fv-rounded-lg {
  border-radius: 1rem !important;
}

.fv-rounded-full {
  border-radius: 999px !important;
}

.fv-shadow-soft {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6) !important;
}

.fv-shadow-strong {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85) !important;
}

/* Kleine Card Utility */
.fv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--fv-text-soft);
}

/* ============================================
   5) BADGES / STATUS-AMPEL (BONITÄT etc.)
   ============================================ */

.fv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.95);
  color: var(--fv-text-soft);
}

/* Ampel-Status – passend für Bonität, Risiko, Zahlungsstatus */
.fv-badge--green {
  border-color: #22c55e;
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
}

.fv-badge--yellow {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  color: #fef9c3;
}

.fv-badge--red {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.16);
  color: #fee2e2;
}

/* Kleiner Punkt vor Text (Ampel-Kringel) */
.fv-badge-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
}

/* ============================================
   6) VISIBILITY · MOBILE / DESKTOP
   ============================================ */

.fv-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .fv-hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .fv-hidden-desktop {
    display: none !important;
  }
}

/* ============================================
   7) FORM & INPUT-HELPERS
   ============================================ */

/* Readonly-Input Styling (wenn kein spezielles Formular-Layout greift) */
.fv-input-readonly {
  background: rgba(32, 34, 37, 0.55) !important;
  border-color: rgba(75, 85, 99, 0.55) !important;
  color: var(--fv-muted) !important;
  cursor: not-allowed !important;
  opacity: 0.85 !important;
  box-shadow: inset 0 0 6px rgba(44, 156, 124, 0.18) !important;
}

/* Kleiner Hilfetext unter Feldern */
.fv-help {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--fv-text-muted);
}

/* Required Stern */
.fv-required {
  color: var(--fv-danger);
  margin-right: 4px;
  font-weight: 700;
}

/* ============================================
   8) LAYOUT CONTAINER & WIDTH UTILITIES
   ============================================ */

.fv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.fv-w-full {
  width: 100% !important;
}

.fv-w-auto {
  width: auto !important;
}

.fv-max-w-sm {
  max-width: 480px !important;
}

.fv-max-w-md {
  max-width: 720px !important;
}

.fv-max-w-lg {
  max-width: 960px !important;
}


/* ============================================
   Ende · FORMAVIS UTILITIES
   ============================================ */

.formavis-myaccount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.formavis-my-btn {
    flex: 1 1 250px;
    text-align: center;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    background: var(--fv-bg-soft, #111315);
    border: 1px solid var(--fv-border, #2A2D30);
    color: var(--fv-text, #E5E7EB);
    transition: 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.formavis-my-btn:hover {
    background: var(--fv-primary, #2C9C7C);
    color: #000;
    border-color: var(--fv-primary, #2C9C7C);
    transform: translateY(-2px);
}

/* ===============================
   FORMAVIS – Mein Konto Schnellzugriff
   =============================== */

.formavis-myaccount-quickaccess {
    margin-bottom: 2.5rem;
    padding: 1.8rem 1.6rem;
    border-radius: 18px;
    background: var(--fv-bg-soft, #111315);
    border: 1px solid var(--fv-border, #26292D);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.fv-quickaccess-header {
    margin-bottom: 1.5rem;
}

.fv-quickaccess-title {
    margin: 0 0 0.3rem;
    font-size: 1.35rem;
    font-weight: 650;
    color: var(--fv-text, #E5E7EB);
}

.fv-quickaccess-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--fv-muted, #9CA3AF);
}

/* Grid für die Cards */

.fv-quickaccess-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 960px) {
    .fv-quickaccess-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fv-quickaccess-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Card-Styling */

.fv-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(44,156,124,0.14), transparent 55%),
                var(--fv-bg, #050607);
    border: 1px solid var(--fv-border, #26292D);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    position: relative;
    overflow: hidden;
}

.fv-quick-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(128,255,181,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.fv-quick-card:hover {
    transform: translateY(-3px);
    border-color: var(--fv-primary, #2C9C7C);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.fv-quick-card:hover::after {
    opacity: 1;
}

/* Icon-Kugel links */

.fv-quick-card-icon {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 118, 110, 0.25);
    border: 1px solid rgba(34, 197, 154, 0.7);
    font-size: 1.2rem;
}

/* Inhalt der Card */

.fv-quick-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fv-quick-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fv-text, #E5E7EB);
}

.fv-quick-card-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--fv-muted, #9CA3AF);
}

/* Badge unten */

.fv-quick-card-tag {
    align-self: flex-start;
    margin-top: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(15, 118, 110, 0.2);
    color: #BBF7D0;
    border: 1px solid rgba(52, 211, 153, 0.7);
}

/* Mein Konto – Servicefall-Tab hervorheben */
.woocommerce-MyAccount-navigation-link--serviceportal a {
    border-radius: 999px;
    background: linear-gradient(90deg, #2C9C7C, #80ffb5);
    color: #000 !important;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(12,148,136,0.6), 0 10px 25px rgba(0,0,0,0.6);
}

.woocommerce-MyAccount-navigation-link--serviceportal a:hover {
    filter: brightness(1.05);
}

/* Grundlegendes Link-Verhalten in den Cards */
.formavis-myaccount-quickaccess a.fv-quick-card {
    text-decoration: none;
    color: inherit;
}

/* Unterstreichungen in der Box vermeiden */
.formavis-myaccount-quickaccess a {
    text-decoration: none;
}

/* Falls das Theme globale Unterstreichungen erzwingt */
.formavis-myaccount-quickaccess a:hover,
.formavis-myaccount-quickaccess a:focus {
    text-decoration: none;
}

/* Text im Card-Inhalt */
.fv-quick-card-title,
.fv-quick-card-text,
.fv-quick-card-tag {
    text-decoration: none;
}