/* Grundlagen: Satz, Logo, Knöpfe, Formular und Rechtstexte. Den Aufbau der Seite setzt ggws.css. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/Geist-latin-wght.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --grund: #000000;
  --flaeche: #14141A;
  --tinte: #FFFFFF;
  --hell: #E4E5EC;
  --leise: #B9BCC8;
  --kante: #3A3B46;
  --rand-pille: #6A6B78;
  --rot: #FF5033;
  --warm: #FFCC8C;
  --blau: #7DB4FF;
  --rand: clamp(20px, 4vw, 64px);
  --logo: clamp(116px, 11vw, 148px);
  /* Das Lot liegt in der Mitte bei 44,27 % der Logobreite und endet bei 35 %, das Logo ist 36,75 % so hoch wie breit und steht mittig in der Leiste. Die rote Linie setzt genau dort an. */
  --lx: calc(var(--rand) + var(--logo) * .4427 - 1px);
  --leiste: 78px;
  --lot-unten: calc((var(--leiste) - var(--logo) * .3675) / 2 + var(--logo) * .35);
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; scroll-behavior: smooth; scroll-padding-top: calc(var(--leiste) + 16px); background: var(--grund); scrollbar-color: var(--kante) var(--grund); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 1.125rem/1.55 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-wrap: break-word; overflow-x: clip; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--warm); color: #000000; }

.sprung { position: absolute; left: var(--rand); top: 8px; z-index: 40; padding: 8px 16px; border-radius: 999px; background: #FFFFFF; color: #000000; transform: translateY(-200%); }
.sprung:focus { transform: none; }

/* Logo */
.firmen-logo { display: block; width: 100%; height: auto; }
.logo-wort { fill: #FFFFFF; }
.logo-lot { fill: var(--rot); }
.logo-unter { fill: #DDE3F0; }
@media (prefers-reduced-motion: no-preference) {
  .logo-lot { animation: lot-puls 2400ms ease-in-out infinite; }
}
@keyframes lot-puls { 0%, 100% { fill: var(--rot); } 50% { fill: #FFFFFF; } }
body:has(#anhalten:checked) .logo-lot { animation: none; }

/* Knöpfe */
.pille { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border: 1px solid var(--rand-pille); border-radius: 999px; background: rgb(0 0 0 / .45); color: var(--tinte); font: 500 .9375rem/1.2 "Geist", system-ui, sans-serif; text-decoration: none; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.pille:hover, .pille:active { background: #5C5D68; border-color: #A6A8B4; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 32px; border: 0; border-radius: 999px; background: #FFFFFF; color: #000000; font: 500 1.0625rem/1.2 "Geist", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background-color 160ms ease-out; }
.knopf:hover { background: var(--warm); }
.knopf:focus-visible, .pille:focus-visible { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .pille, .knopf { transition: none; } }

.anhalten { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 8px; color: var(--leise); font-size: .9375rem; font-weight: 400; cursor: pointer; }
.anhalten input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; background: transparent; border: 1.5px solid #8A8C9A; border-radius: 50%; cursor: pointer; }
.anhalten input:checked { background: #FFFFFF; box-shadow: inset 0 0 0 5px #000000; border-color: #FFFFFF; }
.anhalten:hover { color: var(--tinte); }

/* Formular */
form { display: grid; gap: 16px; }
form .knopf { justify-self: start; }
.feld { display: grid; gap: 4px; font-size: 1rem; font-weight: 500; }
.feld input, .feld textarea { width: 100%; min-height: 52px; padding: 12px 20px; border: 1px solid var(--rand-pille); border-radius: 24px; background: #000000; color: var(--tinte); font: 400 1.0625rem/1.4 "Geist", system-ui, sans-serif; }
.feld textarea { resize: vertical; }
.feld-hinweis, .formular-hinweis { color: var(--leise); font-size: .9375rem; font-weight: 400; }
.formular-hinweis a { color: var(--tinte); }
.feld-meldung { color: var(--rot); font-size: 1rem; font-weight: 600; }
.feld-fehler input, .feld-fehler textarea { border: 2px solid var(--rot); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { margin-bottom: 24px; padding: 16px 20px; display: grid; gap: 8px; background: #000000; border: 1px solid var(--rand-pille); border-radius: 24px; }
.meldung-ok { font-size: 1.25rem; font-weight: 500; }
.noch-eine a { display: inline-block; padding-block: 8px; font-weight: 500; }

/* Rechtstexte und Fehlerseiten */
.recht h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 32px; }
.recht-text { max-width: 44rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; color: var(--hell); }
.recht-text h2 { color: var(--tinte); font-size: 1.5rem; font-weight: 400; letter-spacing: -.015em; margin-top: 24px; }
.recht-text h3 { color: var(--tinte); font-size: 1.125rem; font-weight: 500; margin-top: 8px; }
.recht-text ul { padding-left: 1.25em; list-style: disc; display: grid; gap: 4px; }
