/*
Theme Name: Immomarket (Interoffice GmbH)
Theme URI: https://www.immomarket.de
Author: Interoffice GmbH
Author URI: https://www.immomarket.de
Description: One-Pager-Template für die Interoffice GmbH (Neustrelitz). Positionierung: langfristige Vermietung des eigenen Bestands an Wohnungen in Mecklenburg-Vorpommern und Sachsen-Anhalt. Kein Ankauf, kein Verkauf, keine Hausverwaltung, keine Portfolio-Darstellung. Demo-Texte in front-page.php bzw. per Seiteninhalt (Slug ueber-uns) ersetzbar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: immomarket
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   INTEROFFICE GMBH — Website-Template (WordPress-Vorlage)
   --------------------------------------------------------------------------
   Farbwelt abgeleitet vom Firmenbriefkopf (Petrol/Türkis).
   Schrift: Fraunces (Headlines) + Inter (Text) via Google Fonts.
   ========================================================================== */

:root{
  --petrol:        #2E5F64;
  --petrol-600:    #275158;
  --petrol-700:    #21444A;
  --petrol-800:    #1A383D;
  --petrol-900:    #122A2F;
  --teal:          #3F7D82;
  --teal-soft:     #6E9DA1;
  --mist:          #E6EEEE;
  --mist-2:        #F3F6F6;
  --sand:          #EFEAE1;
  --ink:           #223137;
  --muted:         #5D6C70;
  --line:          #D9E2E2;
  --white:         #FFFFFF;
  --error:         #B3402A;
  --radius:        14px;
  --radius-sm:     10px;
  --shadow-1:      0 6px 18px rgba(18,42,47,.08);
  --shadow-2:      0 18px 44px rgba(18,42,47,.16);
  --container:     1160px;
  --font-head:     "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.65;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; }
a{ color:var(--petrol); text-decoration:none; }
a:hover{ color:var(--petrol-700); }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
section{ scroll-margin-top:96px; }

/* ---------- Typografie ---------- */
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:600; line-height:1.15; color:var(--petrol-900); letter-spacing:-.01em; }
.eyebrow{
  display:inline-flex; align-items:center; gap:12px;
  font-size:.78rem; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--petrol);
  margin-bottom:18px;
}
.eyebrow::before{ content:""; width:34px; height:2px; background:var(--petrol); display:inline-block; }
.section-title{ font-size:clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom:16px; }
.section-lead{ font-size:1.1rem; color:var(--muted); max-width:64ch; }

