:root {
  --blue: #00527c;
  --brown: #ad865e;
  --ink: #003f63;
  --white: #ffffff;
  --shadow: rgba(0, 20, 32, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  background: var(--blue);
}

button,
a {
  font: inherit;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

.slideshow,
.slideshow::before,
.slideshow::after {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.slideshow {
  z-index: -3;
  background-color: var(--blue);
}

.slideshow::before,
.slideshow::after {
  content: "";
  opacity: 0;
  transition: opacity 1500ms ease;
  will-change: opacity;
}

.slideshow::before {
  background-image: var(--slide-a);
}

.slideshow::after {
  background-image: var(--slide-b);
}

.slideshow.is-a::before,
.slideshow.is-b::after {
  opacity: 1;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 82, 124, 0.62), rgba(0, 82, 124, 0.2) 45%, rgba(0, 30, 45, 0.16)),
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.18), transparent 42%);
}

.hero-copy {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(86vw, 780px);
  translate: -50% -50%;
  text-align: center;
  text-shadow: 0 3px 18px var(--shadow);
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  width: clamp(78px, 11vw, 150px);
  height: clamp(78px, 11vw, 150px);
  pointer-events: none;
}

.hero-copy::before {
  top: -48px;
  left: -16px;
  border-top: 3px solid var(--brown);
  border-left: 3px solid var(--brown);
}

.hero-copy::after {
  right: -16px;
  bottom: -48px;
  border-right: 3px solid var(--brown);
  border-bottom: 3px solid var(--brown);
}

.hero-copy h1 {
  margin: 0 0 0.14em;
  font-size: clamp(3.5rem, 9vw, 8.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 700;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 3.1rem);
  line-height: 1.12;
}

.hero-copy span {
  display: block;
  margin: clamp(1rem, 2.6vw, 2.1rem) 0 clamp(0.95rem, 2.2vw, 1.8rem);
  color: var(--brown);
  font-size: clamp(1.85rem, 3.8vw, 3.8rem);
  line-height: 1;
  text-shadow: none;
}

.hero-copy p:last-child {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 2.25rem);
  line-height: 1.22;
  font-weight: 500;
}

.hero-copy p:last-child::first-line {
  color: var(--white);
}

.impressum-link {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2;
  translate: -50% 0;
  padding: 8px 10px;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  line-height: 1;
  text-transform: lowercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.impressum-link:hover,
.impressum-link:focus-visible {
  color: var(--white);
  outline: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 31, 48, 0.74);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(1190px, 100%);
  max-height: min(667px, calc(100vh - 32px));
  aspect-ratio: 1190 / 667;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 18, 28, 0.48);
  overflow: hidden;
  outline: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 36, 54, 0.18);
}

.modal__close:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 2px;
}

.about-card {
  display: grid;
  grid-template-columns: 50.2% 49.8%;
  width: 100%;
  height: 100%;
  color: var(--ink);
  background: var(--white);
}

.about-card__content {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.about-card__heading {
  position: absolute;
  top: 13.8%;
  left: 50%;
  z-index: 2;
  width: min(78%, 430px);
  translate: -50% 0;
  text-align: center;
}

.about-card__heading h2 {
  margin: 0 0 0.16em;
  color: var(--blue);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.about-card__heading p {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.13;
}

.about-card__heading p span {
  display: block;
  white-space: nowrap;
}

.about-card__portrait {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 66%;
  background-image: url("assets/16-transparent-1400px.png");
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left bottom;
}

.about-card__contact {
  position: absolute;
  right: clamp(24px, 4.8%, 34px);
  bottom: clamp(24px, 4.8%, 34px);
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  width: min(45%, 282px);
  padding: clamp(0.75rem, 1.6vw, 1rem) clamp(0.85rem, 1.8vw, 1.15rem);
  border-radius: 8px;
  margin: 0;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(0, 36, 54, 0.14);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.78rem, 1.45vw, 1rem);
  line-height: 1.18;
  font-style: normal;
}

.about-card__contact span {
  font-size: clamp(0.9rem, 1.65vw, 1.15rem);
}

.about-card__contact strong {
  margin-bottom: 0.62rem;
  font-weight: 700;
}

.about-card__contact strong b {
  color: var(--blue);
  font-weight: 700;
}

.about-card__contact a {
  color: inherit;
  text-decoration: none;
}

.about-card__contact a:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

.about-card__image {
  min-width: 0;
  height: 100%;
  background-image: url("assets/about-huts.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .stage {
    min-height: 100svh;
  }

  .hero-copy {
    top: 43%;
    width: min(88vw, 520px);
  }

  .hero-copy::before {
    top: -32px;
    left: -6px;
  }

  .hero-copy::after {
    right: -6px;
    bottom: -32px;
  }

  .modal {
    align-items: center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .modal__panel {
    width: min(100%, 430px);
    max-height: calc(100svh - 20px);
    aspect-ratio: auto;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 22px 64px rgba(0, 18, 28, 0.5);
  }

  .modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.75rem;
  }

  .about-card {
    display: block;
    min-height: 0;
    height: auto;
  }

  .about-card__content {
    min-height: clamp(430px, 118vw, 520px);
    padding: 30px clamp(18px, 5vw, 28px) 0;
    overflow: hidden;
  }

  .about-card__heading {
    position: static;
    z-index: 3;
    width: 100%;
    padding: 0 34px;
    translate: none;
  }

  .about-card__heading h2 {
    font-size: clamp(2.1rem, 10vw, 2.65rem);
  }

  .about-card__heading p {
    font-size: clamp(1.18rem, 5.4vw, 1.5rem);
    line-height: 1.08;
  }

  .about-card__portrait {
    position: absolute;
    left: clamp(8px, 4vw, 18px);
    bottom: 0;
    z-index: 1;
    width: min(76%, 296px);
    height: clamp(270px, 73vw, 312px);
    background-image: url("assets/about-portrait-mobile.png");
    background-size: contain;
    background-position: left bottom;
  }

  .about-card__contact {
    position: absolute;
    right: clamp(16px, 5vw, 24px);
    bottom: clamp(18px, 5vw, 26px);
    left: auto;
    z-index: 2;
    width: min(54%, 216px);
    gap: 0.45rem;
    padding: 0.72rem 0.78rem;
    font-size: clamp(0.78rem, 3.4vw, 0.9rem);
    line-height: 1.25;
  }

  .about-card__contact span {
    font-size: clamp(0.88rem, 3.8vw, 1rem);
  }

  .about-card__contact strong {
    margin-bottom: 0.4rem;
  }

  .about-card__image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
