/* ============================================
   FORMAVIS CORE – GLOBAL BASE
============================================ */



/* 0) FARBSYSTEM & TYPO – FORMAVIS DARK CI VARIABLEN */
:root {
  /* Farben */
  --fv-bg: #191B1C;
  --fv-bg-soft: #121314;
  --fv-bg-elevated: #0B0C0D;
  --fv-border: #2A2D30;
  --fv-border-soft: #202225;

  --fv-text: #E5E7EB;
  --fv-muted: #9CA3AF;

  --fv-primary: #2C9C7C;
  --fv-primary-soft: #1C6E59;
  --fv-secondary: #0A4536;
  --fv-accent: #B46F42;
  --fv-danger: #F97373;

  --fv-border-subtle: var(--fv-border-soft);
  --fv-border-strong: var(--fv-border);
  --fv-text-soft: var(--fv-muted);
  --fv-text-muted: #6B7280;
  --fv-primary-strong: #22C58B;

  /* Schriften */
  --fv-font-heading: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fv-font-body: "Karla", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Grundgrößen / Zeilenhöhen */
  --fv-font-size-base: 16px;
  --fv-line-height-base: 1.6;

  --fv-font-size-h1: 2.4rem;
  --fv-font-size-h2: 1.9rem;
  --fv-font-size-h3: 1.6rem;
  --fv-font-size-h4: 1.3rem;
  --fv-font-size-h5: 1.1rem;
  --fv-font-size-h6: 0.95rem;

  --fv-font-weight-heading: 600;
  --fv-font-weight-heading-strong: 700;
  --fv-font-weight-body: 400;
  --fv-font-weight-body-strong: 500;

  --fv-letter-spacing-tight: -0.02em;
  --fv-letter-spacing-normal: 0;
  --fv-letter-spacing-wide: 0.04em;
}

/* ============================================
   1) BASIS TYPOGRAFIE & GLOBALER BACKGROUND
============================================ */

html {
  font-size: 100%; /* 16px = 1rem */
}

body {
  font-family: var(--fv-font-body);
  font-size: var(--fv-font-size-base);
  line-height: var(--fv-line-height-base);
  color: var(--fv-text, #E5E7EB);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: var(--fv-bg, #050607);
}

/* Überschriften global */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fv-font-heading);
  font-weight: var(--fv-font-weight-heading);
  letter-spacing: var(--fv-letter-spacing-tight);
  color: var(--fv-heading, var(--fv-text, #E5E7EB));
  margin-top: 0;
  margin-bottom: 0.6em;
}

/* Skalierung */
h1 {
  font-size: var(--fv-font-size-h1);
  line-height: 1.15;
}
h2 {
  font-size: var(--fv-font-size-h2);
  line-height: 1.2;
}
h3 {
  font-size: var(--fv-font-size-h3);
  line-height: 1.25;
}
h4 {
  font-size: var(--fv-font-size-h4);
  line-height: 1.3;
}
h5 {
  font-size: var(--fv-font-size-h5);
  line-height: 1.35;
  text-transform: none;
}
h6 {
  font-size: var(--fv-font-size-h6);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--fv-letter-spacing-wide);
}

/* Absätze & Emphasis */
p {
  margin: 0 0 0.85em;
}
strong, b {
  font-weight: var(--fv-font-weight-body-strong);
}
em, i {
  font-style: italic;
}

/* Listen */
ul, ol {
  margin: 0 0 0.9em 1.4em;
  padding: 0;
}
li {
  margin-bottom: 0.25em;
}

