/* Gemeinsame Grundlage aller Entwürfe: Rücksetzen, Lesezeichen (Wechsel der Entwürfe), gezeigtes Formular.
   Farben, Schriften und Raster bringt jeder Entwurf in seiner eigenen Datei mit. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

/* Lesezeichen: hängt oben rechts an der Seite und scrollt mit ihr weg. Gehört zur Demo, deshalb überall gleich
   und in eigenen, vom Entwurf unabhängigen Farben. */
.lz {
  --lz-band: #1d2a33;
  --lz-schrift: #ffffff;
  --lz-blatt: #ffffff;
  --lz-text: #1b1f22;
  position: absolute;
  top: 0;
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 5;
  display: grid;
  justify-items: end;
  font: 500 0.875rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: calc(100vw - 1.5rem);
}
.lz-zahlen {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--lz-band);
  /* Lesezeichenform: unten eingeschnitten. */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 0.45rem), 0 100%);
  padding-bottom: 0.45rem;
}
.lz-zahlen a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--lz-schrift);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.lz-zahlen a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.lz-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lz-blatt { justify-self: end; max-width: 100%; }
/* Geschlossen nimmt das Blatt keinen Platz ein (sonst verbreitert es sehr schmale Seiten). */
.lz-blatt:not([open]) .lz-inhalt { display: none; }
.lz-blatt summary {
  cursor: pointer;
  list-style: none;
  padding: 0.35rem 0.1rem;
  color: var(--lz-text);
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 0.8125rem;
}
.lz-blatt summary::-webkit-details-marker { display: none; }
.lz-inhalt {
  width: min(19rem, calc(100vw - 1.5rem));
  overflow-wrap: break-word;
  padding: 0.9rem 1rem;
  background: var(--lz-blatt);
  color: var(--lz-text);
  border: 1px solid var(--lz-band);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.16);
}
.lz-inhalt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.lz-inhalt a { color: inherit; font-weight: 700; }
.lz-inhalt li span { display: block; font-weight: 400; }
.lz-inhalt p { margin: 0.9rem 0 0; font-weight: 400; font-size: 0.8125rem; }
.lz a:focus-visible, .lz summary:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* Gezeigtes Formular: Grundmaße, damit es in jedem Entwurf bedienbar ist. */
.anfrage { display: grid; gap: 1rem; }
.feld { display: grid; gap: 0.3rem; }
.anfrage input { font: inherit; min-height: 2.75rem; padding: 0.5rem 0.65rem; width: 100%; }
.anfrage button { font: inherit; min-height: 2.75rem; padding: 0.55rem 1.1rem; cursor: pointer; }
.anfrage-senden { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.anfrage-hinweis { margin: 0; font-weight: 700; }
.anfrage-klein { margin: 0; font-size: 0.875rem; }
