/*
Theme Name:  BeraterMatch
Theme URI:   https://www.beratermatch.com
Description: Das offizielle Theme für BeraterMatch.com — Finanzberater-Matching Plattform der YoungBrandAwards. Basiert auf dem YBA Corporate Design.
Author:      YoungBrandAwards
Author URI:  https://www.youngbrandawards.de
Version:     1.0.0
License:     Proprietary
Text Domain: beratermatch
Tags:        custom, finance, matching
*/

/* ============================================================
   DESIGN TOKENS — YBA Brand CI
   ============================================================ */
:root {
  --orange:        #E84A0E;
  --orange-light:  #FF6B35;
  --orange-pale:   rgba(232,74,14,0.07);
  --orange-border: rgba(232,74,14,0.22);
  --ink:           #0E0E0E;
  --ink-2:         #1C1C1C;
  --ink-3:         #2E2E2E;
  --mid:           #555;
  --gray:          #888;
  --light-gray:    #CCC;
  --border:        #E0DDD8;
  --bg:            #F5F4F0;
  --bg-2:          #EEECE6;
  --white:         #FFF;
  --green:         #1A9B5C;
  --red:           #D42B2B;

  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;

  --nav-h:         72px;
  --max-w:         1100px;
  --max-w-sm:      780px;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow:        0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 56px rgba(0,0,0,0.14);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

p { font-size: 15px; line-height: 1.72; color: var(--mid); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; }
li { font-size: 15px; line-height: 1.7; color: var(--mid); margin-bottom: 6px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo .dot { color: var(--orange); }
.site-logo:hover { text-decoration: none; }

#primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0; padding: 0;
}
#primary-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
#primary-menu a:hover,
#primary-menu .current-menu-item > a {
  color: var(--orange);
  background: var(--orange-pale);
}
.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: 4px;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--orange-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
#page { padding-top: var(--nav-h); }
.site-main { min-height: 60vh; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.bm-hero {
  background: var(--white);
  padding: 72px 40px 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.bm-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: var(--bg);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.bm-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.bm-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.bm-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.35;transform:scale(.7)}
}
.bm-hero h1 {
  font-size: clamp(44px,5.5vw,74px);
  margin-bottom: 20px;
  color: var(--ink);
}
.bm-hero h1 .accent { color: var(--orange); }
.bm-hero-sub {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.72;
  max-width: 460px;
  margin-bottom: 36px;
}
.bm-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.bm-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}
.bm-stat-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
}
.bm-stat-val .a { color: var(--orange); }
.bm-stat-lbl { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* Hero mockup */
.bm-hero-right { display: flex; justify-content: center; }
.bm-mockup {
  background: var(--white);
  border: 2px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 300px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.bm-mockup-badge {
  display: inline-block;
  background: rgba(26,155,92,0.1);
  color: var(--green);
  border: 1px solid rgba(26,155,92,0.25);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.bm-mockup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bm-mockup-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--orange),var(--orange-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: 15px; color: var(--white); flex-shrink: 0;
}
.bm-mockup-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.bm-mockup-role { font-size: 12px; color: var(--gray); }
.bm-mockup-bars { display: flex; flex-direction: column; gap: 8px; }
.bm-bar-row { display: flex; align-items: center; gap: 10px; }
.bm-bar-lbl { font-size: 12px; color: var(--gray); width: 86px; flex-shrink: 0; }
.bm-bar-track { flex: 1; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.bm-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,var(--orange),var(--orange-light)); }
.bm-mockup-btn {
  width: 100%; margin-top: 18px; padding: 12px;
  background: var(--ink); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  border: none; border-radius: var(--radius); cursor: pointer;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.bm-how {
  background: var(--bg);
  padding: 80px 40px;
  border-top: 3px solid var(--orange);
}
.bm-how-inner { max-width: var(--max-w); margin: 0 auto; }
.bm-section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}
.bm-section-title {
  font-size: clamp(30px,4vw,50px);
  margin-bottom: 40px;
  color: var(--ink);
}
.bm-steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.bm-step {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.bm-step::after {
  content: '→';
  position: absolute;
  top: 50%; right: -18px;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
}
.bm-step:last-child::after { display: none; }
.bm-step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  color: var(--bg-2);
  line-height: 1;
  margin-bottom: 14px;
}
.bm-step h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.bm-step p { font-size: 14px; color: var(--mid); line-height: 1.65; margin: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn,
.wp-block-button__link,
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary, .wp-block-button__link {
  background: var(--orange);
  color: var(--white) !important;
  box-shadow: 0 3px 16px rgba(232,74,14,.28);
}
.btn-primary:hover, .wp-block-button__link:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,74,14,.4);
  text-decoration: none;
}
.btn-dark { background: var(--ink); color: var(--white) !important; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-1px); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange) !important; text-decoration: none; }
.btn-lg { font-size: 17px; padding: 17px 44px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   CARDS & GENERIC SECTIONS
   ============================================================ */
.bm-section { padding: 72px 40px; }
.bm-section-inner { max-width: var(--max-w); margin: 0 auto; }
.bm-section-inner-sm { max-width: var(--max-w-sm); margin: 0 auto; }

.bm-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.bm-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ============================================================
   PAGE HERO (Inner Pages)
   ============================================================ */
.page-hero {
  background: var(--ink);
  padding: 56px 40px 48px;
  border-bottom: 3px solid var(--orange);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 { font-size: clamp(32px,4vw,54px); color: var(--white); margin: 10px 0 12px; }
.page-hero h1 .accent { color: var(--orange); }
.page-hero p { font-size: 15px; color: rgba(255,255,255,0.5); max-width: 520px; margin: 0; }

/* ============================================================
   CONTACT FORM (CF7 Override)
   ============================================================ */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 4px;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--orange);
  background: var(--white);
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7-submit {
  background: var(--orange) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 14px 40px !important;
}
.wpcf7-submit:hover { background: var(--orange-light) !important; transform: translateY(-1px); }
.wpcf7 label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 6px;
}
.wpcf7 .form-group { margin-bottom: 20px; }

