/* ============================================================
   Nordsee Immobilien – Basis-Styles
   Design „Husum Panorama": Marineblau, Serifen, Beige
   Theme-Variablen können in theme-<name>.css überschrieben werden.
   ============================================================ */

:root {
  --color-primary: #1e3a52;
  --color-primary-dark: #142a3d;
  --color-accent: #d3b98c;
  --color-accent-ink: #a07f4c;
  --color-accent-soft: rgba(211, 185, 140, 0.16);
  --color-steel: #8fb6d4;
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --surface: #ffffff;
  --text: #24313d;
  --text-muted: #5f6d7a;
  --border: #e3e7eb;
  --success: #1e7e34;
  --danger: #b02a37;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 6px 24px rgba(20, 42, 61, 0.07);
  --shadow-lg: 0 24px 60px rgba(20, 42, 61, 0.16);
  --heading-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --hero-overlay:
    linear-gradient(90deg, rgba(12, 26, 39, 0.72) 0%, rgba(12, 26, 39, 0.38) 45%, rgba(12, 26, 39, 0.12) 100%),
    linear-gradient(180deg, rgba(12, 26, 39, 0.18) 0%, rgba(12, 26, 39, 0.05) 55%, rgba(12, 26, 39, 0.42) 100%);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url('/img/wm-sea.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.admin {
  background-image: none;
  background-attachment: scroll;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-ink); }

