/* ─── FONT ───────────────────────────────────────────────── */
@font-face {
  font-family: 'DOT Impact';
  src: url('../fonts/MPF DOTIMPACT.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --black:        #000000;
  --white:        #ffffff;
  --font-dot:     'DOT Impact', 'Impact', sans-serif;
  --font-body:    'DM Mono', monospace;
  --pad:          40px;
  --border:       1px solid var(--black);
}

/* ─── BASE ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

strong { font-weight: 500; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ─── SITE HEADER (fixed, scroll-animated) ───────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px var(--pad);
  background: var(--white);
  overflow: hidden;
}

.site-header-logo-link { display: block; flex-shrink: 0; }

.site-header-logo {
  width: calc(25vw - var(--pad));
  height: auto;
  display: block;
}

#header-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--black);
}

/* Compact state (impressum) */
#site-header.is-compact .site-header-logo { width: 120px; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 2px;
  color: var(--black);
  opacity: 0.38;
  font-weight: 400;
  transition: opacity 0.15s;
}

.lang-btn.active {
  opacity: 1;
  font-weight: 700;
}

.lang-btn:hover { opacity: 0.75; }

.lang-sep {
  font-size: 11px;
  opacity: 0.3;
  user-select: none;
}

/* Header tagline + Halle + right cluster */
.header-tagline {
  position: absolute;
  top: 0;
  font-family: var(--font-dot);
  font-size: 36px;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

/* HALLE 2020 logo */
.halle-logo {
  height: 100px;
  width: auto;
  display: block;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  border-bottom: var(--border);
  height: 100vh;
}

/* 4 equal color images – fills full hero height */
.hero-images {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Scroll arrow: SVG triangle with clean outline */
.hero-images::before {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 39px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 40'%3E%3Cpolygon points='33,39 0,0 66,0' fill='black'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 10;
}

.hero-images::after { display: none; }

.hero-scroll-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 39px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 11;
}

body.cursor-active .hero-images::before { opacity: 1; }

.hero-img {
  overflow: hidden;
  border-right: var(--border);
}

.hero-img:last-child { border-right: none; }

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NEST inline in body text */
.nest-word {
  font-family: var(--font-dot);
  font-size: 1.25em;
  letter-spacing: 0.08em;
}

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section {
  border-bottom: var(--border);
}

.section-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px var(--pad);
  border-bottom: var(--border);
}

.sh-label,
.sh-num {
  font-family: var(--font-dot);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── SECTION 001 ────────────────────────────────────────── */
#s001 {
  height: calc(100vh - var(--header-h, 160px));
  display: flex;
  flex-direction: column;
}

/* Left: two stacked images | Right: text */
.s001-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 38fr 62fr;
}

/* Left column: two images stacked – top 2fr (~40%), bottom 3fr (~60%) */
.s001-imgs {
  display: grid;
  grid-template-rows: 2fr 3fr;
  border-right: var(--border);
  min-height: 0;
  overflow: hidden;
}

.s001-img-a {
  overflow: hidden;
  border-bottom: var(--border);
}

.s001-img-b {
  overflow: hidden;
}

