/* Baugemeinschaft Quartier 33F — design tokens */
:root {
  --bg: #f5efe6;
  --bg-2: #ece3d4;
  --bg-3: #1a1714;
  --ink: #1a1714;
  --ink-2: #3a3531;
  --ink-3: #6b6359;
  --rule: #d8cdb9;
  --brick: #a14a32;
  --brick-2: #8a3d28;
  --moss: #6b7355;
  --sand: #c9b89a;
  --paper: #fdfaf3;

  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 768px) {
  body { font-size: 18px; line-height: 1.65; }
}
h1, h2, h3 { line-height: 1.2; }

a { color: inherit; text-decoration: none; }
a.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
a.link:hover { color: var(--brick); }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 6.5vw, 96px); }
h2 { font-size: clamp(34px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--ink-3);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 128px) 0; }
.divider { height: 1px; background: var(--rule); margin: 0; border: 0; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--serif); font-size: 20px;
}
.brand .mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--brick); color: var(--paper);
  font-family: var(--serif); font-size: 16px;
  border-radius: 2px;
  align-self: center;
}
.brand .sub { color: var(--ink-3); font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 14px; color: var(--ink-2); position: relative; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brick); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--brick);
}
.nav .cta {
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 2px;
  font-size: 13px; letter-spacing: 0.02em;
}
.nav .cta:hover { background: var(--brick); color: var(--paper); }

/* MOBILE */
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 72px; left: 0; right: 0; background: var(--bg);
    padding: 24px var(--gutter); border-bottom: 1px solid var(--rule);
  }
  .nav.open a[aria-current="page"]::after { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 8px;
    background: transparent; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
}

/* FOOTER */
.site-footer {
  background: var(--bg-3); color: var(--bg);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.site-footer h4 { color: var(--sand); font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; }
.site-footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer ul { list-style: none; padding: 0; margin: 16px 0 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; color: rgba(245, 239, 230, 0.7); }
.site-footer li a:hover { color: var(--brick); }
.site-footer .colophon {
  display: flex; justify-content: space-between; padding-top: 24px;
  font-size: 12px; color: rgba(245,239,230,0.5); font-family: var(--mono); letter-spacing: 0.05em;
}
.site-footer .brand-block .name { font-family: var(--serif); font-size: 28px; color: var(--paper); }
.site-footer .brand-block p { font-size: 14px; color: rgba(245,239,230,0.7); margin-top: 12px; max-width: 32ch; }
@media (max-width: 720px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .colophon { flex-direction: column; gap: 8px; }
}

/* PAGE INTRO */
.page-intro {
  padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-intro h1 { max-width: 18ch; margin: 24px 0 32px; }
.page-intro .lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 56ch; color: var(--ink-2); line-height: 1.5; }
.page-intro .meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.page-intro .meta div { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.05em; }
.page-intro .meta strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 400; letter-spacing: 0; margin-top: 4px; text-transform: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font-size: 14px; min-height: 44px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 2px; cursor: pointer;
  font-family: var(--sans); letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.btn:hover { background: var(--brick); border-color: var(--brick); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* PLACEHOLDER (image slots) */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(26,23,20,0.05) 18px 19px),
    var(--sand);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.04) 18px 19px),
    #2a2622;
  color: rgba(245,239,230,0.6); border-color: rgba(255,255,255,0.08);
}
.ph .label { padding: 10px 16px; }
.ph::after { content: ""; position: absolute; inset: 16px; border: 1px solid currentColor; opacity: 0.18; }

/* TWO COL */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* tag/pill */
.tag { display: inline-block; padding: 4px 10px; font-size: 11px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 100px; }
.tag.frei { background: #e7eee0; color: #3d4a2c; }
.tag.reserviert { background: #fff1d6; color: #7a5a14; }
.tag.belegt { background: #f1e2da; color: #7a3a25; }

/* small helpers */
.small { font-size: 13px; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
