/* Traube Coworking — public website.
   One committed look, derived from the printed handout: deep bordeaux on warm
   cream, rounded cards with thin wine borders, the grape cluster as the one
   recurring motif (eight berries — eight desks). System fonts only: no font
   CDN, nothing to consent to. */

:root {
  --cream: #faf4ec;
  --card: #fffdf9;
  --wine: #5e202b;
  --wine-deep: #421218;
  --wine-line: rgba(94, 32, 43, 0.18);
  --wine-wash: rgba(94, 32, 43, 0.06);
  --text: #403431;
  --muted: #7d6c64;
  --leaf: #5c7a45;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--wine); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  /* Wrapping keeps the page narrower than any phone: without it, brand plus
     nav dictate a ~415px minimum and the whole page scrolls sideways. */
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  padding: 1.1rem 0 1rem;
  border-bottom: 1px solid var(--wine-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--wine-deep);
}
.brand svg { display: block; }
/* Same photo logo the app shows in its sidebar, so both halves of the brand
   look like the same house. */
.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
/* Buttons are excluded from the plain-link look: ".site-nav a" carries one class
   plus an element and would beat ".btn" on specificity — the CTA would lose the
   pill's padding to a text link's, ending up flat with the label against its own
   border. Excluding them here beats overriding every .btn property back. */
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text);
  font-weight: 550;
  font-size: 0.98rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--wine-deep); }
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--wine-deep);
  border-bottom-color: var(--wine);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--wine);
  transition: background-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--wine); color: var(--cream); }
.btn-primary:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn-ghost { color: var(--wine); background: transparent; }
.btn-ghost:hover { background: var(--wine-wash); }
.btn-large { padding: 0.75rem 1.7rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--wine-deep);
}
.hero p.lead {
  margin: 0 0 1.6rem;
  font-size: 1.15rem;
  max-width: 34rem;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-cluster { text-align: center; }
.hero-logo {
  width: min(220px, 100%);
  height: auto;
  border-radius: 16px;
}
.hero-cluster figcaption {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.2rem; }
  .hero-cluster { order: -1; }
  .hero-cluster svg { width: 130px; height: auto; }
  .hero-logo { width: 150px; }
}

/* ---------- Sections ---------- */

.section { padding: 2.6rem 0; border-top: 1px solid var(--wine-line); }
.section:first-of-type { border-top: none; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.4rem;
}
.section h2 {
  margin: 0 0 1.2rem;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  color: var(--wine-deep);
}
.section .intro { max-width: 44rem; margin-top: -0.4rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--wine-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  color: var(--wine-deep);
}
.card p { margin: 0; font-size: 0.98rem; }
.card .card-icon { color: var(--wine); margin-bottom: 0.55rem; }
.card .card-icon svg { display: block; }

/* Steps — a real sequence (arrival on the first day), hence numbered. */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 44rem;
}
.steps li {
  counter-increment: step;
  /* Grid, not flex: flex would turn every inline child (links!) into its own
     item and shred the sentence. */
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
}
.steps li::before {
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li .step-text { align-self: center; }

/* ---------- Prices ---------- */

.price-group { margin-top: 1.6rem; }
.price-group h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wine);
}
.price-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--wine-line);
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  flex-wrap: wrap;
}
.price-row .price-name { font-weight: 650; color: var(--wine-deep); }
.price-row .price-note { color: var(--muted); font-size: 0.92rem; }
.price-row .price-amount {
  margin-left: auto;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--wine-deep);
  white-space: nowrap;
}
.price-row.price-highlight { border-color: var(--leaf); background: #f7faf3; }
.price-row.price-highlight .price-amount { color: var(--leaf); }

.price-footnote { color: var(--muted); font-size: 0.92rem; margin-top: 1.2rem; }

/* ---------- Opening hours / closed days ---------- */

.hours-box {
  background: var(--card);
  border: 1px solid var(--wine-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  max-width: 44rem;
  margin-top: 1.2rem;
}
.hours-box p { margin: 0.3rem 0; }
.closed-days { margin: 0.3rem 0 0; }
.closed-days strong { color: var(--wine-deep); }

/* ---------- Contact / definition lists ---------- */

.contact-list { margin: 1.2rem 0 0; display: grid; gap: 0.55rem; padding: 0; list-style: none; }
.contact-list a { font-weight: 550; }
.contact-list svg { vertical-align: -0.22em; margin-right: 0.3rem; color: var(--wine); }

/* ---------- Legal pages ---------- */

.legal { max-width: 44rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal address { font-style: normal; }

/* ---------- CTA band ---------- */

.cta-band {
  margin: 2.6rem 0;
  background: var(--wine);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  text-align: center;
}
.cta-band h2 { margin: 0 0 0.5rem; color: var(--cream); font-size: 1.5rem; }
.cta-band p { margin: 0 auto 1.3rem; max-width: 34rem; }
.cta-band .btn { border-color: var(--cream); color: var(--wine-deep); background: var(--cream); }
.cta-band .btn:hover { background: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--wine-line);
  padding: 2rem 0 2.6rem;
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer address { font-style: normal; }
.site-footer nav { display: grid; gap: 0.25rem; }
.site-footer a { color: var(--wine); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
/* Icons sit inside the link, so they take its colour and are part of the hit area.
   Only the footer links that point somewhere else carry one — Impressum and
   Datenschutz stay plain, otherwise the icons stop marking anything. */
.site-footer a svg { vertical-align: -0.2em; margin-right: 0.35rem; }
