/*
  Offizin – gemeinsames Stylesheet für offizin.app

  Oberfläche „Schaltpult“: Weiß und Schwarz, Grau für Nebensachen,
  2-px-Linien, Ecken 12 px (Knöpfe) und 14 px (Karten).
  Gestrichelt heißt: kommt noch. Farbe gibt es nur im Inhalt.
  Schrift: Archivo, variabel (Stärke 100–900, Breite 62–125 %), selbst gehostet.
*/

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --schwarz: #000000;
  --weiss: #ffffff;
  --grau-text: #595959;
  --grau-linie: #c4c4c4;
  --buehne: #e6e6e6;
  --flaeche: #f0f0f0;
  --linie: 2px;
  --r-knopf: 12px;
  --r-karte: 14px;
  --rand: 24px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

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

.kopf :focus-visible,
.fuss :focus-visible {
  outline-color: var(--weiss);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprung {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--weiss);
  color: var(--schwarz);
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-knopf);
  font-weight: 700;
  text-decoration: none;
}

.sprung:focus {
  top: 12px;
}

.innen {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* Kopfleiste */

.kopf {
  background: var(--schwarz);
  color: var(--weiss);
}

.kopf .innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 10px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--weiss);
  text-decoration: none;
}

.marke svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.marke span {
  font-stretch: 68%;
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
}

.hauptnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hauptnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  background: var(--schwarz);
  color: var(--weiss);
  border: var(--linie) solid var(--weiss);
  border-radius: var(--r-knopf);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}

.hauptnav a[aria-current="page"] {
  background: var(--weiss);
  color: var(--schwarz);
}

.hauptnav a:hover {
  text-decoration: underline;
}

/* Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  background: var(--schwarz);
  color: var(--weiss);
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-knopf);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.knopf:hover {
  text-decoration: underline;
}

.knopf.hell {
  background: var(--weiss);
  color: var(--schwarz);
}

.knopf.gross {
  min-height: 52px;
  padding: 0 24px;
}

.knopf svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Abschnitte */

.abschnitt {
  padding-block: 72px;
}

.linie-oben {
  border-top: var(--linie) solid var(--schwarz);
}

.linie-unten {
  border-bottom: var(--linie) solid var(--schwarz);
}

.gedaempft {
  color: var(--grau-text);
}

/* Startseite: Kopf */

.held .innen {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px 64px;
  padding-block: 64px 72px;
}

.riesig {
  margin: 0;
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(6.5rem, 15vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.005em;
}

.held-text {
  flex: 0 1 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
}

.held-text p {
  margin: 0;
}

.held-lead {
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 600;
  font-stretch: 88%;
}

.held .knoepfe {
  margin-top: 4px;
}

/* Karten */

.karte {
  background: var(--weiss);
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-karte);
  overflow: hidden;
}

.karte-titel {
  margin: 0;
  padding: 18px 24px;
  background: var(--schwarz);
  color: var(--weiss);
  font-stretch: 68%;
  font-weight: 800;
  font-size: 2.125rem;
  line-height: 1.1;
}

.eintraege {
  margin: 0;
}

.eintraege > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 16px 24px;
  border-bottom: var(--linie) solid var(--grau-linie);
}

.eintraege > div:last-child {
  border-bottom: 0;
}

.eintraege dt {
  flex: 0 0 136px;
  color: var(--grau-text);
  font-weight: 600;
}

.eintraege dd {
  flex: 1 1 300px;
  min-width: 0;
  margin: 0;
}

.karte-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 24px 28px;
}

.karte-text p {
  margin: 0;
}

.leitsatz {
  font-stretch: 72%;
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.15;
}

/* Startseite: Begriff */

.begriff .innen {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.begriff .wort {
  flex: 1 1 560px;
  min-width: 0;
}

.begriff .warum {
  flex: 1 1 400px;
  min-width: 0;
}

/* Startseite: Der Weg durch die Offizin */

.weg h2 {
  margin: 0;
  font-stretch: 68%;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
}

.weg .einleitung {
  max-width: 640px;
  margin: 16px 0 0;
}

.weg-grafik {
  display: block;
  width: 100%;
  max-width: 1076px;
  height: auto;
  margin: 40px auto 0;
}

.wg-name {
  font-size: 19px;
  font-weight: 800;
  font-stretch: 75%;
}

.wg-text {
  font-size: 14px;
}

.wg-herz-name {
  font-size: 40px;
  font-weight: 800;
  font-stretch: 68%;
}

.wg-herz-text {
  font-size: 15px;
}

.wg-stufe {
  font-size: 15px;
  font-weight: 700;
}

.wg-nr {
  font-size: 13px;
  font-weight: 800;
  font-stretch: 75%;
}

.wg-pfeiltext {
  font-size: 13px;
  font-weight: 600;
}

.weg-liste {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-karte);
  overflow: hidden;
}

