/* Gemeinsame Gestaltung der Wartelisteseiten, gleiche Farben und Schrift wie
   index.html. Die Schrift liegt im eigenen Ordner, damit nichts von einem
   fremden Server nachgeladen wird. */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('schriften/AtkinsonHyperlegible-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('schriften/AtkinsonHyperlegible-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --verlauf-oben: #3DACF7;
  --verlauf-unten: #95FCEE;
  --karte: #FFFFFF;
  --schrift: #10313F;
  --schrift-leise: #3E5864;
  --akzent: #0B6BA8;
  --rand: #6A838E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --verlauf-oben: #0A3558;
    --verlauf-unten: #117068;
    --karte: #14272F;
    --schrift: #E4F3F7;
    --schrift-leise: #A9C2CB;
    --akzent: #93CDF8;
    --rand: #7D96A0;
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  justify-content: center;
  background: linear-gradient(160deg, var(--verlauf-oben), var(--verlauf-unten));
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  color: var(--schrift);
  line-height: 1.6;
}

main {
  width: 100%;
  max-width: 760px;
  align-self: flex-start;
  background: var(--karte);
  border-radius: 20px;
  padding: 28px 32px 32px;
  box-shadow: 0 10px 40px rgba(16, 49, 63, 0.18);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

h2 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

p { margin: 0 0 12px; }

a {
  color: var(--akzent);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.zurueck {
  display: inline-block;
  margin-bottom: 18px;
}

form { margin: 20px 0 8px; }

label { font-weight: 700; }

input[type="email"] {
  display: block;
  width: 100%;
  margin: 6px 0 18px;
  padding: 12px 14px;
  min-height: 48px;
  font: inherit;
  color: var(--schrift);
  background: var(--karte);
  border: 2px solid var(--rand);
  border-radius: 12px;
}

.einwilligung {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
}

.einwilligung input {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.15rem 0 0;
  accent-color: var(--akzent);
}

.einwilligung label { font-weight: 400; }

.knopf {
  display: inline-block;
  padding: 12px 22px;
  min-height: 48px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  color: var(--karte);
  background: var(--akzent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--schrift);
  outline-offset: 3px;
}

/* Honigtopf: fuer Menschen unsichtbar, fuer Programme ein gewoehnliches Feld.
   Bewusst ohne display oder visibility, die viele Programme erkennen. */
.versteckt {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.datenschutz {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--rand);
  font-size: 0.92rem;
  color: var(--schrift-leise);
}

.datenschutz h2 { color: var(--schrift); }

.hinweis {
  padding: 14px 16px;
  border: 2px solid var(--rand);
  border-radius: 14px;
}

footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rand);
  font-size: 0.85rem;
  color: var(--schrift-leise);
}

footer p { margin: 0; }
