/*
  Tuchfabrik Berlin — Startseite
  Seitenspezifische Sektionen: Hero, Flächen-Grid, Etagen-Navigator,
  Nutzungs-Kacheln, Teaser (E-Commerce/Gebäude), Standort, Final-CTA.
  Quelle: tuchfabrik-startseite-final.html (Konzept-Prototyp).
*/

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,17,20,.58) 0%, rgba(15,17,20,.44) 34%, rgba(15,17,20,.18) 62%, rgba(15,17,20,.02) 100%);
}
.hero-inner { position: relative; padding-top: clamp(64px,11vw,128px); padding-bottom: clamp(56px,8vw,96px); }
.hero .eyebrow { font-family: var(--font-body); font-weight: 500; font-size: .8rem; letter-spacing: .06em; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.hero-title {
  font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: -.01em;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; margin: 0 0 20px; max-width: 13ch;
  text-shadow: 0 2px 20px rgba(0,0,0,.22);
}
.hero .sub { font-size: clamp(1.05rem,1.6vw,1.3rem); color: rgba(255,255,255,.92); margin: 0 0 8px; max-width: 34ch; }
.hero .count { font-size: .95rem; color: rgba(255,255,255,.85); margin: 18px 0 30px; display: flex; align-items: center; gap: 8px; }
.hero .count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--status-frei); box-shadow: 0 0 0 4px rgba(47,158,82,.3); }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
main section { padding: clamp(56px,8vw,96px) 0; }
main section.tight { padding-top: 0; }
h2.section-title { font-size: clamp(1.7rem,3.4vw,2.5rem); margin: 0 0 16px; }
p.lede { color: var(--ink-muted); max-width: 58ch; font-size: 1.03rem; margin: 0; }
.link-arrow { font-size: .9rem; text-decoration: none; white-space: nowrap; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow:hover { color: var(--brand-red-d); border-color: var(--brand-red-d); }

/* ---------- flaechen cards ---------- */
.flaechen-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
@media (max-width: 980px) { .flaechen-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 620px) { .flaechen-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.flaeche-card {
  background: var(--card-bg); border: 1px solid var(--line); border-top: 3px solid var(--brand-stripe-gray);
  border-radius: var(--radius); padding: 16px 15px 14px; display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--ink); min-height: 168px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.flaeche-card:not(.placeholder) { border-top-color: var(--brand-red-d); }
.flaeche-card:not(.placeholder):hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.flaeche-card .fnum { font-family: var(--font-body); font-size: .74rem; color: var(--ink-faint); }
.flaeche-card .fsize { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.5rem); white-space: nowrap; }
.flaeche-card .fuse { font-size: .82rem; color: var(--ink-muted); }
.flaeche-card .fnote { font-size: .78rem; color: var(--ink-faint); }
.flaeche-card .fstatus { font-size: .78rem; margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 5px; }
.flaeche-card .fstatus.frei { color: var(--status-frei); font-weight: 600; }
.flaeche-card .fstatus.prep { color: var(--ink-faint); }
.flaeche-card .fstatus.ab { color: var(--status-prep); font-weight: 600; }
.flaeche-card .fgo { font-size: .78rem; font-weight: 600; }
.flaeche-card.placeholder { color: var(--ink-faint); cursor: default; }
.flaeche-card.placeholder .fsize { color: var(--ink-faint); font-size: .95rem; font-weight: 600; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.flaeche-card.reserved .fsize { color: var(--brand-slate); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- etagen navigator ---------- */
.nav-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(230px,.85fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .nav-grid { grid-template-columns: 1fr; } }
.stage { position: relative; aspect-ratio: 440/360; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.marker { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: none; background: none; padding: 0; cursor: pointer; }
.marker::before { content: ""; display: block; width: 11px; height: 11px; margin: 5.5px auto 0; border-radius: 50%; background: var(--status-frei); box-shadow: 0 0 0 4px var(--status-frei-bg); }
.marker.prep::before { background: var(--status-prep); box-shadow: 0 0 0 4px var(--status-prep-bg); }
.marker.prep { opacity: .8; }
.marker::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid transparent; }
.marker:hover::after, .marker:focus-visible::after, .marker.active::after { border-color: var(--ink); }
.stage .caption { position: absolute; left: 14px; bottom: 12px; right: 14px; font-size: .72rem; color: var(--ink-faint); font-family: var(--font-body); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: .82rem; color: var(--ink-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend i.frei { background: var(--status-frei); }
.legend i.prep { background: var(--status-prep); }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px; min-height: 250px; display: flex; flex-direction: column; }
.panel .floor-tag { font-family: var(--font-body); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-red-d); margin-bottom: 6px; }
.panel h3 { font-size: 1.25rem; margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; }
.panel .status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 3px 10px; border-radius: var(--radius-sm); margin: 4px 0 14px; width: fit-content; }
.status-pill.frei { background: var(--status-frei-bg); color: var(--status-frei); }
.status-pill.prep { background: var(--status-prep-bg); color: var(--status-prep); }
.panel dl { margin: 0 0 16px; font-size: .9rem; }
.panel dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.panel dl dt { color: var(--ink-muted); } .panel dl dd { margin: 0; text-align: right; font-weight: 500; }
.panel .cta2 {
  margin-top: auto; font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 20px; border-radius: var(--radius-sm); background: var(--brand-red-d); color: #fff;
  border: 1px solid var(--brand-red-d); width: fit-content; text-decoration: none;
}
.panel .cta2:hover { background: var(--brand-red); border-color: var(--brand-red); }
.panel .cta2.disabled { background: transparent; color: var(--ink-faint); border-color: var(--line); }
.panel .hint { color: var(--ink-faint); font-size: .84rem; }

/* ---------- usage tiles ---------- */
section.usage { background: var(--surface); }
.tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.tile { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--brand-red-d); }
.tile .icon { width: 30px; height: 30px; margin-bottom: 12px; color: var(--brand-slate); }
.tile h4 { margin: 0 0 4px; font-size: .98rem; }
.tile p { margin: 0; font-size: .84rem; color: var(--ink-muted); }

/* ---------- teaser sections ---------- */
.teaser { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,.72fr); gap: 40px; align-items: center; }
.teaser.reverse { grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); }
.teaser.reverse .art { order: 2; }
@media (max-width: 820px) { .teaser, .teaser.reverse { grid-template-columns: 1fr; } .teaser.reverse .art { order: 0; } }
.teaser h2 { margin: 0 0 12px; font-size: clamp(1.5rem,3vw,2.1rem); }
.teaser p { color: var(--ink-muted); margin: 0 0 20px; max-width: 46ch; }
.fact-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px; padding: 0; list-style: none; font-family: var(--font-body); font-size: .78rem; color: var(--ink-faint); }
.fact-row span { color: var(--ink-muted); }

