/* ============================================================
   Meridian Immobilienverwaltung — statisches Stylesheet
   Design-Token aus der urspruenglichen Base44-App abgeleitet
   (Primaerfarbe, Typografie, Abstaende per Browser-Inspektion).
   ============================================================ */

:root{
  --green:#1b5e3b;
  --green-dark:#123f28;
  --ink:#2b2b2b;
  --ink-muted:rgba(43,43,43,.7);
  --ink-soft:rgba(43,43,43,.55);
  --border:#e8e8e3;
  --bg:#ffffff;
  --bg-alt:#f6f6f1;
  --white:#ffffff;
  --radius:8px;
  --container:1180px;
  --shadow:0 10px 30px rgba(27,94,59,.08);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
button{font:inherit;cursor:pointer}
input,textarea,select{font:inherit}

.container{max-width:var(--container);margin:0 auto;padding:0 24px}
.section{padding:72px 0}
.section-alt{background:var(--bg-alt)}
.section-tight{padding:48px 0}

h1,h2,h3,h4{font-weight:600;letter-spacing:-.02em;line-height:1.15;margin:0 0 16px}
h1{font-size:clamp(2.1rem,5vw,3rem)}
h2{font-size:clamp(1.6rem,3.4vw,2.25rem)}
h3{font-size:1.25rem}
p{margin:0 0 16px;color:var(--ink)}
.lead{font-size:1.125rem;color:var(--ink-muted);max-width:640px}
.muted{color:var(--ink-muted)}

.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--green);margin-bottom:14px;
}
.eyebrow::before{content:"";display:inline-block;width:28px;height:1px;background:var(--green)}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 24px;border-radius:var(--radius);
  font-size:.8rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;
  border:1px solid transparent;transition:.15s ease;white-space:nowrap;
}
.btn-primary{background:var(--green);color:#fff}
.btn-primary:hover{background:var(--green-dark)}
.btn-secondary{background:transparent;color:var(--ink);border-color:rgba(43,43,43,.2)}
.btn-secondary:hover{border-color:var(--ink)}
.btn-block{width:100%;justify-content:center}
.btn-row{display:flex;gap:14px;flex-wrap:wrap}

/* Header / Navigation */
.site-header{
  position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--border);
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.05rem;letter-spacing:.02em;flex:none}
.brand img{display:block;max-height:40px;width:auto}
.menu-btn{
  display:flex;align-items:center;gap:8px;background:none;border:none;padding:8px;
  font-size:.85rem;font-weight:500;color:var(--ink);
}
.menu-btn svg{width:22px;height:22px}

.nav-panel{
  display:none;position:fixed;inset:72px 0 0 0;background:#fff;z-index:49;
  overflow-y:auto;border-top:1px solid var(--border);
}
.nav-panel.is-open{display:block}
.nav-panel-inner{max-width:var(--container);margin:0 auto;padding:28px 24px 40px}
.nav-panel a{display:block;padding:16px 0;border-bottom:1px solid var(--border);font-size:1.05rem}
.nav-sub{padding-left:16px;border-left:2px solid var(--border);margin:0 0 8px}
.nav-sub a{padding:12px 0;font-size:.95rem;color:var(--ink-muted);border-bottom:none}
.nav-panel-footer{margin-top:24px;padding-top:24px;border-top:1px solid var(--border);color:var(--ink-muted);font-size:.9rem}
.nav-panel-footer a{display:inline;border:none;padding:0;color:var(--green);font-weight:500}

.mobile-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid var(--border);
  display:grid;grid-template-columns:1fr 1fr 1fr;
}
.mobile-bar a{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0;font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink)}
.mobile-bar a.emergency{color:#b3261e}
.mobile-bar svg{width:20px;height:20px}
body{padding-bottom:64px}

/* Breadcrumb */
.breadcrumb{font-size:.8rem;color:var(--ink-soft);padding:20px 0 0}
.breadcrumb a{color:var(--ink-soft)}
.breadcrumb .sep{margin:0 6px}
.breadcrumb .current{color:var(--ink);font-weight:600}

/* Hero */
.hero{padding:56px 0 0}
.hero-actions{margin:28px 0}
.hero-phone{
  display:flex;align-items:center;gap:10px;padding-top:20px;border-top:1px solid var(--border);
  color:var(--ink-muted);font-size:.95rem;
}
.hero-phone strong{color:var(--ink)}
.hero-image{margin-top:40px}
.hero-image img{width:100%;height:420px;object-fit:cover;border-radius:var(--radius)}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--border)}
.stat{padding:28px 24px;border-right:1px solid var(--border)}
.stat:last-child{border-right:none}
.stat .value{font-size:1.9rem;font-weight:600;letter-spacing:-.02em;margin-bottom:6px}
.stat .label{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}