/* ============================================================
   WORDPRESS ACCOUNT PAGES
   ============================================================ */
.woocommerce-account .woocommerce,
.bm-account-wrap {
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.woocommerce-MyAccount-navigation li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink-3);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
}
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* Match results in user account */
.bm-saved-match {
  background: var(--white);
  border: 2px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.bm-saved-match-av {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; color: var(--white); flex-shrink: 0;
}
.bm-saved-match-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.bm-saved-match-info { font-size: 13px; color: var(--gray); }
.bm-saved-match-score {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--green);
}

/* ============================================================
   BERATER INFOSEITE
   ============================================================ */
.bm-berater-benefits {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin: 40px 0;
}
.bm-benefit {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.bm-benefit-icon { font-size: 36px; margin-bottom: 14px; }
.bm-benefit h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.bm-benefit p { font-size: 13px; color: var(--gray); margin: 0; line-height: 1.65; }

.bm-pricing {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  text-align: center;
  border-top: 4px solid var(--orange);
}
.bm-pricing h2 { color: var(--white); font-size: 36px; margin-bottom: 12px; }
.bm-pricing-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  color: var(--orange);
  line-height: 1;
  margin: 20px 0 4px;
}
.bm-pricing-unit { font-size: 15px; color: rgba(255,255,255,0.4); margin-bottom: 28px; }
.bm-pricing ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: inline-block;
  text-align: left;
}
.bm-pricing li {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bm-pricing li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ============================================================
   BLOG
   ============================================================ */
.bm-posts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.bm-post-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bm-post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bm-post-thumb { width: 100%; height: 180px; object-fit: cover; background: var(--bg-2); }
.bm-post-body { padding: 20px; }
.bm-post-cat {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 8px;
  display: block;
}
.bm-post-title { font-size: 18px; color: var(--ink); margin-bottom: 10px; line-height: 1.2; }
.bm-post-excerpt { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 14px; }
.bm-post-meta { font-size: 12px; color: var(--light-gray); }

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.bm-legal { max-width: 720px; margin: 0 auto; padding: 56px 40px 80px; }
.bm-legal h2 { font-size: 26px; margin: 36px 0 12px; color: var(--ink); }
.bm-legal h3 { font-size: 18px; margin: 24px 0 8px; color: var(--ink-3); }
.bm-legal p { font-size: 15px; color: var(--mid); line-height: 1.75; margin-bottom: 1em; }
.bm-legal ul { margin-bottom: 1em; }
.bm-legal li { font-size: 15px; color: var(--mid); line-height: 1.7; }
.bm-legal a { color: var(--orange); }
.bm-legal .legal-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.bm-legal .legal-box p { font-size: 14px; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.35);
  padding: 48px 40px 24px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-logo-wrap .footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo .dot { color: var(--orange); }
.footer-logo-wrap p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7; margin: 0; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   WIDGET: MATCHING EMBED
   ============================================================ */
.bm-matching-widget {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 32px 0;
}
.bm-matching-widget iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .bm-posts-grid { grid-template-columns: repeat(2,1fr); }
  .bm-berater-benefits { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  #primary-menu { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); padding: 20px; border-bottom: 3px solid var(--orange); box-shadow: var(--shadow-lg); gap: 4px; }
  #primary-menu.open { display: flex; }
  .hamburger { display: flex; }
  .bm-hero { padding: 48px 20px; }
  .bm-hero-inner { grid-template-columns: 1fr; }
  .bm-hero-right { display: none; }
  .bm-hero h1 { font-size: 48px; }
  .bm-how { padding: 56px 20px; }
  .bm-steps { grid-template-columns: 1fr; }
  .bm-step::after { display: none; }
  .bm-section { padding: 48px 20px; }
  .page-hero { padding: 40px 20px 36px; }
  .bm-legal { padding: 40px 20px 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .bm-berater-benefits { grid-template-columns: 1fr; }
  .bm-posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 0 32px; }
  #site-footer { padding: 40px 20px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .bm-pricing { padding: 32px 20px; }
}
