*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #37352f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Check-Seite: Tally-Formular füllt den Platz über dem Footer und scrollt in sich */
html.check,
html.check body {
  height: 100%;
  overflow: hidden;
}

html.check body {
  height: 100vh;
  height: 100dvh;
}

html.check iframe {
  flex: 1;
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
}

/* Textseiten (z. B. Datenschutz) */
main.text {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  font-size: 16px;
  line-height: 1.6;
}

main.text h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
}

main.text h2 {
  margin: 32px 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

main.text p { margin: 0 0 12px; }

main.text a { color: #37352f; }

main.text .stand {
  margin-top: 32px;
  font-size: 14px;
  color: #9b9a97;
}

/* Footer auf allen Seiten */
footer {
  flex: none;
  padding: 4px 16px calc(4px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: #9b9a97;
}

footer a {
  display: inline-block;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: #37352f;
  text-decoration: underline;
}