/* Grids / Cards */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.section-head{max-width:680px;margin-bottom:44px}
.section-head-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:44px}

.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px}
.feature-card h3{margin-bottom:10px;font-size:1.1rem}
.feature-card p{color:var(--ink-muted);font-size:.95rem;margin:0}

.service-card{overflow:hidden;padding:0;display:flex;flex-direction:column}
.service-card .thumb{position:relative;height:200px}
.service-card .thumb img{width:100%;height:100%;object-fit:cover}
.service-card .icon-badge{
  position:absolute;top:16px;left:16px;width:40px;height:40px;border-radius:8px;
  background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;
}
.service-card .body{padding:24px;display:flex;flex-direction:column;gap:12px;flex:1}
.service-card .body p{color:var(--ink-muted);font-size:.95rem;margin:0;flex:1}
.link-arrow{color:var(--green);font-size:.78rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;display:inline-flex;align-items:center;gap:6px}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;counter-reset:step}
.step .num{font-size:.85rem;font-weight:700;color:var(--green);margin-bottom:10px}
.step h3{font-size:1.05rem;margin-bottom:8px}
.step p{color:var(--ink-muted);font-size:.92rem;margin:0}

/* CTA band */
.cta-band{background:var(--green);color:#fff;border-radius:var(--radius);padding:56px;text-align:left}
.cta-band h2{color:#fff}
.cta-band p{color:rgba(255,255,255,.85)}
.cta-band .btn-primary{background:#fff;color:var(--green)}
.cta-band .btn-primary:hover{background:var(--bg-alt)}
.cta-band .btn-secondary{border-color:rgba(255,255,255,.4);color:#fff}
.cta-band .btn-secondary:hover{border-color:#fff}

/* Articles */
.article-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.article-card .thumb{height:180px}
.article-card .thumb img{width:100%;height:100%;object-fit:cover}
.article-card .body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.article-meta{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--green);font-weight:600}
.article-card h3{font-size:1.05rem;margin:0}
.article-card p{color:var(--ink-muted);font-size:.92rem;margin:0;flex:1}
.article-body p{font-size:1.02rem;color:var(--ink);max-width:720px}
.article-hero-meta{color:var(--ink-soft);font-size:.85rem;margin-bottom:8px}

/* Team */
.team-card{padding:0;overflow:hidden}
.team-card .thumb{height:280px}
.team-card .thumb img{width:100%;height:100%;object-fit:cover}
.team-card .body{padding:24px}
.team-card .role{color:var(--green);font-size:.75rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;margin-bottom:10px}
.team-card .contact{border-top:1px solid var(--border);margin-top:16px;padding-top:16px;display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:var(--ink-muted)}

/* Jobs */
.job-row{display:flex;justify-content:space-between;align-items:center;padding:22px 0;border-bottom:1px solid var(--border);gap:16px;flex-wrap:wrap}
.job-row h3{margin:0 0 6px;font-size:1.05rem}
.job-row .meta{font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft)}

/* Forms */
.form-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:32px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}
.form-field.full{grid-column:1/-1}
.form-field label{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.form-field input,.form-field textarea,.form-field select{
  border:1px solid var(--border);border-radius:6px;padding:12px 14px;font-size:.95rem;color:var(--ink);background:#fff;
}
.form-field input:focus,.form-field textarea:focus,.form-field select:focus{outline:2px solid var(--green);outline-offset:1px}
.form-consent{display:flex;gap:10px;align-items:flex-start;font-size:.85rem;color:var(--ink-muted);margin-bottom:20px}
.form-consent input{margin-top:4px}
.tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px}
.tab-btn{
  padding:10px 18px;border-radius:999px;border:1px solid var(--border);background:#fff;
  font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-muted);
}
.tab-btn.is-active{background:var(--green);border-color:var(--green);color:#fff}
.form-note{font-size:.78rem;color:var(--ink-soft);margin-top:10px}

/* Contact info */
.contact-info{display:flex;flex-direction:column;gap:28px}
.contact-block h3{font-size:.95rem;margin-bottom:10px}
.contact-block p{margin:0 0 4px;color:var(--ink-muted)}
.emergency-block{background:#fdecea;border:1px solid #f3c9c4;border-radius:var(--radius);padding:20px}
.emergency-block h3{color:#8c2a22}

/* Filter pills (Ratgeber) */
.filter-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px}
.filter-pill{padding:9px 16px;border-radius:999px;border:1px solid var(--border);font-size:.8rem;font-weight:500;color:var(--ink-muted)}
.filter-pill.is-active{background:var(--ink);border-color:var(--ink);color:#fff}
.search-field{margin-bottom:28px}
.search-field input{width:100%;max-width:420px}

/* Legal pages */
.legal-body h2{margin-top:36px;font-size:1.15rem}
.legal-body p,.legal-body li{color:var(--ink-muted)}
.legal-body{max-width:760px}

/* Related / list */
.list-check{display:flex;flex-direction:column;gap:12px}
.list-check li{display:flex;gap:10px;color:var(--ink-muted);align-items:flex-start}
.list-check li::before{content:"—";color:var(--green);flex:none}
.faq-item{border-bottom:1px solid var(--border);padding:18px 0}
.faq-item h3{font-size:1rem;margin-bottom:8px}
.faq-item p{color:var(--ink-muted);margin:0}
.toc{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.82rem;color:var(--ink-soft);margin:20px 0 0;padding-top:20px;border-top:1px solid var(--border)}

/* Footer */
.site-footer{background:var(--bg-alt);border-top:1px solid var(--border);padding:56px 0 28px;margin-top:80px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;margin-bottom:40px}
.footer-grid-3{grid-template-columns:1.4fr 1fr 1fr}
.footer-col h4{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:16px}
.footer-col a,.footer-col p{display:block;color:var(--ink-muted);font-size:.92rem;margin-bottom:10px}
.footer-social{display:flex;gap:12px;margin-top:16px}
.footer-social a{width:36px;height:36px;border:1px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center}
.footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:24px;border-top:1px solid var(--border);font-size:.82rem;color:var(--ink-soft)}
.footer-bottom .legal-links{display:flex;gap:18px;flex-wrap:wrap}

.cookie-toggle{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--border)}
.cookie-toggle .status{font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--green)}
.switch{position:relative;width:44px;height:24px;border-radius:999px;background:var(--border);border:none}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.15s}
.switch.is-on{background:var(--green)}
.switch.is-on::after{left:22px}