h1, h2, h3, h4 { font-family: var(--heading-font); color: var(--color-primary); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: 0.8rem; }
.section-head h1 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.2rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; scroll-margin-top: 84px; }
/* Anker-Ziele: Versatz für den sticky Header (alle ids, egal welches Element) */
[id]:target { scroll-margin-top: 112px; }
.section-alt {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(rgba(244, 245, 247, 0.75), rgba(244, 245, 247, 0.75)),
    url('/img/wm-sand.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  body, .section-alt { background-attachment: scroll; }
}
.section-head {
  text-align: left; max-width: none; margin: 0 0 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: end;
}
.section-head .eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; font-weight: 700; color: #9aa8b4; margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 0; max-width: 640px; }
.section-head .side-text { color: var(--text-muted); font-size: 0.92rem; max-width: 320px; padding-bottom: 6px; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center .eyebrow { color: var(--color-accent-ink); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: all 0.18s ease;
  font-family: var(--body-font); text-align: center; line-height: 1.3;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-accent { background: var(--color-accent); color: #203449; }
.btn-accent:hover { filter: brightness(1.06); color: #203449; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-light:hover { background: #fff; color: var(--color-primary); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-primary);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding: 13px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { background: #fff; border-radius: 6px; padding: 5px; line-height: 0; }
.brand-logo img { height: 56px; width: 56px; object-fit: contain; }
.brand-name {
  font-family: var(--heading-font); font-size: 1.28rem; color: #fff;
  font-weight: 700; line-height: 1.15; letter-spacing: 0.01em;
}
.brand-name small {
  display: block; font-family: var(--body-font); font-weight: 500; font-size: 0.64rem;
  color: var(--color-steel); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px;
}
.brand:hover .brand-name { color: #fff; }

.main-nav ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 4px;
  color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.94rem;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.header-cta { display: flex; align-items: center; }
.btn-cta {
  background: var(--color-steel); color: #12293c; border-radius: 8px;
  font-weight: 700; font-size: 0.88rem; padding: 11px 22px;
}
.btn-cta:hover { background: #a9c9e0; color: #12293c; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.35); border-radius: 4px;
  padding: 8px 11px; cursor: pointer; font-size: 1.2rem; color: #fff;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-primary-dark); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 14px 24px; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background-size: cover; background-position: center 35%; color: #fff;
}
.hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 780px; padding: 120px 0 150px; }
.hero .eyebrow {
  display: block; letter-spacing: 0.26em; text-transform: uppercase;
  font-size: 0.78rem; font-weight: 600; color: var(--color-steel);
  line-height: 2.1; margin-bottom: 22px;
}
.hero h1 {
  color: #fff; margin-bottom: 22px;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.14; font-weight: 500;
  max-width: 700px;
}
.hero .tagline {
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 40px;
}
.hero .tagline .hl { color: var(--color-steel); }
.hero-actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.btn-hero {
  background: var(--color-accent); color: #203449; border-radius: 6px;
  padding: 17px 30px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.btn-hero:hover { filter: brightness(1.07); color: #203449; }
.btn-hero .arrow { margin-left: 4px; }
.hero-note { font-size: 0.86rem; color: rgba(255,255,255,0.82); max-width: 230px; line-height: 1.55; }
@media (max-width: 700px) {
  .hero { min-height: 560px; }
  .hero-content { padding: 90px 0 130px; }
}

/* ---------- Marktwert-Card (überlappend) ---------- */
.marktwert-wrap { position: relative; z-index: 5; margin-top: -96px; }
.marktwert-card {
  background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 34px 38px 28px; border: 1px solid rgba(227,231,235,0.8);
}
.mt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.mt-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 0; }
.mt-head p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.mt-form { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr auto; gap: 16px; align-items: end; }
.mt-field label {
  display: block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.64rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px;
}
.mt-field input {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 14px; font-size: 0.9rem; font-family: var(--body-font);
  color: var(--text); background: #fbfcfd;
}
.mt-field input:focus { outline: 2px solid var(--color-steel); outline-offset: 0; border-color: transparent; background: #fff; }
.mt-btn {
  background: var(--color-primary); color: #fff; border: none; cursor: pointer;
  border-radius: 6px; padding: 16px 26px; font-family: var(--body-font);
  font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.6; min-width: 190px; transition: background 0.18s ease;
}
.mt-btn:hover { background: var(--color-primary-dark); }
.mt-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 16px; }
@media (max-width: 900px) { .mt-form { grid-template-columns: 1fr 1fr; } .mt-btn { min-width: 0; } }
@media (max-width: 560px) {
  .mt-form { grid-template-columns: 1fr; }
  .marktwert-card { padding: 26px 22px; }
  .marktwert-wrap { margin-top: -70px; }
}

/* ---------- Property Cards ---------- */
.grid-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .grid-props { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-props { grid-template-columns: 1fr; } }

.prop-card {
  background: var(--surface); border: 1px solid #eceff2; border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prop-card .thumb { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--bg-alt); display: block; }
.prop-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.prop-card:hover .thumb img { transform: scale(1.05); }
.prop-card .thumb .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--color-primary); color: #fff; font-size: 0.64rem; font-weight: 700;
  padding: 7px 14px; border-radius: 8px; letter-spacing: 0.14em; text-transform: uppercase;
}
.prop-card .thumb .badge.sold { background: var(--danger); }
.prop-card .thumb .badge.reserved { background: var(--color-accent-ink); }
.prop-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prop-card .price { font-weight: 800; font-size: 1.06rem; color: var(--color-primary); letter-spacing: 0.01em; }
.prop-card .body h3 { font-size: 1.05rem; line-height: 1.4; font-weight: 600; }
.prop-card .body h3 a { color: var(--color-primary); }
.prop-card .body h3 a:hover { color: var(--color-accent-ink); }
.prop-card .loc { font-size: 0.82rem; color: var(--text-muted); }
.prop-card .facts {
  display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.82rem; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}
.prop-card .facts span + span::before { content: '·'; margin: 0 9px; color: #b3bec7; }
.prop-card .link-more {
  margin-top: 14px; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-primary);
}
.prop-card .link-more::after { content: '→'; margin-left: 8px; }
.prop-card .link-more:hover { color: var(--color-accent-ink); }
/* Verkaufte Objekte: in Listen sichtbar, aber nicht aufrufbar (keine Links) */
.prop-card.sold,
.prop-card.sold .thumb,
.prop-card.sold .thumb img { cursor: default; }
.prop-card.sold:hover { transform: none; box-shadow: none; }
.prop-card.sold:hover .thumb img { transform: none; }
.prop-card.sold .link-more.sold-note { color: var(--text-muted); }
.prop-card.sold .link-more.sold-note::after { content: ''; }
.prop-card.sold .link-more.sold-note:hover { color: var(--text-muted); }

/* ---------- Filter-Leiste ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 18px; margin-bottom: 36px; box-shadow: var(--shadow);
}
.filter-bar input[type="search"], .filter-bar select {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.92rem; background: #fbfcfd; color: var(--text); min-width: 160px;
  font-family: var(--body-font);
}
.filter-bar input[type="search"] { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { outline: 2px solid var(--color-steel); border-color: transparent; background: #fff; }

/* ---------- Geschichte / Timeline ---------- */
.history-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .history-grid { grid-template-columns: 1fr; } }
.history-text .lead { color: var(--text-muted); margin-bottom: 30px; }
.timeline { list-style: none; border-left: 2px solid var(--border); margin-left: 7px; padding-left: 28px; }
.timeline li { position: relative; padding-bottom: 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -34.5px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-accent); border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--border);
}
.timeline .tl-year { font-family: var(--heading-font); font-weight: 700; color: var(--color-primary); font-size: 1.08rem; display: block; margin-bottom: 4px; }
.timeline p { color: var(--text-muted); font-size: 0.93rem; }
.history-img {
  border-radius: 10px; box-shadow: var(--shadow-lg); width: 100%;
  aspect-ratio: 4/4.7; object-fit: cover;
}
.history-photos { display: grid; gap: 20px; }
.history-photos .history-img { aspect-ratio: 3/2; }

/* ---------- Dienstleistungskarten ---------- */
.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .service-cards { grid-template-columns: 1fr; } }
.service-card {
  background: var(--color-primary); color: #fff; border-radius: 10px;
  padding: 40px 38px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 280px;
}
.service-card .num {
  font-family: var(--heading-font); font-size: 3.6rem; font-weight: 700;
  color: rgba(255,255,255,0.13); line-height: 1; margin-bottom: 20px;
}
.service-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 14px; font-weight: 600; }
.service-card p { color: rgba(255,255,255,0.78); font-size: 0.94rem; margin-bottom: 28px; }
.service-card .sc-foot {
  margin-top: auto; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-accent);
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: start; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-photo { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.7; background: var(--color-primary-dark); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.team-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 20px;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 33, 0.85));
}
.team-photo .cap-name { color: #fff; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.95rem; }
.team-photo .cap-sub { color: rgba(255,255,255,0.72); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 5px; }
.team-fallback {
  height: 100%; min-height: 320px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 40px;
}
.team-fallback img {
  height: 120px; background: #fff; border-radius: 10px; padding: 12px;
}
.team-fallback .cap-name { font-size: 1.05rem; }
.team-fallback .cap-sub { font-size: 0.7rem; }
.person-card {
  background: var(--surface); border: 1px solid #eceff2; border-radius: 8px;
  padding: 26px 30px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.person-card:last-child { margin-bottom: 0; }
.person-card h3 { font-size: 1.32rem; font-weight: 700; }
.person-card .role {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent-ink); margin: 8px 0 14px;
}
.person-card p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--color-primary); color: #fff; text-align: left; }
.cta-band .eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; font-weight: 700; color: var(--color-steel); margin-bottom: 14px;
}
.cta-band h2 { color: #fff; max-width: 720px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 620px; margin: 10px 0 0; }
.cta-band .btn { margin-top: 26px; }
.region-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.region-tags span {
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.85);
  border-radius: 8px; padding: 9px 19px; font-size: 0.82rem;
}

