/* fachschaft.app — pre-launch teaser site.
   Recreates design_handoff_homepage/Homepage.dc.html + legal pages using
   the token set in tokens.css. */

@import url('tokens.css');

* { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface-page);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-link);
}

a:hover {
  color: var(--text-link-hover);
}

.wrap {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}

@media (max-width: 640px) {
  .wrap { padding: 0 var(--gutter-mobile); }
}

/* --- Motion --------------------------------------------------------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes riseInSmall {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.75; }
}
@keyframes drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(10px, -16px); }
  100% { transform: translate(0, 0); }
}

.rise-1 { animation: riseIn 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.rise-2 { animation: riseIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.12s both; }
.rise-3 { animation: riseIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.24s both; }
.rise-4 { animation: riseIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.36s both; }
.rise   { animation: riseInSmall 0.6s cubic-bezier(0.16,1,0.3,1) both; }

.chip { animation: chipFloat 5s ease-in-out infinite; }
.brand-dot { animation: pulseDot 2.2s ease-in-out infinite; display: inline-block; }
.blob-a { animation: drift 9s ease-in-out infinite; }
.blob-b { animation: drift 11s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .rise-1, .rise-2, .rise-3, .rise-4, .rise,
  .chip, .brand-dot, .blob-a, .blob-b {
    animation: none;
  }
}

/* --- Wordmark --------------------------------------------------------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  color: var(--text-heading);
}

.wordmark__dot {
  color: var(--orange-600);
}

/* --- Homepage: page shell -------------------------------------------- */

.teaser-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: var(--radius-circle);
  z-index: 0;
  pointer-events: none;
}

.blob-a {
  top: -120px;
  left: -100px;
  width: 340px;
  height: 340px;
  background: var(--surface-brand-soft);
}

.blob-b {
  bottom: -140px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: var(--surface-accent-soft);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-9) var(--gutter-desktop);
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: var(--content-max-width);
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__copy {
  flex: 1;
  min-width: 320px;
  max-width: 520px;
}

.hero__wordmark {
  font-size: 22px;
  margin-bottom: var(--space-7);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-display-xl);
  line-height: var(--leading-tight);
  color: var(--text-heading);
  margin: 0 0 var(--space-5);
}

.hero__lede {
  font-size: var(--text-body-lg);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  max-width: 460px;
  margin: 0 0 var(--space-7);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface-brand-soft);
  color: var(--teal-700);
  font-weight: var(--weight-bold);
  font-size: var(--text-body-sm);
}

/* --- Hero: floating chips --------------------------------------------- */

.hero__chips {
  flex: 1;
  min-width: 300px;
  height: 400px;
  position: relative;
}

.chip-card {
  position: absolute;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
}

.chip-card--event {
  --rot: -4deg;
  top: 12px;
  left: 30px;
  width: 180px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chip-card--files {
  --rot: 3deg;
  animation-delay: 0.8s;
  top: 150px;
  right: 10px;
  width: 190px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chip-card--progress {
  --rot: -2deg;
  animation-delay: 1.6s;
  bottom: 30px;
  left: 60px;
  width: 200px;
}

.chip-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.chip-card--event .chip-card__icon {
  background: var(--surface-brand-soft);
  color: var(--teal-700);
}

.chip-card--files .chip-card__icon {
  background: var(--surface-accent-soft);
  color: var(--orange-700);
}

.chip-card__title {
  font-weight: var(--weight-bold);
  font-size: var(--text-body-sm);
  color: var(--text-heading);
}

.chip-card__subtitle {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.chip-card--progress .chip-card__title {
  margin-bottom: var(--space-2);
}

.chip-card__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--ink-100);
  overflow: hidden;
}

.chip-card__fill {
  width: 72%;
  height: 100%;
  background: var(--teal-600);
}

/* --- Footer (shared: homepage + legal pages) --------------------------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-6);
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  gap: var(--space-6);
}

.site-footer__links a {
  text-decoration: none;
}

/* --- Legal pages --------------------------------------------------------- */

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-header__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.legal-header .wordmark {
  font-size: 20px;
}

.legal-content {
  flex: 1;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-11) var(--gutter-desktop) var(--space-12);
  box-sizing: border-box;
}

.legal-content__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-display-md);
  color: var(--text-heading);
  margin: 0 0 var(--space-6);
}

.legal-content__body {
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  font-size: var(--text-body-md);
  max-width: 720px;
}

.legal-content__back {
  margin-top: var(--space-8);
}

.legal-content__back a {
  font-weight: var(--weight-bold);
  font-size: var(--text-body-sm);
  text-decoration: none;
}
