@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-regular.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-bold.ttf") format("truetype");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/playfair-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/playfair-italic.ttf") format("truetype");
}

:root {
  color: #102539;
  background: #fbf8f1;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid #b66337;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 30;
  padding: 12px 16px;
  background: #fff;
}
.skip-link:focus {
  top: 12px;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  padding: 0 clamp(22px, 6vw, 100px);
  display: flex;
  align-items: center;
  gap: 5vw;
  background: linear-gradient(180deg, #fbf8f1ed, #fbf8f100);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 4px 18px #10253922;
}
.topbar nav {
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
}
.topbar nav a:hover,
.footer nav a:hover {
  color: #00745b;
}
.topbar-action {
  border: 1px solid #00745b;
  color: #00745b;
  border-radius: 100px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.topbar-action:hover {
  background: #00745b;
  color: white;
}
.topbar-action span {
  margin-left: 14px;
}

.cinema {
  position: relative;
  isolation: isolate;
}
.stage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 100svh;
  overflow: hidden;
  background: #efe9da url("/public/01-hero.jpg") center / cover no-repeat;
}

.stage-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  will-change: opacity;
}

.stage-frame:first-child {
  opacity: 1;
}
.stage-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.story {
  position: relative;
  z-index: 1;
}
.beat {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px clamp(22px, 7vw, 110px) 60px;
}

.beat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(69%, 950px);
  background: linear-gradient(
    90deg,
    #fbf8f1f5 0%,
    #fbf8f1da 50%,
    #fbf8f100 100%
  );
  pointer-events: none;
}

.story-panel {
  position: relative;
  z-index: 1;
  width: min(43vw, 580px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0 0 25px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.21em;
  color: #00745b;
}
.eyebrow span {
  width: 44px;
  height: 44px;
  border: 1px solid #00745b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  letter-spacing: 0;
  font-size: 10px;
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.057em;
  line-height: 1.12;
  margin: 0 0 25px;
}
h1 {
  font-size: clamp(58px, 6.2vw, 98px);
}
h2 {
  font-size: clamp(58px, 6vw, 92px);
}
h1 em,
h2 em {
  color: #00745b;
  font-weight: 500;
}
.description {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.64;
  max-width: 500px;
  margin: 0 0 26px;
  color: #344d5b;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 31px;
  border-radius: 100px;
  padding: 17px 23px;
  background: #00745b;
  color: white;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.primary-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px #00745b33;
}
.microcopy {
  margin: 16px 0 0;
  font-size: 12px;
  color: #526974;
}
.scroll-hint {
  position: absolute;
  left: clamp(22px, 7vw, 110px);
  bottom: 25px;
  z-index: 2;
  color: #00745b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
}
.scroll-hint span {
  display: inline-block;
  font-size: 17px;
  margin-left: 13px;
}

.proof {
  display: flex;
  align-items: center;
  gap: 17px;
  width: fit-content;
  min-width: 286px;
  padding: 9px 17px 9px 9px;
  border: 1px solid #00745b38;
  border-radius: 19px;
  background: #fffef9d9;
  box-shadow: 0 13px 40px #1b534c20;
  backdrop-filter: blur(12px);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.proof:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 42px #1b534c27;
}
.proof img {
  width: 74px;
  height: 102px;
  object-fit: cover;
  object-position: top;
  border-radius: 11px;
  border: 3px solid #102539;
}
.proof span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.proof strong {
  color: #00745b;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.proof small {
  font-size: 13px;
  font-weight: 700;
}

.footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 30px;
  align-items: end;
  padding: 55px clamp(22px, 7vw, 110px);
  background: #fbf8f1;
  font-size: 12px;
  color: #526974;
}
.footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  color: #102539;
}
.footer p {
  margin: 8px 0 0;
}
.footer nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}
.footer > span {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .topbar nav {
    display: none;
  }
  .topbar-action {
    margin-left: auto;
  }
  .story-panel {
    width: min(52vw, 540px);
  }
  .beat::before {
    width: 76%;
  }
}

