/*
Theme Name:   Francesco Abate
Theme URI:    https://francesco-abate.de
Description:  Divi Child Theme – Europapolitiker aus Memmingen (v3)
Author:       Web Developer
Template:     Divi
Version:      2.0.0
Tags:         politics, spd, europa, divi-child
Text Domain:  francesco-abate
*/

/* ═══════════════════════════════════════════
   GOOGLE FONTS
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:        #e3000f;
  --red-dark:   #b0000b;
  --navy:       #0d1b3e;
  --navy-light: #1e3168;
  --white:      #ffffff;
  --grey:       #f5f7fa;
  --mid:        #666;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
  --max:        1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #333;
  /* NO overflow-x:clip — causes stacking context issues with dropdowns */
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible; /* MUST be visible — hidden clips mobile dropdown */
  padding-top: 70px;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: right top;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to right,
    rgba(10,20,50,.92) 0%,
    rgba(10,20,50,.82) 35%,
    rgba(10,20,50,.45) 58%,
    rgba(10,20,50,.08) 78%,
    transparent 100%);
}
.hero-body {
  position: relative; z-index: 0;
  padding: 90px 0 80px 0;
  margin-left: max(40px, calc((100vw - var(--max)) / 2 + 40px));
  max-width: 620px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px;
  margin-bottom: 28px; border: 1px solid rgba(255,215,0,.3);
}
.hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: 72px; line-height: 1.0;
  color: #fff; letter-spacing: -2px; margin-bottom: 22px;
}
.hero-title .red { color: var(--red); }
.hero-desc {
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,.66);
  line-height: 1.75; max-width: 500px; margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  background: var(--red); color: #fff; padding: 15px 36px;
  border-radius: 4px; font-family: var(--font-head); font-weight: 700;
  font-size: 13px; text-decoration: none; letter-spacing: .5px;
  text-transform: uppercase; transition: all .2s;
  box-shadow: 0 4px 22px rgba(227,0,15,.45); display: inline-block;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.42); color: #fff; padding: 14px 34px;
  border-radius: 4px; font-family: var(--font-head); font-weight: 600;
  font-size: 13px; text-decoration: none; letter-spacing: .5px;
  text-transform: uppercase; transition: all .2s; display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-stats {
  display: flex; gap: 28px; align-items: center;
  background: rgba(0,0,0,.28); padding: 18px 26px;
  border-radius: 8px; width: fit-content;
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08);
}
.stat-num { font-family: var(--font-head); font-size: 30px; font-weight: 900; color: #fff; line-height: 1; }
.stat-num span { color: var(--red); }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,.42); margin-top: 3px; }
.stat-div { width: 1px; height: 36px; background: rgba(255,255,255,.14); }

/* ── TICKER ── */
.ticker { background: var(--red); padding: 0; overflow: hidden; display: flex; align-items: center; height: 44px; }
.tick-lbl {
  background: var(--red-dark); height: 44px; display: flex; align-items: center;
  padding: 0 22px; font-family: var(--font-head); font-size: 11px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; white-space: nowrap; flex-shrink: 0; margin-right: 20px;
}
.tick-track {
  display: flex; gap: 60px;
  animation: ticker 35s linear infinite;
  white-space: nowrap; color: #fff; font-size: 13px;
}
.tick-track span::before { content: '● '; font-size: 8px; opacity: .65; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── SECTIONS COMMON ── */
.kicker {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--red); display: block; }
.section-h2 {
  font-family: var(--font-head); font-size: 38px; font-weight: 900;
  color: var(--navy); line-height: 1.1; letter-spacing: -.8px; margin-bottom: 24px;
}
.section-h2 .red { color: var(--red); }
.inner { max-width: var(--max); margin: 0 auto; padding: 0 60px; }
.body-text p { font-size: 15px; line-height: 1.85; color: #555; margin-bottom: 16px; }

/* ── ABOUT ── */
.about { background: #fff; padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: start; }
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; height: 480px; object-fit: cover;
  object-position: top center; border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12); display: block;
}
.about-accent {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--red); color: #fff;
  padding: 22px 26px; border-radius: 6px;
  box-shadow: 0 8px 30px rgba(227,0,15,.4);
}
.about-accent-num { font-family: var(--font-head); font-size: 38px; font-weight: 900; line-height: 1; }
.about-accent-lbl { font-size: 12px; font-weight: 600; margin-top: 4px; opacity: .85; }
.about-content { padding-top: 20px; }
.btn-solid {
  display: inline-block; background: var(--red); color: #fff;
  padding: 14px 30px; border-radius: 4px; font-family: var(--font-head);
  font-weight: 700; font-size: 13px; text-decoration: none;
  letter-spacing: .5px; text-transform: uppercase;
  transition: background .2s; margin-top: 12px;
}
.btn-solid:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-light); }