/* ---------- Detailseite ---------- */
.detail-hero {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16/8; background: var(--bg-alt); box-shadow: var(--shadow);
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0;
  cursor: pointer; aspect-ratio: 4/3; background: none;
}
.gallery-thumbs button.active { border-color: var(--color-accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-grid { display: grid; grid-template-columns: 1fr 370px; gap: 44px; align-items: start; }
@media (max-width: 940px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-main h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; font-weight: 600; }
.detail-main .loc-line { color: var(--text-muted); margin-bottom: 22px; }
.detail-main .desc { color: var(--text); }
.detail-main .desc p { margin-bottom: 1em; }
.detail-main h3 { margin: 28px 0 10px; }

.facts-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px; box-shadow: var(--shadow); position: sticky; top: 96px;
}
.facts-panel .price-line { font-size: 1.7rem; font-weight: 800; color: var(--color-primary); font-family: var(--body-font); letter-spacing: 0.01em; }
.facts-panel .price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; }
.facts-panel .btn { margin-bottom: 6px; }
.facts-list { list-style: none; border-top: 1px solid var(--border); margin-top: 16px; }
.facts-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.facts-list li span:first-child { color: var(--text-muted); }
.facts-list li span:last-child { font-weight: 600; text-align: right; }

.energy-box { margin-top: 18px; background: var(--bg-alt); border-radius: 6px; padding: 16px 18px; font-size: 0.85rem; }
.energy-box b { color: var(--color-primary); }
.energy-class {
  display: inline-block; padding: 2px 10px; border-radius: 4px; color: #fff;
  font-weight: 700; font-size: 0.8rem;
}
.ec-a { background: #1a7a1a; } .ec-b { background: #4d8a1a; } .ec-c { background: #9a9a14; }
.ec-d { background: #c79114; } .ec-e { background: #d2691e; } .ec-f { background: #cc4411; } .ec-g { background: #a31515; }

.feature-list { list-style: none; columns: 2; gap: 30px; }
.feature-list li { padding: 6px 0 6px 28px; position: relative; font-size: 0.95rem; break-inside: avoid; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent-ink); font-weight: 700; }
@media (max-width: 560px) { .feature-list { columns: 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8, 15, 24, 0.94);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 78vh; border-radius: 4px; object-fit: contain; }
.lightbox .lb-caption { color: rgba(255,255,255,0.8); margin-top: 14px; font-size: 0.95rem; }
.lightbox .lb-count { color: rgba(255,255,255,0.55); margin-top: 6px; font-size: 0.85rem; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; transform: none; }

/* ---------- Über uns / Kontakt ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { margin-bottom: 1em; color: var(--text); }
.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .value-cards, .value-cards.cols-2 { grid-template-columns: 1fr; } }
.value-card {
  background: var(--surface); border: 1px solid #eceff2; border-radius: 8px;
  padding: 30px; box-shadow: var(--shadow);
}
.value-card .ico {
  width: 52px; height: 52px; border-radius: 6px; background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px;
}
.value-card h3 { margin-bottom: 10px; font-weight: 700; }
.value-card p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ci-ico {
  width: 46px; height: 46px; border-radius: 6px; background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item b { display: block; color: var(--color-primary); }
.contact-item span, .contact-item a { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Formular ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 32px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; color: var(--color-primary); }
.form-group label .req { color: var(--danger); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.94rem; font-family: var(--body-font); color: var(--text); background: #fbfcfd;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: 2px solid var(--color-steel); border-color: transparent; background: #fff;
}
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }
.alert { padding: 14px 18px; border-radius: 6px; font-size: 0.95rem; margin-bottom: 18px; }
.alert-success { background: rgba(30,126,52,0.1); color: var(--success); border: 1px solid rgba(30,126,52,0.3); }
.alert-error { background: rgba(176,42,55,0.08); color: var(--danger); border: 1px solid rgba(176,42,55,0.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.9fr; gap: 48px; padding-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: rgba(255,255,255,0.5); font-family: var(--body-font); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-bottom: 20px;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 0.92rem; line-height: 1.6; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand .brand-logo { border-radius: 6px; padding: 4px; }
.footer-brand .brand-logo img { height: 46px; width: 46px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name small { color: var(--color-steel); }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.62); max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: #fff; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 20px; }
.notfound .big { font-size: 5.5rem; font-family: var(--heading-font); color: var(--color-primary); line-height: 1; }

/* ---------- Legal ---------- */
.legal-content h2 { margin-top: 32px; }
.legal-content h3 { margin: 24px 0 8px; }
.legal-content p { margin-bottom: 1em; color: var(--text); }
.legal-content ul { margin: 0 0 1em 22px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.84rem; color: var(--text-muted); padding: 22px 0 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--color-accent-ink); }