.s001-img-a img,
.s001-img-b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right column: text */
.s001-text {
  padding: 40px var(--pad) 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top zone mirrors 2fr image – centers p1 vertically */
.s001-top-zone {
  flex: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: 18px;
}

/* Para 1: large, left-aligned */
.s001-p1 {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

/* Slide-in from right (s001) */
.s001-text p {
  transform: translateX(100vw);
  transition: transform 0.6s ease;
}

.s001-text p.is-visible {
  transform: translateX(0);
}

/* Slide-in from right (s003) */
.s003-paras p {
  transform: translateX(100vw);
  transition: transform 0.6s ease;
}

.s003-paras p.is-visible {
  transform: translateX(0);
}

/* Slide-in from left (s002) */
.s002-p1,
.s002-wohntext {
  transform: translateX(-100vw);
  transition: transform 0.6s ease;
}

.s002-p1.is-visible,
.s002-wohntext.is-visible {
  transform: translateX(0);
}

/* Paras 2-4: right-aligned, mirrors 3fr bottom image */
.s001-secondary {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.s001-secondary p {
  font-size: 1.1rem;
  line-height: 1.68;
  text-align: right;
}

.s001-secondary p:first-child {
  text-align: left;
}

/* ─── SECTION 002 ────────────────────────────────────────── */
/* height set dynamically by JS for scroll-driven carousel */

.s002-sticky {
  position: sticky;
  top: var(--header-h, 160px);
  height: calc(100vh - var(--header-h, 160px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.s002-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 38fr 62fr;
}

.s002-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--pad);
  gap: 32px;
  overflow: hidden;
}

.s002-p1 {
  font-size: 1.1rem;
  line-height: 1.65;
}

.s002-wohntext {
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Right column: full-height carousel */
.s002-carousel-wrap {
  overflow: hidden;
  position: relative;
  border-left: var(--border);
}

.s002-carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.s002-carousel-img {
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 2/3;
  border-right: var(--border);
  overflow: hidden;
}

.s002-carousel-img:last-child { border-right: none; }


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

/* ─── SECTION 003 ────────────────────────────────────────── */
#s003 {
  height: calc(100vh - var(--header-h, 160px));
  display: flex;
  flex-direction: column;
}

/* Left: portrait image | Right: text + impressum */
.s003-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 38fr 62fr;
}

.s003-img {
  overflow: hidden;
  border-right: var(--border);
}

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

.s003-text {
  padding: 40px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.s003-paras {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.s003-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.s003-gap {
  height: calc(3 * 1.1rem * 1.7);
}

/* Email in section 3 */
.contact-email {
  display: block;
  font-family: var(--font-dot);
  font-size: 30px;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: auto;
  text-decoration: none;
  line-height: 1;
  text-align: right;
}

.contact-email:hover { text-decoration: underline; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px var(--pad);
}

.footer-imp {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-imp:hover { text-decoration: underline; }

.footer-email {
  font-family: var(--font-body);
  font-size: 11px;
  opacity: 0.5;
}

.footer-email:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ─── IMPRESSUM PAGE ─────────────────────────────────────── */
.impressum-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(84px + 60px) var(--pad) 100px;
}

.impressum-back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 48px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.impressum-back:hover { text-decoration: none; opacity: 0.5; }

.impressum-title {
  font-family: var(--font-dot);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: normal;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 52px;
  line-height: 1;
}

.impressum-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: var(--border);
}

.impressum-block:last-child { border-bottom: none; }

.impressum-block h2 {
  font-family: var(--font-dot);
  font-size: 0.82rem;
  font-weight: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.impressum-block p,
.impressum-block address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 5px;
}

.impressum-block a {
  border-bottom: 1px solid currentColor;
}

.impressum-block a:hover {
  text-decoration: none;
  opacity: 0.6;
}

.placeholder { opacity: 0.35; font-style: italic; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --pad: 24px; }

  /* Hero: logo smaller */
  .hero-logo { height: 80px; }

  /* Hero images: 2×2 */
  .hero-images {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .hero-img {
    aspect-ratio: 1 / 1;
    border-bottom: var(--border);
  }

  .hero-img:nth-child(2) { border-right: none; }
  .hero-img:nth-child(3),
  .hero-img:nth-child(4) { border-bottom: none; }

  /* Sections: single column */
  .s001-layout,
  .s002-layout,
  .s003-layout {
    grid-template-columns: 1fr;
  }

  .s001-imgs { border-right: none; border-bottom: var(--border); }
  .s001-img-a { aspect-ratio: 16/9; }
  .s001-img-b { min-height: 200px; aspect-ratio: 16/9; flex: none; }
  .s001-secondary { margin-left: 0; }

  .s002-text { border-right: none; border-bottom: var(--border); }
  .s002-wohntext { padding: 0 5%; }

  .s002-imgs { grid-template-columns: 1fr 1fr; }
  .s002-img { aspect-ratio: 1/1; }

  .s003-img { border-right: none; border-bottom: var(--border); min-height: 300px; }
}

@media (max-width: 600px) {
  :root { --pad: 18px; }

  .hero-logo { height: 64px; }
  .hero-title { font-size: clamp(1rem, 5.5vw, 1.6rem); }

  /* Hero: single column */
  .hero-images {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-img {
    aspect-ratio: 4/3;
    border-right: none;
    border-bottom: var(--border);
  }

  .hero-img:last-child { border-bottom: none; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img img { transition: none; }
}
