/* SONO Immobilien GmbH — Herrlinghausen 8
   Layout: ruhiges 12-Spalten-Raster, grosse Bildflaechen, Petrol-Akzent auf Tiefblau */

:root {
  --ink:        #10171C;
  --ink-soft:   #40525C;
  --paper:      #FFFFFF;
  --sand:       #EFECE6;
  --line:       #DCD8D1;
  --accent:     #0F7B82;
  --accent-dk:  #0B5C61;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-wide { max-width: 1520px; margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow.on-dark { color: #5FC3C9; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.7rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost.on-dark { color: #fff; }
.btn-ghost.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(4px); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  max-width: 1520px; margin-inline: auto;
  padding: 0 var(--gut);
  height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo { display: flex; align-items: center; gap: .62rem; text-decoration: none; }
.logo .mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  background: var(--ink);
  position: relative;
}
.logo .mark::after {
  content: ""; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 11px; height: 11px; background: var(--accent);
}
.logo .word {
  font-family: var(--display); font-weight: 800;
  font-size: 1.32rem; letter-spacing: .07em;
}
.logo .sub {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); display: block; margin-top: 1px; font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--accent); }
.head-cta { display: inline-flex; }

.burger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 920px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.4rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .head-cta { display: none; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; }
.hero img {
  width: 100%; height: clamp(420px, 68vh, 680px); object-fit: cover; opacity: .62;
}
.hero-in {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(16,23,28,.45) 0%, rgba(16,23,28,.1) 38%, rgba(16,23,28,.88) 100%);
}
.hero-box { max-width: 1520px; margin-inline: auto; width: 100%; padding: 0 var(--gut) clamp(2.2rem, 5vw, 4rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: #6ECDD3; }
.hero p { color: rgba(255,255,255,.84); max-width: 46ch; margin-top: 1.3rem; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.page-head { background: var(--ink); color: #fff; padding: clamp(3.4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.4rem); }
.page-head h1 { color: #fff; max-width: 17ch; }
.page-head p { color: rgba(255,255,255,.78); margin-top: 1.2rem; max-width: 56ch; font-size: 1.08rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3.6rem, 8vw, 6.6rem) 0; }
.sec-sand { background: var(--sand); }
.sec-ink { background: var(--ink); color: #fff; }
.sec-ink h2, .sec-ink h3 { color: #fff; }
.sec-ink p { color: rgba(255,255,255,.76); }

.sec-head { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: end; }
  .sec-head p { margin-bottom: 0; }
}

/* ---------- Kennzahlen ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sec-ink .facts { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.16); }
.fact { background: var(--paper); padding: 1.9rem 1.6rem; }
.sec-ink .fact { background: var(--ink); }
.fact .num { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.7rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact .lbl { font-size: .84rem; color: var(--ink-soft); margin-top: .6rem; letter-spacing: .02em; }
.sec-ink .fact .lbl { color: rgba(255,255,255,.66); }

/* ---------- Flaechen-Karten ---------- */
.cards { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .cards.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card .shot { aspect-ratio: 4 / 3; overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .shot img { transform: scale(1.035); }
.card .body { padding: 1.7rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card .body p { font-size: .97rem; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: .9rem; font-weight: 600; font-size: .92rem; color: var(--accent); display: inline-flex; gap: .45rem; }
.card:hover .more .arr { transform: translateX(4px); }
.card .more .arr { transition: transform .18s ease; }

/* ---------- Split (Bild + Text) ---------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip .split-media { order: 2; }
}
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 3/4; }

/* ---------- Merkmalsliste ---------- */
.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .82rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .56em;
  width: 9px; height: 9px; background: var(--accent);
}
.sec-ink .ticks li::before { background: #5FC3C9; }

/* ---------- Datenblatt ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec th, .spec td { text-align: left; padding: .95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; font-weight: 600; }
.spec td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sec-ink .spec th, .sec-ink .spec td { border-color: rgba(255,255,255,.18); }
.sec-ink .spec td { color: rgba(255,255,255,.76); }

.tbd { color: var(--accent); font-weight: 600; background: rgba(15,123,130,.09); padding: 1px 7px; border-radius: 2px; white-space: nowrap; }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .95rem .8rem; color: #fff; font-size: .84rem; font-weight: 500;
  background: linear-gradient(180deg, rgba(16,23,28,0), rgba(16,23,28,.8));
}
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 2/1; }

/* ---------- CTA-Band ---------- */
.band { background: var(--accent); color: #fff; }
.band .band-in { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 880px) { .band .band-in { grid-template-columns: 1.4fr auto; gap: 3rem; } }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.9); margin-bottom: 0; }
.band .btn-ghost { color: #fff; border-color: #fff; }
.band .btn-ghost:hover { background: #fff; color: var(--accent-dk); }

/* ---------- Formular ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .83rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .92rem 1rem; font: inherit; font-size: .98rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
.form-note { font-size: .88rem; color: var(--ink-soft); }
.form-out {
  display: none; margin-top: 1.4rem; padding: 1.4rem 1.5rem;
  background: var(--sand); border-left: 3px solid var(--accent);
}
.form-out.show { display: block; }
.form-out pre {
  white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem; line-height: 1.6; margin: .9rem 0 1rem; color: var(--ink);
}

/* ---------- Kontaktkarten ---------- */
.contact-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.cc { background: var(--paper); padding: 1.8rem 1.6rem; }
.cc h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.cc p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .4rem; }
.cc a { color: var(--accent); text-decoration: none; font-weight: 600; word-break: break-word; }
.cc a:hover { text-decoration: underline; }

/* ---------- Prosa (Impressum, Datenschutz) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 2.6rem 0 .9rem; }
.prose h3 { font-size: 1.1rem; margin: 1.9rem 0 .6rem; }
.prose p, .prose li { font-size: .99rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(3rem, 6vw, 4.6rem) 0 2rem; font-size: .93rem; }
.foot-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-foot h4 { font-family: var(--body); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #5FC3C9; margin: 0 0 1rem; font-weight: 600; }
.site-foot a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-foot .logo .word, .site-foot .logo .sub { color: #fff; }
.site-foot .logo .mark { background: #fff; }
.site-foot .logo .mark::after { background: var(--accent); }
.foot-bar {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.52);
}

/* ---------- Status-Kennzeichnung ---------- */
.badge {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .36rem .72rem; border-radius: 2px; margin-bottom: 1rem;
}
.badge-frei { background: var(--accent); color: #fff; }
.badge-vermietet { background: var(--line); color: var(--ink-soft); }
.sec-ink .badge-vermietet { background: rgba(255,255,255,.18); color: rgba(255,255,255,.8); }

.card .badge { position: absolute; top: 1rem; left: 1rem; margin: 0; z-index: 2; }
.card .shot { position: relative; }

.is-let { opacity: .72; }
.is-let .split-media img { filter: grayscale(.45); }

/* ---------- Cookie-Banner ---------- */
.foot-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: rgba(255,255,255,.76); text-decoration: none;
}
.foot-link:hover { color: #fff; text-decoration: underline; }

.cc-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(16,23,28,.5);
}
.cc {
  position: fixed; z-index: 91;
  left: 0; right: 0; bottom: 0;
  padding: var(--gut);
  display: flex; justify-content: center;
}
.cc[hidden], .cc-overlay[hidden] { display: none; }
.cc-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  max-width: 660px; width: 100%;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  max-height: calc(100vh - 2 * var(--gut));
  overflow-y: auto;
  box-shadow: 0 18px 50px rgba(16,23,28,.28);
}
.cc-h { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: .8rem; }
.cc-p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.cc-p a { color: var(--accent); }

.cc-opts { display: grid; gap: .9rem; margin-bottom: 1.4rem; }
.cc-opt {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .9rem 1rem; background: var(--sand); cursor: pointer;
}
.cc-opt input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--accent); }
.cc-opt input:disabled { cursor: default; }
.cc-opt strong { display: block; font-size: .94rem; margin-bottom: .2rem; }
.cc-opt em { display: block; font-style: normal; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }

.cc-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
/* Akzeptieren und Ablehnen gleich gross und gleich prominent — Vorgabe der Aufsichtsbehoerden */
.cc-actions .btn { flex: 1 1 190px; justify-content: center; padding: .95rem 1.3rem; }
.cc-link {
  background: none; border: 0; padding: .95rem .4rem; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.cc-link:hover { color: var(--ink); }
@media (max-width: 560px) {
  .cc-actions .btn { flex: 1 1 100%; }
}

/* ---------- Entfernungstabelle ---------- */
.dist { width: 100%; border-collapse: collapse; font-size: .97rem; }
.dist caption { text-align: left; font-size: .84rem; color: var(--ink-soft); padding-bottom: .9rem; }
.dist th, .dist td { padding: .82rem .6rem; border-bottom: 1px solid var(--line); }
.dist thead th {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; border-bottom-width: 2px; border-bottom-color: var(--ink);
}
.dist th:first-child, .dist td:first-child { padding-left: 0; text-align: left; }
.dist td:last-child, .dist th:last-child { padding-right: 0; }
.dist td + td, .dist th + th { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dist tbody th { font-weight: 500; text-align: left; }
.dist tbody tr:first-child th, .dist tbody tr:first-child td { font-weight: 700; color: var(--accent); }
@media (max-width: 560px) {
  .dist { font-size: .9rem; }
  .dist th, .dist td { padding: .7rem .35rem; }
}

/* ---------- Grundriss mit Legende ---------- */
.plan { background: var(--paper); border: 1px solid var(--line); padding: clamp(1rem, 2.5vw, 1.8rem); }
.sec-sand .plan { background: var(--paper); }
.plan img { width: 100%; height: auto; }
.plan-head { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: baseline; margin-bottom: 1.2rem; }
.plan-head h3 { font-size: 1.15rem; }
.plan-head span { font-size: .9rem; color: var(--ink-soft); }
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--ink-soft); }
.legend i { width: 15px; height: 15px; border-radius: 2px; border: 1.5px solid; flex: 0 0 15px; }
.lg-buero   { background: #D5E8E9; border-color: #0F7B82; }
.lg-lager   { background: #DBE2E7; border-color: #5B7B8C; }
.lg-storage { background: #EFE4D4; border-color: #AE8755; }
.lg-technik { background: #E2E8DF; border-color: #86997E; }
.lg-fremd   { background: #E7E4DE; border-color: #AEAAA1; }
.lg-dach    { background: #F2F0EB; border-color: #CFCBC2; border-style: dashed; }

/* ---------- Flächeneinheit ---------- */
.unit { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.unit .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  margin-bottom: .9rem;
}
.unit h3 { margin-bottom: .3rem; }
.unit .size { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--accent); margin-bottom: .8rem; }
.unit p { font-size: .97rem; color: var(--ink-soft); }
.unit .ticks li { font-size: .94rem; }
.units { display: grid; gap: clamp(1.8rem, 3.5vw, 2.8rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .units.two { grid-template-columns: 1fr 1fr; } }
