/* =====================
   BASIS
===================== */

body {
  margin: 0;
  padding: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px; /* 🔽 etwas kleiner */
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: auto !important;
}

/* =====================
   TYPOGRAFIE
===================== */

h1 {
  font-size: clamp(28px, 7.5vw, 38px);
  margin: 22px 0 16px;
  text-align: center;
}

h2 {
  font-size: clamp(22px, 6vw, 30px);
  margin: 20px 0 12px;
  text-align: center;
}

p {
  font-size: clamp(16px, 4.5vw, 20px);
  line-height: 1.5;
  text-align: center;
}

/* =====================
   ZENTRIERTER CONTENT
===================== */

body > * {
  width: 100%;
  max-width: 480px; /* etwas schmaler */
}

/* =====================
   FORMULARE
===================== */

input {
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  font-size: clamp(18px, 5vw, 22px);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-sizing: border-box;

  background: var(--card);
  color: var(--text);
}

input::placeholder {
  font-size: clamp(16px, 4.5vw, 20px);
  color: var(--text);
  opacity: 0.5;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

/* =====================
   BUTTONS
===================== */

button {
  width: 100%;
  padding: 18px;
  margin-top: 14px;
  font-size: clamp(18px, 5vw, 22px);
  border: 2px solid #999;
  border-radius: 12px;
  background: var(--button-bg);
  border-color: var(--border);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

button:hover {
  background: var(--button-hover);
}

/* =====================
   FOOTER / HINWEIS
===================== */

/* Linksbündig statt zentriert: der Hinweis ist Fliesstext und wird
   gelesen, nicht überflogen. Zentrierte Absätze erschweren das Zeilenende. */
.footer-hint {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
}

.footer-hint h2 {
  font-size: clamp(18px, 4.5vw, 21px);
  margin: 0 0 10px;
}

.footer-hint p {
  margin: 0 0 12px;
}

/* =====================
   DESKTOP FEINSCHLIFF
===================== */

@media (min-width: 900px) {
  body {
    max-width: 800px;
    margin: auto;
  }
}

/* =====================
   RECHTLICHE VERWEISE

   Impressum und Datenschutz stehen seit v3.0 auf eigenen Seiten.
   Vorher lagen sie als Textwand unter dem Anmeldeformular.
===================== */

.rechtliches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 24px 0 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.rechtliches a {
  color: var(--text);
  opacity: 0.75;
  font-size: clamp(15px, 4vw, 17px);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 2px;
}

.rechtliches a:hover {
  opacity: 1;
  color: var(--accent);
}

.rechtliches a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

