/*
Theme Name: Openmakler.de Real Estate
Theme URI: https://openmakler.de
Author: OpenMakler
Author URI: https://openmakler.de
Description: Generisches Maklerseiten-Theme — seriös-klassisch (navy & gold), responsive, mit Customizer-Stammdaten und optionalem Demo-Importer (Werkzeuge → OpenMakler Demo). Live-Immobilien werden über das OpenMakler-Widget oder das Property-Sync-Pro-Plugin nachgeladen.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: openmakler-real-estate
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0e2e49; transition: color 0.2s; }
a:hover { color: #b89360; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: #0e2e49; line-height: 1.2; margin: 0 0 16px; }

/* ============================================================
   DEMO-BANNER (top, sticky)
   ============================================================ */
.demo-banner {
  background: #b91c1c;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.admin-bar .demo-banner { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .demo-banner { top: 46px; }
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 22px 30px;
  position: sticky;
  top: 0;
  z-index: 9000;
}
.site-header.below-banner { top: 36px; }
.admin-bar .site-header.below-banner { top: 68px; }

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-brand {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #0e2e49;
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 400;
  white-space: nowrap;
}
.site-brand .brand-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b89360;
  margin-top: 2px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.site-nav a {
  text-decoration: none;
  color: #334155;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: #b89360; }

.site-nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.site-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0e2e49;
  margin: 5px 0;
}

@media (max-width: 860px) {
  .site-nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #e2e8f0; padding: 20px 30px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 18px; }
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  padding: 140px 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(14,46,73,0.7), rgba(14,46,73,0.88)),
              url('images/hero-home.webp') center/cover no-repeat;
}
.hero--small {
  min-height: 320px;
  padding: 110px 20px;
  background: linear-gradient(rgba(14,46,73,0.7), rgba(14,46,73,0.88)),
              url('images/hero-skyline-day.webp') center/cover no-repeat;
}
.hero--immobilien { background: linear-gradient(rgba(14,46,73,0.7), rgba(14,46,73,0.88)), url('images/hero-villa-pool.webp') center/cover no-repeat; }
.hero--referenzen { background: linear-gradient(rgba(14,46,73,0.7), rgba(14,46,73,0.88)), url('images/hero-consultation.webp') center/cover no-repeat; }
.hero--ueber-uns  { background: linear-gradient(rgba(14,46,73,0.7), rgba(14,46,73,0.88)), url('images/hero-aerial.webp') center/cover no-repeat; }
.hero--leistungen { background: linear-gradient(rgba(14,46,73,0.7), rgba(14,46,73,0.88)), url('images/hero-skyline-day.webp') center/cover no-repeat; }
.hero--kontakt    { background: linear-gradient(rgba(14,46,73,0.7), rgba(14,46,73,0.88)), url('images/hero-skyline-night.webp') center/cover no-repeat; }
.hero--rechts     { min-height: 220px; padding: 90px 20px; background: linear-gradient(rgba(14,46,73,0.7), rgba(14,46,73,0.88)), url('images/hero-skyline-night.webp') center/cover no-repeat; }

.hero .eyebrow {
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 22px;
}
.hero h1 {
  font-size: 54px;
  line-height: 1.15;
  margin: 0 auto 28px;
  max-width: 920px;
  color: #fff;
}
.hero--small h1 { font-size: 44px; margin-bottom: 18px; }
.hero p.lead {
  font-size: 21px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 44px;
  opacity: 0.95;
}
.hero--small p.lead { font-size: 18px; margin-bottom: 0; }

