/* ============================================================
   Büroetage Bobinet Square — Landingpage styles
   Built on the Bobinet Square design tokens. Layout + section
   chrome only; primitives come from the design-system bundle.
   ============================================================ */

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 920px; }

/* ---------- Header ---------- */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hd__in { display: flex; align-items: center; gap: 20px; height: 70px; }
.hd__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hd__mark { width: 34px; height: 34px; display: block; }
.hd__brandtxt { display: flex; flex-direction: column; line-height: 1; }
.hd__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.hd__loc { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 3px; }
.hd__spacer { flex: 1; }
.hd__tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: var(--radius-sm); }
.hd__tel:hover { color: var(--clay-deep); }
.hd__tel svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .hd__telnum { display: none; } .hd__loc { display: none; } }

/* ---------- Section scaffold ---------- */
.sec { padding: 88px 0; }
.sec--tight { padding: 64px 0; }
.sec--paper2 { background: var(--paper-2); }
.sec--ink { background: var(--ink); color: var(--text-on-ink); }
.sec--sage { background: var(--sage); color: #F4EFE7; }
.sec__head { max-width: 720px; margin: 0 0 44px; }
.sec__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin: 0 0 16px; display: block; }
.sec--ink .eyebrow, .sec--sage .eyebrow { color: var(--clay-bright); }
.sec__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); margin: 0; text-wrap: balance; }
.sec--ink .sec__title, .sec--sage .sec__title { color: #F8F4EC; }
.sec__lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 18px 0 0; max-width: 56ch; }
.sec--ink .sec__lead { color: #D9CFC0; }
.sec--sage .sec__lead { color: #ECEEE2; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: stretch; }
.hero__media { position: relative; width: 100%; height: 90%; align-self: center; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-md); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.hero__avail { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--success); margin: 0 0 20px; }
.hero__avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-tint); font-style: normal; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); margin: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero__sub { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 22px 0 0; max-width: 50ch; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.hero__fact { flex: 1 1 0; min-width: 120px; padding: 16px 18px; border-right: 1px solid var(--line); }
.hero__fact:last-child { border-right: 0; }
.hero__frame { display: none; }
.hero__chip { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: #F4EFE7; backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 9px 14px; border-radius: var(--radius-pill); }
.hero__chip > span:first-child { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--clay-bright); }
.hero__fact b { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.hero__fact b em { font-style: normal; color: var(--clay); }
.hero__fact span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 7px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__note { font-size: 13px; color: var(--ink-muted); }

/* ---------- Stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.statband__item { text-align: left; }
.statband__v { font-family: var(--font-mono); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.sec--ink .statband__v { color: #F8F4EC; }
.statband__v em { font-style: normal; color: var(--clay-bright); }
.statband__l { font-size: 14px; color: var(--ink-soft); margin-top: 10px; line-height: 1.4; }
.sec--ink .statband__l { color: #C9BFB0; }

/* ---------- USP / amenity cards ---------- */
.uspgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-xs); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.usp:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.usp__ico { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--clay-tint); color: var(--clay-deep); display: grid; place-items: center; margin-bottom: 20px; }
.usp__ico svg { width: 23px; height: 23px; }
.usp h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; color: var(--ink); margin: 0 0 10px; }
.usp p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.usp--feature { grid-column: span 1; }

/* highlighted server-room card */
.serverband { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.serverband__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.serverband__list { display: grid; gap: 16px; margin-top: 26px; }

/* ---------- Amenity columns ---------- */
.amcols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 56px; }
.amcols .bb-amenity { padding: 6px 0; }

