/* Ziebuhr Vermietung — Designsystem v1 (2026-07-23)
   Töne: Anthrazit / Off-White / technisches Blau. Keine externen Fonts (DSGVO). */

:root {
  --ink: #2b2f36;
  --ink-soft: #4a5058;
  --paper: #f7f6f3;
  --white: #ffffff;
  --accent: #1e5a8a;
  --accent-dark: #164569;
  --line: #ddd9d2;
  --ok: #2e7d4f;
  --ph-bg: #fff3cd;
  --ph-border: #d9a400;
  --ph-ink: #6b5200;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

/* ---------- Staging-Banner ---------- */
.staging {
  background: repeating-linear-gradient(-45deg, #3a3f47, #3a3f47 14px, #2b2f36 14px, #2b2f36 28px);
  color: #ffe9a8;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}
.staging strong { color: #fff; }

/* ---------- Header ---------- */
header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand .name { font-weight: 700; font-size: 1.22rem; letter-spacing: 0.02em; }
.brand .claim { font-size: 0.8rem; color: var(--ink-soft); }
nav.main { display: flex; gap: 0.4rem 1.1rem; flex-wrap: wrap; align-items: center; }
nav.main a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a:focus-visible { color: var(--accent); }
nav.main a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
nav.main a.cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  border-bottom: none;
}
nav.main a.cta:hover, nav.main a.cta:focus-visible { background: var(--accent-dark); color: #fff; }

/* ---------- Layout ---------- */
main { display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }
section.block { padding: 3.2rem 0; }
section.block.tight { padding: 2.2rem 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.25; margin-bottom: 1rem; }
h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #262a31 0%, #343b46 60%, #3c4b5c 100%);
  color: #fff;
  padding: 4rem 0 4.4rem;
}
.hero h1 { color: #fff; margin: 0.3rem 0 0.9rem; }
.hero p { color: #d6dae0; font-size: 1.15rem; max-width: 44rem; }
.hero .eyebrow { color: #9cc3e5; }
.hero .actions { margin-top: 1.6rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(280px, 0.95fr);
  gap: 2.2rem;
  align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.rounded { border-radius: 12px; }
.shadow { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
figure.captioned figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.35rem; }
.hero figure.captioned figcaption { color: #aeb6bf; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--accent); color: #fff; }
.hero .btn.ghost { color: #fff; border-color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,0.15); }

/* ---------- Platzhalter ---------- */
.ph {
  display: inline-block;
  background: var(--ph-bg);
  border: 1px dashed var(--ph-border);
  color: var(--ph-ink);
  border-radius: 5px;
  padding: 0 0.45rem;
  font-size: 0.92em;
  font-weight: 600;
  white-space: normal;
}
.ph-note {
  background: var(--ph-bg);
  border: 1px dashed var(--ph-border);
  color: var(--ph-ink);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

/* ---------- Foto-Platzhalter ---------- */
.photo-ph {
  background: repeating-linear-gradient(-45deg, #e8e4dc, #e8e4dc 16px, #efece6 16px, #efece6 32px);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  min-height: 220px;
  padding: 1rem;
}
.photo-ph.tall { min-height: 320px; }
.photo-ph.small { min-height: 130px; font-size: 0.9rem; }

/* ---------- Karten & Grids ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
}
.card.muted { background: transparent; border-style: dashed; color: var(--ink-soft); }

.object-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr);
}
.object-card .photo-ph { border: none; border-radius: 0; min-height: 260px; }
@media (min-width: 761px) {
  .object-card > img { width: 100%; height: 100%; object-fit: cover; }
}
.object-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.object-card .price { font-size: 1.35rem; font-weight: 800; }
.object-card .price small { font-weight: 600; color: var(--ink-soft); font-size: 0.75em; }
@media (max-width: 760px) {
  .object-card { grid-template-columns: 1fr; }
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e4efe8;
  color: var(--ok);
  border: 1px solid #bcd9c7;
  width: fit-content;
}

/* ---------- Eckdaten-Tabelle (Werte zentriert) ---------- */
table.eckdaten {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
table.eckdaten th, table.eckdaten td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.eckdaten tr:last-child th, table.eckdaten tr:last-child td { border-bottom: none; }
table.eckdaten th { text-align: left; font-weight: 600; color: var(--ink-soft); width: 45%; }
table.eckdaten td { text-align: center; font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ---------- Listen ---------- */
ul.checks { list-style: none; display: grid; gap: 0.45rem; }
ul.checks li { padding-left: 1.6rem; position: relative; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
}
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq[open] summary { color: var(--accent); margin-bottom: 0.4rem; }

/* ---------- Formular ---------- */
form.contact { display: grid; gap: 0.9rem; max-width: 40rem; }
form.contact label { font-weight: 600; display: block; margin-bottom: 0.25rem; }
form.contact input, form.contact textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}
form.contact input:focus-visible, form.contact textarea:focus-visible,
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid #7fb1d8;
  outline-offset: 1px;
}
form.contact .hint { font-size: 0.88rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-notice {
  display: none;
  background: #e8f0f7;
  border: 1px solid #b9d2e6;
  color: var(--accent-dark);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
}
.form-notice.show { display: block; }

/* ---------- Kontaktleiste ---------- */
.contact-strip { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1rem; font-weight: 600; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #c9cdd3;
  padding: 2.2rem 0;
  margin-top: 3rem;
  font-size: 0.95rem;
}
footer.site a { color: #fff; }
footer.site .cols { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sonstiges ---------- */
.breadcrumb { font-size: 0.9rem; margin: 1.2rem 0 0; color: var(--ink-soft); }
.legal-note { font-size: 0.88rem; color: var(--ink-soft); }
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-top: 0.8rem; }

/* ---- v3 (2026-11-06): Galerie, Lightbox, Objekt-Kopfzeile, Nebenkosten ---- */
.objekt-meta { max-width: none; }
@media (min-width: 600px) { .objekt-meta .nw { white-space: nowrap; } }

.galerie-hero { display: block; cursor: zoom-in; }
.galerie-hero img { width: 100%; aspect-ratio: 4 / 3; max-height: 640px; object-fit: cover; }
.galerie-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 0.7rem; }
@media (max-width: 760px) { .galerie-grid { grid-template-columns: repeat(2, 1fr); } }
.galerie-grid a { position: relative; display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.galerie-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.2s ease; }
.galerie-grid a:hover img, .galerie-grid a:focus-visible img { transform: scale(1.04); }
.galerie-grid a.mehr::after {
  content: attr(data-mehr); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(43, 47, 54, 0.62); color: #fff; font-weight: 700; font-size: 1.15rem; text-align: center;
}
.galerie-grid a.versteckt { display: none; }
.galerie-aktion { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.grundriss-link { cursor: zoom-in; }

html.lb-offen { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 1000; background: rgba(16, 18, 22, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 3.2rem 4.2rem 1rem;
}
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 7.5rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-cap { color: #e9e7e2; font-size: 0.95rem; margin-top: 0.7rem; text-align: center; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.lb-count { color: #b9b5ad; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.9rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, 0.28); outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 0.7rem; right: 0.7rem; font-size: 1.4rem; }
.lb-prev { left: 0.7rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.7rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb { padding: 3.4rem 0.4rem 1rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.8rem; transform: none; }
  .lb-img { max-height: calc(100vh - 10rem); }
  .lb-cap { margin-bottom: 3.6rem; padding: 0 0.6rem; }
}

table.eckdaten td .nk { display: block; font-weight: 400; line-height: 1.5; }
table.eckdaten td .nk + .nk { margin-top: 0.35rem; }
table.eckdaten td .nk b { font-weight: 700; }
.flaechen .card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.flaechen .m2 { font-size: 0.95rem; color: var(--accent); white-space: nowrap; }

/* ---- Rechtstexte (Impressum, Datenschutz) — v3.1 2026-11-06 ---- */
.rechtstext { max-width: 46rem; }
.rechtstext h1 { margin-bottom: 0.3rem; }
.rechtstext .stand { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 2.2rem; }
.rechtstext h2 { font-size: 1.22rem; line-height: 1.35; margin: 2.2rem 0 0.75rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.rechtstext .stand + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.rechtstext p { margin: 0 0 0.85rem; }
.rechtstext p:last-child { margin-bottom: 0; }
.rechtstext ul { margin: 0.2rem 0 1rem; padding-left: 1.35rem; }
.rechtstext li { margin: 0.3rem 0; padding-left: 0.25rem; }
.rechtstext li::marker { color: var(--accent); }
.rechtstext a { overflow-wrap: anywhere; }
@media (max-width: 600px) { .rechtstext h2 { font-size: 1.12rem; margin-top: 1.8rem; padding-top: 1.3rem; } }
/* ---- Formular live (v4, 2026-11-06) ---- */
.form-notice.fehler { background: #fbeaea; border-color: #e3b4b4; color: #8a1f1f; }
form.contact [aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15); }
form.contact button[disabled] { opacity: 0.7; cursor: wait; }
/* ---- Teilen-Leiste im Footer (v5, 2026-11-06) ---- */
footer.site .teilen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
footer.site .teilen-label { font-weight: 600; color: #fff; margin-right: 0.3rem; }
footer.site .teilen-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent; color: #fff; font: inherit; font-size: 0.9rem; text-decoration: none; cursor: pointer; line-height: 1.2; }
footer.site .teilen-btn[hidden] { display: none; }
footer.site .teilen-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
footer.site .teilen-btn:hover, footer.site .teilen-btn:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: #fff; outline: none; }
footer.site .teilen-btn.ok { border-color: #7fd1a0; color: #bff0d0; }
@media (max-width: 600px) {
  footer.site .teilen-label { width: 100%; margin-bottom: 0.2rem; }
  footer.site .teilen-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  footer.site .teilen-btn { padding: 0.6rem; }
  footer.site .teilen-btn svg { width: 22px; height: 22px; }
}
