/* Crocaz – Coming soon. Layout and motion follow the design; everything that moves is a transform
   or opacity so it stays on the compositor, and the teaser cards are pre-blurred images. */

/* Archivo (SIL OFL 1.1, see assets/fonts/OFL.txt), self-hosted: no request to Google. Variable font,
   latin subset, Expanded width; covers the 700 and 900 weights the title uses. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700 900;
  font-stretch: 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-expanded-latin.woff2") format("woff2");
}

html, body { margin: 0; background: #000000; }

/* Top bar, shared by the landing page and etamo/. Only the buttons take pointer events. */
:root {
  --nav-top: max(10px, env(safe-area-inset-top, 0px));
  --nav-h: calc(var(--nav-top) + 62px); /* bar plus air (the landing cards bob 12px up): nothing starts above this line */
}
.cz-nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 10; box-sizing: border-box;
  display: flex; align-items: center; gap: 8px;
  padding: var(--nav-top) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  font: 600 15px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; pointer-events: none;
}
.cz-nav-logo, .cz-nav-btn {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 44px;
  border-radius: 999px; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.cz-nav-logo { flex: none; min-width: 44px; margin: 0 4px 0 -4px; padding: 0 4px; }
.cz-nav-logo img { display: block; width: auto; height: 26px; -webkit-user-drag: none; }
.cz-nav-btn {
  margin: 0; padding: 0 18px; border: 1px solid #ffffff2e; background: #0000005c;
  color: #ffffff; font: inherit; text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
/* Back and the language switch of the Etamo pages. */
.cz-nav-back { gap: 8px; padding-left: 14px; }
.cz-nav-lang { margin-left: auto; min-width: 44px; padding: 0 14px; }
.cz-nav-btn[aria-current="page"] { background: #ffffff38; border-color: transparent; }
.cz-nav-logo:focus-visible, .cz-nav-btn:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .cz-nav-btn:not([aria-current]):hover { border-color: #ffffff66; background: #ffffff1f; }
}

.cz-root {
  --p: 96;
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  overflow: clip; /* not a scroll container: focus or find-in-page can't shift the scene */
  background: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Globe */
.cz-globe-wrap { position: absolute; left: 50%; top: 63%; width: min(78%, 1320px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; }
.cz-globe-host { position: absolute; inset: 0; }
.cz-globe-host canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cz-globe-fx { cursor: grab; touch-action: pan-y; }
.cz-globe-fx:active { cursor: grabbing; }
/* Without WebGL: a quiet sphere, the routes still run on top. */
.cz-globe-host.is-flat::before {
  content: ""; position: absolute; inset: 6.9%; border-radius: 50%; opacity: .62;
  background: radial-gradient(circle at 30% 35%, #16304d, #0b1a2b 70%);
  box-shadow: 0 0 60px rgba(60, 140, 255, .28), inset 0 0 40px rgba(120, 190, 255, .2);
}
.cz-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, #000000c2 0%, #0000007a 20%, rgba(0, 0, 0, 0) 42%),
              linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, 0) 30%);
}
/* Footer: source credit for the globe textures (NASA asks to be named as the source) and the
   Impressum button. Only the button takes pointer events; the row never blocks the cards. */
.cz-foot {
  position: absolute; left: 0; right: 0; bottom: max(6px, env(safe-area-inset-bottom)); z-index: 9;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px;
  padding: 0 16px; font-size: 11px; line-height: 1.4; letter-spacing: .02em;
  color: #ffffffa6; pointer-events: none;
}
.cz-credit { margin: 0; }
.cz-legal-link {
  pointer-events: auto; display: inline-block; padding: 2px 10px; border-radius: 999px;
  border: 1px solid #ffffff2e; background: #0000005c; color: inherit; text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.cz-legal-link:hover { color: #ffffff; border-color: #ffffff66; background: #ffffff14; }
.cz-legal-link:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.cz-confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; }

/* Hero */
.cz-hero {
  position: absolute; left: 0; right: 0; top: 44%; transform: translateY(-50%); z-index: 2;
  text-align: center; pointer-events: none;
  animation: czIn 1.4s cubic-bezier(.2, .8, .2, 1) .15s both;
}
.cz-hero::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(1200px, 130%); height: calc(100% + 220px); z-index: -1;
  transform: translate(-50%, -50%);
  /* Dark pool behind logo and title so white text keeps strong contrast over the bright globe. */
  background: radial-gradient(closest-side, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .78) 45%, rgba(0, 0, 0, .4) 75%, rgba(0, 0, 0, 0) 100%);
}
.cz-logo {
  display: block; margin: 0 auto clamp(14px, 2.2vw, 30px);
  width: auto; height: clamp(120px, 11vw, 190px);
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .6));
}
.cz-title {
  margin: 0; padding: 0 16px;
  font-family: "SF Pro Expanded", "Archivo", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(38px, 6.4vw, 112px); font-weight: 900; line-height: 1.08; letter-spacing: -0.01em;
  color: #ffffff;
  background: linear-gradient(100deg, #ffffffd9 0%, #ffffffd9 40%, #ffffff 47%, #bff7ff 50%, #ffffff 53%, #ffffffd9 60%, #ffffffd9 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: czShimmer 7s ease-in-out 1.6s infinite;
}

/* The mark is the page's heading; below it one button per offer. */
.cz-mark { margin: 0; }
.cz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(20px, 2.4vw, 32px) 0 0; }
.cz-actions .cz-explore { min-width: 132px; margin-top: 0; }