/* ── NEWS ── */
.news { background: var(--grey); padding: 100px 0; }
.news-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.see-all {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  color: var(--red); text-decoration: none; letter-spacing: .5px; text-transform: uppercase;
}
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.news-grid-2 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(0,0,0,.12); }
.card-img {
  height: 200px; background: var(--navy);
  overflow: hidden; position: relative; display: flex;
  align-items: center; justify-content: center;
}
.card.sm .card-img { height: 150px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px;
}
.card-body { padding: 22px; }
.card.sm .card-body { padding: 16px; }
.card-date { font-size: 11px; color: var(--mid); margin-bottom: 7px; font-family: var(--font-head); }
.card-title {
  font-family: var(--font-head); font-size: 17px; font-weight: 800;
  color: var(--navy); line-height: 1.3; margin-bottom: 10px;
}
.card.sm .card-title { font-size: 14px; }
.card-excerpt { font-size: 13px; color: var(--mid); line-height: 1.65; }
.card.sm .card-excerpt { display: none; }
.card-more {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 14px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  color: var(--red); text-transform: uppercase; letter-spacing: .5px;
}
.card-more::after { content: '→'; }

/* ── STATS ── */
.stats { background: var(--navy); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { text-align: center; padding: 0 20px; position: relative; }
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 10%; bottom: 10%;
  width: 1px; background: rgba(255,255,255,.1);
}
.stat-big { font-family: var(--font-head); font-size: 52px; font-weight: 900; color: #fff; line-height: 1; }
.stat-big span { color: var(--red); }
.stat-lbl2 { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 8px; letter-spacing: .3px; }

/* ── MEMBERSHIPS ── */
.members { background: #fff; padding: 100px 0; }
.mem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.mem-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border: 1.5px solid #e8ecf4; border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.mem-card:hover { border-color: var(--red); box-shadow: 0 4px 18px rgba(227,0,15,.08); }
.mem-icon {
  width: 42px; height: 42px; background: var(--red); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-head); font-size: 12px; font-weight: 900; color: #fff;
}
.mem-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.mem-role { font-size: 12px; color: var(--mid); line-height: 1.4; }

/* ── CONTACT ── */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 100px 0; position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  border: 70px solid rgba(255,255,255,.03);
}
.contact-grid { display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: center; }
.contact-h2 {
  font-family: var(--font-head); font-size: 46px; font-weight: 900;
  color: #fff; line-height: 1.1; letter-spacing: -1px; margin-bottom: 14px;
}
.contact-h2 span { color: var(--red); }
.contact-desc { font-size: 15px; color: rgba(255,255,255,.58); line-height: 1.7; margin-bottom: 28px; }
.contact-kicker { color: rgba(255,255,255,.5); }
.cinfo { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.cicon {
  width: 40px; height: 40px; background: rgba(255,255,255,.1);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.clbl {
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 2px;
}
.cval { font-size: 14px; font-weight: 500; color: #fff; line-height: 1.4; }

/* ── FOOTER ── */
footer { background: transparent !important;
  padding: 0 !important;
  margin: 0 !important; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 44px; }
.footer-name { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.75; margin-bottom: 22px; }
.social-row { display: flex; gap: 8px; }
.soc {
  width: 34px; height: 34px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; text-decoration: none; font-size: 14px;
}
.soc:hover { background: var(--red); border-color: var(--red); }
.fcol-title {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.flinks { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.flinks a { color: rgba(255,255,255,.38); text-decoration: none; font-size: 13px; transition: color .15s; }
.flinks a:hover { color: var(--red); }
.footer-bottom {
  max-width: var(--max); margin: 44px auto 0; padding: 18px 60px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.28);
}
.spd-strip {
  background: var(--red); text-align: center; padding: 12px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; color: #fff; text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero-title { font-size: 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .mem-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 36px; }
  .inner { padding: 0 20px; }
  .hero-body { margin-left: 20px; padding: 80px 20px 60px 0; }
}

/* ═══════════════════════════════════════════
   DIVI GLOBAL OVERRIDES
═══════════════════════════════════════════ */

/* Font stack */
body, .et_pb_text, .et_pb_blurb_description,
.et_pb_post_content, .et_pb_contact_form {
  font-family: var(--font-body) !important;
}
h1,h2,h3,h4,h5,h6,
.et_pb_text h1,.et_pb_text h2,
.et_pb_text h3,.et_pb_text h4,
.et_pb_module_header {
  font-family: var(--font-head) !important;
}

/* Row max-width */
.et_pb_row { max-width: var(--max) !important; }

/* ── Divi Blog module ── */
#fa-news .et_pb_blog_grid .et_pb_post {
  background: #fff !important; border-radius: 6px !important;
  overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06) !important;
  transition: transform .25s, box-shadow .25s !important; border: none !important;
}
#fa-news .et_pb_blog_grid .et_pb_post:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 36px rgba(0,0,0,.12) !important;
}
#fa-news .et_pb_blog_grid .et_pb_post h2 a {
  font-family: var(--font-head) !important; font-size: 16px !important;
  font-weight: 800 !important; color: var(--navy) !important; transition: color .15s !important;
}
#fa-news .et_pb_blog_grid .et_pb_post h2 a:hover { color: var(--red) !important; }
#fa-news .et_pb_blog_grid .et_pb_post .post-meta {
  font-size: 11px !important; color: var(--mid) !important; font-family: var(--font-head) !important;
}
#fa-news .et_pb_more_button, #fa-news a.more-link {
  font-family: var(--font-head) !important; font-size: 11px !important;
  font-weight: 700 !important; color: var(--red) !important;
  text-transform: uppercase !important; letter-spacing: .5px !important;
  background: none !important; border: none !important; padding: 0 !important;
}

