/*
 * VMX Regionale Landingpages — Stylesheet (geteilt)
 * Gilt für: page-region-oranienburg.php & page-region-oberhavel.php
 * Design: Stil 3 Regional Warm
 * Version: 1.0 — Session 6
 */

/* ============================================================
   0. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --gruen-dunkel:  #2d6a4f;
  --gruen-mittel:  #40916c;
  --gruen-hell:    #d8f3dc;
  --gruen-bg:      #f0faf3;
  --beige:         #d4a574;
  --beige-hell:    #fefae0;
  --creme:         #fffdf7;
  --cta-gelb:      #e9c46a;
  --cta-dunkel:    #b5860f;
  --text-dunkel:   #111827;
  --text-mittel:   #374151;
  --text-hell:     #6b7280;
  --font-display:  'Lora', Georgia, serif;
  --font-body:     'Source Sans 3', system-ui, sans-serif;
  --radius:        8px;
  --radius-lg:     16px;
  --shadow-sm:     0 2px 8px rgba(45,106,79,.10);
  --shadow-md:     0 4px 20px rgba(45,106,79,.15);
  --shadow-lg:     0 8px 40px rgba(45,106,79,.18);
  --transition:    0.3s ease;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body.vmx-region-page {
  font-family: var(--font-body);
  color: var(--text-dunkel);
  background: var(--creme);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.vmx-region-page img { max-width: 100%; height: auto; display: block; }
body.vmx-region-page a   { color: var(--gruen-dunkel); text-decoration: none; }
body.vmx-region-page a:hover { color: var(--gruen-mittel); }
body.vmx-region-page ul  { list-style: none; }

.vmx-reg-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
body.vmx-region-page h1,
body.vmx-region-page h2,
body.vmx-region-page h3 {
  font-family: var(--font-display);
  color: var(--text-dunkel); line-height: 1.25;
}
body.vmx-region-page h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 700; }
body.vmx-region-page h2 { font-size: clamp(1.4rem, 3vw, 2rem);    font-weight: 700; }
body.vmx-region-page h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }
body.vmx-region-page p  { font-size: 1.05rem; color: var(--text-mittel); margin-bottom: 1rem; }
body.vmx-region-page p:last-child { margin-bottom: 0; }

/* ============================================================
   3. BUTTONS
   ============================================================ */
.vmx-reg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.vmx-reg-btn-primary {
  background: var(--cta-gelb); color: var(--text-dunkel);
  box-shadow: 0 4px 16px rgba(233,196,106,.4);
}
.vmx-reg-btn-primary:hover {
  background: var(--cta-dunkel); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(181,134,15,.35);
}
.vmx-reg-btn-secondary {
  background: transparent; color: var(--gruen-dunkel);
  border: 2px solid var(--gruen-dunkel);
}
.vmx-reg-btn-secondary:hover { background: var(--gruen-dunkel); color: #fff; }
.vmx-reg-btn-white {
  background: #fff; color: var(--gruen-dunkel); box-shadow: var(--shadow-sm);
}
.vmx-reg-btn-white:hover { background: var(--gruen-bg); transform: translateY(-2px); }

/* ============================================================
   4. LAYOUT HELPERS
   ============================================================ */
.vmx-reg-section     { padding: 72px 0; }
.vmx-reg-section-sm  { padding: 48px 0; }
.vmx-reg-section-alt   { background: var(--gruen-bg); }
.vmx-reg-section-beige { background: var(--beige-hell); }
.vmx-reg-section-dark  { background: var(--gruen-dunkel); }

.vmx-reg-label {
  display: inline-block;
  background: var(--gruen-hell); color: var(--gruen-dunkel);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 16px;
}
.vmx-reg-section-intro { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.vmx-reg-section-intro p { font-size: 1.1rem; }

.vmx-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.vmx-reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   5. HEADER
   ============================================================ */
.vmx-reg-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--creme);
  border-bottom: 1px solid var(--gruen-hell);
  box-shadow: var(--shadow-sm);
}
.vmx-reg-header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.vmx-reg-logo img { height: 44px; width: auto; max-width: 200px; max-height: 44px; display: block; flex-shrink: 0; }
.vmx-reg-nav-cta      { display: flex; align-items: center; gap: 12px; }
.vmx-reg-nav-phone    { font-weight: 700; color: var(--gruen-dunkel); font-size: .95rem; }
.vmx-reg-nav-phone:hover { color: var(--gruen-mittel); }