.weg-liste ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stufe {
  padding: 16px 16px 20px;
  background: var(--flaeche);
}

.stufe:nth-child(even) {
  background: var(--weiss);
}

.stufe + .stufe {
  border-top: var(--linie) solid var(--schwarz);
}

.stufe-titel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 24px;
  font-weight: 700;
}

.nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  background: var(--schwarz);
  color: var(--weiss);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-stretch: 75%;
  font-weight: 800;
}

.weg-liste .programme {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}

.programm {
  padding: 14px 16px 16px;
  background: var(--weiss);
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-karte);
}

.programm.herz {
  grid-column: 1 / -1;
  background: var(--schwarz);
  color: var(--weiss);
}

.programm.herz .programm-kopf {
  align-items: flex-start;
}

.programm.herz .programm-kopf img {
  width: 40px;
  height: 40px;
  margin: -2px -4px 0 -6px;
}

.programm.ausgabe {
  background: var(--buehne);
  border-color: var(--buehne);
}

.programm-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
}

.programm-kopf svg,
.programm-kopf img {
  flex: none;
  width: 28px;
  height: 28px;
}

.programm-name {
  display: block;
  font-size: 1.1875rem;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.25;
}

.programm.herz .programm-name {
  font-size: 1.75rem;
  font-stretch: 68%;
  line-height: 1.15;
}

.programm-text {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
}

.programm.herz .programm-text {
  font-size: 0.9375rem;
}

.weg-liste .weitergabe {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: var(--linie) solid var(--grau-linie);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grau-text);
}

.programm.herz .weitergabe {
  border-top-color: #3d3d3d;
  color: var(--grau-linie);
}

.weitergabe li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weitergabe svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.weitergabe b {
  color: var(--schwarz);
  font-weight: 700;
}

.programm.herz .weitergabe b {
  color: var(--weiss);
}

@media (min-width: 900px) {
  .weg-liste {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 899.98px) {
  .weg-grafik {
    display: none;
  }
}

/* Startseite: Einstieg */

.einstieg {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.einstieg a {
  flex: 1 1 420px;
  display: block;
  padding: 32px;
  background: var(--weiss);
  color: var(--schwarz);
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-karte);
  text-decoration: none;
}

.einstieg a.dunkel {
  background: var(--schwarz);
  color: var(--weiss);
}

.einstieg a.gestrichelt {
  border-style: dashed;
}

.einstieg-titel {
  display: block;
  font-stretch: 68%;
  font-weight: 800;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  line-height: 1.05;
}

.einstieg-text {
  display: block;
  margin-top: 12px;
}

.einstieg a:hover .einstieg-titel {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Unterstützen */

.unterstuetzen .innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 56px 64px;
}

.unterstuetzen-karte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 24px;
  padding: 28px 32px;
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-karte);
}

.unterstuetzen-text {
  flex: 1 1 480px;
  max-width: 680px;
}

.unterstuetzen-text h2 {
  margin: 0;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.05;
}

.unterstuetzen-karte .unterstuetzen-text h2 {
  font-size: 2rem;
}

.unterstuetzen-text p {
  margin: 12px 0 0;
}

/* Fußzeile */

.fuss {
  background: var(--schwarz);
  color: var(--weiss);
}

.fuss .innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
}

.fuss-marke {
  font-stretch: 68%;
  font-weight: 800;
  font-size: 1.5rem;
}

.fussnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.fussnav a {
  display: inline-block;
  padding-block: 6px;
  color: var(--weiss);
}

.fuss-zeile {
  font-size: 0.875rem;
  color: var(--grau-linie);
}

/* Unterseiten */

.seitenkopf .innen {
  padding-block: 56px 40px;
}

.seitenkopf.mit-text .innen {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 56px 48px;
}

.seitentitel {
  margin: 0;
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.85;
}

.seitenkopf-text {
  flex: 0 1 460px;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
}

.inhalt .innen {
  padding-block: 48px 72px;
}

/* Web-Apps */

.app-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.app-karte {
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-karte);
  overflow: hidden;
}

.app-bild {
  padding: 14px;
  background: var(--buehne);
  border-bottom: var(--linie) solid var(--schwarz);
}

.app-bild svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.app-koerper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 24px;
}

.app-koerper > p {
  margin: 0;
}

.app-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-symbol {
  flex: 0 0 44px;
  height: 44px;
}

.app-symbol img {
  display: block;
  width: 44px;
  height: 44px;
}

.app-name {
  margin: 0;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 2.125rem;
  line-height: 1;
}

.app-adresse {
  margin: 2px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grau-text);
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.chips li {
  padding: 2px 10px;
  border: var(--linie) solid var(--schwarz);
  border-radius: 999px;
}

.chips li.folgt {
  border-style: dashed;
  border-color: var(--grau-text);
  color: var(--grau-text);
}

.app-koerper .knopf {
  margin-top: auto;
}

/* Download */