/* ── Divi buttons ── */
.et_pb_button, a.et_pb_button {
  font-family: var(--font-head) !important; font-weight: 700 !important;
  letter-spacing: .5px !important; text-transform: uppercase !important;
  border-radius: 4px !important; transition: all .2s !important;
}
.fa-btn-red .et_pb_button, .fa-btn-red a.et_pb_button {
  background: var(--red) !important; color: #fff !important;
  border: none !important; padding: 14px 30px !important;
  box-shadow: 0 4px 18px rgba(227,0,15,.4) !important;
}
.fa-btn-red .et_pb_button:hover { background: var(--red-dark) !important; }
.fa-btn-navy .et_pb_button, .fa-btn-navy a.et_pb_button {
  background: var(--navy) !important; color: #fff !important;
  border: none !important; padding: 14px 30px !important;
}
.fa-btn-navy .et_pb_button:hover { background: var(--navy-light) !important; }

/* ── Contact form ── */
.et_pb_contact_form_container input,
.et_pb_contact_form_container textarea {
  border-radius: 4px !important; border: 1.5px solid #e0e4ee !important;
  font-family: var(--font-body) !important;
}
.et_pb_contact_form_container input:focus,
.et_pb_contact_form_container textarea:focus {
  border-color: var(--red) !important; outline: none !important;
}
.et_pb_contact_submit {
  background: var(--red) !important; color: #fff !important;
  font-family: var(--font-head) !important; font-weight: 700 !important;
  border-radius: 4px !important; border: none !important;
  padding: 14px 30px !important; text-transform: uppercase !important;
  letter-spacing: .5px !important; transition: background .2s !important;
}
.et_pb_contact_submit:hover { background: var(--red-dark) !important; }

/* ── Termine CPT cards ── */
.fa-termine-list { display: flex; flex-direction: column; gap: 0; }
.fa-termin-card {
  background: #fff; border: 1px solid #e8ecf4;
  border-left: 4px solid var(--red); border-radius: 0 6px 6px 0;
  padding: 18px 22px; margin-bottom: 14px; transition: box-shadow .2s;
}
.fa-termin-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.fa-termin-date {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 5px;
}
.fa-termin-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--navy); margin-bottom: 5px;
}
.fa-termin-location { font-size: 13px; color: var(--mid); }
.fa-termin-empty { font-size: 13px; color: var(--mid); font-style: italic; padding: 20px 0; }

/* Sidebar termine — clean list style */
.et_pb_text .fa-termin-card {
  border: none; border-bottom: 1px solid #f0f0f0;
  border-radius: 0; padding: 14px 0 14px 12px;
  margin-bottom: 0; box-shadow: none;
}
.et_pb_text .fa-termin-card:last-child { border-bottom: none; }
.et_pb_text .fa-termin-card:hover { border-color: transparent; box-shadow: none; }

/* ── Single post ── */
.single h1.entry-title,
.single .et_pb_post_title_title {
  font-family: var(--font-head) !important; font-size: 42px !important;
  font-weight: 900 !important; color: #fff !important;
  line-height: 1.1 !important; letter-spacing: -.8px !important;
}
.single .et_pb_post_content p, .single .entry-content p {
  font-size: 16px !important; line-height: 1.85 !important;
  color: #444 !important; font-family: var(--font-body) !important;
  margin-bottom: 20px !important;
}

/* ── Divi Footer ── */
#main-footer, #footer-widgets { background: transparent !important; }
#footer-widgets { display: none !important; }
#footer-widgets .et_pb_widget h4 {
  font-family: var(--font-head) !important; font-size: 11px !important;
  font-weight: 700 !important; letter-spacing: 1.5px !important;
  text-transform: uppercase !important; color: #fff !important; margin-bottom: 16px !important;
}
#footer-widgets .footer-widget a,
#footer-widgets .et_pb_widget a {
  color: rgba(255,255,255,.38) !important; text-decoration: none !important;
  font-size: 13px !important; transition: color .15s !important;
}
#footer-widgets .footer-widget a:hover,
#footer-widgets .et_pb_widget a:hover { color: var(--red) !important; }
#et-footer-nav {
  display: none !important;
}

@media (max-width: 768px) {
  .hero-img {
    object-position: 75% top;
  }
  .hero-body {
    margin-left: 20px;
    max-width: 100%;
    background: rgba(10,20,50,0.7);
    padding: 40px 20px;
    border-radius: 8px;
  }
}