/*
Theme Name: Zeilen Immobilien Theme
Theme URI: https://www.zeilenimmobilien.com
Author: Zeilen GmbH Immobilien
Author URI: https://www.zeilenimmobilien.com
Description: Individuelles WordPress-Theme fuer Zeilen Immobilien. Zwei-Wege-Positionierung (Bauland & Immobilien im Ausland / Kapitalanlagen Deutschland & Schweiz), eigener Immobilien-Datentyp mit Preis/Flaeche/Standort, Kontaktformular ohne Fremd-Plugin, DSGVO-Cookie-Consent-Banner mit Skript-Gating sowie automatisch angelegten Rechtsseiten (Impressum, Datenschutz, Kontakt).
Version: 1.0.7
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zeilen-immobilien
*/

/* =========================================================
   0. Fonts & Variablen
   ========================================================= */
:root{
  --navy:#1f3a5f;
  --navy-dark:#152944;
  --gold:#b08d57;
  --gold-light:#d8c39a;
  --cream:#f6f3ee;
  --grey:#5c6470;
  --line:#e4e0d8;
  --white:#ffffff;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;
  color:#222;
  background:var(--white);
  line-height:1.6;
  margin:0;
}
h1,h2,h3,h4{
  font-family:'Playfair Display',Georgia,serif;
  color:var(--navy);
  font-weight:700;
  margin:0 0 .5em;
}
p{ margin:0 0 1em; }
a{ text-decoration:none; color:inherit; }
img{ max-width:100%; height:auto; display:block; }
ul{ list-style:none; margin:0; padding:0; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
.screen-reader-text{ position:absolute; left:-9999px; }

/* admin bar offset */
body.admin-bar header.site-header{ top:32px; }
@media (max-width:782px){ body.admin-bar header.site-header{ top:46px; } }

/* =========================================================
   1. Top bar / Header
   ========================================================= */
.topbar{ background:var(--navy-dark); color:#cfd7e3; font-size:13px; }
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; padding:8px 24px; flex-wrap:wrap; gap:6px; }
.topbar a{ color:#cfd7e3; }
.topbar .contact-line span{ margin-right:18px; }

header.site-header{ position:sticky; top:0; background:#fff; z-index:50; border-bottom:1px solid var(--line); }
.navrow{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; }
.site-logo{ font-family:'Playfair Display',serif; font-size:23px; font-weight:700; color:var(--navy); letter-spacing:.5px; display:flex; align-items:center; gap:10px; }
.site-logo img{ max-height:44px; width:auto; }
.site-logo span{ color:var(--gold); }
/* Auf dunklem Footer-Hintergrund ist der navyblaue Logotext unlesbar -> auf Weiss/Gold umstellen */
.site-logo.footer-logo{ color:#fff; }
.site-logo.footer-logo span{ color:var(--gold-light); }

nav.primary-nav ul{ display:flex; gap:28px; flex-wrap:wrap; }
nav.primary-nav a{ font-size:14.5px; font-weight:600; color:var(--navy); }
nav.primary-nav a:hover,
nav.primary-nav .current-menu-item > a{ color:var(--gold); }

.nav-right{ display:flex; align-items:center; gap:18px; }
.menu-toggle{ display:none; background:none; border:none; font-size:22px; color:var(--navy); cursor:pointer; }

.btn{ display:inline-block; padding:11px 22px; border-radius:2px; font-weight:600; font-size:14px; letter-spacing:.3px; transition:.2s; border:none; cursor:pointer; font-family:inherit; }
.btn-gold{ background:var(--gold); color:#fff; }
.btn-gold:hover{ background:#98764a; color: #fff;}
.btn-outline{ border:1.5px solid var(--navy); color:var(--navy); background:transparent; }
.btn-outline:hover{ background:var(--navy); color:#fff; }
.btn-white{ background:#fff; color:var(--navy); }
.btn-sm{ padding:8px 16px; font-size:13px; }

/* =========================================================
   2. Hero + Suchleiste
   ========================================================= */
.hero{
  position:relative; min-height:600px; display:flex; align-items:center; color:#fff;
  background:
    linear-gradient(120deg, rgba(21,41,68,.88) 10%, rgba(31,58,95,.65) 55%, rgba(176,141,87,.35) 100%),
    repeating-linear-gradient(135deg, #2c4a72 0 40px, #26405f 40px 80px);
}
.hero-content{ max-width:640px; padding:90px 24px; }
.hero-eyebrow{ font-size:13px; letter-spacing:2.5px; text-transform:uppercase; color:var(--gold-light); font-weight:600; margin-bottom:18px; }
.hero h1{ font-size:44px; color:#fff; line-height:1.2; margin-bottom:20px; }
.hero p{ font-size:17px; color:#dfe4ec; margin-bottom:34px; max-width:520px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }

.search-bar{ background:rgba(255,255,255,.97); border-radius:4px; padding:18px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; max-width:620px; box-shadow:0 12px 30px rgba(0,0,0,.25); }
.search-bar select,.search-bar input[type=text]{ border:1px solid var(--line); padding:10px 12px; border-radius:3px; font-size:14px; font-family:inherit; color:#333; background:#fff; }
.search-bar .sb-btn{ background:var(--navy); color:#fff; border:none; padding:10px 20px; border-radius:3px; font-weight:600; font-size:14px; cursor:pointer; }

/* =========================================================
   3. Trust-Leiste
   ========================================================= */
.trustbar{ background:var(--cream); border-bottom:1px solid var(--line); }
.trustbar .wrap{ display:flex; justify-content:space-between; padding:22px 24px; flex-wrap:wrap; gap:20px; }
.trust-item{ display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--navy); font-weight:600; }
.trust-item .dot{ width:8px; height:8px; background:var(--gold); border-radius:50%; flex-shrink:0; }

/* =========================================================
   4. Sections generisch
   ========================================================= */
section{ padding:80px 0; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 50px; }
.eyebrow{ font-size:13px; letter-spacing:2px; text-transform:uppercase; color:var(--gold); font-weight:700; margin-bottom:12px; }
.section-head h2{ font-size:34px; margin-bottom:14px; }
.section-head p{ color:var(--grey); font-size:15.5px; }
.center-cta{ text-align:center; margin-top:44px; }

/* Zwei-Wege Karten */
.paths{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.path-card{ position:relative; border-radius:6px; overflow:hidden; min-height:340px; display:flex; align-items:flex-end; padding:34px; color:#fff; }
.path-card::before{ content:""; position:absolute; inset:0; z-index:0; }
.path-card.abroad::before{ background:linear-gradient(0deg, rgba(15,30,20,.88), rgba(15,30,20,.25)), repeating-linear-gradient(60deg,#2f5d3c 0 30px,#264a30 30px 60px); }
.path-card.germany::before{ background:linear-gradient(0deg, rgba(20,32,50,.9), rgba(20,32,50,.25)), repeating-linear-gradient(60deg,#33507a 0 30px,#28405f 30px 60px); }
.path-inner{ position:relative; z-index:1; }
.path-inner .tag{ font-size:12px; letter-spacing:1.5px; text-transform:uppercase; color:var(--gold-light); font-weight:700; margin-bottom:10px; }
.path-inner h3{ color:#fff; font-size:26px; margin-bottom:10px; }
.path-inner p{ color:#e6e9ee; font-size:14.5px; margin-bottom:20px; max-width:380px; }

/* Objekt-Grid (Custom Post Type "immobilie") */
.prop-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.prop-card{ border:1px solid var(--line); border-radius:6px; overflow:hidden; background:#fff; transition:.2s; }
.prop-card:hover{ box-shadow:0 14px 30px rgba(20,30,50,.12); transform:translateY(-3px); }
.prop-img{ height:160px; position:relative; display:flex; align-items:flex-end; justify-content:flex-start; padding:10px; background-size:cover; background-position:center; background-color:#3c6b47; }
.prop-img span.ph{ background:rgba(0,0,0,.4); color:#fff; padding:4px 10px; border-radius:20px; font-size:11px; font-weight:600; letter-spacing:.5px; }
.prop-body{ padding:18px; }
.prop-status{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--gold); background:#fbf3e8; padding:3px 9px; border-radius:3px; margin-bottom:10px; }
.prop-body h4{ font-size:16px; margin-bottom:6px; color:var(--navy); }
.prop-meta{ font-size:13px; color:var(--grey); margin-bottom:12px; }
.prop-price{ font-weight:700; color:var(--navy); font-size:15px; }
.prop-loc{ font-size:12.5px; color:var(--grey); margin-top:4px; }
.prop-cta{ display:block; margin-top:14px; text-align:center; padding:9px 0; border:1.5px solid var(--navy); border-radius:3px; font-size:13px; font-weight:700; color:var(--navy); }
.prop-cta:hover{ background:var(--navy); color:#fff; }
.prop-empty{ display:flex; align-items:center; justify-content:center; text-align:center; grid-column:1/-1; padding:40px; border:1px dashed var(--line); border-radius:6px; color:var(--grey); }

/* Filter-Tabs (Archiv) */
.filter-tabs{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:40px; }
.filter-tabs a{ padding:9px 18px; border:1.5px solid var(--line); border-radius:20px; font-size:13.5px; font-weight:600; color:var(--navy); }
.filter-tabs a.is-active,
.filter-tabs a:hover{ border-color:var(--gold); background:#fbf3e8; }

/* Objekt-Fakten Tabelle (Single) */
.fact-table{ width:100%; border-collapse:collapse; margin:24px 0; }
.fact-table td{ padding:10px 14px; border-bottom:1px solid var(--line); font-size:14px; }
.fact-table td:first-child{ color:var(--grey); width:40%; }
.fact-table td:last-child{ font-weight:600; color:var(--navy); }
.single-immobilie-hero{ height:360px; background-color:#3c6b47; background-size:cover; background-position:center; border-radius:6px; margin-bottom:28px; }

/* About */
.about-section{ background:var(--cream); }
.about-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; }
.about-img{ height:420px; border-radius:6px; background:linear-gradient(160deg,#233d5f,#1a2c46) center/cover; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.about-img-locations{ display:flex; flex-direction:column; gap:22px; padding:0 36px; }
.loc-badge{ display:flex; align-items:center; gap:14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:6px; padding:16px 20px; }
.loc-badge .pin{ font-size:22px; line-height:1; }
.loc-badge strong{ display:block; color:var(--gold-light); font-size:12px; text-transform:uppercase; letter-spacing:.5px; margin-bottom:3px; }
.loc-badge span{ color:#fff; font-size:15px; font-weight:600; }
.about-copy p{ color:#3d4550; margin-bottom:16px; font-size:15px; }
.stat-row{ display:flex; gap:40px; margin-top:30px; flex-wrap:wrap; }
.stat{ font-family:'Playfair Display',serif; }
.stat .num{ font-size:32px; color:var(--navy); font-weight:700; }
.stat .lbl{ font-size:12.5px; color:var(--grey); letter-spacing:.3px; }

/* Ratgeber */
.guide-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.guide-card{ border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.guide-img{ height:130px; background:repeating-linear-gradient(120deg,#e4dcc9 0 20px,#dcd2ba 20px 40px); background-size:cover; background-position:center; }
.guide-body{ padding:18px; }
.guide-body .tag{ font-size:11px; color:var(--gold); font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; }
.guide-body h4{ font-size:15.5px; color:var(--navy); margin-bottom:8px; line-height:1.4; }
.guide-body p{ font-size:13.5px; color:var(--grey); }

/* Kontakt */
.contact-cta{ background:var(--navy-dark); color:#fff; }
.cc-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.cc-grid h2{ color:#fff; font-size:32px; margin-bottom:16px; }
.cc-grid p{ color:#c7cedb; margin-bottom:24px; font-size:15px; }
.offices{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.office-card{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:6px; padding:20px; }
.office-card h4{ color:var(--gold-light); font-size:14px; margin-bottom:10px; letter-spacing:.3px; }
.office-card p{ color:#dfe4ec; font-size:13.5px; margin-bottom:4px; }

.contact-page{ padding:70px 0; }
.contact-page-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:50px; }
.contact-form label{ display:block; font-size:13.5px; font-weight:600; color:var(--navy); margin-bottom:6px; }
.contact-form .field{ margin-bottom:18px; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form select,
.contact-form textarea{ width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:3px; font-family:inherit; font-size:14.5px; color:#222; }
.contact-form textarea{ min-height:150px; resize:vertical; }
.contact-form .consent-row{ display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--grey); }
.contact-form .consent-row input{ margin-top:3px; }
.contact-form .hp-field{ position:absolute; left:-9999px; }
.form-notice{ padding:14px 18px; border-radius:4px; margin-bottom:24px; font-size:14px; font-weight:600; }
.form-notice.success{ background:#e8f3ea; color:#256d38; border:1px solid #bfe0c6; }
.form-notice.error{ background:#fbeaea; color:#a3312f; border:1px solid #f0c4c3; }

/* =========================================================
   5. Footer
   ========================================================= */
footer.site-footer{ background:var(--navy-dark); color:#a9b3c4; padding:40px 0 0; border-top:1px solid rgba(255,255,255,.08); }
.footer-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; font-size:13px; padding-bottom:20px; }
.footer-links a{ margin-left:20px; color:#a9b3c4; }
.footer-links a:first-child{ margin-left:0; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding:18px 0; font-size:12px; color:#7d8aa0; text-align:center; }

/* =========================================================
   6. Cookie-Consent-Banner
   ========================================================= */
.zeilen-cookie-banner{
  position:fixed; left:0; right:0; bottom:-100%; z-index:9999;
  background:var(--navy-dark); color:#dfe4ec; padding:20px 24px;
  box-shadow:0 -6px 24px rgba(0,0,0,.25); transition:bottom .35s ease;
}
.zeilen-cookie-banner.is-visible{ bottom:0; }
.zeilen-cookie-inner{ max-width:1180px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.zeilen-cookie-text{ font-size:13.5px; max-width:640px; color:#c7cedb; }
.zeilen-cookie-text a{ color:var(--gold-light); text-decoration:underline; }
.zeilen-cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.zeilen-cookie-actions button{ font-family:inherit; }

/* =========================================================
   7. Responsive
   ========================================================= */
@media (max-width:900px){
  nav.primary-nav{ position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); display:none; padding:12px 24px; }
  nav.primary-nav.is-open{ display:block; }
  nav.primary-nav ul{ flex-direction:column; gap:14px; }
  .menu-toggle{ display:block; }
  .paths,.about-grid,.cc-grid,.contact-page-grid{ grid-template-columns:1fr; }
  .prop-grid{ grid-template-columns:repeat(2,1fr); }
  .guide-grid{ grid-template-columns:1fr; }
  .hero h1{ font-size:30px; }
  .offices{ grid-template-columns:1fr; }
}
