/* Café Haltepunkt – interim site.
   Colour palette derived from the logo. */

:root {
  --brown-900: #3a2008;
  --brown-700: #512907;
  --brown-500: #6b533c;
  --taupe:     #9c8975;
  --beige:     #d4c6b7;
  --cream:     #faf6f0;
  --cream-2:   #f2eae0;
  --text:      #2b2118;
  --text-muted: #6b5f52;
  --white:     #fffdfa;

  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --content-width: 62rem;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--brown-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.05rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brown-700); }
a:hover { color: var(--brown-900); }

:focus-visible {
  outline: 3px solid var(--brown-700);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--content-width));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brown-700);
  color: var(--cream);
  padding: 0.7rem 1.1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  padding: 2.5rem 0 1.75rem;
  text-align: center;
}

.site-header__logo {
  width: min(100%, 22rem);
  margin-inline: auto;
}

.site-header__tagline {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--taupe);
}

/* ---------- Status bar ---------- */

.status {
  background: var(--brown-700);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 0;
}

.status__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.5rem;
}

.status__text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  margin: 0;
  color: var(--white);
}

.status__text strong { font-weight: 600; white-space: nowrap; }

/* Explicit line break in the status bar: keeps a single word from being orphaned
   on the second line at wide viewports. On narrow screens the sentence wraps
   correctly on its own, so the break is suppressed there. */
@media (max-width: 799px) {
  br.desktop-break { display: none; }
}

.status__note {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  color: var(--beige);
}

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

.hero {
  margin: 0;
}

.hero img {
  width: 100%;
  aspect-ratio: 21 / 9;   /* matches the source crop exactly, so nothing is cut off */
  object-fit: cover;
  object-position: center 40%;
}

/* The panorama looks too narrow on phones, so show a taller crop there. */
@media (max-width: 700px) {
  .hero img { aspect-ratio: 4 / 3; }
}

.hero figcaption {
  width: min(100% - 2.5rem, var(--content-width));
  margin: 0.6rem auto 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

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

.section {
  padding: 3.25rem 0;
}

.section--light { background: var(--white); }

.section__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 0.5rem;
}

.prose {
  max-width: 40rem;
}

.prose p + p { margin-top: 0; }

.signature {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brown-500);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--cream-2);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.section--light .card { background: var(--cream); }

.card h3 { margin-bottom: 0.35rem; color: var(--brown-700); }
.card p { font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Opening hours ---------- */

/* Two columns side by side as soon as there is room */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.75rem 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.columns .note { margin-top: 0; }

.hours {
  margin: 0;
  border-collapse: collapse;
  width: 100%;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.62rem 0.5rem;
  border-bottom: 1px solid var(--beige);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.hours th { color: var(--text-muted); width: 11rem; }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

.hours .closed-day td { color: var(--text-muted); font-style: italic; }

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--cream-2);
  border-left: 3px solid var(--taupe);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.section--light .note { background: var(--cream); }
.note p { margin-bottom: 0.5rem; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
  margin-top: 1.5rem;
}

.contact address {
  font-style: normal;
  line-height: 1.8;
}

.contact dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 1rem;
}
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 0.15rem 0 0; }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--brown-700);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--brown-700);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brown-900);
  border-color: var(--brown-900);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--brown-700);
}
.btn--secondary:hover {
  background: var(--brown-700);
  color: var(--white);
}

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

.site-footer {
  background: var(--brown-900);
  color: var(--beige);
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}

.site-footer a { color: var(--beige); }
.site-footer a:hover { color: var(--white); }

.site-footer__rows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--cream);
}

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

.legal {
  padding: 2.5rem 0 3.5rem;
  max-width: 45rem;
}

.legal h1 { font-size: 1.85rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1rem; margin-top: 1.4rem; }

.legal ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.35em; }

.back-link {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