/* ---------- Buttons & Chips ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-body); font-size:.98rem; font-weight:600;
  padding:.9rem 1.7rem; border-radius:999px; cursor:pointer;
  border:1.5px solid transparent; transition:.22s ease;
}
.btn svg{ width:17px; height:17px; }
.btn-primary{ background:var(--petrol); color:#fff; }
.btn-primary:hover{ background:var(--petrol-600); color:#fff; transform:translateY(-2px); box-shadow:var(--shadow-1); }
.btn-light{ background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.55); backdrop-filter:blur(4px); }
.btn-light:hover{ background:rgba(255,255,255,.22); color:#fff; }
.btn-ghost{ background:transparent; color:var(--petrol); border-color:var(--petrol); }
.btn-ghost:hover{ background:var(--petrol); color:#fff; }
.chip{
  font-family:var(--font-body); font-size:.95rem; font-weight:600;
  padding:.55rem 1.25rem; border-radius:999px; cursor:pointer;
  border:1.5px solid var(--line); background:#fff; color:var(--muted);
  transition:.2s ease;
}
.chip:hover{ border-color:var(--teal); color:var(--petrol); }
.chip.active{ background:var(--petrol); border-color:var(--petrol); color:#fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:rgba(255,255,255,.94); backdrop-filter:blur(10px);
  border-bottom:1px solid transparent; transition:.25s ease;
}
.site-header.scrolled{ border-bottom-color:var(--line); box-shadow:var(--shadow-1); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; height:84px; }

.brand{ display:flex; align-items:center; gap:14px; }
.brand-logo{ width:46px; height:46px; flex:none; }
.brand-name{ font-family:var(--font-head); font-weight:600; letter-spacing:.08em; font-size:1.02rem; color:var(--petrol-900); line-height:1.1; }
.brand-sub{ display:block; font-family:var(--font-body); font-size:.66rem; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--teal); margin-top:3px; }

.main-nav{ display:flex; align-items:center; gap:30px; }
.main-nav ul{ display:flex; gap:26px; list-style:none; }
.main-nav a{ font-weight:500; font-size:.99rem; color:var(--ink); position:relative; padding:6px 0; }
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:var(--petrol); transition:width .22s ease;
}
.main-nav a:hover{ color:var(--petrol); }
.main-nav a:hover::after{ width:100%; }
.nav-cta{ margin-left:6px; }
.nav-toggle{
  display:none; background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--petrol-900); margin:5px 0; border-radius:2px; transition:.25s; }

@media (max-width:980px){
  .nav-toggle{ display:block; }
  .main-nav{
    position:fixed; top:84px; left:0; right:0;
    background:#fff; flex-direction:column; align-items:flex-start; gap:0;
    padding:0 24px; max-height:0; overflow:hidden;
    border-bottom:1px solid transparent; transition:.3s ease;
  }
  .main-nav.open{ max-height:460px; padding:18px 24px 26px; border-bottom-color:var(--line); box-shadow:var(--shadow-1); }
  .main-nav ul{ flex-direction:column; gap:4px; width:100%; }
  .main-nav a{ display:block; padding:11px 0; font-size:1.05rem; }
  .nav-cta{ margin:12px 0 0; width:100%; }
  .nav-cta .btn{ width:100%; }
  body.nav-open{ overflow:hidden; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position:relative; color:#fff; overflow:hidden;
  padding:calc(84px + 6.5rem) 0 6.5rem;
  background:linear-gradient(115deg, rgba(12,32,36,.88) 20%, rgba(18,42,47,.55) 55%, rgba(46,95,100,.35) 100%);
}
.hero-bg{ position:absolute; inset:0; z-index:-1; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3);
  backdrop-filter:blur(4px); border-radius:999px;
  font-size:.82rem; font-weight:600; letter-spacing:.04em;
  padding:.5rem 1.1rem; margin-bottom:26px;
}
.hero-badge svg{ width:15px; height:15px; color:var(--teal-soft); }
.hero h1{
  color:#fff; font-size:clamp(2.3rem, 5.2vw, 4rem); max-width:20ch;
  margin-bottom:22px;
}
.hero h1 em{ font-style:normal; color:#A9CFD2; }
.hero p.hero-sub{ font-size:clamp(1.02rem, 1.5vw, 1.2rem); max-width:58ch; color:rgba(255,255,255,.88); margin-bottom:34px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:46px; }
.hero-facts{
  display:flex; flex-wrap:wrap; gap:12px 34px;
  border-top:1px solid rgba(255,255,255,.22); padding-top:22px;
}
.hero-fact{ display:flex; flex-direction:column; gap:2px; }
.hero-fact strong{ font-family:var(--font-head); font-size:1.45rem; color:#fff; line-height:1; }
.hero-fact span{ font-size:.82rem; letter-spacing:.05em; color:rgba(255,255,255,.75); text-transform:uppercase; }

/* ==========================================================================
   USPs (unter Hero)
   ========================================================================== */