/* Links */
a {
  color: var(--fv-primary, #2C9C7C);
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
a:hover,
a:focus-visible {
  color: var(--fv-accent, #80ffb5);
  text-shadow: 0 0 12px rgba(128, 255, 181, 0.4);
}

/* Kleinere Meta-Texte */
small,
.text-small,
.fv-meta,
.woocommerce-mini-cart__total,
.woocommerce-Price-taxLabel {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fv-muted, #9CA3AF);
}

/* Eyebrow / Kicker über Überschriften */
.fv-eyebrow {
  font-family: var(--fv-font-heading);
  font-size: 0.78rem;
  letter-spacing: var(--fv-letter-spacing-wide);
  text-transform: uppercase;
  color: var(--fv-accent, #80ffb5);
  margin-bottom: 0.35rem;
}

/* Hauptnavigation & Header */
.site-title,
.site-branding,
.main-navigation a,
.main-header-menu a,
.fv-main-nav a {
  font-family: var(--fv-font-heading);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Footer-Menüs / Kleinere Navigation */
.site-footer,
.site-footer a,
.footer-widgets,
.footer-widgets a {
  font-family: var(--fv-font-body);
  font-size: 0.9rem;
}

/* Text-Hilfsklassen */
.fv-text-xs { font-size: 0.78rem; }
.fv-text-sm { font-size: 0.9rem; }
.fv-text-lg { font-size: 1.1rem; }
.fv-text-xl { font-size: 1.3rem; }

.fv-font-light    { font-weight: 300; }
.fv-font-normal   { font-weight: 400; }
.fv-font-medium   { font-weight: 500; }
.fv-font-semibold { font-weight: 600; }
.fv-font-bold     { font-weight: 700; }

.fv-text-center   { text-align: center; }
.fv-text-right    { text-align: right; }
.fv-text-muted    { color: var(--fv-muted, #9CA3AF); }

/* ============================================
   2) GLOBAL FORMS
============================================ */

input,
textarea,
select {
  background: var(--fv-bg-soft) !important;
  color: var(--fv-text) !important;
  border: 1px solid var(--fv-border-soft) !important;
  border-radius: 12px !important;
  padding: .75rem 1rem !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--fv-primary) !important;
  box-shadow: 0 0 0 2px var(--fv-primary-soft) !important;
}

/* ============================================
   3) BUTTON-TYPO & PRIMARY CTA
============================================ */

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.fv-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  font-family: var(--fv-font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Primärer CTA – Formavis-Style */
.fv-button-primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
button.fv-cta-primary {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  background: linear-gradient(90deg, var(--fv-primary, #2C9C7C), var(--fv-accent, #80ffb5));
  color: #000;
  border: none;
  box-shadow: 0 0 20px rgba(44, 156, 124, 0.45);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
}

.fv-button-primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
button.fv-cta-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 0 26px rgba(128, 255, 181, 0.55);
}

/* Shop-Buttons generell */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.button {
  font-family: var(--fv-font-heading);
  font-weight: 600;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* In den Warenkorb im Grid kleiner & techy */
.woocommerce ul.products li.product .button {
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
}

/* ============================================
   4) HEADER TOPBAR & TAGLINE
============================================ */

.fv-header-topbar {
  width: 100%;
  background: radial-gradient(
    circle at top,
    rgba(44, 156, 124, 0.35) 0,
    rgba(10, 11, 12, 0.98) 55%
  );
  padding: 0.25rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F9FAFB;
  border-bottom: 1px solid rgba(70, 255, 190, 0.25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  z-index: 30;
  position: relative;
}

.fv-header-topbar span {
  opacity: .96;
}

.fv-header-topbar::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 1px;
  background: radial-gradient(
    circle,
    rgba(124, 252, 200, 0.8) 0,
    rgba(124, 252, 200, 0) 70%
  );
  opacity: .7;
}

.fv-header-tagline {
  display: flex;
  justify-content: center;
  margin-top: .4rem;
  margin-bottom: .35rem;
}

.fv-header-tagline span {
  padding: .35rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(
    circle at top,
    rgba(44, 156, 124, 0.22) 0,
    rgba(9, 10, 11, 0.98) 52%
  );
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Versandkosten-Banner – Glow-Version (Center-Variante) */
.fv-header-top-center {
  width: 100%;
  position: relative;
  z-index: 30;
  padding: 0.25rem 1rem;
  text-align: center;
  background: radial-gradient(
    circle at top,
    rgba(44, 156, 124, 0.35) 0,
    rgba(10, 11, 12, 0.98) 55%
  );
  border-bottom: 1px solid rgba(70, 255, 190, 0.25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.fv-header-top-center::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 1px;
  background: radial-gradient(
    circle,
    rgba(124, 252, 200, 0.8) 0,
    rgba(124, 252, 200, 0) 70%
  );
  opacity: 0.7;
  pointer-events: none;
}

.fv-header-topline {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F9FAFB;
  opacity: 0.96;
  text-shadow: 0 0 10px rgba(124, 252, 200, 0.8);
}

/* ============================================
   5) LEGAL + LOGO DELUXE
============================================ */

.formavis-legal-header .agb-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 25%, #38c49a, #2C9C7C 45%, #0A4536 100%);
  padding: 7px;
  transition: .25s;
}

.formavis-legal-header .agb-brand-logo img {
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.55));
  transition: .25s;
}

.formavis-legal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem 1.2rem;
}

.formavis-legal-card {
  padding: .9rem .95rem;
  border-radius: .9rem;
  background: rgba(12, 13, 14, 0.96);
  border: 1px solid rgba(42,45,48,.9);
  transition: .25s;
}

/* ============================================
   6) FORMAVIS FORMULARE (BASIS)
============================================ */

.formavis-form {
  max-width: 840px;
  margin: auto;
  background: var(--fv-bg-elevated);
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid var(--fv-border);
}

/* Readonly */
.fv-input[readonly] {
  background: rgba(32,34,37,0.55) !important;
  opacity: .85;
}

/* DSGVO */
.fv-dsgvo-field .fv-dsgvo-text {
  color: var(--fv-text-soft);
}

/* ============================================
   7) ACCORDION
============================================ */

.rr-accordion-item {
  border-radius: 1rem;
  border: 1px solid var(--fv-border);
  background: radial-gradient(
    circle at top left,
    rgba(44,156,124,0.12),
    rgba(18,19,20,0.98)
  );
}

/* ============================================
   8) WOO TYPO & MEIN KONTO / QUICK LINKS
============================================ */

/* Konto-Navigation etwas technischer wirken lassen + Pill-Style */
.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.woocommerce-MyAccount-navigation li {
  list-style: none;
}

.woocommerce-MyAccount-navigation a {
  font-family: var(--fv-font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--fv-border-soft);
  background: radial-gradient(
    circle at top,
    rgba(44,156,124,0.12),
    rgba(9,10,11,0.96)
  );
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
  border-color: var(--fv-primary);
  color: var(--fv-text);
  box-shadow: 0 0 16px rgba(44,156,124,0.45);
}

/* Schnellzugriff-Cards (Rubik + Karla Mix) */

.fv-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.fv-quick-card {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--fv-border-soft);
  background: radial-gradient(
    circle at top left,
    rgba(44,156,124,0.15),
    rgba(9,10,11,0.96)
  );
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fv-quick-card-title {
  font-family: var(--fv-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.fv-quick-card-text {
  font-family: var(--fv-font-body);
  font-size: 0.85rem;
  color: var(--fv-muted);
}

/* Produktlisten – Titel etwas kompakter & einheitlich */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--fv-font-heading);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: var(--fv-letter-spacing-tight);
}

/* Einzelprodukt – Produktname nochmal präsenter */
.single-product .product_title {
  font-family: var(--fv-font-heading);
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
}

/* Kategorie-Überschriften im Shop */
.woocommerce-products-header__title.page-title {
  font-family: var(--fv-font-heading);
  font-size: 1.6rem;
  line-height: 1.2;
}

/* Produktbeschreibung (Tab) & Langtexte */
.woocommerce-Tabs-panel,
.woocommerce-product-details__short-description,
.woocommerce-checkout-review-order-table,
.woocommerce-order-details,
.woocommerce-MyAccount-content {
  font-family: var(--fv-font-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Kleinere Meta-Texte im Shop (z. B. Kategorie, Mini-Hinweise) */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-breadcrumb,
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price del {
  font-size: 0.85rem;
}

body {
  outline: 5px solid magenta !important;
}

/* DEBUG: CORE CSS IST LIVE */
html::before {
  content: "CORE CSS IST LIVE";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  background: red;
  color: #fff;
  padding: 2px 6px;
  font-size: 10px;
}

/* ============================================
   17) DEBUG-HINWEIS (BITTE STEHEN LASSEN)
   ============================================ */

/* STEHEN LASSEN AM ENDE DA TEST –
   wenn du das NICHT siehst, wird das CSS hier nicht geladen */

body::before {
  content: "WEBSEITE WIRD ÜBERARBEITET 🎯";
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999999;
  padding: 4px 8px;
  font-size: 20px;
  background: #f97373;
  color: #0b0c0d;
}

h1 {
  color: #00ff88 !important;
  text-transform: uppercase;
}
