:root {
  --ink: #102531;
  --ink-soft: #40545e;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --apricot: #e96f3a;
  --apricot-soft: #f5c8a8;
  --green: #365c4a;
  --line: #d9d3c7;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--white);
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 82px;
  padding: 0 4vw;
  color: var(--white);
  border-bottom: 1px solid rgb(255 255 255 / 35%);
}

.brand {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand span {
  color: var(--apricot-soft);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.main-nav a,
.languages a {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.languages a:hover {
  color: var(--apricot-soft);
}

.languages {
  display: flex;
  gap: 0.35rem;
}

.languages a {
  min-width: 35px;
  padding: 0.4rem 0.45rem;
  text-align: center;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
}

.languages a[aria-current="page"] {
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/images/facility-schloss.png") center 42% / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 25 34 / 92%) 0%, rgb(6 25 34 / 66%) 48%, rgb(6 25 34 / 16%) 80%),
    linear-gradient(0deg, rgb(6 25 34 / 82%) 0%, transparent 48%);
}

.hero-content {
  width: min(1280px, 92%);
  margin: 0 auto;
  padding: 150px 0 84px;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--apricot-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 930px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 10vw, 9.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.hero h1 em {
  color: var(--apricot-soft);
  font-weight: 400;
}

.hero-lead {
  max-width: 650px;
  margin: 2rem 0 0;
  color: #e9eff1;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.15rem;
  border: 1px solid currentColor;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--apricot);
  border-color: var(--apricot);
  color: var(--white);
}

.button.light {
  color: var(--white);
}

.facts {
  position: relative;
  z-index: 4;
  width: min(1180px, 92%);
  margin: -38px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  box-shadow: 0 18px 50px rgb(16 37 49 / 12%);
}

.fact {
  padding: 1.8rem 2rem;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border: 0;
}

.fact strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.fact span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.section {
  width: min(1180px, 90%);
  margin: auto;
  padding: 8rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.section-head > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.card {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.025);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(5 21 28 / 92%) 0%, rgb(5 21 28 / 10%) 65%);
}

.card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 2.2rem;
}

.card .tag {
  color: var(--apricot-soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0.35rem 0 0.7rem;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.card p {
  max-width: 540px;
  margin: 0;
  color: #dce7ea;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--apricot-soft);
  font-weight: 800;
  text-underline-offset: 4px;
}

.story {
  background: var(--green);
  color: var(--white);
}

.story-inner {
  width: min(1180px, 90%);
  margin: auto;
  padding: 8rem 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.story-copy h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.story-copy p {
  color: #d9e6df;
  font-size: 1.08rem;
}

.story figure {
  margin: 0;
}

.story img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story figcaption {
  margin-top: 0.6rem;
  color: #bed0c6;
  font-size: 0.75rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.timeline article {
  padding: 2.2rem 2rem 0 0;
}

.timeline strong {
  font-family: Georgia, serif;
  color: var(--apricot);
  font-size: 2.5rem;
  font-weight: 400;
}

.timeline h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
}

.timeline p {
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 0.8rem;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.gallery figure:first-child {
  grid-row: span 2;
}

.gallery img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.visit {
  background: var(--apricot);
  color: var(--white);
}

.visit-inner {
  width: min(1180px, 90%);
  margin: auto;
  padding: 7rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.visit h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 0.9;
}

.visit-links {
  display: grid;
  gap: 0.7rem;
  align-content: center;
}

.visit-links a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 55%);
  font-weight: 800;
  text-decoration: none;
}

.visit-links a:hover {
  padding-left: 0.5rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 3rem 5vw;
  background: var(--ink);
  color: #c5d1d5;
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr auto;
    min-height: 72px;
    background: var(--ink);
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(2) {
    border-right: 0;
  }

  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-head,
  .story-inner,
  .visit-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cards,
  .timeline {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 470px;
  }

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

  .gallery figure:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 0 1rem;
  }

  .languages a {
    min-width: 31px;
  }

  .hero h1 {
    font-size: 4.3rem;
  }

  .hero-content {
    padding-bottom: 64px;
  }

  .facts {
    margin-top: 0;
  }

  .fact {
    padding: 1.25rem;
  }

  .section,
  .story-inner {
    padding: 5.5rem 0;
  }

  .card {
    min-height: 420px;
  }

  .card-content {
    padding: 1.5rem;
  }

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

  .gallery figure:first-child {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

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

  * {
    transition: none !important;
  }
}