/* ---------- Leerzustände ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.empty-state .ico { font-size: 2.6rem; margin-bottom: 12px; }

/* ---------- Navigation: Leistungen-Dropdown ---------- */
.nav-drop { position: relative; }
.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 264px;
  background: var(--color-primary-dark); border-radius: 8px; padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { padding: 11px 14px; font-size: 0.88rem; color: rgba(255,255,255,0.75); border-radius: 9px; }
.nav-sub a:hover { color: #fff; background: rgba(255,255,255,0.08); }
@media (max-width: 980px) {
  .main-nav { max-height: 0; }
  .main-nav.open { max-height: 640px; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; box-shadow: none; padding: 0 0 8px 20px; min-width: 0;
    border-left: 2px solid rgba(255,255,255,0.14); margin-left: 14px;
  }
  .nav-sub a { font-size: 0.92rem; color: rgba(255,255,255,0.6); padding: 9px 8px; }
}

/* ---------- Google-Bewertungen ---------- */
.reviews-layout { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: stretch; }
.review-aggregate {
  background: var(--color-primary-dark); color: #fff; border-radius: 10px;
  padding: 34px 30px; display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.review-aggregate::before {
  content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px;
  border-radius: 50%; background: var(--color-steel); opacity: 0.14;
}
.g-mark {
  width: 54px; height: 54px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28); position: relative; z-index: 1;
}
.ra-score { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.ra-score .num { font-family: var(--heading-font); font-size: 3.6rem; line-height: 1; color: var(--color-accent); font-weight: 700; }
.ra-score .stars { color: var(--color-accent); font-size: 1.05rem; letter-spacing: 2px; }
.ra-count { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 600; color: var(--color-steel); position: relative; z-index: 1; }
.review-aggregate > p { font-size: 0.92rem; line-height: 1.65; color: rgba(255,255,255,0.72); position: relative; z-index: 1; }
.review-aggregate .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.review-cards { display: grid; gap: 22px; align-content: center; }
.review-card {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px 30px; box-shadow: var(--shadow);
}
.review-card .stars { color: var(--color-accent); letter-spacing: 3px; font-size: 0.95rem; margin-bottom: 12px; }
.review-card > p { font-family: var(--heading-font); font-size: 1.12rem; line-height: 1.75; color: var(--text); }
.review-card footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.rv-author { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.rv-src { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
@media (max-width: 900px) { .reviews-layout { grid-template-columns: 1fr; } }

/* ---------- Geschichte: Zitat ---------- */
.history-text .quote {
  font-family: var(--heading-font); font-size: 1.5rem; line-height: 1.45;
  color: var(--color-primary); border-left: 3px solid var(--color-accent);
  padding-left: 22px; margin-bottom: 28px; font-weight: 500;
}

/* ---------- Servicetreffer: Karten-Links ---------- */
.service-card .sc-foot a { color: var(--color-accent); }
.service-card .sc-foot a:hover { color: #fff; }

/* ---------- Immobilienschwerpunkte ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.focus-tile {
  display: block; background: var(--surface); border: 1px solid #eceff2;
  border-radius: 8px; padding: 26px 24px 24px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.focus-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.ft-ico {
  width: 44px; height: 44px; border-radius: 6px; background: var(--color-accent-soft);
  color: var(--color-primary); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.ft-ico svg { width: 22px; height: 22px; }
.focus-tile h3 { font-size: 1.02rem; line-height: 1.35; font-weight: 600; }

/* ---------- CTA-Band: Qualitätsanspruch ---------- */
.cta-band .cta-lead { max-width: 820px; margin: 16px 0 0; text-align: left; line-height: 1.75; font-size: 0.98rem; color: rgba(255,255,255,0.82); }
.cta-band .cta-motto {
  font-family: var(--heading-font); font-style: italic; font-size: 1.3rem;
  color: var(--color-accent); margin: 30px 0 0; letter-spacing: 0.02em;
}

/* ---------- Leistungsseiten (Verkauf / Vermietung) ---------- */
.page-intro { max-width: 840px; margin-bottom: 40px; }
.page-intro p { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.sub-h { font-family: var(--heading-font); font-size: 1.45rem; color: var(--color-primary); margin: 8px 0 20px; font-weight: 600; }
.service-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 34px; max-width: 980px; }
.service-list li { position: relative; padding-left: 30px; line-height: 1.55; font-size: 0.95rem; color: var(--text); }
.service-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-ink);
  font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }
.feature-box {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--color-accent); border-radius: 10px;
  padding: 34px 36px; max-width: 980px; box-shadow: var(--shadow);
}
.feature-box h3 { font-size: 1.35rem; margin-bottom: 14px; font-weight: 600; }
.feature-box p { font-size: 0.97rem; line-height: 1.75; color: var(--text); }
.feature-box .fb-close { font-weight: 600; color: var(--text); }
.feature-box-special { border-left-color: var(--color-steel); background: linear-gradient(135deg, var(--surface), rgba(211, 185, 140, 0.1)); }
.page-cta {
  margin-top: 52px; background: var(--color-primary); color: #fff; border-radius: 10px;
  padding: 46px 40px; text-align: center; max-width: 780px; margin-left: auto; margin-right: auto;
}
.page-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; font-weight: 600; }
.page-cta > p { color: rgba(255,255,255,0.78); margin-bottom: 26px; font-size: 0.98rem; }
.page-cta .btn { display: inline-block; }
.cta-alt { display: block; margin-top: 18px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.cta-alt a { color: #fff; font-weight: 600; }

/* Honey-Trap: unsichtbares Honeypot-Formularfeld (Bots füllen es aus, Menschen sehen es nie) */
.hp-wrap { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- Datenschutz: Einwilligung-Checkbox in Formularen ---------- */
.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 0;
  padding: 12px 14px;
  background: var(--bg-alt, #f4f5f7);
  border: 1px solid var(--border, #e3e7eb);
  border-radius: var(--radius, 6px);
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text, #24313d);
  cursor: pointer;
}
/* Kontaktformular: Abstand zur darunterliegenden Submit-Button-Zeile */
.form-card .consent-check {
  margin-bottom: 14px;
}
.consent-check input {
  flex: none;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary, #1e3a52);
}
.consent-check a {
  color: var(--color-primary, #1e3a52);
  font-weight: 600;
}
.consent-check .req {
  color: var(--danger, #b02a37);
}
/* Marktwert-Grid: Checkbox breitet sich über alle Spalten aus (sonst neue auto-Spalte) */
.mt-form .consent-check {
  grid-column: 1 / -1;
}
