/* ============================================================
   BITI — soup-kitchen / event-series landing page
   Design: editorial, asymmetric, mostly cream + a single rust accent
   ============================================================ */

:root {
  --bg:        #FAF7EE;
  --ink:       #111111;
  --rust:      #A4391C;
  --rust-soft: #B85A3A;
  --rule:      #D9D2C0;

  --font:      "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max:       1280px;
  --pad-x:     clamp(20px, 5vw, 80px);

  --display:   clamp(48px, 9vw, 144px);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- shared display headings ---------- */
.display {
  font-family: var(--font);
  font-weight: 600;
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
@media (max-width: 800px) {
  .display { font-size: clamp(48px, 12vw, 96px); }
}
.display--right  { text-align: right; }
.display--center { text-align: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: var(--bg);
}
.nav__brand,
.nav__link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--rust);
}
.nav__rule {
  height: 2px;
  background: var(--rust);
}

/* ============================================================
   HERO  – floating kitchen objects + BITI logo
   ============================================================ */
.hero {
  position: relative;
  height: clamp(560px, 88vh, 880px);
  margin: 0 var(--pad-x) 40px;
}

.hero__obj {
  position: absolute;
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
}

/* widths are % of hero width — they scale with the layout */
.hero__obj--fork   { left:  2%;  top: 22%; width: 1.6%;  min-width: 14px;  }
.hero__obj--cake   { left: 24%;  top:  6%; width: 8%;    min-width: 60px;  }
.hero__obj--knife  { left: 60%;  top: 12%; width: 1.6%;  min-width: 14px;  }
.hero__obj--plate  { right: 4%;  top:  6%; width: 8%;    min-width: 70px;  }
.hero__obj--ladle  { left: 21%;  top: 42%; width: 7%;    min-width: 55px;  }
.hero__obj--spoon  { left: 38%;  top: 82%; width: 5%;    min-width: 50px;  }
.hero__obj--chair  { right: 6%;  top: 45%; width: 7%;    min-width: 60px;  }
.hero__obj--cup    { left:  4%;  top: 72%; width: 6%;    min-width: 50px;  }
.hero__obj--glass  { right: 22%; top: 75%; width: 5%;    min-width: 50px;  }

.hero__logo {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: clamp(160px, 18vw, 280px);
  height: auto;
}

/* ============================================================
   KONZEPT
   ============================================================ */
.konzept {
  padding: 80px 0 120px;
}
.konzept .display { padding: 0 var(--pad-x); }

/* Body frame from Figma: 946 × 324 at x=292 (frame width 1440) */
.konzept__body {
  margin-left: 20.28%; /* 292 / 1440 */
  width: 65.69%;       /* 946 / 1440 */
  min-height: 324px;
  margin-top: clamp(80px, 14vw, 200px);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.85;
  text-transform: uppercase;
  text-align: justify;
}
.konzept__body p { margin: 0 0 1.6em; }
.konzept__body p:last-child { margin-bottom: 0; }

/* ============================================================
   NEXT EVENTS
   ============================================================ */
.events {
  padding: 80px var(--pad-x) 120px;
}
.events__list {
  list-style: none;
  margin: clamp(60px, 10vw, 140px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 60px);
}
.event {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}
.event__where {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.55;
}
.event__where p { margin: 0; }
.event__when {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--rust);
  white-space: nowrap;
}
.event__media {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 1;
  background: var(--rust);
  overflow: hidden;
  border-radius: 2px;
}
.event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* hide broken-image text/icon if the file isn't there yet */
  color: transparent;
  font-size: 0;
}
.event__media--placeholder { background: var(--rust); }

/* ============================================================
   SEI DABEI
   ============================================================ */
.sei-dabei {
  padding: 80px 0 140px;
}
.sei-dabei .display { padding: 0 var(--pad-x); }

/* Absolute layout matching the Figma frame (1440 wide).
   X positions come from Figma; Y positions are eyeballed.
   .ways spans the full viewport so left% maps directly to figma_x / 1440. */
.ways {
  list-style: none;
  margin: clamp(60px, 8vw, 120px) 0 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 700px;
}
.way {
  position: absolute;
  display: grid;
  grid-template-columns: 110px auto 60px 1fr;
  align-items: start;
  column-gap: 12px;
}

/* x = (figma_x / 1440) * 100%   — frame width = 1440 */
.ways .way:nth-child(1) { left: 7.01%;  top:   0px; }  /* 01 whisk    x=101 */
.ways .way:nth-child(2) { left: 63.00%; top:   0px; }  /* 02 service  x=907 */
.ways .way:nth-child(3) { left: 18.00%; top: 200px; }  /* 03 spende   x=259 */
.ways .way:nth-child(4) { left: 61.25%; top: 280px; }  /* 05 zeit     x=882 */
.ways .way:nth-child(5) { left:  8.54%; top: 420px; }  /* 04 orga     x=123 */
.ways .way:nth-child(6) { left: 51.60%; top: 500px; }  /* 06 flower   x=743 */