.usps{ background:var(--white); position:relative; }
.usps .grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.usp-card{
  background:var(--mist-2); border:1px solid var(--line);
  border-radius:var(--radius); padding:30px 28px;
  transition:.25s ease;
}
.usp-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-1); }
.usp-icon{
  width:52px; height:52px; border-radius:13px; background:var(--petrol);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.usp-icon svg{ width:26px; height:26px; color:#fff; }
.usp-card h3{ font-size:1.22rem; margin-bottom:8px; }
.usp-card p{ font-size:.97rem; color:var(--muted); margin-bottom:0; }
@media (max-width:900px){ .usps .grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   ALLGEMEINE SECTION
   ========================================================================== */
.section{ padding:6.5rem 0; }
.section-mist{ background:var(--mist-2); }
.section-sand{ background:var(--sand); }

/* ==========================================================================
   ÜBER UNS
   ========================================================================== */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.about-media{ position:relative; }
.about-media > img{
  width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:var(--radius);
  box-shadow:var(--shadow-2);
}
.about-flag{
  position:absolute; left:-18px; bottom:34px;
  background:var(--petrol); color:#fff; border-radius:var(--radius-sm);
  padding:18px 24px; box-shadow:var(--shadow-2);
  display:flex; align-items:center; gap:16px;
}
.about-flag strong{ font-family:var(--font-head); font-size:2.6rem; font-weight:600; line-height:1; }
.about-flag span{ font-size:.86rem; line-height:1.3; opacity:.92; }
.about-copy p{ margin-bottom:18px; color:#3A4A4F; }
.about-copy p strong{ color:var(--petrol-800); }
.focus-box{
  margin-top:26px; border-left:4px solid var(--petrol); background:var(--mist);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0; padding:20px 24px;
}
.focus-box strong{ color:var(--petrol-800); display:block; margin-bottom:4px; }
.focus-box p{ margin:0; font-size:.97rem; }
.about-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:54px; }
.stat{ text-align:center; padding:22px 10px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.stat strong{ display:block; font-family:var(--font-head); font-size:2rem; color:var(--petrol); line-height:1; margin-bottom:6px; }
.stat span{ font-size:.82rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
@media (max-width:980px){
  .about-grid{ grid-template-columns:1fr; gap:44px; }
  .about-flag{ left:14px; }
  .about-stats{ grid-template-columns:repeat(2,1fr); }
}

/* ==========================================================================
   LEISTUNGEN
   ========================================================================== */
.leistungen-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:48px; }
.leistung-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; display:flex; flex-direction:column; gap:14px;
  transition:.25s ease; position:relative; overflow:hidden;
}
.leistung-card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--petrol); transform:scaleX(0); transform-origin:left; transition:.3s;
}
.leistung-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-1); }
.leistung-card:hover::before{ transform:scaleX(1); }
.leistung-nr{ font-size:.8rem; font-weight:700; letter-spacing:.14em; color:var(--teal); }
.leistung-card h3{ font-size:1.15rem; }
.leistung-card p{ font-size:.95rem; color:var(--muted); flex:1; }
.leistung-card a{ font-size:.92rem; font-weight:600; }
@media (max-width:1020px){ .leistungen-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .leistungen-grid{ grid-template-columns:1fr; } }
.no-list{
  margin-top:44px; display:flex; gap:16px; align-items:flex-start;
  background:var(--petrol-900); color:rgba(255,255,255,.9);
  border-radius:var(--radius); padding:24px 28px;
}
.no-list svg{ width:26px; height:26px; color:#A9CFD2; flex:none; margin-top:3px; }
.no-list strong{ color:#fff; display:block; font-family:var(--font-head); font-size:1.05rem; margin-bottom:4px; }
.no-list p{ margin:0; font-size:.96rem; }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.filter-bar{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:40px 0 44px; }
.obj-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.obj-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:.25s ease;
}
.obj-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-2); }
.obj-card.hidden{ display:none; }
.obj-media{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.obj-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.obj-card:hover .obj-media img{ transform:scale(1.06); }
.obj-tags{ position:absolute; top:14px; left:14px; right:14px; display:flex; justify-content:space-between; gap:8px; }
.obj-tag{
  font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  padding:.35rem .75rem; border-radius:999px; backdrop-filter:blur(4px);
}
.obj-tag.region-mv{ background:rgba(18,42,47,.78); color:#fff; }
.obj-tag.region-sa{ background:rgba(176,110,42,.85); color:#fff; }
.obj-tag.type{ background:rgba(255,255,255,.92); color:var(--petrol-800); }
.obj-body{ padding:22px 22px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.obj-ort{ display:flex; align-items:center; gap:6px; font-size:.84rem; font-weight:600; color:var(--teal); letter-spacing:.04em; }
.obj-ort svg{ width:15px; height:15px; flex:none; }
.obj-card h3{ font-size:1.18rem; }
.obj-meta{ display:flex; gap:16px; font-size:.92rem; color:var(--muted); }
.obj-meta span{ display:inline-flex; align-items:center; gap:5px; }
.obj-meta svg{ width:15px; height:15px; color:var(--teal); }
.obj-status{
  margin-top:auto; padding-top:8px;
  font-size:.8rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase;
  color:var(--teal);
}
.obj-hinweis{ margin-top:38px; text-align:center; font-size:.86rem; color:var(--muted); }
@media (max-width:1020px){ .obj-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .obj-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.kontakt-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; align-items:start; }
.k-info{ display:flex; flex-direction:column; gap:22px; }
.k-block{
  display:flex; gap:16px; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); padding:20px 22px;
}
.k-icon{
  width:46px; height:46px; flex:none; border-radius:12px; background:var(--mist);
  display:flex; align-items:center; justify-content:center;
}
.k-icon svg{ width:22px; height:22px; color:var(--petrol); }
.k-block h4{ font-size:1rem; margin-bottom:2px; }
.k-block p{ font-size:.95rem; color:var(--muted); margin:0; line-height:1.5; }
.k-block a{ font-weight:600; }
.k-map{
  border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
}
.k-map img{ width:100%; aspect-ratio:16/6; object-fit:cover; }
.k-map figcaption{ background:#fff; font-size:.82rem; color:var(--muted); padding:10px 16px; text-align:center; }

.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:38px 40px; box-shadow:var(--shadow-1); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-grid .full{ grid-column:1/-1; }
.form-field label{ display:block; font-size:.88rem; font-weight:600; color:var(--petrol-800); margin-bottom:7px; }
.form-field label .req{ color:var(--error); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; font-family:var(--font-body); font-size:.98rem; color:var(--ink);
  background:var(--mist-2); border:1.5px solid var(--line); border-radius:var(--radius-sm);
  padding:.85rem 1rem; transition:.2s; appearance:none;
}
.form-field textarea{ resize:vertical; min-height:150px; }
.form-field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232E5F64' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 1rem center;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color:var(--petrol); background:#fff;
  box-shadow:0 0 0 3px rgba(46,95,100,.15);
}
.form-field.invalid input, .form-field.invalid textarea{ border-color:var(--error); }
.field-error{ display:none; color:var(--error); font-size:.83rem; margin-top:5px; }
.form-field.invalid .field-error{ display:block; }
.check{
  display:flex; gap:12px; align-items:flex-start; font-size:.88rem; color:var(--muted); cursor:pointer;
}
.check input{ width:19px; height:19px; margin-top:3px; accent-color:var(--petrol); flex:none; }
.check a{ text-decoration:underline; }
.form-submit{ margin-top:6px; }
.form-note{ margin-top:16px; font-size:.84rem; color:var(--muted); }
.form-success{
  display:none; text-align:center; padding:46px 20px;
}
.form-success.show{ display:block; }
.success-icon{
  width:66px; height:66px; margin:0 auto 20px; border-radius:50%;
  background:var(--petrol); display:flex; align-items:center; justify-content:center;
}
.success-icon svg{ width:32px; height:32px; color:#fff; }
.form-success h3{ margin-bottom:10px; }
.form-success p{ color:var(--muted); max-width:46ch; margin:0 auto 8px; }
@media (max-width:980px){
  .kontakt-grid{ grid-template-columns:1fr; }
  .form-card{ padding:30px 26px; }
  .form-grid{ grid-template-columns:1fr; }
}

/* ==========================================================================
   IMPRESSUM / DATENSCHUTZ
   ========================================================================== */
.legal{ background:#fff; border-top:1px solid var(--line); padding:3.5rem 0; font-size:.9rem; color:var(--muted); }
.legal h2{ font-size:1.15rem; margin:0 0 6px; }
.legal h3{ font-size:.95rem; margin:26px 0 8px; font-family:var(--font-body); font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--petrol-800); }
.legal p{ margin-bottom:6px; max-width:100ch; }
.legal address{ font-style:normal; line-height:1.7; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background:var(--petrol-900); color:rgba(255,255,255,.82); font-size:.95rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1.2fr; gap:48px; padding:64px 0 48px; }
.footer-brand p{ margin-top:16px; max-width:38ch; font-size:.93rem; color:rgba(255,255,255,.7); }
.footer-brand .brand-name{ color:#fff; }
.footer-brand .brand-sub{ color:#A9CFD2; }
.footer h4{ font-family:var(--font-body); font-size:.8rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#fff; margin-bottom:18px; }
.footer ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer a{ color:rgba(255,255,255,.82); }
.footer a:hover{ color:#fff; text-decoration:underline; }
.footer-contact li{ display:flex; gap:10px; align-items:flex-start; line-height:1.55; }
.footer-contact svg{ width:17px; height:17px; flex:none; color:#A9CFD2; margin-top:4px; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.14);
  padding:22px 0; display:flex; flex-wrap:wrap; gap:10px 30px;
  justify-content:space-between; font-size:.84rem; color:rgba(255,255,255,.6);
}
.footer-bottom a{ color:rgba(255,255,255,.75); }
.template-note{
  background:#122024; color:rgba(255,255,255,.45); text-align:center;
  font-size:.75rem; letter-spacing:.03em; padding:10px 16px;
}
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr; gap:36px; padding:52px 0 36px; } }

/* ==========================================================================
   REVEAL-ANIMATION
   ========================================================================== */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ==========================================================================
   WORDPRESS-ERGÄNZUNGEN (Theme)
   ========================================================================== */
.site-main > .container{ padding-top:7rem; padding-bottom:5rem; }
.entry-header{ margin-bottom:1.5rem; }
.entry-title{ font-size:clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom:.4rem; }
.entry-content > * + *{ margin-top:1.1em; }
.entry-content h2{ font-size:1.5rem; margin-top:1.6em; }
.entry-content h3{ font-size:1.2rem; margin-top:1.4em; }
.entry-content a{ text-decoration:underline; text-underline-offset:3px; }
.entry-content ul, .entry-content ol{ padding-left:1.3rem; }
.entry-content .wp-block-image{ margin:2rem 0; }
.entry-content img{ height:auto; }
.alignleft{ float:left; margin:.4rem 1.4rem 1rem 0; }
.alignright{ float:right; margin:.4rem 0 1rem 1.4rem; }
.aligncenter{ display:block; margin:1.4rem auto; }
.wp-caption{ max-width:100%; }
.wp-caption-text{ font-size:.85rem; color:var(--muted); text-align:center; margin-top:.4rem; }
.screen-reader-text{ border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; width:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; }
.legal-page .legal h2{ font-size:1.6rem; margin-bottom:1rem; }
