@import url("fonts.css");

/* ---------- Basis ---------- */

:root {
  --civara-deep: #0E5F6E;
  --civara-teal: #0FA795;
  --civara-dark-teal: #0E6E77;
  --civara-mint: #D9FFF0;
  --civara-ink: #0B2B31;
  --civara-paper: #F4F7F6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

/* ---------- Coming Soon ---------- */

.home {
  min-height: 100svh;
  background: var(--civara-deep);
  background-image: linear-gradient(115deg, #4BE79A 0%, #17C695 34%, #0FA795 58%, #0E6E77 100%);
  background-size: 200% 200%;
  background-attachment: fixed;
  animation: civaraGradient 22s ease-in-out infinite;
}

.home a {
  color: #ffffff;
}

.home a:hover {
  color: var(--civara-mint);
}

/* Punktraster */
.home::before,
/* Licht oben links, Vignette unten rechts */
.home::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.home::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  animation: civaraDots 60s linear infinite;
}

.home::after {
  background:
    radial-gradient(120% 120% at 12% 8%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(130% 130% at 95% 95%, rgba(6, 52, 62, 0.45) 0%, rgba(6, 52, 62, 0) 55%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.hero__logo {
  width: clamp(280px, 38vw, 460px);
  height: auto;
  animation: civaraFadeUp 0.9s ease-out both;
}

.hero__claim {
  margin: 56px 0 0;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  animation: civaraFadeUp 0.9s ease-out 0.25s both;
}

.hero__note {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 19px);
  animation: civaraFadeUp 0.9s ease-out 0.4s both;
}

/* ---------- Fusszeile ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 40px;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.footer__brand {
  letter-spacing: 0.01em;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer__link {
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer__link:hover {
  color: #ffffff;
}

.footer__mail {
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

.footer__mail:hover {
  border-bottom-color: #ffffff;
  color: #ffffff;
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .hero__claim {
    margin-top: 40px;
  }
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */

.legal {
  background: var(--civara-paper);
  color: var(--civara-ink);
}

.legal a {
  color: var(--civara-teal);
}

.legal a:hover {
  color: var(--civara-dark-teal);
}

.legal__inner {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal__back {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.legal__logo {
  width: 180px;
  height: auto;
  display: block;
}

.legal__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 44px);
  letter-spacing: -0.02em;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(11, 43, 49, 0.1);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.card--tight {
  gap: 20px;
}

.card__label {
  font-weight: 700;
  margin-bottom: 4px;
}

.card a {
  font-weight: 600;
}

.legal__hint {
  margin: 0;
  font-size: 13px;
  color: rgba(11, 43, 49, 0.5);
}

@media (max-width: 640px) {
  .legal__inner {
    padding: 40px 20px 64px;
  }

  .card {
    padding: 24px;
  }
}

/* ---------- Animationen ---------- */

@keyframes civaraGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes civaraDots {
  0% { background-position: 0 0; }
  100% { background-position: 26px 26px; }
}

@keyframes civaraFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