@media (max-width: 700px) {
  .topbar {
    height: 68px;
    padding: 0 19px;
  }
  .brand {
    font-size: 16px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .topbar-action {
    padding: 10px 14px;
    font-size: 11px;
  }
  .topbar-action span {
    margin-left: 6px;
  }
  .stage {
    background: #fbf8f1;
  }
  .stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fbf8f100 50%, #fbf8f1 73%);
    pointer-events: none;
  }
  .stage-frame {
    height: 73%;
    object-position: 69% center;
  }
  .stage-canvas {
    height: 73%;
    bottom: auto;
  }
  .beat {
    align-items: flex-end;
    min-height: 100svh;
    padding: 75px 20px 30px;
  }
  .beat-final {
    min-height: calc(100svh + 280px);
  }
  .beat::before {
    display: none;
  }
  .story-panel {
    width: 100%;
    max-width: 500px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 24px 20px 30px;
    background: linear-gradient(180deg, #fbf8f100, #fbf8f1ed 14%, #fbf8f1 45%);
    pointer-events: none;
    opacity: 0;
  }
  .beat-hero .story-panel {
    opacity: 1;
  }
  .eyebrow {
    gap: 11px;
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
  }
  .eyebrow span {
    width: 32px;
    height: 32px;
    font-size: 8px;
  }
  h1,
  h2 {
    font-size: clamp(43px, 10.5vw, 64px);
    margin-bottom: 14px;
    line-height: 1.12;
  }
  .description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 480px;
  }
  .primary-action {
    padding: 14px 18px;
    font-size: 12px;
  }
  .microcopy {
    font-size: 10px;
    margin-top: 11px;
  }
  .scroll-hint {
    display: none;
  }
  .proof {
    min-width: 0;
    gap: 12px;
    padding: 6px 14px 6px 6px;
    border-radius: 14px;
  }
  .proof img {
    width: 52px;
    height: 71px;
    border-width: 2px;
    border-radius: 8px;
  }
  .proof strong {
    font-size: 8px;
  }
  .proof small {
    font-size: 11px;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 22px;
  }
  .footer nav {
    justify-content: flex-start;
    gap: 16px 25px;
  }
}

@media (max-width: 380px) {
  h1,
  h2 {
    font-size: 42px;
  }
  .beat {
    padding-bottom: 20px;
  }
  .description {
    font-size: 13px;
  }
  .proof img {
    width: 47px;
    height: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  .stage-frame {
    transition: none !important;
  }
  .primary-action,
  .proof {
    transition: none;
  }
}

/* The six original scenes remain readable without JavaScript or motion. */
.language-switch { font-size: 12px; font-weight: 700; color: #00745b; padding: 12px 6px; }
.topbar { gap: clamp(14px, 2.5vw, 40px); }
.footer { grid-template-columns: 1fr 2fr auto; }
body:not(.enhanced) .stage { display: none; }
body:not(.enhanced) .beat { background: center / cover no-repeat; }
body:not(.enhanced) .beat[data-scene="0"] { background-image: url("/public/01-hero.jpg"); }
body:not(.enhanced) .beat[data-scene="1"] { background-image: url("/public/02-planen.jpg"); }
body:not(.enhanced) .beat[data-scene="2"] { background-image: url("/public/03-packen.jpg"); }
body:not(.enhanced) .beat[data-scene="3"] { background-image: url("/public/04-freie-tage.jpg"); }
body:not(.enhanced) .beat[data-scene="4"] { background-image: url("/public/05-kalender.jpg"); }
body:not(.enhanced) .beat[data-scene="5"] { background-image: url("/public/06-aufbruch.jpg"); }
@media (max-width: 700px) {
  .topbar { gap: 12px; }
  .brand { gap: 8px; }
  .language-switch { margin-left: auto; }
  .topbar-action { margin-left: 0; }
  .topbar-action span { display: none; }
  .footer { grid-template-columns: 1fr; }
  body:not(.enhanced) .beat { min-height: 100svh; padding-top: 50svh; padding-bottom: 0; background-position: 69% top; background-size: auto 73svh; }
  body:not(.enhanced) .story-panel { position: relative; opacity: 1; pointer-events: auto; margin: 0 -20px; width: calc(100% + 40px); max-width: none; }
  body:not(.enhanced) .beat-final { min-height: 100svh; }
}
@media (max-height: 650px) and (max-width: 700px) {
  .enhanced .story-panel { padding-top: 12px; padding-bottom: 16px; }
  .enhanced h1, .enhanced h2 { font-size: 36px; }
  .enhanced .description { font-size: 13px; margin-bottom: 10px; }
  .enhanced .eyebrow { margin-bottom: 8px; }
}

@media (max-width: 700px) {
  /* Flowing panels keep every heading/link reachable by keyboard and assistive technology. */
  .enhanced .story-panel { position: relative; opacity: 1; pointer-events: auto; margin: 0 -20px; width: calc(100% + 40px); max-width: none; }
  .enhanced .beat { padding-bottom: 0; }
  .enhanced .beat-final { min-height: 100svh; }
}
