/*
 * Immobilie-Versicherung.de – Basis-Stylesheet
 * Gilt für alle Money-Pages, Pillar-Seiten und die Startseite.
 * Wird per wp_enqueue_style() im Child Theme eingebunden (siehe README-SETUP.md).
 * Keine Google Fonts, keine externen Font-Requests (Vorgabe Abschnitt 7/9 Masterprompt).
 */

:root {
  --vmx-white: #FFFFFF;
  --vmx-anthracite: #1F2328;
  --vmx-grey-light: #F4F5F6;
  --vmx-grey-border: #E2E4E7;
  --vmx-petrol: #0F3D3E;
  --vmx-petrol-dark: #0A2B2C;
  --vmx-petrol-tint: #E6EEEE;

  --vmx-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --vmx-radius: 6px;
  --vmx-shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
  --vmx-max-width: 1180px;
}

/* ---------- Grundlayout ---------- */

.vmx-content {
  font-family: var(--vmx-font-sans);
  color: var(--vmx-anthracite);
  line-height: 1.65;
}

.vmx-content h1,
.vmx-content h2,
.vmx-content h3,
.vmx-content h4 {
  color: var(--vmx-anthracite);
  font-weight: 700;
  line-height: 1.3;
}

.vmx-content h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 1rem; }
.vmx-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.6rem 0 1rem; }
.vmx-content h3 { font-size: 1.25rem; margin: 1.8rem 0 0.75rem; }
.vmx-content p  { margin: 0 0 1.1rem; font-size: 1.05rem; }

/*
 * :where() hält diese Basis-Linkfarbe bei Spezifität 0, damit jede einzelne
 * Button-/Komponentenklasse (z. B. .vmx-btn--secondary) sie zuverlässig
 * überschreiben kann, unabhängig von der Reihenfolge im Stylesheet. Ohne
 * :where() gewinnt ".vmx-content a" (Klasse+Element) gegen eine einzelne
 * Klasse wie ".vmx-btn--secondary" und macht z. B. helle Button-Texte auf
 * dunklem Grund unsichtbar.
 */
:where(.vmx-content a) { color: var(--vmx-petrol); text-decoration: underline; }
:where(.vmx-content a:hover) { color: var(--vmx-petrol-dark); }

.vmx-container {
  max-width: var(--vmx-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.vmx-section {
  padding: 56px 0;
}

.vmx-section--grey {
  background: var(--vmx-grey-light);
}

/* ---------- Breadcrumb ---------- */

.vmx-breadcrumb {
  font-size: 0.85rem;
  color: #5b6168;
  padding: 18px 0 0;
}

.vmx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vmx-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: #9aa0a6;
}

.vmx-breadcrumb a {
  color: #5b6168;
  text-decoration: none;
}

.vmx-breadcrumb a:hover {
  color: var(--vmx-petrol);
  text-decoration: underline;
}

.vmx-breadcrumb [aria-current="page"] {
  color: var(--vmx-anthracite);
  font-weight: 600;
}

/* ---------- Hero ---------- */

.vmx-hero {
  background: var(--vmx-petrol);
  color: var(--vmx-white);
  padding: 64px 0 56px;
}

.vmx-hero h1 { color: var(--vmx-white); }

.vmx-hero__sub {
  font-size: 1.15rem;
  max-width: 760px;
  color: #D7E6E5;
  margin: 0 0 1.75rem;
}

.vmx-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: #C7DBDA;
}

.vmx-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Buttons / CTA ---------- */

.vmx-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--vmx-radius);
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.vmx-btn--primary {
  background: var(--vmx-white);
  color: var(--vmx-petrol);
}
.vmx-btn--primary:hover { background: #EDEFEF; }

.vmx-btn--on-light {
  background: var(--vmx-petrol);
  color: var(--vmx-white);
}
.vmx-btn--on-light:hover { background: var(--vmx-petrol-dark); }

.vmx-btn--secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--vmx-white);
}
.vmx-btn--secondary:hover { border-color: var(--vmx-white); }

.vmx-btn--secondary-on-light {
  background: transparent;
  border-color: var(--vmx-grey-border);
  color: var(--vmx-anthracite);
}
.vmx-btn--secondary-on-light:hover { border-color: var(--vmx-petrol); color: var(--vmx-petrol); }

