/* zuha fallback site — static, no build step (Cloudflare Pages).
   Palette mirrors the app (tailwind.config.js): fir/primary #2F4F3E,
   amber #F59E0B (accent, check-circle motif), cream #FAF6EE, night #16211A. */

:root {
  --fir: #2f4f3e;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --cream: #faf6ee;
  --night: #16211a;
  --ink: #171717;
  --muted: #737373;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #16211a;
    --ink: #ffffff;
    --fir: #a7c4b5;
    --muted: #a3a3a3;
    --card: #1f2d24;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

main {
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* The app's arrival-button motif: amber circle, white check. */
.check-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.check-circle svg {
  width: 48px;
  height: 48px;
}

h1 {
  color: var(--fir);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--ink);
  font-size: 1.1rem;
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: inline-block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: var(--amber);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:active {
  background: var(--amber-deep);
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--fir);
  color: var(--fir);
}

.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

.store-note {
  font-size: 0.85rem;
  color: var(--muted);
}

footer {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
}

.hidden {
  display: none;
}

/* --- Sprachumschaltung (lang.js) ---------------------------------------- */
/* Eine URL je Seite; sichtbar ist die Fassung, die zum <html data-lang> passt.
   display:revert stellt das jeweilige Default her (block für Blöcke, inline für
   Text-Spans). */
[data-lang-content] {
  display: none;
}
html[data-lang="de"] [data-lang-content="de"],
html[data-lang="en"] [data-lang-content="en"],
html[data-lang="fr"] [data-lang-content="fr"] {
  display: revert;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--fir);
  border-radius: 10px;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--fir);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  text-transform: uppercase;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--amber);
  color: #ffffff;
}

/* --- Rechtsdokument-Seiten --------------------------------------------- */
body.doc-page {
  justify-content: flex-start;
  text-align: left;
}

.site-header {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.site-header a.home {
  color: var(--fir);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

.doc {
  max-width: 720px;
  width: 100%;
  line-height: 1.6;
}

.doc h1 {
  font-size: 1.6rem;
  margin: 8px 0 4px;
}

.doc h2 {
  color: var(--fir);
  font-size: 1.05rem;
  margin: 24px 0 6px;
}

.doc p {
  color: var(--ink);
  margin: 6px 0;
}

.doc .notice {
  color: var(--muted);
  font-style: italic;
  margin: 4px 0 12px;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--muted);
  opacity: 0.3;
  margin: 24px 0 12px;
}

/* Schwebender Sprach-Umschalter für die zentrierten Seiten (Start/Invite). */
.page-top {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
}