.way__img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.way__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.05em;
  line-height: 1;
}
.way__rule {
  display: block;
  height: 2px;
  width: 60px;
  background: var(--rust);
  margin: 6px 4px 0;            /* drops the line to the optical center of the title */
  align-self: start;
}
.way__text strong { line-height: 1; }
.way__text {
  color: var(--rust);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}
.way__text strong {
  font-weight: 400;
  margin-bottom: 2px;
}

/* tighten the layout: image | num | rule | text */
.way {
  grid-template-columns: 110px auto 60px 1fr;
  column-gap: 12px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 80px var(--pad-x) 120px;
}
.contact__title {
  display: inline-block;
}

.contact__form {
  margin: clamp(80px, 12vw, 160px) 0 0;
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.6fr;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 40px;
}
.field {
  position: relative;
  padding-top: 22px;
}
.field--full { grid-column: auto; }
/* push NACHRICHT label/input toward the right edge */
.contact__form .field:nth-child(4) { justify-self: end; width: 100%; }

.field input,
.field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 6px 0;
  outline: none;
  color: var(--ink);
  resize: vertical;
  border-radius: 0;
}
.field label {
  position: absolute;
  left: 0;
  top: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:empty) + label {
  top: 0;
  font-size: 10px;
  color: var(--rust);
}
/* the inputs have no placeholder text but :placeholder-shown only works when one
   is present — give them an empty placeholder so the trick works */
.field input,
.field textarea { /* no-op anchor */ }

.contact__submit {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: clamp(40px, 6vw, 80px);
  padding: 14px 36px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s ease;
}
.contact__submit:hover {
  color: var(--rust);
}
.contact__status {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  min-height: 1.2em;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px var(--pad-x) 60px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  color: #000;
}
.footer p { margin: 0; }
.footer a,
.footer a:link,
.footer a:visited,
.footer a:active {
  color: #000;
  text-decoration: none;
  transition: color 0.15s ease;
  margin-left: 18px;
}
.footer a:first-child { margin-left: 0; }
.footer a:hover { color: var(--rust); }

/* ============================================================
   RESPONSIVE — mobile + tablet
   ============================================================ */
@media (max-width: 800px) {
  :root { --pad-x: 24px; }

  /* HERO — shrink the floating objects a bit on small screens */
  .hero { height: clamp(440px, 80vh, 640px); margin: 0 var(--pad-x) 20px; }
  .hero__obj--fork  { width: 3%;  min-width: 10px; }
  .hero__obj--knife { width: 3%;  min-width: 10px; }
  .hero__obj--cake  { width: 13%; min-width: 50px; }
  .hero__obj--plate { width: 13%; min-width: 60px; }
  .hero__obj--ladle { width: 12%; min-width: 50px; }
  .hero__obj--spoon { width: 9%;  min-width: 40px; }
  .hero__obj--chair { width: 12%; min-width: 50px; }
  .hero__obj--cup   { width: 11%; min-width: 50px; }
  .hero__obj--glass { width: 9%;  min-width: 40px; }
  .hero__logo { width: clamp(120px, 32vw, 200px); }

  /* KONZEPT — body fills the width with normal page padding */
  .konzept__body {
    margin-left: 0;
    width: auto;
    min-height: 0;
    padding: 0 var(--pad-x);
    margin-top: 60px;
    text-align: left;
  }

  /* NEXT EVENTS — stack the columns */
  .event {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .event__media { aspect-ratio: 5 / 2; }

  /* SEI DABEI — override the absolute desktop layout and stack vertically */
  .sei-dabei { padding: 60px 0 80px; }
  .sei-dabei .display { padding: 0 var(--pad-x); }
  .ways {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 var(--pad-x);
    margin-top: 60px;
  }
  .ways .way,
  .ways .way:nth-child(1),
  .ways .way:nth-child(2),
  .ways .way:nth-child(3),
  .ways .way:nth-child(4),
  .ways .way:nth-child(5),
  .ways .way:nth-child(6) {
    position: static;
    left: auto;
    top: auto;
    grid-template-columns: 80px auto 32px 1fr;
    column-gap: 10px;
  }
  .way__img  { width: 72px; height: 72px; }
  .way__rule { width: 32px; }

  /* CONTACT — stack all fields */
  .contact { padding: 60px var(--pad-x) 80px; }
  .contact__form {
    grid-template-columns: 1fr;
    margin-top: 60px;
    row-gap: 32px;
  }
  .contact__form .field:nth-child(4) {
    justify-self: stretch;
  }
  .contact__submit { margin-top: 24px; }

  /* NAV — tighten */
  .nav { padding: 12px var(--pad-x); }
  .nav__brand, .nav__link { font-size: 12px; letter-spacing: 0.14em; }

  /* FOOTER */
  .footer { padding: 32px var(--pad-x) 40px; }
}

@media (max-width: 480px) {
  /* extra tightening for phones */
  .display { font-size: clamp(40px, 14vw, 72px); }
  .konzept__body { font-size: 10px; line-height: 1.7; }
}
