:root {
  --bg: #0c0b0a;
  --fg: #f4efe7;
  --muted: #9a938a;
  --accent: #e0553a;
  --line: rgba(244, 239, 231, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Inter, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

section, header { scroll-margin-top: 4.5rem; }

/* Both languages sit side by side in the markup; the <html lang> set in <head> picks one. */
html[data-i18n][lang="de"] [lang="en"],
html[data-i18n][lang="en"] [lang="de"] { display: none !important; }

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

h1 { font-size: clamp(3.5rem, 11vw, 9rem); text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(12, 11, 10, 0.75), rgba(12, 11, 10, 0));
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.topbar a { pointer-events: auto; }

.mark { display: flex; }
.mark img { width: 2.4rem; height: 2.4rem; border-radius: 50%; }

.topbar-links { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 2rem); }

.topbar-icon { display: flex; }

/* Set apart from the section links: divider, globe, smaller type; the active language is marked in links.css. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: clamp(0.9rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.lang-switch .icon { width: 0.95rem; height: 0.95rem; }

.topbar-icon .icon { width: 1.2rem; height: 1.2rem; }

.topbar-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  filter: grayscale(0.25) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(12, 11, 10, 0.25) 45%, rgba(12, 11, 10, 0.45) 100%);
}

.hero-text {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 5vw, 4.5rem);
  bottom: clamp(3rem, 9vh, 7rem);
  max-width: 22ch;
}

.hero-links { margin-top: 2rem; }

.hero-links a { white-space: nowrap; background: rgba(12, 11, 10, 0.4); border-color: rgba(244, 239, 231, 0.45); backdrop-filter: blur(6px); }

.hero-line {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  max-width: 30ch;
  color: rgba(244, 239, 231, 0.88);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 5vw, 4.5rem);
  bottom: clamp(3rem, 9vh, 7rem);
  font-size: 1.5rem;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- chapter (intro + Schwalbe) ---------- */

/* Intro and Schwalbe interlock: the two photos sit side by side in the middle row. */
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto clamp(14rem, 32svh, 22rem) auto;
  grid-template-areas:
    "tadeo intro"
    "tadeo schwalbe"
    "stext schwalbe";
  border-bottom: 1px solid var(--line);
}

.chapter-media { position: relative; overflow: hidden; }

.chapter-media--tadeo { grid-area: tadeo; }
.chapter-media--schwalbe { grid-area: schwalbe; scroll-margin-top: 4.5rem; }

.chapter-media--tadeo img { filter: contrast(1.03) saturate(1.05); object-position: center top; }
.chapter-media--schwalbe img { filter: contrast(1.04); object-position: center 42%; }

.chapter-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 6rem);
}

.chapter-text--intro { grid-area: intro; }
.chapter-text--schwalbe { grid-area: stext; }

.chapter-text p { max-width: 34ch; color: rgba(244, 239, 231, 0.85); }

.chapter-text--intro h2 { margin-bottom: 1.8rem; }
.chapter-text--intro h2 + p { margin-bottom: 0.9rem; }

.chapter-text--schwalbe h2 { margin-bottom: 1.2rem; }
.chapter-text--schwalbe p { margin-bottom: 0.7rem; }

.facts {
  list-style: none;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.facts li {
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.facts li > span:first-child {
  min-width: 8.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 0.25rem;
}

.chapter-text .tagline,
.project .tagline {
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}

.links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }

/* ---------- projects ---------- */

.projects {
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.projects > h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }

.project img { aspect-ratio: 4 / 5; height: auto; max-width: 420px; margin-bottom: 1.2rem; }

.project h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 0.3rem; }

.project .tagline { margin-bottom: 0.7rem; }

.project p { color: rgba(244, 239, 231, 0.85); }

.project .links { margin-top: 1.2rem; }

.past { margin-top: clamp(3rem, 6vw, 4.5rem); }

.past > h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 1.2rem; }

.past-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }

.past-item { padding-top: 1.2rem; border-top: 1px solid var(--line); }

.past-item h4 { font-size: 1.15rem; margin-bottom: 0.2rem; }

.past-item .tagline { color: var(--accent); margin-bottom: 0.5rem; }

.past-item p { color: rgba(244, 239, 231, 0.85); }

.past-item .links { margin-top: 1rem; }

/* ---------- gallery ---------- */

.gallery { padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 clamp(1rem, 5vw, 4.5rem);
  position: relative;
}

.js .gallery-strip { scrollbar-width: none; cursor: grab; }

.js .gallery-strip::-webkit-scrollbar { display: none; }

.js .gallery-strip.is-dragging { cursor: grabbing; user-select: none; }

.gallery-strip img { -webkit-user-drag: none; }

.gallery-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem clamp(1rem, 5vw, 4.5rem) 0;
}

.js .gallery-nav { display: flex; }

.gallery-more { margin-right: auto; font-size: 0.85rem; }

.gallery-strip figure {
  flex: 0 0 auto;
  height: clamp(280px, 34vw, 440px);
  overflow: hidden;
}

.gallery-strip img {
  width: auto;
  max-width: none;
  filter: grayscale(0.15);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-strip figure:hover img { transform: scale(1.03); filter: grayscale(0); }

/* ---------- booking ---------- */

.booking {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: stretch;
  min-height: 80svh;
}

.booking-flank { position: relative; overflow: hidden; }

.booking-flank img { filter: grayscale(0.5) brightness(0.72); object-position: center 38%; }

.booking-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

.booking-center h2 { margin-bottom: 1.4rem; }

.booking-center > p { max-width: 32ch; color: rgba(244, 239, 231, 0.85); }

.mail {
  display: inline-block;
  margin-top: 2.4rem;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- footer ---------- */

footer {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }

.footer-legal { margin: 0; }

/* The footer copy of the language switch reads as plain text: no divider, inherited size. */
.footer-legal .lang-switch { display: inline-flex; padding-left: 0; border-left: 0; font-size: inherit; color: inherit; vertical-align: baseline; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .chapter {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "tadeo" "intro" "schwalbe" "stext";
  }

  .chapter-media { height: 70svh; }

  .booking { grid-template-columns: 1fr; }

  .booking-flank { height: 34svh; }

  .booking-flank--right { display: none; }

  .facts li > span:first-child { min-width: 6.5rem; }
}

/* ---------- legal pages ---------- */

.legal-page { overflow: auto; }

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8rem) 1.5rem 5rem;
}

.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); text-transform: none; margin-bottom: 3rem; }

.legal section { padding: 0; border: 0; margin-bottom: 4rem; scroll-margin-top: 2rem; }

.legal h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.2rem; }

.legal h3 { font-size: 1.05rem; line-height: 1.3; margin: 1.8rem 0 0.4rem; }

.legal p { color: rgba(244, 239, 231, 0.85); }

.legal .back { display: inline-block; margin-bottom: 2rem; }

.booking-center > .booking-note { margin-top: 1.6rem; font-size: 0.9rem; }

/* Narrow phones: the bar must fit 360px, so tighten type and swap the language switch for the Instagram icon (the language follows the device; the footer keeps a switch). */
@media (max-width: 560px) {
  .topbar { padding-left: 1rem; padding-right: 1rem; gap: 0.5rem; }
  .topbar-links { gap: 0.75rem; }
  .topbar-links a { font-size: 0.68rem; letter-spacing: 0.08em; }
  .topbar .lang-switch { display: none; }
  .mark img { width: 2rem; height: 2rem; }
}
