/* Haliti Immo – sachlich, kantig, reduziert. Ein Stylesheet, keine Frameworks. */
:root {
  --ink: #111412;
  --ink-2: #3d433f;
  --muted: #6b716d;
  --line: #dfe2df;
  --line-strong: #c4c9c5;
  --bg: #ffffff;
  --bg-alt: #f4f5f3;
  --accent: #1e4632;      /* einziges Farbelement: dunkles, gedecktes Grün */
  --accent-dark: #142f22;
  --dark: #121614;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0 0 .6em; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.75rem); letter-spacing: -.03em; line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.02em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 14px; border: 1px solid var(--ink); }

/* Label / Kicker */
.label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.label::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
.num { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .04em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { font-size: .95rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.brand-text span { font-weight: 400; color: var(--muted); }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .brand-text span { color: #a9b0ab; }

.nav { display: flex; align-items: stretch; height: 100%; }
.nav a {
  display: flex; align-items: center; padding: 0 18px; text-decoration: none;
  font-size: .9rem; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav a.nav-cta {
  align-self: center; height: 40px; margin: 0 0 0 14px; padding: 0 20px;
  background: var(--ink); color: #fff; border: 0;
}
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--accent); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; height: auto;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 2px 0 0 var(--accent); }
  .nav a.nav-cta { margin: 16px; height: 48px; justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; font: inherit; font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn::after { content: "→"; font-size: 1rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); color: var(--ink); }
.btn-outline-light { border-color: rgb(255 255 255 / 35%); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero-text { padding: clamp(48px, 8vw, 104px) clamp(0px, 4vw, 56px) clamp(48px, 7vw, 88px) 0; display: flex; flex-direction: column; justify-content: center; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 54ch; }
.hero-text .actions { margin-top: 32px; }
.hero-art { border-left: 1px solid var(--line); background: var(--bg-alt); display: flex; flex-direction: column; }
.hero-art svg { flex: 1; width: 100%; height: auto; padding: clamp(24px, 4vw, 48px); }
.hero-art figcaption { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 14px 20px; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-right: 0; }
  .hero-art { border-left: 0; border-top: 1px solid var(--line); margin-inline: -16px; }
}

.page-hero { border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { max-width: 18ch; }
.page-hero-center { text-align: center; border: 0; padding-block: clamp(80px, 12vw, 140px); }
.page-hero-center h1 { margin-inline: auto; }
.page-hero-center .lead { margin-inline: auto; }
.page-hero-center .label::before { display: none; }

/* Kennzahlen */
.facts-bar { border-bottom: 1px solid var(--line); }
.facts-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-bar div { padding: 28px 24px 28px 0; }
.facts-bar div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.facts-bar strong { display: block; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; }
.facts-bar span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) {
  .facts-bar .wrap { grid-template-columns: 1fr 1fr; }
  .facts-bar div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-bar div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* Spalten mit Linie oben */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.cols > * { padding: 24px 32px 8px 0; }
.cols > * + * { padding-left: 32px; border-left: 1px solid var(--line); }
.cols h3 { margin: 14px 0 10px; }
.cols p { color: var(--ink-2); }
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .cols > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Liegenschaften – Liste */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 80px 1.2fr 160px 2fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { margin: 0; font-size: 1.25rem; }
.row p { margin: 0; color: var(--ink-2); }
.status { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.status-soft::before { background: transparent; border: 1px solid var(--ink-2); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* Abschluss-Block */
.cta-box { background: var(--dark); color: #fff; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; }
.cta-box h2 { color: #fff; margin-bottom: 12px; }
.cta-box p { color: #b9bfbb; margin: 0; max-width: 56ch; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; } }

/* Fliesstext */
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .prose-grid { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 12px; height: 1px; background: var(--accent); }
.list b { color: var(--ink); font-weight: 600; }

.side { border: 1px solid var(--line); padding: 28px; position: sticky; top: 104px; background: var(--bg); }
.side h2 { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.facts { margin: 0 0 24px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.big-link { font-size: 1.1rem; word-break: break-all; }

/* Mieter-Blöcke */
.notice-line { border-left: 2px solid var(--ink); padding: 4px 0 4px 20px; margin-top: 8px; }

/* Formular */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .side { position: static; } }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); width: 100%;
  padding: 13px 14px; border: 1px solid var(--line-strong); background: var(--bg); appearance: none;
}
.form select { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111412' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form textarea { resize: vertical; min-height: 160px; }
.form label.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.form label.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; appearance: auto; accent-color: var(--ink); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; }
.notice-error { padding: 14px 18px; border: 1px solid #b8452b; border-left-width: 3px; color: #8a2f1b; background: #fff; }

/* Footer */
.site-footer { background: var(--dark); color: #b9bfbb; padding-top: 64px; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer-grid p { margin-top: 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-h { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #7d847f; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #2a302c; padding: 20px 0 28px; font-size: .8rem; color: #7d847f; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Projekte */
.project { display: grid; grid-template-columns: 1.5fr 1fr; border: 1px solid var(--line); }
.project-media { display: block; background: var(--bg-alt); border-right: 1px solid var(--line); overflow: hidden; }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-media:hover img { transform: scale(1.02); }
.project-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; }
.project-body h2 { margin: 14px 0 20px; }
.project-body .facts { margin: 0 0 28px; }
.project-body .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project-media { border-right: 0; border-bottom: 1px solid var(--line); }
}
