/* ---------- Fonts ---------- */
@font-face {
  font-family: "GT America";
  src: url("fonts/GT-America-Standard-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT America";
  src: url("fonts/GT-America-Standard-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nastasja Handschrift";
  src: url("fonts/NastasjaHandschrift-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

:root {
  --bg: #3E5648;
  --fg: #F2EFE8;
  --fg-muted: rgba(242, 239, 232, 0.78);
  --btn-bg: #F4F1EA;
  --btn-fg: #2A3B30;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "GT America", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ---------- Challenge pages ---------- */
.challenge {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.btn {
  position: absolute;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: "Nastasja Handschrift", system-ui, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.btn .smiley {
  display: inline-block;
  vertical-align: -0.22em;
  margin-left: 0.25em;
}
.btn:hover { transform: scale(1.05) rotate(-1deg); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* Position helpers — used by individual challenge pages */
.pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.pos-tr     { top: 18%;  right: 12%; }
.pos-br     { bottom: 22%; right: 18%; }
.pos-tl     { top: 12%;  left: 8%; max-width: 18rem; white-space: normal; line-height: 1.25; }

/* Mobile fallback — keep buttons visible inside viewport */
@media (max-width: 600px) {
  .pos-tr { top: 22%; right: 6%; }
  .pos-br { bottom: 18%; right: 6%; }
  .pos-tl { top: 8%;   left: 6%; max-width: 70vw; }
  .btn    { font-size: 1.05rem; padding: 0.75rem 1.25rem; }
}

/* ---------- Coming Soon page ---------- */
.cs-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.cs-brand {
  font-family: "Nastasja Handschrift", "GT America", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1;
  align-self: flex-start;
}

.cs-image {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}
.cs-image img {
  width: 100%;
  height: auto;
  max-height: 60dvh;
  object-fit: contain;
  display: block;
}

.cs-text {
  text-align: center;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 0.5rem;
}
.cs-text p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}
.cs-text .lang-de { color: var(--fg); }
.cs-text .lang-en { color: var(--fg-muted); }
.cs-text hr {
  width: 40px;
  height: 1px;
  background: rgba(242,239,232,0.25);
  border: 0;
  margin: 0.25rem auto;
}

.cs-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: "Nastasja Handschrift", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 2.5rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  margin-top: 0.5rem;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.cs-pdf:hover { transform: scale(1.04); }
.cs-pdf:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: rgba(242,239,232,0.7);
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.75rem;
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--fg); }
