/* Area Fifty One GmbH — Coming Soon
   Shared styles for index.html and impressum.html */

:root {
  --bg: #000000;
  --fg: #b9b9b9;
  --fg-dim: #7a7a7a;
  --fg-bright: #e8e8e8;
  --hairline: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

/* ---------- Coming soon page ---------- */

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 20px 90px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Longhand on purpose: an "animation" shorthand here would implicitly
   reset animation-delay to 0s on this rule, and because ".content img"
   is more specific than the per-image classes below, that 0s would win
   over their intended delays. Keeping delay out of this rule avoids
   the conflict entirely. */
.content img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  animation-name: fadeIn;
  animation-duration: 1.1s;
  animation-timing-function: var(--ease);
  animation-fill-mode: forwards;
}

.logo {
  width: clamp(200px, 33.6vw, 645px);
  margin-bottom: clamp(28px, 15vh, 240px);
  animation-delay: 0.8s;
  max-width: 580px;
}

.nav {
  width: clamp(220px, 61.4vw, 1179px);
  margin-bottom: clamp(10px, 3.1vh, 34px);
  animation-delay: 1.3s;
  max-width: 870px;
}

.comingsoon {
  width: clamp(130px, 19.3vw, 370px);
  animation-delay: 1.6s;
  max-width: 870px;
  position: relative;
  top: -15px;
}

@media all and (max-width: 800px) {
  .logo {
    width: clamp(200px, 33.6vw, 645px);
    margin-bottom: clamp(28px, 6vh, 240px);
    animation-delay: 0.8s;
    max-width: 580px;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.impressum-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards;
  animation-delay: 1.8s;
}

.impressum-link:hover,
.impressum-link:focus-visible {
  color: var(--fg-bright);
  border-color: var(--hairline);
}

@media (prefers-reduced-motion: reduce) {
  .impressum-link {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Impressum page ---------- */

.legal {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 12vh 20px 10vh;
}

.legal-inner {
  width: 100%;
  max-width: 640px;
}

.legal-inner h1 {
  margin: 0 0 48px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-bright);
  text-align: left;
}

.legal-section {
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}

.legal-section:last-of-type {
  border-bottom: 1px solid var(--hairline);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.legal-section p {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
}

.legal-back {
  display: block;
  margin-top: 48px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--fg-bright);
}