@media (max-width: 600px) {
  .vmx-reg-nav-phone { display: none; }
  .vmx-reg-btn { padding: 10px 18px; font-size: .9rem; }
}

/* ============================================================
   6. BREADCRUMB
   ============================================================ */
.vmx-reg-breadcrumb {
  background: var(--gruen-bg); padding: 10px 0;
  font-size: .85rem; color: var(--text-hell);
}
.vmx-reg-breadcrumb a { color: var(--text-hell); }
.vmx-reg-breadcrumb a:hover { color: var(--gruen-dunkel); }
.vmx-reg-breadcrumb span { margin: 0 6px; }

/* ============================================================
   7. HERO
   ============================================================ */
.vmx-reg-hero {
  background: linear-gradient(135deg, var(--gruen-dunkel) 0%, var(--gruen-mittel) 60%, #52b788 100%);
  color: #fff; padding: 72px 0 80px;
  position: relative; overflow: hidden;
}
.vmx-reg-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.vmx-reg-hero-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center; position: relative;
}
.vmx-reg-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
}
.vmx-reg-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff !important; margin-bottom: 16px; font-family: var(--font-display);
}
.vmx-reg-hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.88) !important;
  margin-bottom: 28px; line-height: 1.6; max-width: 620px;
}
.vmx-reg-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.vmx-reg-hero-trust   { display: flex; gap: 20px; flex-wrap: wrap; }
.vmx-reg-hero-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; color: rgba(255,255,255,.85);
}

/* Kontakt-Karte rechts im Hero */
.vmx-reg-hero-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-lg);
  color: var(--text-dunkel); min-width: 260px; text-align: center;
}
.vmx-reg-hero-card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.vmx-reg-hero-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--gruen-dunkel); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gruen-hell);
}
.vmx-reg-hero-card-actions { display: flex; flex-direction: column; gap: 10px; }
.vmx-reg-hero-card-actions .vmx-reg-btn { justify-content: center; }
.vmx-reg-hero-phone {
  font-size: 1.15rem; font-weight: 700; color: var(--gruen-dunkel);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.vmx-reg-hero-phone:hover { color: var(--gruen-mittel); }

@media (max-width: 860px) {
  .vmx-reg-hero-inner { grid-template-columns: 1fr; }
  .vmx-reg-hero-card  { max-width: 320px; }
}

/* ============================================================
   8. TRUST BAR
   ============================================================ */
.vmx-reg-trustbar { background: var(--gruen-dunkel); padding: 18px 0; }
.vmx-reg-trustbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 36px; flex-wrap: wrap;
}
.vmx-reg-trustbar-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600;
  color: rgba(255,255,255,.9); white-space: nowrap;
}
.vmx-reg-trustbar-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--beige); }

@media (max-width: 600px) {
  .vmx-reg-trustbar-inner { gap: 16px; }
  .vmx-reg-trustbar-item  { font-size: .8rem; }
  .vmx-reg-trustbar-dot   { display: none; }
}

/* ============================================================
   9. KENNZAHLEN / STATS
   ============================================================ */
.vmx-reg-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.vmx-reg-stat-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--gruen-hell);
  transition: var(--transition);
}
.vmx-reg-stat-card:hover { box-shadow: var(--shadow-md); border-bottom-color: var(--gruen-dunkel); }
.vmx-reg-stat-number {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--gruen-dunkel); line-height: 1; margin-bottom: 6px;
}
.vmx-reg-stat-label { font-size: .88rem; color: var(--text-hell); line-height: 1.3; }

@media (max-width: 760px) { .vmx-reg-stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .vmx-reg-stats-grid { grid-template-columns: 1fr; } }

/* ============================================================
   10. PRODUKT-RASTER
   ============================================================ */
