@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/cormorant-garamond-latin.v21.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/cormorant-garamond-italic-latin.v21.woff2")
    format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin.v20.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #100e0c;
  --ivory: #efe8de;
  --grey: #978d81;
  --amber: #e5b573;
  --line: rgb(239 232 222 / 10%);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Baskerville", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --page-x: clamp(1.5rem, 4.5vw, 5rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border: 1px solid var(--amber);
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.8rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

/* --- Linke Spalte: Typografie --- */

.editorial {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: clamp(5.5rem, 12vh, 7rem);
  padding: 0 var(--page-x);
}

.brand {
  display: block;
  width: clamp(7.5rem, 9.5vw, 9.5rem);
  outline-offset: 0.35rem;
}

.brand img {
  width: 100%;
  height: auto;
  /* Logo ist dunkel auf transparent gezeichnet — auf dunklem Grund aufhellen */
  filter: invert(0.93) hue-rotate(180deg) saturate(0.35);
}

.status {
  margin: 0;
  color: var(--grey);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  align-self: center;
  max-width: 36rem;
  padding: 2rem var(--page-x);
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--amber);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 4.2vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h1 em {
  color: var(--amber);
  font-style: italic;
  font-weight: 400;
}

.intro {
  position: relative;
  max-width: 30rem;
  margin: 2.5rem 0 0;
  padding-left: 1.75rem;
  color: var(--grey);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.intro::before {
  position: absolute;
  top: 0.45em;
  bottom: 0.85em;
  left: 0;
  width: 1px;
  background: linear-gradient(
    rgb(229 181 115 / 0%),
    rgb(229 181 115 / 70%)
  );
  content: "";
}

.intro::after {
  position: absolute;
  bottom: 0.28em;
  left: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow:
    0 0 0.9rem 0.15rem rgb(229 181 115 / 45%),
    0 0 2.5rem 0.6rem rgb(229 181 115 / 18%);
  content: "";
}

.arrival {
  margin: 2.25rem 0 0;
  padding-left: 1.75rem;
  color: var(--ivory);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.9rem 0;
  margin: 0 var(--page-x);
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.impressum {
  flex-basis: 100%;
  letter-spacing: 0.05em;
  text-transform: none;
  opacity: 0.85;
}

.site-footer p {
  margin: 0;
}

.commergy-signature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.commergy-signature img {
  width: 0.7rem;
  height: auto;
  opacity: 0.7;
  /* Steine sind dunkel gezeichnet — auf dunklem Grund aufhellen */
  filter: invert(0.9) saturate(0.3);
}

/* --- Rechte Spalte: Foto --- */

.hero-figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kante zur Textspalte ausbluten lassen */
.hero-figure::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(16 14 12 / 100%) 0%,
    rgb(16 14 12 / 92%) 10%,
    rgb(16 14 12 / 72%) 22%,
    rgb(16 14 12 / 45%) 34%,
    rgb(16 14 12 / 20%) 46%,
    rgb(16 14 12 / 6%) 56%,
    rgb(16 14 12 / 0%) 66%
  );
  content: "";
}

/* schwacher Amber-Schein in der Trennzone */
.hero-figure::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 0% 45%,
    rgb(229 181 115 / 10%),
    transparent 60%
  );
  content: "";
}

/* --- Einmaliges, gestaffeltes Einblenden --- */

.reveal {
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.d1 {
  animation-delay: 120ms;
}

.d2 {
  animation-delay: 220ms;
}

.d3 {
  animation-delay: 340ms;
}

.d4 {
  animation-delay: 460ms;
}

.d5 {
  animation-delay: 580ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* --- Mobil: eine Spalte --- */

@media (max-width: 56rem) {
  html,
  body {
    height: auto;
    overflow: visible;
  }

  .page-shell {
    display: flex;
    height: auto;
    min-height: 100svh;
    flex-direction: column;
  }

  .editorial {
    display: contents;
  }

  .site-header {
    order: 1;
  }

  .hero-figure {
    order: 2;
    width: 100%;
    height: 46vh;
    min-height: 42vh;
  }

  /* Foto läuft nach unten in den Hintergrund aus */
  .hero-figure::before {
    background: linear-gradient(
      180deg,
      rgb(16 14 12 / 0%) 52%,
      rgb(16 14 12 / 97%) 100%
    );
  }

  .hero-figure::after {
    background: radial-gradient(
      ellipse 80% 45% at 50% 100%,
      rgb(229 181 115 / 8%),
      transparent 65%
    );
  }

  .hero {
    order: 3;
    max-width: none;
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: clamp(2.5rem, 9.5vw, 3.75rem);
  }

  .site-footer {
    order: 4;
    margin-top: auto;
  }
}

@media (max-width: 30rem) {
  .status {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

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

/* --- Launch signup ---------------------------------------------------------------- */

.signup {
  margin-top: 2.4rem;
  max-width: 26rem;
}

.signup-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--grey);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signup-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.signup-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.signup-row input::placeholder {
  color: var(--grey);
}

.signup-row input:focus-visible {
  outline: none;
}

.signup-row:focus-within {
  border-bottom-color: var(--amber);
}

.signup-row button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--amber);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.signup-row button:hover,
.signup-row button:focus-visible {
  color: var(--ivory);
}

.signup-consent {
  margin: 0.9rem 0 0;
  color: var(--grey);
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.55;
}

.signup-note {
  display: none;
  margin: 0.9rem 0 0;
  color: var(--amber);
  font-family: var(--sans);
  font-size: 0.8rem;
}

.signup-note:target {
  display: block;
}

/* --- Legal popovers ---------------------------------------------------------------- */

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--ivory);
}

.legal-popover {
  max-width: min(28rem, calc(100vw - 3rem));
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--ivory);
  padding: 2rem 2.2rem;
}

.legal-popover::backdrop {
  background: rgb(16 14 12 / 65%);
}

.legal-popover h2 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.legal-popover p {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ivory);
}

.legal-popover .link-button {
  color: var(--grey);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Mit Signup-Formular kann der Hero auf flachen Viewports höher werden als der
   fixe Rahmen — dann lieber scrollen als abschneiden. */
@media (min-width: 56rem) and (max-height: 46rem) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100svh;
  }
}

.commergy-signature a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.commergy-signature a:hover span,
.commergy-signature a:focus-visible span {
  color: var(--ivory);
}

.legal-popover a {
  color: var(--amber);
  text-underline-offset: 0.2em;
}