/* Explore: the only part of the hero that takes the pointer (the globe stays draggable around it). */
.cz-explore {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  height: 50px; margin-top: clamp(20px, 2.4vw, 32px); padding: 0 28px; border-radius: 999px;
  background: #ffffff; color: #000000; text-decoration: none; pointer-events: auto;
  font: 600 17px/22px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background-color .2s;
}
.cz-explore:active { transform: scale(.97); }
.cz-explore:focus-visible { outline: 2px solid #0a84ff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cz-explore:hover { background: #e6e6e6; } }

/* Teaser cards. --w/--h: card box in design px, --u: one design px on screen, --p: blur halo. */
.cz-f { position: absolute; z-index: 4; animation: czIn 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 130ms + 450ms); }
.cz-bob { transform: scale(var(--s, 1)); transform-origin: var(--origin, center); animation: czBob var(--bob, 8s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.cz-card {
  --u: 1px;
  position: relative;
  width: calc(var(--w, 300) * var(--u));
  height: calc(var(--h, 200) * var(--u));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .18s ease-out;
}
.cz-layer { position: absolute; inset: 0; pointer-events: none; transition: opacity .2s, transform .18s ease-out; }
.cz-layer img {
  position: absolute; display: block; max-width: none;
  width: calc((var(--w) + 2 * var(--p)) * var(--u));
  height: calc((var(--h) + 2 * var(--p)) * var(--u));
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.cz-at-tl .cz-layer img { left: calc(var(--p) * var(--u) * -1); top: calc(var(--p) * var(--u) * -1); }
.cz-at-tr .cz-layer img { right: calc(var(--p) * var(--u) * -1); top: calc(var(--p) * var(--u) * -1); }
.cz-at-bl .cz-layer img { left: calc(var(--p) * var(--u) * -1); bottom: calc(var(--p) * var(--u) * -1); }
.cz-at-br .cz-layer img { right: calc(var(--p) * var(--u) * -1); bottom: calc(var(--p) * var(--u) * -1); }
.cz-layer.is-pressed { transform: scale(.92); }

.cz-hit {
  position: absolute; z-index: 2; box-sizing: border-box;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--hw) * var(--u)); height: calc(var(--hh) * var(--u));
  margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: transparent; font: inherit;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.cz-hit[hidden] { display: none; }
.cz-hit:focus-visible { outline: 2px solid #0a84ff; outline-offset: 3px; }
.cz-hit-card { left: 0; top: 0; width: 100%; height: 100%; border-radius: calc(28 * var(--u)); }
.cz-card:has(.cz-hit-card:active) { opacity: .8; }
.cz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cz-knob { position: absolute; inset: 0; pointer-events: none; transition: transform .35s cubic-bezier(.3, 1.35, .5, 1); }
.cz-knob.is-drag { transition: none; }
.cz-nudge { position: absolute; inset: 0; }
.is-idle .cz-nudge { animation: czNudge 2.5s ease-in-out 1.5s infinite; }
.cz-knob .cz-hit { pointer-events: auto; cursor: grab; touch-action: none; }
.cz-knob.is-drag .cz-hit { cursor: grabbing; }

@media (hover: hover) and (pointer: fine) {
  .cz-f:hover .cz-card { transform: translateY(-4px) scale(1.02); }
}

.cz-f-meet { left: 4%; top: max(7%, var(--nav-h)); --i: 1; --bob: 7.5s; --delay: -1s; }
.cz-f-guests { right: 4%; top: max(6%, var(--nav-h)); --i: 2; --bob: 8.5s; --delay: -3s; }
.cz-f-arrival { left: 4%; bottom: 5%; --i: 3; --bob: 9.5s; --delay: -5s; }
.cz-f-delay { right: 4%; bottom: 21%; --i: 4; --bob: 8s; --delay: -2s; }
.cz-f-slider { right: 4%; bottom: 5%; --i: 5; --bob: 9.5s; --delay: -4s; }
.cz-f-meet .cz-bob { --origin: top left; }
.cz-f-guests .cz-bob { --origin: top right; --s: .92; }
.cz-f-arrival .cz-bob { --origin: bottom left; --s: .82; }
.cz-f-delay .cz-bob { --origin: bottom right; --s: .84; }
.cz-f-slider .cz-bob { --origin: bottom right; }

@keyframes czIn { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
@keyframes czFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes czBob { 0%, 100% { transform: translateY(0) scale(var(--s, 1)); } 50% { transform: translateY(-12px) scale(var(--s, 1)); } }
@keyframes czShimmer { 0% { background-position: 100% 0; } 65%, 100% { background-position: 0% 0; } }
@keyframes czNudge { 0%, 30%, 100% { transform: translateX(0); } 10% { transform: translateX(calc(7 * var(--u))); } 20% { transform: translateX(0); } }

@media (max-width: 1100px) {
  .cz-f-meet .cz-bob, .cz-f-guests .cz-bob, .cz-f-delay .cz-bob { --s: .74; }
  .cz-f-slider .cz-bob { --s: .74; }
  .cz-f-arrival .cz-bob { --s: .68; }
  .cz-f-meet { left: 3%; top: max(5%, var(--nav-h)); }
  .cz-f-guests { right: 3%; top: max(5%, var(--nav-h)); }
  .cz-f-arrival { left: 3%; bottom: 3%; }
  .cz-f-delay { right: 3%; bottom: 20%; }
  .cz-f-slider { right: 3%; bottom: 3%; }
}
@media (max-width: 700px) {
  .cz-globe-wrap { width: 178%; top: 68%; }
  .cz-hero { top: 46%; }
  .cz-title { font-size: 19vw; line-height: 1; }
  .cz-line { display: block; }
  .cz-f-guests, .cz-f-delay, .cz-f-arrival { display: none; }
  .cz-f-meet { left: 16px; right: 16px; top: var(--nav-h); }
  .cz-f-meet .cz-bob { --s: .86; --origin: top center; }
  .cz-f-meet .cz-card { --u: calc(min(100vw - 32px, 420px) / var(--w)); margin: 0 auto; }
  /* Rises with the home-indicator inset so it stays clear of the footer (which sits on that inset). */
  .cz-f-slider { left: 24px; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .cz-f-slider .cz-bob { --s: .9; --origin: bottom center; }
  .cz-f-slider .cz-card { --u: calc(min(100vw - 48px, 420px) / var(--w)); margin: 0 auto; }
}

/* Short phones: the top card sits below the bar, so the title moves down with it. */
@media (max-width: 700px) and (max-height: 640px) {
  .cz-hero { top: 53%; }
  .cz-logo { height: 84px; margin-bottom: 8px; }
  .cz-title { font-size: 16vw; }
  .cz-explore { height: 44px; margin-top: 14px; }
  .cz-actions { margin-top: 14px; }
}

/* Weaker devices: no full-frame text repaint, no filter animations. */
.cz-low .cz-title { animation: none; }
.cz-low .cz-f, .cz-low .cz-hero { animation-name: czFade; }

@media (prefers-reduced-motion: reduce) {
  .cz-root *, .cz-root *::before { animation: none !important; }
  .cz-card, .cz-knob, .cz-layer { transition: none; }
}

/* ---- Impressum ------------------------------------------------------------------------------
   Plain and typographic: a label/value list, one rule under the header, no icons or effects.
   Shared by the overlay on the landing page and the plain impressum.html. */
.cz-legal {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 15px; line-height: 1.55; color: #e6e6e6; overflow-wrap: anywhere;
  -webkit-user-select: text; user-select: text;
}
.cz-legal-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: #ffffff; }
.cz-legal .cz-legal-lead {
  margin: 2px 0 0; padding-bottom: 20px; border-bottom: 1px solid #ffffff1f;
  font-size: 13px; color: #8c8c8c;
}
.cz-legal p, .cz-legal dd, .cz-legal dl { margin: 0; }

.cz-legal-list { margin: 0; }
.cz-legal-list > div {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid #ffffff12;
}
.cz-legal-list dt { color: #8c8c8c; }
.cz-legal-list dd { color: #ffffff; }

.cz-legal-note { margin-top: 24px; }
.cz-legal h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #b3b3b3; }
.cz-legal-note p { font-size: 13px; line-height: 1.6; color: #8c8c8c; }

.cz-legal a {
  color: inherit; text-decoration: underline; text-decoration-color: #ffffff4d;
  text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s;
}
.cz-legal a:hover { text-decoration-color: #ffffff; }
.cz-legal a:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; border-radius: 2px; }

@media (max-width: 480px) {
  .cz-legal-list > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .cz-legal-list dt { font-size: 13px; }
  .cz-legal-note p { -webkit-hyphens: auto; hyphens: auto; }
}

/* Overlay in the top layer, outside .cz-root. No backdrop-filter: it would re-blur the animated
   globe every frame. */
.cz-modal {
  box-sizing: border-box; position: fixed;
  width: min(520px, calc(100vw - 24px)); max-width: none;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; overflow: hidden;
  border: 1px solid #ffffff1f; border-radius: 12px;
  background: #0f0f0f; color: #ffffff;
  -webkit-font-smoothing: antialiased;
}
.cz-modal[open] { display: flex; flex-direction: column; }
.cz-modal::backdrop { background: rgba(0, 0, 0, .6); }
.cz-modal-bar { position: absolute; top: 18px; right: 18px; z-index: 1; }
.cz-modal-close {
  display: grid; place-items: center; width: 36px; height: 36px; margin: -6px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: #8c8c8c;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: color .15s, background-color .15s;
}
.cz-modal-close:hover { color: #ffffff; background: #ffffff0f; }
.cz-modal-close:focus-visible { outline: 2px solid #ffffff; outline-offset: 0; }
.cz-modal-body { overflow: auto; overscroll-behavior: contain; padding: 26px 28px 28px; }
.cz-modal .cz-legal-title { padding-right: 40px; }

.cz-modal[open] { animation: czFade .16s ease-out both; }
.cz-modal[open]::backdrop { animation: czFade .16s ease-out both; }
.cz-modal.is-closing, .cz-modal.is-closing::backdrop { animation: czFadeOut .12s ease-in both; }
@keyframes czFadeOut { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 480px) {
  .cz-modal-body { padding: 22px 20px 24px; }
  .cz-modal-bar { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cz-modal, .cz-modal::backdrop { animation: none !important; }
}

/* Plain impressum.html (direct visits, no JS). */
.cz-legal-page { margin: 0; min-height: 100vh; min-height: 100dvh; background: #0f0f0f; -webkit-font-smoothing: antialiased; }
.cz-legal-wrap {
  box-sizing: border-box; max-width: 560px; margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px max(40px, env(safe-area-inset-bottom));
}
.cz-legal-back {
  display: inline-block; margin-bottom: 32px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 14px; color: #8c8c8c; text-decoration: none; transition: color .15s;
}
.cz-legal-back:hover { color: #ffffff; }
.cz-legal-back:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 2px; }

/* Longer legal pages (etamo/datenschutz.html): space between paragraphs of one section. */
.cz-legal-note p + p { margin-top: 10px; }