@media (max-width: 900px){
  .grid-2,.grid-3{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat{border-bottom:1px solid var(--border)}
  .steps{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .form-grid{grid-template-columns:1fr}
  .cta-band{padding:32px}
  .hero-image img{height:260px}
}
@media (max-width: 560px){
  .grid-4,.steps{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}
@media (min-width: 900px){
  .mobile-bar{display:none}
  body{padding-bottom:0}
}

/* ============================================================
   Erweiterung: volle Base44-Layout-Sektionen (1:1-Design-Kopie)
   ============================================================ */

/* Dark full-bleed sections (Unser Ansatz, dark CTA) */
.section-dark{background:#1e1e1c;color:#f2f1ec}
.section-dark .eyebrow{color:#7fd4a6}
.section-dark h2{color:#fff}
.section-dark p{color:rgba(242,241,236,.75)}
.section-dark .link-arrow{color:#7fd4a6}
.ansatz-image{width:100%;height:340px;object-fit:cover}

/* Icon boxes (commitments, service categories) */
.icon-box{
  width:52px;height:52px;border-radius:10px;background:rgba(27,94,59,.1);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px;color:var(--green);flex:none;
}
.icon-box svg{width:24px;height:24px}
.section-dark .icon-box{background:rgba(255,255,255,.08);color:#7fd4a6}
.commitment-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px}
.commitment-card h3{margin-bottom:8px;font-size:1.1rem}
.commitment-card p{color:var(--ink-muted);font-size:.95rem;margin:0}
.grid-2-6{display:grid;grid-template-columns:1fr 1fr;gap:24px}

/* Service card without photo (icon-led variant) */
.service-card-plain{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column}
.service-card-plain h3{margin-bottom:10px;font-size:1.15rem}
.service-card-plain p{color:var(--ink-muted);font-size:.95rem;flex:1;margin:0 0 16px}

/* Numbered process (reuse .steps, add page-level variant) */
.process-block{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px}

/* Sticky table of contents (service detail pages) */
.toc-nav{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:.82rem;color:var(--ink-soft);padding:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:24px 0 0}
.toc-nav a{color:var(--ink-soft)}
.toc-nav a:hover{color:var(--green)}

/* Problem list (dash bullets, larger) */
.problem-list{display:flex;flex-direction:column;gap:18px}
.problem-list li{display:flex;gap:14px;color:var(--ink-muted);padding-bottom:18px;border-bottom:1px solid var(--border)}
.problem-list li:last-child{border-bottom:none;padding-bottom:0}
.problem-list li::before{content:"—";color:var(--green);flex:none;font-weight:700}

/* Job listings row already via .job-row; add apply button alignment */
.job-row .btn{flex:none}

/* Benefit grid (Karriere / Warum Meridian) */
.benefit-card{padding:0;border:none}
.benefit-card h3{font-size:1.05rem;margin-bottom:8px}
.benefit-card p{color:var(--ink-muted);font-size:.92rem;margin:0}

/* Contact channel cards (Kontakt page) */
.channel-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.channel-card h3{font-size:1rem;margin-bottom:10px}
.channel-card p{color:var(--ink-muted);font-size:.9rem;margin:0 0 4px}
.channel-card.emergency{background:#fdecea;border-color:#f3c9c4}
.channel-card.emergency h3{color:#8c2a22}

/* Timeline (Über uns) */
.timeline{display:flex;flex-direction:column}
.timeline-item{display:grid;grid-template-columns:110px 1fr;gap:24px;padding:22px 0;border-bottom:1px solid var(--border)}
.timeline-item:last-child{border-bottom:none}
.timeline-item .year{font-size:1.3rem;font-weight:700;color:var(--green)}
.timeline-item h3{font-size:1.05rem;margin-bottom:6px}
.timeline-item p{color:var(--ink-muted);margin:0;font-size:.95rem}

@media (max-width:900px){
  .grid-2-6{grid-template-columns:1fr}
  .timeline-item{grid-template-columns:1fr}
}

/* ============================================================
   Desktop-Navigation (volle Kopfzeile ab 900px, wie Base44)
   ============================================================ */
.header-row{display:flex;align-items:center;gap:20px;flex-wrap:nowrap;min-width:0}
.header-row .brand{margin-right:auto}
.desktop-nav{display:none}
.header-actions{display:none}

/* 900-1179px: nur Nav + CTA-Button, Rest bleibt im Hamburger-Menue (verhindert Ueberlappung) */
@media (min-width:900px){
  .menu-btn{display:none}
  .desktop-nav{
    display:flex;align-items:center;gap:20px;font-size:.88rem;font-weight:500;
    flex-wrap:nowrap;white-space:nowrap;min-width:0;overflow:hidden;
  }
  .desktop-nav a:hover{color:var(--green)}
  .header-actions{
    display:flex;align-items:center;gap:14px;margin-left:auto;font-size:.85rem;flex:none;
  }
  .header-phone,.header-emergency,.header-login{display:none}
  .header-cta{padding:11px 18px;font-size:.75rem;white-space:nowrap;flex:none}
}

/* ab 1180px: volle Kopfzeile wie im Original (Telefon, Notfall, Kundenlogin sichtbar) */
@media (min-width:1180px){
  .desktop-nav{gap:26px;font-size:.92rem}
  .header-actions{gap:18px}
  .header-phone{display:block;color:var(--ink);white-space:nowrap}
  .header-emergency{
    display:flex;align-items:center;gap:6px;color:#b3261e;font-weight:600;
    font-size:.72rem;letter-spacing:.03em;white-space:nowrap;flex:none;
  }
  .header-emergency svg{width:16px;height:16px;flex:none}
  .header-login{display:flex;align-items:center;gap:6px;color:var(--ink-muted);white-space:nowrap;flex:none}
  .header-login svg{width:16px;height:16px;flex:none}
  .header-cta{padding:12px 20px;font-size:.78rem}
}
@media (min-width:1320px){
  .site-header .container{max-width:1320px}
}