/* ---------- photo groupings (trio / duo) used inside teasers ---------- */
.photo-trio, .photo-duo {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 3px;
}
.photo-trio { grid-template-columns: 1.35fr 1fr 1fr; aspect-ratio: 20 / 8.5; }
.photo-duo { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 7.5; }
.photo-trio img, .photo-duo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .photo-trio { grid-template-columns: 1fr 1fr; aspect-ratio: 4/3.6; } .photo-trio img:first-child { grid-column: 1 / -1; aspect-ratio: 16/8; } }

/* ---------- standort ---------- */
.standort-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .standort-grid { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.facts .fplaceholder { color: var(--ink-faint); font-style: italic; }
.facts .ficon { width: 18px; height: 18px; flex: none; color: var(--brand-slate); margin-top: 1px; }
.map-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.map-box svg { width: 100%; height: 100%; }
.addr-block { display: flex; gap: 16px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line); }
.addr-block .thumb { width: 84px; height: 108px; flex: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.addr-block .thumb img { width: 100%; height: 100%; object-fit: cover; }
.addr { font-family: var(--font-body); font-size: .9rem; line-height: 1.7; color: var(--ink-muted); margin: 0 0 8px; }
.addr-note { font-size: .88rem; color: var(--ink-muted); margin: 0 0 8px; max-width: 34ch; }

/* ---------- final cta ---------- */
.final-cta { background: var(--overlay-ink); color: #f6f6f4; }
.final-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(40px,6vw,56px) clamp(18px,4vw,48px); }
.final-cta h2 { margin: 0 0 6px; font-size: clamp(1.5rem,3vw,2rem); }
.final-cta p { margin: 0; color: rgba(255,255,255,.72); font-size: .95rem; }