.vmx-reg-produkte-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.vmx-reg-produkt-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gruen-hell);
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 8px;
}
.vmx-reg-produkt-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
  border-left-color: var(--gruen-dunkel);
}
.vmx-reg-produkt-top { display: flex; align-items: center; gap: 10px; }
.vmx-reg-produkt-icon { font-size: 1.6rem; flex-shrink: 0; }
.vmx-reg-produkt-card h3 { font-size: .97rem; color: var(--gruen-dunkel); }
.vmx-reg-produkt-card p  { font-size: .86rem; color: var(--text-hell); margin: 0; flex: 1; }
.vmx-reg-produkt-tag {
  display: inline-block;
  font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 10px; border-radius: 50px; align-self: flex-start;
}
.vmx-reg-tag-beratung  { background: var(--beige-hell); color: var(--cta-dunkel); }
.vmx-reg-tag-direkt    { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.vmx-reg-produkt-link  {
  font-size: .85rem; font-weight: 700; color: var(--gruen-dunkel);
  display: flex; align-items: center; gap: 4px; margin-top: 4px;
}
.vmx-reg-produkt-link:hover { color: var(--gruen-mittel); }

@media (max-width: 860px) { .vmx-reg-produkte-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .vmx-reg-produkte-grid { grid-template-columns: 1fr; } }

/* ============================================================
   11. USPs / WARUM VMX
   ============================================================ */
.vmx-reg-usp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.vmx-reg-usp-list { display: flex; flex-direction: column; gap: 20px; }
.vmx-reg-usp-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.vmx-reg-usp-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gruen-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.vmx-reg-usp-text h3  { font-size: 1rem; color: var(--gruen-dunkel); margin-bottom: 4px; }
.vmx-reg-usp-text p   { font-size: .88rem; margin: 0; }

.vmx-reg-makler-card {
  background: var(--gruen-dunkel); border-radius: var(--radius-lg);
  padding: 40px 36px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.vmx-reg-makler-card::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.vmx-reg-makler-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin: 0 auto 20px;
}
.vmx-reg-makler-card h3 { color: #fff; margin-bottom: 12px; font-size: 1.1rem; }
.vmx-reg-makler-card p  { color: rgba(255,255,255,.85); font-size: .92rem; margin-bottom: 20px; }
.vmx-reg-makler-badges  { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.vmx-reg-makler-badge {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
}

@media (max-width: 760px) {
  .vmx-reg-usp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   12. ORTE / REGIONEN GRID
   ============================================================ */
.vmx-reg-orte-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.vmx-reg-ort-item {
  background: #fff; border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--text-mittel);
  border-left: 3px solid var(--gruen-hell);
  transition: var(--transition);
}
.vmx-reg-ort-item:hover { border-left-color: var(--gruen-dunkel); color: var(--gruen-dunkel); box-shadow: var(--shadow-md); }
.vmx-reg-ort-icon { font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   13. KONTAKT-SEKTION
   ============================================================ */
.vmx-reg-kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.vmx-reg-kontakt-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px 32px; box-shadow: var(--shadow-md);
  text-align: center;
}
.vmx-reg-kontakt-icon { font-size: 2.5rem; margin-bottom: 14px; }
.vmx-reg-kontakt-card h3 { color: var(--gruen-dunkel); margin-bottom: 8px; font-size: 1.05rem; }
.vmx-reg-kontakt-card p  { font-size: .9rem; margin-bottom: 20px; }
.vmx-reg-kontakt-number  { font-size: 1.4rem; font-weight: 700; color: var(--gruen-dunkel); display: block; margin-bottom: 16px; }

@media (max-width: 680px) { .vmx-reg-kontakt-grid { grid-template-columns: 1fr; } }

/* ============================================================
   14. FAQ
   ============================================================ */
.vmx-reg-faq-list { max-width: 800px; margin: 0 auto; }
.vmx-reg-faq-item { border-bottom: 1px solid var(--gruen-hell); }
.vmx-reg-faq-item:last-child { border-bottom: none; }
.vmx-reg-faq-question {
  width: 100%; background: none; border: none; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--text-dunkel); transition: color .2s;
}
.vmx-reg-faq-question:hover { color: var(--gruen-dunkel); }
.vmx-reg-faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gruen-hell);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .85rem; font-weight: 700;
  color: var(--gruen-dunkel); transition: var(--transition);
}
.vmx-reg-faq-item.open .vmx-reg-faq-icon {
  background: var(--gruen-dunkel); color: #fff; transform: rotate(45deg);
}
.vmx-reg-faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
/* hidden-Attribut im HTML würde display:none setzen und die max-height-Transition
   blockieren — CSS überschreibt das, damit die Transition immer greift.     */
.vmx-reg-faq-answer[hidden] { display: block; }
.vmx-reg-faq-item.open .vmx-reg-faq-answer { max-height: 500px; padding-bottom: 20px; }
.vmx-reg-faq-answer p { color: var(--text-mittel); font-size: .97rem; line-height: 1.7; margin: 0; }

/* ============================================================
   15. FINAL CTA
   ============================================================ */
.vmx-reg-final-cta {
  text-align: center; padding: 80px 0;
  background: linear-gradient(135deg, var(--gruen-dunkel) 0%, var(--gruen-mittel) 100%);
}
.vmx-reg-final-cta h2 { color: #fff; margin-bottom: 12px; }
.vmx-reg-final-cta p  {
  color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.vmx-reg-final-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   16. FOOTER
   ============================================================ */
.vmx-reg-footer { background: var(--text-dunkel); color: rgba(255,255,255,.7); padding: 48px 0 24px; }
.vmx-reg-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
.vmx-reg-footer-brand .brand-name {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.vmx-reg-footer-brand p { font-size: .85rem; line-height: 1.6; }
.vmx-reg-footer h4 {
  color: #fff; font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}
.vmx-reg-footer ul  { display: flex; flex-direction: column; gap: 7px; }
.vmx-reg-footer ul li a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color .2s; }
.vmx-reg-footer ul li a:hover { color: var(--cta-gelb); }
.vmx-reg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .8rem;
}
.vmx-reg-footer-legal { display: flex; gap: 20px; }
.vmx-reg-footer-legal a { color: rgba(255,255,255,.5) !important; }
.vmx-reg-footer-legal a:hover { color: var(--cta-gelb) !important; }

@media (max-width: 860px) { .vmx-reg-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .vmx-reg-footer-grid   { grid-template-columns: 1fr; }
  .vmx-reg-footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   17. FLOATING ELEMENTS
   ============================================================ */
.vmx-reg-whatsapp {
  position: fixed; bottom: 88px; right: 20px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  display: flex; align-items: center; justify-content: center;
  animation: vmxRegPulse 2.5s infinite; transition: transform .2s;
}
.vmx-reg-whatsapp:hover { transform: scale(1.1); }
.vmx-reg-whatsapp svg  { width: 28px; height: 28px; fill: #fff; }

@keyframes vmxRegPulse {
  0%   { box-shadow: 0 4px 16px rgba(37,211,102,.4); }
  50%  { box-shadow: 0 4px 28px rgba(37,211,102,.7); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,.4); }
}

.vmx-reg-sticky-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 850;
  background: #fff; border-top: 2px solid var(--gruen-hell);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1); gap: 10px;
}
@media (max-width: 680px) {
  .vmx-reg-sticky-mobile { display: flex; }
  .vmx-reg-sticky-mobile a {
    flex: 1; justify-content: center; text-align: center;
    font-size: .9rem; padding: 12px 10px;
  }
  .vmx-reg-whatsapp { bottom: 80px; }
}

/* ============================================================
   18. REGIONSFARBE-VARIANTE (Oberhavel — optional blaustich)
   ============================================================ */
body.vmx-region-oberhavel .vmx-reg-hero {
  background: linear-gradient(135deg, #1e4d6b 0%, #2d6a8f 55%, #3a8fb5 100%);
}
body.vmx-region-oberhavel .vmx-reg-trustbar,
body.vmx-region-oberhavel .vmx-reg-section-dark,
body.vmx-region-oberhavel .vmx-reg-final-cta {
  /* Gleiche Grüntöne beibehalten für Konsistenz */
}