.vmx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1.5rem;
}

.vmx-risk-reversal {
  font-size: 0.88rem;
  color: #C7DBDA;
  margin-top: 1.1rem;
}

.vmx-risk-reversal--light {
  color: #5b6168;
}

/* ---------- CTA-Banner (zwischenstufe) ---------- */

.vmx-cta-banner {
  background: var(--vmx-petrol-tint);
  border: 1px solid var(--vmx-grey-border);
  border-radius: var(--vmx-radius);
  padding: 36px;
  text-align: center;
}

.vmx-cta-banner h2 { margin-top: 0; }

.vmx-cta-banner .vmx-cta-row { justify-content: center; }

/* ---------- Karten / Grids ---------- */

.vmx-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.75rem 0;
}

.vmx-card {
  background: var(--vmx-white);
  border: 1px solid var(--vmx-grey-border);
  border-radius: var(--vmx-radius);
  padding: 26px;
}

.vmx-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.vmx-card p:last-child { margin-bottom: 0; }

.vmx-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--vmx-shadow);
}

.vmx-card--link:hover {
  border-color: var(--vmx-petrol);
}

.vmx-card--link h3 { color: var(--vmx-petrol); }

/* ---------- Icon-/Check-Listen ---------- */

.vmx-list-check {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.vmx-list-check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.6rem;
}

.vmx-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--vmx-petrol);
  font-weight: 700;
}

/* ---------- Funnel-Schritte (Versicherungscheck-Teaser) ---------- */

.vmx-funnel-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 1.75rem 0 2rem;
  counter-reset: vmx-step;
}

.vmx-funnel-steps li {
  list-style: none;
  background: var(--vmx-white);
  border: 1px solid var(--vmx-grey-border);
  border-radius: var(--vmx-radius);
  padding: 20px 18px;
  font-size: 0.92rem;
  text-align: center;
}

.vmx-funnel-steps li::before {
  counter-increment: vmx-step;
  content: counter(vmx-step);
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--vmx-petrol);
  color: var(--vmx-white);
  font-weight: 700;
}

/* ---------- FAQ (details/summary, ohne JS) ---------- */

.vmx-faq-item {
  border-bottom: 1px solid var(--vmx-grey-border);
  padding: 18px 0;
}

.vmx-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vmx-faq-item summary::-webkit-details-marker { display: none; }

.vmx-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--vmx-petrol);
  flex-shrink: 0;
}

.vmx-faq-item[open] summary::after { content: "–"; }

.vmx-faq-item p {
  margin: 12px 0 0;
  color: #3c4146;
}

/* ---------- Tabellen ---------- */

.vmx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.vmx-table th,
.vmx-table td {
  border: 1px solid var(--vmx-grey-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.vmx-table th {
  background: var(--vmx-grey-light);
}

/* ---------- Formular-Rahmen (Fluent Forms) ---------- */

.vmx-form-frame {
  background: var(--vmx-white);
  border: 1px solid var(--vmx-grey-border);
  border-radius: var(--vmx-radius);
  padding: 28px;
  box-shadow: var(--vmx-shadow);
}

/* ---------- Sticky-CTA mobil ---------- */

.vmx-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--vmx-petrol);
  padding: 12px 16px;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.15);
}

.vmx-sticky-cta a {
  display: block;
  text-align: center;
  background: var(--vmx-white);
  color: var(--vmx-petrol);
  font-weight: 700;
  padding: 13px 0;
  border-radius: var(--vmx-radius);
  text-decoration: none;
}

@media (max-width: 760px) {
  .vmx-sticky-cta { display: block; }
  body { padding-bottom: 64px; }
  .vmx-hero { padding: 40px 0 36px; }
  .vmx-section { padding: 40px 0; }
  .vmx-grid { grid-template-columns: 1fr; }
}

/* ---------- Zielgruppen-Übersicht (Startseite) ---------- */

.vmx-audience-card {
  border-top: 3px solid var(--vmx-petrol);
}

/* ---------- Zwei-Spalten-Inhalt ---------- */

.vmx-two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .vmx-two-col { grid-template-columns: 1fr; }
}