.hinweis-folgt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  padding: 32px;
  border: var(--linie) dashed var(--schwarz);
  border-radius: var(--r-karte);
}

.hinweis-folgt > div {
  flex: 1 1 520px;
}

.hinweis-folgt h2,
.zwischentitel {
  margin: 0;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.05;
}

.hinweis-folgt p {
  max-width: 640px;
  margin: 12px 0 0;
}

.zwischentitel {
  margin: 56px 0 16px;
}

.tabelle-rahmen {
  overflow-x: auto;
  border: var(--linie) solid var(--schwarz);
  border-radius: var(--r-karte);
}

.download-tabelle {
  width: 100%;
  border-collapse: collapse;
}

.download-tabelle thead tr {
  background: var(--schwarz);
  color: var(--weiss);
}

.download-tabelle th,
.download-tabelle td {
  padding: 14px 24px;
  text-align: left;
  vertical-align: middle;
}

.download-tabelle thead th {
  font-weight: 700;
}

.download-tabelle thead th + th {
  width: 200px;
}

.download-tabelle tbody tr + tr {
  border-top: var(--linie) solid var(--grau-linie);
}

.download-tabelle tbody th {
  font-weight: 400;
}

.download-tabelle tbody th b {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.3125rem;
}

.download-tabelle tbody th span {
  display: block;
  font-size: 0.875rem;
  color: var(--grau-text);
}

.folgt-knopf {
  min-height: 36px;
  padding: 0 14px;
  background: var(--weiss);
  color: var(--grau-text);
  border: var(--linie) dashed var(--grau-text);
  border-radius: var(--r-knopf);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: not-allowed;
}

/* Impressum */

.impressum {
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.impressum .karte-titel {
  padding: 16px 24px;
  font-size: 1.75rem;
}

.impressum .eintraege dt {
  flex-basis: 160px;
}

.impressum .eintraege dd {
  flex-basis: 280px;
}

.rechtstext {
  padding-top: 8px;
}

.rechtstext + .rechtstext {
  padding-top: 24px;
  border-top: var(--linie) solid var(--grau-linie);
}

.rechtstext h2 {
  margin: 0 0 8px;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.1;
}

.rechtstext p {
  margin: 0;
}

.rechtstext p + p {
  margin-top: 12px;
}

/* Seite nicht gefunden */

.fehler {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fehler p {
  margin: 0;
}

.fehler .gross-text {
  font-size: 1.25rem;
  line-height: 1.45;
}

/* Handy */

@media (max-width: 640px) {
  :root {
    --rand: 20px;
  }

  .abschnitt {
    padding-block: 48px;
  }

  .hauptnav a {
    min-height: 44px;
  }

  .held .innen {
    gap: 28px;
    padding-block: 40px 48px;
  }

  .held-lead {
    font-size: 1.3125rem;
  }

  .karte-titel {
    padding: 16px 20px;
    font-size: 1.75rem;
  }

  .eintraege > div {
    padding: 14px 20px;
  }

  .karte-text {
    padding: 18px 20px 24px;
  }

  .leitsatz {
    font-size: 1.625rem;
  }

  .einstieg a,
  .hinweis-folgt,
  .unterstuetzen-karte {
    padding: 24px;
  }

  .hinweis-folgt h2,
  .zwischentitel,
  .unterstuetzen-karte .unterstuetzen-text h2 {
    font-size: 1.875rem;
  }

  .unterstuetzen-text h2 {
    font-size: 2rem;
  }

  .unterstuetzen .innen {
    padding-block: 48px;
  }

  .seitenkopf .innen,
  .seitenkopf.mit-text .innen {
    padding-block: 40px 32px;
  }

  .seitenkopf-text {
    font-size: 1.125rem;
  }

  .inhalt .innen {
    padding-block: 32px 56px;
  }

  .download-tabelle th,
  .download-tabelle td {
    padding: 12px 14px;
  }

  .download-tabelle thead th + th {
    width: auto;
  }

  .impressum .karte-titel {
    padding: 14px 20px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .eintraege dt,
  .impressum .eintraege dt {
    flex-basis: 100%;
  }
}

@media (max-width: 400px) {
  .download-tabelle th,
  .download-tabelle td {
    padding: 12px 8px;
  }

  .download-tabelle th:first-child {
    padding-left: 14px;
  }

  .download-tabelle tbody th b {
    font-size: 1.125rem;
  }
}

@media (max-width: 359.98px) {
  .download-tabelle,
  .download-tabelle tbody {
    display: block;
  }

  .download-tabelle thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .download-tabelle tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 14px 16px;
  }

  .download-tabelle tbody th,
  .download-tabelle tbody th:first-child {
    grid-column: 1 / -1;
    padding: 0;
  }

  .download-tabelle td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0;
  }

  .download-tabelle td::before {
    content: attr(data-l);
    content: attr(data-l) / "";
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--grau-text);
  }
}
