:root {
  color-scheme: dark;
  --ink: #f4f8fb;
  --muted: #9fb2c0;
  --blue: #00aee8;
  --navy: #020f18;
}

@font-face {
  font-family: "Michroma";
  src: url("assets/Michroma-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 22%, rgba(0, 174, 232, 0.12), transparent 28rem),
    linear-gradient(145deg, #020b12 0%, var(--navy) 54%, #031723 100%);
  font-family: "Michroma", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.page::before {
  position: absolute;
  inset: 1.25rem;
  z-index: -1;
  border: 1px solid rgba(244, 248, 251, 0.12);
  border-radius: 1rem;
  content: "";
}

.ambient {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(0, 174, 232, 0.18);
  border-radius: 50%;
}

.ambient--one {
  top: -24rem;
  right: -18rem;
  width: 48rem;
  height: 48rem;
}

.ambient--two {
  bottom: -18rem;
  left: -22rem;
  width: 38rem;
  height: 38rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(24rem, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  width: min(100% - 5rem, 88rem);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.brand img {
  display: block;
  width: min(100%, 38rem);
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  object-position: left center;
  border-radius: 0.35rem;
}

.hero__copy {
  max-width: 48rem;
}

h1 {
  max-width: none;
  margin: 0;
  font-family: "Michroma", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 span {
  color: var(--blue);
}

.intro {
  max-width: 34rem;
  margin: 2.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}

.status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(4rem, 10vh, 7rem);
  color: rgba(244, 248, 251, 0.68);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0.3rem rgba(0, 174, 232, 0.1);
}

.license-note {
  position: absolute;
  right: 2.25rem;
  bottom: 2rem;
  left: 2.25rem;
  color: rgba(159, 178, 192, 0.55);
  font-size: 0.5rem;
  line-height: 1.7;
  text-align: center;
}

.license-note a {
  color: inherit;
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
}

.license-note a:hover,
.license-note a:focus-visible {
  color: var(--blue);
}

.legal-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.legal-nav a {
  color: rgba(244, 248, 251, 0.68);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--blue);
}

.license-note--static {
  position: static;
  width: min(100% - 5rem, 46rem);
  padding-bottom: 2.5rem;
}

/* Language switch (every page) and language hint (created by assets/lang-hint.js) */
.lang-switch {
  position: absolute;
  top: 2.4rem;
  right: 2.6rem;
  z-index: 1;
  display: flex;
  gap: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.lang-switch a {
  color: rgba(244, 248, 251, 0.68);
  text-decoration: none;
  transition: color 160ms ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch [aria-current] {
  color: var(--blue);
}

.lang-hint {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  padding: 0.7rem 3rem 0.7rem 1rem;
  border-bottom: 1px solid rgba(0, 174, 232, 0.25);
  background: rgba(0, 174, 232, 0.08);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.lang-hint a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

.lang-hint button {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lang-hint a:hover,
.lang-hint a:focus-visible,
.lang-hint button:hover,
.lang-hint button:focus-visible {
  color: var(--blue);
}

/* Legal pages (Impressum, Datenschutz) */
.page--legal {
  grid-template-rows: 1fr auto;
  place-items: start center;
}

.legal {
  width: min(100% - 5rem, 46rem);
  padding: clamp(4rem, 8vw, 6rem) 0 4rem;
}

.legal__home {
  display: inline-block;
  margin: -1rem 0 1.5rem -1rem;
  border-radius: 0.35rem;
}

.legal__home img {
  display: block;
  width: 8rem;
  height: auto;
}

.legal h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  hyphens: manual;
}

.legal h2 {
  margin: 2.75rem 0 0.9rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
  hyphens: auto;
  overflow-wrap: break-word;
}

.legal p,
.legal ul,
.legal address {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  color: var(--ink);
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
}

.legal a:hover,
.legal a:focus-visible,
.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--blue);
}

.legal__meta {
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .page {
    place-items: start center;
  }

  .page::before {
    inset: 0.75rem;
  }

  .hero {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    width: min(100% - 3.5rem, 36rem);
    padding: 4.5rem 0 7.5rem;
  }

  .brand {
    margin-bottom: 2.5rem;
  }

  .brand img {
    width: min(100%, 25rem);
    max-height: 48vh;
  }

  .status {
    margin-top: 4.5rem;
  }

  .license-note {
    right: 1.75rem;
    bottom: 1.35rem;
    left: 1.75rem;
    font-size: 0.44rem;
  }

  .lang-switch {
    top: 1.6rem;
    right: 1.75rem;
  }

  .legal,
  .license-note--static {
    width: min(100% - 3.5rem, 46rem);
  }

  .legal {
    padding-top: 3.5rem;
  }

  .license-note--static {
    padding-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .hero__copy,
  .status {
    animation: reveal 700ms both cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero__copy {
    animation-delay: 100ms;
  }

  .status {
    animation-delay: 200ms;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(1rem);
    }
  }
}
