/*
 Theme Name:   InsideImmo Child
 Theme URI:    https://insideimmo.com
 Description:  InsideImmo Child Theme für GeneratePress
 Author:       InsideImmo.com
 Template:     generatepress
 Version:      4.0.0
 Text Domain:  insideimmo-child
*/

/* ============================================
   BRAND VARIABLEN
   ============================================ */
:root {
  --gold:       #fcbf00;
  --dark:       #282828;
  --white:      #ffffff;
  --grey-light: #f4f4f2;
  --grey-mid:   #e0ddd6;
  --contrast:   #282828;
  --accent:     #fcbf00;
}

/* ============================================
   TYPOGRAFIE
   ============================================ */
body {
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 400;
  color: var(--dark);
}
h1, h2, h3, h4 {
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 800;
  color: var(--dark);
}

/* ============================================
   GLOBAL HEADER
   ============================================ */
.site-header {
  background-color: var(--dark) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inside-header {
  padding: 14px 40px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .site-branding { padding: 0; }
.site-header .site-title {
  margin: 0 !important;
  line-height: 1 !important;
}
.site-header .site-title a {
  color: var(--white) !important;
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header .site-title a span { color: var(--gold); }
.site-header .site-description {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.5px;
  margin: 0 !important;
}

/* Navigation */
.main-navigation { background: transparent !important; }
.main-navigation,
.main-navigation ul,
.main-navigation ul li,
.main-navigation ul li a {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
}
.main-navigation a {
  color: var(--white) !important;
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 0 16px !important;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--gold) !important;
  background: transparent !important;
}

/* CTA Button in Nav */
.nav-cta a {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  transition: opacity 0.2s !important;
  box-shadow: 0 4px 16px rgba(252,191,0,0.3) !important;
  line-height: 1.2 !important;
}
.nav-cta a:hover {
  opacity: 0.85 !important;
  color: var(--dark) !important;
}
.menu-toggle {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.2) !important;
  background: transparent !important;
}

/* ============================================
   GLOBAL FOOTER
   ============================================ */
.site-footer,
#colophon,
.site-info,
footer.site-info,
.footer-bar,
#colophon .footer-bar {
  background-color: #1a1a1a !important;
  border-top: none !important;
}
.footer-bar {
  padding: 28px 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.footer-bar .copyright,
.site-footer,
.site-footer a,
.site-footer p,
#colophon *,
.site-info * {
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.8rem !important;
  font-family: 'Wix Madefor Display', sans-serif !important;
}
.site-footer a:hover,
#colophon a:hover,
.site-info a:hover {
  color: var(--gold) !important;
  text-decoration: none !important;
}

/* ============================================
   LINKS & BUTTONS
   ============================================ */
a { color: var(--gold); }
a:hover { color: var(--dark); }

.wp-block-button__link,
.button,
button[type="submit"] {
  background-color: var(--gold);
  color: var(--dark);
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(252,191,0,0.3);
}
.wp-block-button__link:hover,
.button:hover {
  background-color: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(252,191,0,0.4);
}

/* ============================================
   LANDING PAGE TEMPLATE
   ============================================ */
.page-template-landing .site-header,
.page-template-landing .site-footer,
.page-template-landing .footer-bar { display: none !important; }
.page-template-landing .content-area,
.page-template-landing .site-main { padding: 0 !important; margin: 0 !important; }

/* ============================================
   CONTENT
   ============================================ */
.entry-content {
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #444;
}

/* ============================================
   GLOBALES ZENTRIEREN
   ============================================ */
.hero,
.hero h1,
.hero-sub,
.hero-badge,
.section-label,
.section-title,
.section-intro,
.erklaerung-text,
.steuer-card,
.trust-card,
.step,
.cta-final {
  text-align: center !important;
}
.hero-actions { justify-content: center !important; }
.hero-trust { justify-content: center !important; }
.trust-item {
  text-align: center !important;
  align-items: center !important;
}
.hero h1 { margin-left: auto !important; margin-right: auto !important; }
.hero-sub { margin-left: auto !important; margin-right: auto !important; }
.section-intro { margin-left: auto !important; margin-right: auto !important; }

/* Rabatt Banner */
.rabatt-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}
.rabatt-banner p, .rabatt-banner a { margin: 0 !important; }

/* FAQ 2-Spalten */
.faq-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 48px !important;
  max-width: 100% !important;
}
.faq-item { border-bottom: 1px solid var(--grey-mid) !important; }
.faq-a { text-align: left !important; }
@media (max-width: 768px) {
  .faq-list { grid-template-columns: 1fr !important; }
}

/* ============================================
   PARTNER WIDGET
   ============================================ */
.partner-widget { width: 100%; }

.widget-wrapper {
  margin-top: 24px !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.widget-section section,
.partner-widget section {
  padding: 8px 0 !important;
  margin-bottom: 0 !important;
}
.partner-widget > div {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.partner-widget [class*="lg\:px-\[100px\]"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.partner-widget [class*="mb-\[30px\]"],
.partner-widget [class*="lg\:mb-\[50px\]"],
.partner-widget [class*="lg\:py-\[50px\]"],
.partner-widget [class*="py-10"] {
  margin-bottom: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.partner-widget [class*="bg-grey-300"][class*="h-2"] {
  height: 10px !important;
  min-height: 10px !important;
}
.partner-widget [class*="bg-primary-700"] {
  background-color: #fcbf00 !important;
  height: 100% !important;
  min-height: 10px !important;
  display: block !important;
}
.partner-widget h1,
.partner-widget h2:first-of-type { display: none !important; }
.partner-widget button > svg,
.partner-widget button > span > svg { display: none !important; }
.partner-widget label svg,
.partner-widget div svg { display: block !important; }
.widget-rabatt {
  text-align: center !important;
  display: block !important;
  margin: 16px auto 0 !important;
}
.widget-section .section-label,
.widget-section .section-title,
.widget-section .section-intro { text-align: center !important; }


/* NUR Standard-Seiten (nicht Landing Page) */
.page-template-default .inside-article,
.page-template-default #primary {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Hintergrund nur für Standard-Seiten */
.page-template-default .site-content,
.page-template-default #content {
  background-color: var(--white) !important;
}

/* Nav CTA Button – höhere Spezifizität */
.main-navigation ul li.nav-cta > a,
.main-navigation ul li.nav-cta a {
  background-color: #fcbf00 !important;
  color: #282828 !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(252,191,0,0.3) !important;
}
.main-navigation ul li.nav-cta > a:hover,
.main-navigation ul li.nav-cta a:hover {
  opacity: 0.85 !important;
  background-color: #fcbf00 !important;
  color: #282828 !important;
}

/* Vorher: */
a:hover { color: var(--dark); }

/* Ersetzen durch: */
a:hover { color: #a07a00 !important; }

/* Und diese Variable überschreiben: */
:root {
  --accent-hover: #a07a00;
}

.main-navigation a:hover {
  color: #a07a00 !important;
}