/* Teaser für barrierebericht.de, solange die Anwendung vom Netz ist.
   Farben: die zehn Werte von Barrierebericht aus packages/modules/bfsg/src/index.ts,
   dazu --rot aus apps/web/src/app/globals.css für die Fehlermeldung.
   Heller Papiergrund, Farbe nur in Details (DESIGN.md: helle Abschnitte tragen
   die Seite). Eine dunkelblaue Fassung ergab 77,6 Prozent bunte Fläche gegen
   erlaubte 15 bei der Dosierung zurueckhaltend. */

@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/_teaser/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --papier: #f2f6fc;
  --tinte: #13233c;
  --tinte-gedeckt: #526179;
  --linie: #c5d3e5;
  --grund-leise: #e5eef9;
  --nacht: #030d20;
  --nacht-hell: #0a192c;
  --akzent: #104fb9;
  --flaeche: #267be8;
  --glut: #69b8ff;
  --rot: #8e1258;
  --weiss: #ffffff;

  --inhaltsbreite: 78rem;
  --seitenrand: 1.5rem;
  --bedienhoehe: 3.25rem;
  --radius-klein: 6px;
  --radius-base: 10px;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Atkinson Hyperlegible Next Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
}

.sprunglink {
  position: absolute;
  left: var(--seitenrand);
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--tinte);
  color: var(--papier);
  border-radius: var(--radius-klein);
  font-weight: 700;
}
.sprunglink:focus { top: 1rem; }

/* Die Szene füllt den ersten Bildschirm: Kopf oben, Fuß unten, dazwischen die Bühne. */
.szene {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* DIE eine Bahn. Kopf, Bühne und Fuß fluchten an derselben Kante. */
.bahn {
  width: 100%;
  max-width: var(--inhaltsbreite);
  margin-inline: auto;
  padding-inline: var(--seitenrand);
}

.kopf {
  padding-block: 1.5rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  text-decoration: none;
  border-radius: var(--radius-klein);
}

.marke-zeichen {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-klein);
  background: var(--akzent);
  color: var(--weiss);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}

.marke-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}

.buehne {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-block: 2rem 3rem;
}

.aussage { max-width: 40rem; min-width: 0; }

.vorzeile {
  margin: 0 0 1rem;
  color: var(--akzent);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: 3.25rem;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: manual;
}

.einleitung {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  color: var(--tinte-gedeckt);
  font-size: 1.25rem;
  line-height: 1.55;
}

/* Der Bogen hebt sich über Weiß und Schatten vom Papier ab, der Akzent sitzt
   nur als Kante oben. */
.bogen {
  justify-self: end;
  width: 100%;
  max-width: 30rem;
  min-width: 0;
  background: var(--weiss);
  color: var(--tinte);
  border-top: 4px solid var(--akzent);
  border-radius: var(--radius-base);
  padding: 2rem;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--tinte) 8%, transparent), 0 20px 40px -20px color-mix(in srgb, var(--tinte) 25%, transparent);
}

.bogen h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
}
.bogen h2:focus { outline: none; }

.bogen-text {
  margin: 0.5rem 0 1.5rem;
  color: var(--tinte-gedeckt);
}

.feld { margin-bottom: 1.25rem; }

label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 650;
  font-size: 1rem;
}

.gedeckt {
  color: var(--tinte-gedeckt);
  font-weight: 400;
}

input {
  display: block;
  width: 100%;
  min-height: var(--bedienhoehe);
  padding: 0.5rem 0.875rem;
  font: inherit;
  color: var(--tinte);
  background: var(--weiss);
  /* 1.4.11: die Feldkante braucht 3:1 gegen den Grund, --linie hält das nicht. */
  border: 1px solid var(--tinte-gedeckt);
  border-radius: var(--radius-klein);
}
input::placeholder {
  color: var(--tinte-gedeckt);
  opacity: 1;
}
input:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 1px;
  border-color: var(--akzent);
}
input[aria-invalid="true"] {
  border-color: var(--rot);
  border-width: 2px;
}

.feld-fehler,
.form-fehler {
  margin: 0.375rem 0 0;
  color: var(--rot);
  font-weight: 650;
  font-size: 0.95rem;
}
.form-fehler { margin: 0 0 1rem; }

.honigtopf {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kleingedruckt {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tinte-gedeckt);
}
.kleingedruckt a { color: var(--akzent); }

.knopf {
  display: block;
  width: 100%;
  min-height: var(--bedienhoehe);
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-weight: 700;
  color: var(--weiss);
  background: var(--akzent);
  border: 0;
  border-radius: var(--radius-klein);
  cursor: pointer;
}
.knopf:hover { background: var(--tinte); }
.knopf:active { transform: translateY(1px) scale(0.99); }
.knopf[disabled] { cursor: progress; }

@media (prefers-reduced-motion: no-preference) {
  .knopf { transition: background-color 150ms ease, transform 100ms ease; }
}

.quittung-titel {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.quittung p:last-child { margin: 0; }
.quittung:focus { outline: none; }

.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  /* Die Linie auf Breite des Inhalts, nicht über den Seitenrand hinaus. */
  background: linear-gradient(var(--linie), var(--linie)) center top / calc(100% - 2 * var(--seitenrand)) 1px no-repeat;
  color: var(--tinte-gedeckt);
  font-size: 0.95rem;
}
.fuss p { margin: 0; }
.fuss ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fuss a {
  display: inline-block;
  padding-block: 0.625rem;
  color: var(--tinte);
  text-underline-offset: 0.2em;
}

@media (max-width: 60rem) {
  .buehne {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding-block: 1rem 2.5rem;
  }
  .aussage { max-width: none; }
  .bogen {
    justify-self: stretch;
    max-width: none;
  }
  h1 { font-size: 2.35rem; }
  .einleitung { font-size: 1.125rem; }
}

@media (max-width: 26rem) {
  :root { --seitenrand: 1rem; }
  .kopf { padding-block: 1rem; }
  .buehne { gap: 1.5rem; padding-block: 0.5rem 2rem; }
  .vorzeile { margin-bottom: 0.625rem; }
  h1 { font-size: 2rem; }
  .einleitung { margin-top: 1rem; font-size: 1.0625rem; }
  .bogen { padding: 1.5rem 1.25rem; }
}
