/* ==========================================================================
   Website: Kopf, Fuss, Startseite, Objekte, Lageplan, Konto, Rechtliches.
   ========================================================================== */

/* ---- Kopfzeile ---- */
.site-header { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 1.35rem var(--font-display); }
.brand-name { font: 600 1.2rem var(--font-display); letter-spacing: -.01em; }
.site-header nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.site-header nav a { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; }
.site-header nav a:hover { background: var(--brand-soft); }
.site-header nav a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }

/* ---- Fusszeile mit Kontakt ---- */
.site-footer { background: var(--brand-dark); color: #c5d6d0; margin-top: 88px; padding: 52px 0 24px; font-size: .85rem; }
.site-footer a { color: #e4eeea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1fr 2.4fr .7fr; gap: 36px; }
.foot-brand .brand-name { color: #fff; font-size: 1.3rem; }
.foot-brand p { margin: 10px 0 0; color: #9fb7af; max-width: 34ch; }
.foot-h { margin: 0 0 12px; color: #fff; font: 700 .78rem var(--font-body); text-transform: uppercase; letter-spacing: .12em; }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; }
.fc-meta { margin: 0 0 10px; color: #9fb7af; font-size: .82rem; }
.fc-table { display: flex; flex-direction: column; }
.fc-row { display: grid; grid-template-columns: 112px 128px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); font-size: .84rem; }
.fc-row:first-child { border-top: 1px solid rgba(255, 255, 255, .09); }
.fc-name { color: #fff; font-weight: 600; }
.fc-phone { white-space: nowrap; }
.fc-mail { overflow-wrap: anywhere; }
.fc-row:last-child .fc-name { color: #9fb7af; font-weight: 500; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #86a198; font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .fc-row { grid-template-columns: 1fr; gap: 0; padding: 9px 0; } }

/* ---- Startseite ---- */
.hero { position: relative; color: #fff; padding: clamp(64px, 11vw, 132px) 0 clamp(84px, 12vw, 140px); overflow: hidden;
  background: radial-gradient(900px 420px at 85% 0%, rgba(185, 112, 43, .28), transparent 70%), linear-gradient(135deg, var(--brand-dark) 0%, #15453d 60%, #1c5a4e 100%); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='96' viewBox='0 0 120 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.5'%3E%3Crect x='6' y='10' width='48' height='76' rx='3'/%3E%3Cpath d='M6 26h48M6 42h48M6 58h48M6 74h48'/%3E%3Crect x='66' y='10' width='48' height='76' rx='3'/%3E%3Cpath d='M66 26h48M66 42h48M66 58h48M66 74h48'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 90%); mask-image: linear-gradient(100deg, transparent 20%, #000 90%); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 16ch; }
.hero p.lead { max-width: 56ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #cfe0da; margin-bottom: 0; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: #f0c9a3; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--accent); }

.statbar { position: relative; margin-top: -52px; z-index: 2; }
.statbar .inner { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.statbar .item { padding: 22px 26px; border-right: 1px solid var(--line); }
.statbar .item:last-child { border-right: 0; }
.statbar b { display: block; font: 600 2.2rem/1.1 var(--font-display); color: var(--brand); }
.statbar span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .statbar .item { border-right: 0; border-bottom: 1px solid var(--line); } .statbar .item:last-child { border-bottom: 0; } }

section.block { padding-top: clamp(56px, 8vw, 96px); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.type-card { padding: 24px 22px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.type-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.type-ico .icon { width: 28px; height: 28px; }
.type-card p { color: var(--muted); font-size: .94rem; margin: 0; }

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about p { font-size: 1.05rem; }
.quote { background: var(--brand); color: #fff; border-radius: 18px; padding: clamp(28px, 4vw, 44px); position: relative; box-shadow: var(--shadow-lg); }
.quote::before { content: '\201E'; position: absolute; top: 2px; left: clamp(28px, 4vw, 44px); font: 700 4.4rem/1 var(--font-display); color: rgba(255, 255, 255, .18); }
.quote p { position: relative; font: 600 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--font-display); margin: 44px 0 0; }
.quote small { display: block; margin-top: 18px; color: #bfd6cf; letter-spacing: .04em; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step { padding: 26px 24px 24px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 1.25rem var(--font-display); display: grid; place-items: center; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

.cta { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: #cfe0da; max-width: 50ch; }

/* ---- Objektkarten ---- */
a.prop-card { text-decoration: none; color: inherit; display: block; transition: transform .18s, box-shadow .18s; }
a.prop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.prop-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-soft), var(--rent-soft)); display: grid; place-items: center; color: var(--muted); overflow: hidden; font-size: .9rem; }
.prop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prop-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.prop-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---- Seitenkopf der Unterseiten ---- */
.page-hero { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 6px; }
.page-hero p { margin: 0; }
.page-head { padding-top: 40px; }
.narrow-text { max-width: 640px; }
.crumbs { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---- Objektseite und Lageplan ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; margin-top: 28px; }
@media (max-width: 920px) { .layout { grid-template-columns: 1fr; } }

.side { position: sticky; top: 90px; }
@media (max-width: 920px) { .side { position: static; } }
.side .pad { padding: 24px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.list-head h2 { margin: 0; }
.list-head + .filters { margin-top: 14px; }

/* ---- Warteliste ---- */
.wl-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.wl-list { max-height: 300px; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line); border-radius: 9px; padding: 4px 14px; background: var(--bg); }
.wl-row { padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.wl-row:last-child { border-bottom: 0; }
.wl-row input { margin-top: 0; }

/* ---- Konto und Rechtliches ---- */
.account-card { margin-bottom: 12px; }
.legal { padding-top: 40px; }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }

/* ---- Hallensegmente, Auswahl und Leuchten (Zufahrt + angrenzende Segmente) ---- */
.pick-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.pick-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; background: var(--bg); border-radius: 8px; font-size: .92rem; }
.pick-total { display: flex; justify-content: space-between; font-weight: 700; padding: 10px 0; border-top: 1px solid var(--line); }
.hint-box { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; font-size: .92rem; margin: 12px 0; }
.seg-toggle { margin-top: 16px; }
.seg-toggle summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