/* ---------- Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gal__item { position: relative; overflow: hidden; border-radius: var(--radius-md); cursor: pointer; background: var(--paper-3); }
.gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out); }
.gal__item:hover img { transform: scale(1.05); }
.gal__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 12px; background: linear-gradient(transparent, rgba(33,28,23,.72)); color: #F4EFE7; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: all var(--dur-base) var(--ease-out); }
.gal__item:hover .gal__cap { opacity: 1; transform: translateY(0); }
.gal__a { grid-column: span 6; grid-row: span 2; }
.gal__b { grid-column: span 6; }
.gal__c { grid-column: span 3; }
.gal__d { grid-column: span 3; }
.gal__e { grid-column: span 6; }
.gal__f { grid-column: span 6; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 32px;
  background: color-mix(in srgb, var(--ink) 78%, transparent); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out); }
.lb[data-open="true"] { opacity: 1; pointer-events: auto; }
.lb__img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: block; }
.lb__cap { color: #EBE3D6; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-align: center; margin-top: 16px; }
.lb__close, .lb__nav { position: fixed; background: color-mix(in srgb, var(--ink) 60%, transparent); color: #F4EFE7; border: 1px solid rgba(244,239,231,.25); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.lb__close:hover, .lb__nav:hover { background: var(--clay); }
.lb__close { top: 24px; right: 24px; }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: 24px; }
.lb__nav--next { right: 24px; }
.lb__close svg, .lb__nav svg { width: 20px; height: 20px; }

/* ---------- Floorplan ---------- */
.floor { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.floor__plan { position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.floor__svg { width: 100%; height: auto; display: block; }
.floor__legend { display: grid; gap: 8px; }
.floor__li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 14px; color: var(--ink); transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); cursor: pointer; }
.floor__li.is-active { border-color: var(--clay); background: var(--clay-tint); }
.floor__sw { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 1px solid rgba(33,28,23,.15); }
.floor__li b { font-family: var(--font-mono); margin-left: auto; font-weight: 700; color: var(--ink-soft); font-size: 13px; }
.floor__scroll { display: block; }
.floor__hint { display: none; align-items: center; gap: 8px; margin: 14px 2px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.floor__hint svg { width: 15px; height: 15px; color: var(--clay); flex: none; }

/* zone fills (echo design tokens) */
.z-buero { fill: #EBDBD0; }
.z-konf { fill: #DFC7B8; }
.z-empfang { fill: #E3E4D7; }
.z-kueche { fill: #F0E4CB; }
.z-server { fill: #211C17; }
.z-sani { fill: #E2D8C8; }
.z-terrasse { fill: #D7DBC4; }
.floor__svg rect.room { stroke: #FBF8F2; stroke-width: 2.5; transition: fill var(--dur-fast) var(--ease-out); }
.floor__svg text { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ink); letter-spacing: .02em; }
.floor__svg text.lt { fill: #F4EFE7; }
.floor__svg .room-g { cursor: pointer; }
.floor__svg .room-g.is-lit rect.room { fill: var(--clay); }
.floor__svg .room-g.is-lit text { fill: #F4EFE7; }
/* Hover nur auf Geräten mit echtem Hover — verhindert hängende Zustände auf Touch */
@media (hover: hover) {
  .floor__li:hover { border-color: var(--clay); background: var(--clay-tint); }
  .floor__svg .room-g:hover rect.room { fill: var(--clay); }
  .floor__svg .room-g:hover text { fill: #F4EFE7; }
}

/* ---------- Location ---------- */
.loc { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.loc__media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-sm); }
.loc__dists { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.loc__d { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.loc__d b { font-family: var(--font-mono); font-weight: 700; font-size: 20px; color: var(--clay); min-width: 92px; letter-spacing: -.01em; }
.loc__d span { font-size: 15px; color: var(--ink); }
.loc__d small { color: var(--ink-muted); font-size: 13px; margin-left: auto; }

/* ---------- Konditionen ---------- */
.kond { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.kond__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.kond__card--accent { background: var(--ink); color: #F4EFE7; border-color: var(--ink); }
.kond__lab { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 14px; }
.kond__card--accent .kond__lab { color: #B9AE9E; }
.kond__amt { font-family: var(--font-mono); font-weight: 700; font-size: 38px; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.kond__card--accent .kond__amt { color: #fff; }
.kond__amt span { font-size: 16px; color: var(--ink-soft); font-weight: 400; }
.kond__card--accent .kond__amt span { color: #C9BFB0; }
.kond__rows { display: grid; gap: 0; margin-top: 18px; }
.kond__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.kond__card--accent .kond__row { border-color: rgba(244,239,231,.14); color: #D9CFC0; }
.kond__row b { font-family: var(--font-mono); color: var(--ink); font-weight: 700; }
.kond__card--accent .kond__row b { color: #F4EFE7; }

/* ---------- Energieausweis ---------- */
.energy { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: stretch; }
.energy__figure { display: flex; flex-direction: column; justify-content: center; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 32px; }
.energy__lab { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.energy__val { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; }
.energy__val b { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 6vw, 60px); letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.energy__val span { font-family: var(--font-mono); font-size: 14px; color: var(--ink-soft); }
.energy__src { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-muted); margin: 18px 0 0; }
.energy__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.energy__f { background: var(--surface); padding: 18px 20px; }
.energy__f b { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--ink); display: block; }
.energy__f span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-top: 5px; display: block; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.form__aside h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.04; letter-spacing: -.02em; color: #F4EFE7; margin: 0; }
.form__aside p { font-size: 17px; line-height: 1.6; color: #D9CFC0; margin: 18px 0 0; }
.form__contact { margin-top: 32px; display: grid; gap: 14px; }
.form__cline { display: flex; align-items: center; gap: 14px; font-size: 15px; color: #EBE3D6; text-decoration: none; }
.form__cline:hover { color: #fff; }
.form__cline .ic { width: 42px; height: 42px; border-radius: var(--radius-md); border: 1px solid rgba(244,239,231,.2); display: grid; place-items: center; flex: none; color: var(--clay-bright); }
.form__cline .ic svg { width: 19px; height: 19px; }
.form__cline b { font-family: var(--font-mono); font-weight: 700; display: block; font-size: 15px; }
.form__cline small { display: block; font-size: 12px; color: #B9AE9E; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.form__trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.form__panel { background: var(--surface); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__panel .bb-field { margin-bottom: 18px; }
.form__legal { font-size: 12px; line-height: 1.5; color: var(--ink-muted); margin: 4px 0 22px; }
.form__legal a { color: var(--clay); }
.form__success { text-align: center; padding: 30px 8px; }
.form__success-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--success-tint); color: var(--success); display: grid; place-items: center; margin: 0 auto 22px; }
.form__success-ic svg { width: 30px; height: 30px; }
.form__success h3 { font-family: var(--font-display); font-size: 26px; color: var(--ink); margin: 0 0 12px; }
.form__success p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---------- Footer ---------- */
.ft { background: var(--ink); color: #C9BFB0; padding: 56px 0 28px; }
.ft__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-bottom: 32px; border-bottom: 1px solid rgba(244,239,231,.12); }
.ft__brand { display: flex; align-items: center; gap: 12px; }
.ft__brand img { width: 38px; height: 38px; }
.ft__brand b { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #F4EFE7; display: block; }
.ft__brand span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9A8F7F; }
.ft__col { display: grid; gap: 8px; font-size: 14px; }
.ft__col b { color: #F4EFE7; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ft__col a, .ft__col span { color: #C9BFB0; text-decoration: none; }
.ft__col a:hover { color: var(--clay-bright); }
.ft__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; font-size: 12px; color: #8A7F70; }
.ft__bottom a { color: #8A7F70; }
.ft__bottom a:hover { color: var(--clay-bright); }
.ft__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 760px; margin: 0 auto;
  background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  transform: translateY(140%); transition: transform var(--dur-slow) var(--ease-out); }
.cookie[data-show="true"] { transform: translateY(0); }
.cookie__t { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); margin: 0 0 6px; }
.cookie__p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.cookie__p a { color: var(--clay); }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 620px) { .cookie { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile CTA ---------- */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 10px; padding: 12px 16px;
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line-strong); }
.mcta .bb-btn { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { width: 100%; height: auto; margin-inline: auto; aspect-ratio: 5 / 4.3; }
  .hero__photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .hero__chip { bottom: 20px; }
  .serverband, .loc, .floor, .energy, .form { grid-template-columns: 1fr; gap: 36px; }
  .floor { gap: 28px; }
  .uspgrid { grid-template-columns: 1fr 1fr; }
  .statband { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .kond { grid-template-columns: 1fr; }
  .energy { grid-template-columns: 1fr; }
  .energy__facts { max-width: 420px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 60px 0; }
  .uspgrid, .amcols { grid-template-columns: 1fr; }
  .gal { grid-auto-rows: 150px; }
  .gal__a { grid-column: span 12; grid-row: span 2; }
  .gal__b, .gal__c, .gal__d, .gal__e, .gal__f { grid-column: span 6; }
  .form__row { grid-template-columns: 1fr; }
  .energy__facts { grid-template-columns: 1fr; }
  /* Grid children default to min-width:auto — without a cap the 600px SVG widens the page */
  .floor__plan { min-width: 0; max-width: 100%; overflow: hidden; }
  .floor__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: -4px; padding: 4px; max-width: 100%; }
  .floor__svg { min-width: 760px; }
  .floor__svg text { font-size: 15px; }
  .floor__hint { display: flex; }
  .hero__fact { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .mcta { display: flex; }
  body { padding-bottom: 72px; }
  .cookie { bottom: 80px; }
}
