/* paloaltea.app – ein Stil für Startseite, Rechtstexte und Hinweisseiten.
   Farben aus der App: das Navy der Icon-Zeichnung, das Reise-Blau des
   Themes (AppColors.seed), das Grün für „läuft gerade" (AppColors.live).
   Keine Webfonts, keine fremden Hosts – die Datenschutzerklärung sagt es so. */

:root {
  --paper: #fbf9f4;
  --card: #ffffff;
  --text: #1c2433;
  --muted: #5b6675;
  --heading: #0e2a52;
  --line: #e6e1d6;
  --blue: #1b6ef3;
  --blue-ink: #ffffff;
  --live: #17a673;
  --tile: #ffffff;
  --shadow: 0 18px 50px rgba(14, 42, 82, 0.10);
  --radius: 16px;
  --radius-control: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1520;
    --card: #161e2c;
    --text: #e8ecf3;
    --muted: #a3adbd;
    --heading: #f2f5fa;
    --line: #26303f;
    --blue: #5b95ff;
    --blue-ink: #0b1a33;
    --live: #3cc48f;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 760; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }

.wrap { width: min(1040px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }

/* Kopfzeile */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--heading); text-decoration: none; font-weight: 740; font-size: 1.2rem;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; background: var(--tile); }
.nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 520; }
.nav a:hover { color: var(--blue); }
.nav .lang { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.04em; }

/* Knöpfe */
.button {
  display: inline-block; padding: 0.75rem 1.25rem; border-radius: var(--radius-control);
  background: var(--blue); color: var(--blue-ink); font-weight: 640; text-decoration: none;
  border: 0; font: inherit; font-weight: 640; cursor: pointer;
}
.button:hover { filter: brightness(1.06); }
.button.quiet { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.quiet:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); filter: none; }
.button:disabled { opacity: 0.6; cursor: wait; }

/* Bühne */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
  padding: 3rem 0 4rem;
}
.eyebrow {
  display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live);
  font-size: 0.85rem; font-weight: 640; letter-spacing: 0.02em;
}
.lead { font-size: 1.22rem; color: var(--muted); max-width: 34rem; }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.tile {
  justify-self: center; width: min(360px, 80%); aspect-ratio: 1;
  border-radius: 22.5%; background: var(--tile); box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden;
}
.tile img { width: 100%; height: 100%; display: block; }

/* Abschnitte */
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 40rem; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 0.8rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.9rem; max-width: 44rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--live);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3.2 3.2L17 9' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3.2 3.2L17 9' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.checks strong { color: var(--heading); font-weight: 640; }

/* Warteliste */
.join-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; margin-top: 2rem; max-width: 40rem; box-shadow: var(--shadow);
}
.join { display: grid; gap: 0.8rem; }
.join label { font-weight: 620; color: var(--heading); }
.join .row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.join input[type="email"] {
  flex: 1 1 16rem; min-width: 0; padding: 0.75rem 0.9rem; font: inherit;
  border: 1.5px solid var(--line); border-radius: var(--radius-control);
  background: var(--paper); color: var(--text);
}
.join input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.join .consent { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--muted); }
.join .status { margin: 0; min-height: 1.5em; font-weight: 600; color: var(--live); }
.join .status.error { color: #c2410c; }
.join.joined .row { display: none; }
/* Der Honigtopf: nicht `display:none`, damit ihn ein Skript für echt hält –
   aber außerhalb des Bildes und außerhalb der Tab-Reihenfolge. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Fußzeile */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer .links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 0 0 0.8rem; padding: 0; list-style: none; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--blue); }
footer .fine { font-size: 0.85rem; }

/* Rechtstexte */
.article { padding: 2rem 0 4rem; }
.article header { margin-bottom: 2rem; }
.article .meta { color: var(--muted); }
.article .switch { display: inline-block; margin-top: 0.4rem; }
.article h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.article h3 { margin-top: 1.6rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: 0.4rem; }
.article .box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 1.4rem 0;
}
.article .box p:last-child { margin-bottom: 0; }
.scroll { overflow-x: auto; margin: 1.2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
th { color: var(--heading); font-weight: 660; }
address { font-style: normal; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* Hinweisseiten (Antwort ohne Skript, 404) */
body.notice { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.notice-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 2.2rem; max-width: 34rem; box-shadow: var(--shadow);
}
.notice-card h1 { font-size: 1.6rem; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem 0 3rem; }
  .tile { order: -1; width: min(220px, 60%); }
  .grid, .grid.three { grid-template-columns: 1fr; }
  .nav { gap: 0.9rem; }
  .nav .hide-small { display: none; }
  section { padding: 2.5rem 0; }
  .join-card { padding: 1.4rem; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