@media (max-width: 768px) {
  .hero { min-height: 440px; padding: 100px 20px; }
  .hero h1 { font-size: 34px; }
  .hero--small h1 { font-size: 28px; }
  .hero p.lead { font-size: 17px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 17px 44px;
  background: #b89360;
  color: #fff;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid #b89360;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { background: transparent; color: #b89360; }
.btn--dark { background: #0e2e49; border-color: #0e2e49; }
.btn--dark:hover { background: transparent; color: #0e2e49; }
.btn--ghost { background: transparent; color: #b89360; }
.btn--ghost:hover { background: #b89360; color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 90px 20px; }
.section--cream { background: #fbfaf7; }
.section--dark { background: #0e2e49; color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap--narrow { max-width: 820px; margin: 0 auto; }

.section-title {
  font-size: 40px;
  text-align: center;
  margin: 0 0 16px;
}
.section-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 60px;
  line-height: 1.6;
}
.section--dark .section-subtitle { color: rgba(255,255,255,0.85); }
.section-eyebrow {
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b89360;
  text-align: center;
  margin: 0 0 14px;
}

@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  .section-title { font-size: 30px; }
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid { display: grid; gap: 30px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

.card {
  padding: 42px 32px;
  background: #fbfaf7;
  border-top: 3px solid #b89360;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(14,46,73,0.08); }
.card h3 { font-size: 23px; margin: 0 0 16px; font-weight: 500; color: #0e2e49; }
.card p { color: #475569; line-height: 1.7; margin: 0; font-size: 15px; }
.section--dark .card { background: #16416a; }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: rgba(255,255,255,0.9); }

/* Stats */
.stats { text-align: center; }
.stat-num {
  font-family: Georgia, serif;
  font-size: 56px;
  color: #b89360;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label { color: #475569; font-size: 15px; margin: 0; }
.section--dark .stat-label { color: rgba(255,255,255,0.85); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.checklist li {
  padding: 16px 0 16px 38px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 17px;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 18px;
  height: 10px;
  border-left: 2px solid #b89360;
  border-bottom: 2px solid #b89360;
  transform: rotate(-45deg);
}

/* Two-Column-Layout for Leistungen */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}
.two-col h2 { font-size: 34px; margin: 0; }
.two-col p { color: #475569; font-size: 17px; line-height: 1.75; margin: 0 0 20px; }
.two-col ul { color: #475569; line-height: 1.9; font-size: 16px; padding-left: 20px; margin: 0; }
.two-col ul li { margin-bottom: 6px; }
.two-col .eyebrow-gold {
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b89360;
  margin: 0 0 14px;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col h2 { font-size: 26px; }
}

/* Testimonials */
.testimonial {
  background: #fbfaf7;
  padding: 44px 38px;
  border-top: 3px solid #b89360;
}
.testimonial__quote {
  font-family: Georgia, serif;
  font-size: 60px;
  color: #b89360;
  line-height: 0.6;
  margin: 0 0 16px;
}
.testimonial__text {
  color: #334155;
  font-size: 17px;
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 26px;
}
.testimonial__author {
  color: #0e2e49;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0;
}

/* Team */
.team-item { text-align: center; }
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  margin: 0 auto 24px;
  border: 3px solid #b89360;
}
.team-item h3 { font-size: 22px; margin: 0 0 6px; font-weight: 500; }
.team-role {
  color: #b89360;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.team-item p { color: #475569; line-height: 1.7; margin: 0; font-size: 14px; }

/* Contact info */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
}
.contact-info-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
}
.contact-info-block:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-info-block .label {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b89360;
  margin: 0 0 8px;
}
.contact-form-wrap {
  padding: 30px;
  background: #fbfaf7;
  border: 1px solid #e2e8f0;
}

/* Contact Form 7 — an Theme angepasst */
.wpcf7-form p { margin: 0 0 16px; color: #0e2e49; font-size: 14px; font-weight: 500; }
.wpcf7-form label { display: block; margin-bottom: 4px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #334155;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  outline: 0;
  border-color: #b89360;
}
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  display: inline-block;
  padding: 14px 36px;
  background: #0e2e49;
  color: #fff;
  border: 1px solid #0e2e49;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
}
.wpcf7-form input[type="submit"]:hover { background: #b89360; border-color: #b89360; }
.wpcf7-spinner { display: none; }
.wpcf7-response-output {
  margin-top: 20px !important;
  padding: 14px 18px !important;
  border-radius: 2px !important;
  font-size: 14px !important;
}
.wpcf7 .wpcf7-not-valid-tip { color: #b91c1c; font-size: 13px; margin-top: 4px; }
.wpcf7-form .wpcf7-validates-as-required { /* required marker placeholder */ }

/* Demo-Warning auf Rechts-Seiten */
.demo-warn {
  border: 3px solid #b91c1c;
  background: #fef2f2;
  padding: 24px 28px;
  margin: 0 0 50px;
  border-radius: 4px;
}
.demo-warn strong {
  color: #b91c1c;
  font-weight: bold;
  font-size: 17px;
  display: block;
  margin-bottom: 12px;
}

/* Rechts-Seiten Typo */
.rechts-content h2 { font-size: 24px; margin: 40px 0 16px; font-weight: 500; }
.rechts-content p { color: #334155; line-height: 1.75; font-size: 16px; }

/* Link styles */
.link-gold {
  color: #b89360;
  text-decoration: none;
  border-bottom: 1px solid #b89360;
  font-family: Georgia, serif;
  letter-spacing: 1px;
  display: inline-block;
}
.link-gold:hover { color: #0e2e49; border-color: #0e2e49; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a2238;
  color: #cbd5e1;
  padding: 70px 20px 30px;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}
.site-footer h4 {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.site-footer p, .site-footer li { font-size: 14px; line-height: 1.8; margin: 0 0 4px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #b89360; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }

.site-footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.site-footer-bottom .copy { color: #94a3b8; }
.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  /* Identische Schrift + Farbe wie .site-footer-bottom .copy */
  font-size: 13px;
  color: #94a3b8;
}
.footer-legal-list li { margin: 0; font-size: inherit; line-height: inherit; }
.footer-legal-list a { color: #94a3b8; }
.footer-legal-list a:hover { color: #b89360; }

/* Image attribution helper */
.attribution {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  padding: 16px;
  background: #f8fafc;
}
