/*
 * ISMS-Lotse – Gestaltung „Klartext“
 * Aufbau: helle, ruhige Seite. Eine einzige blaue Farbfläche im Kopfbereich trägt die App,
 * alles andere bleibt weiß mit feinen Linien; Sand markiert den Bereich Datenschutz.
 */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Farben */
  --grund: #ffffff;
  --flaeche: #f1f4fb;
  --tinte: #111827;
  --text: #3b4556;
  --leise: #4b5565;
  --linie: #c9d1e0;
  --akzent: #1f4fd8;
  --akzent-dunkel: #173ca8;
  --auf-akzent: #ffffff;
  --sand: #fbe7b5;
  --sand-tinte: #2b2616;
  --sand-leise: #4a3f1e;

  /* Schrift */
  --schrift-titel: "Schibsted Grotesk", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --schrift-text: "Public Sans", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --gross-1: clamp(2.5rem, 6vw, 4.5rem);
  --gross-2: clamp(2rem, 4.2vw, 3.125rem);
  --gross-3: 1.625rem;
  --einstieg: 1.25rem;
  --normal: 1.0625rem;
  --klein: 0.9375rem;

  /* Maße */
  --rand: clamp(1rem, 4vw, 2rem);
  --abschnitt: clamp(3.5rem, 8vw, 6rem);
  --rund-gross: 2.25rem;
  --rund: 1.5rem;
  --rund-klein: 0.875rem;
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: var(--normal);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  color: var(--tinte);
  text-wrap: balance;
}

h1 {
  font-size: var(--gross-1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  hyphens: auto;
}

h2 {
  font-size: var(--gross-2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  hyphens: auto;
}

h3 {
  font-size: var(--gross-3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: var(--tinte);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--akzent);
}

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

[id] {
  scroll-margin-top: 1.5rem;
}

.huelle {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}

.sprung {
  position: absolute;
  left: var(--rand);
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: var(--rund-klein);
  background: var(--tinte);
  color: var(--auf-akzent);
}

.sprung:focus {
  top: 0.75rem;
  color: var(--auf-akzent);
}

/* ---------- Kopf ---------- */

.kopf__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--tinte);
  text-decoration: none;
}

.logo:hover {
  color: var(--tinte);
}

.logo__zeichen {
  flex: none;
}

.logo__name {
  font-family: var(--schrift-titel);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.navi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
  padding: 0;
  list-style: none;
}

.navi a:not(.knopf) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: none;
}

.navi a:not(.knopf):hover,
.navi a[aria-current="page"] {
  text-decoration: underline;
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.375rem;
  padding: 0 1.75rem;
  border: 2px solid var(--akzent);
  border-radius: var(--rund-klein);
  background: var(--akzent);
  color: var(--auf-akzent);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

a.knopf:hover {
  border-color: var(--akzent-dunkel);
  background: var(--akzent-dunkel);
  color: var(--auf-akzent);
}

.knopf--dunkel {
  border-color: var(--tinte);
  background: var(--tinte);
}

a.knopf--dunkel:hover {
  border-color: var(--akzent);
  background: var(--akzent);
}

.knopf--klein {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: var(--normal);
}

.symbol {
  flex: none;
}

/* ---------- Einstieg ---------- */

.einstieg {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 3rem 3.5rem;
  padding-block: clamp(1.5rem, 4vw, 3rem) var(--abschnitt);
}

.einstieg__text {
  flex: 1 1 28rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.pille {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.25rem;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  background: var(--flaeche);
  font-size: var(--klein);
  font-weight: 600;
}

.pille::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--akzent);
}

.einstieg__absatz {
  max-width: 34rem;
  color: var(--text);
  font-size: var(--einstieg);
  line-height: 1.5;
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hinweis {
  color: var(--leise);
  font-size: var(--klein);
}

.buehne {
  flex: 1 1 22rem;
  min-width: 0;
  min-height: 35rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem 1.5rem 0;
  border-radius: var(--rund-gross);
  background: var(--akzent);
  overflow: hidden;
}

.geraet {
  width: 17.5rem;
  max-width: 100%;
  padding: 0.75rem 0.75rem 0;
  border-radius: 2.25rem 2.25rem 0 0;
  background: var(--tinte);
}

.geraet__schirm {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-height: 31rem;
  padding: 1.5rem 1rem 0;
  border-radius: 1.625rem 1.625rem 0 0;
  background: var(--grund);
}

.geraet__zeile {
  color: var(--leise);
  font-size: 0.8125rem;
  font-weight: 600;
}

.geraet__titel {
  font-family: var(--schrift-titel);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.geraet__film {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8.75rem;
  border-radius: 1rem;
  background: var(--flaeche);
}

.geraet__start {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--akzent);
  color: var(--auf-akzent);
}

.geraet__liste {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0;
  list-style: none;
}

.geraet__eintrag {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.875rem;
  border-radius: var(--rund-klein);
  background: var(--flaeche);
  line-height: 1.25;
}

.geraet__eintrag--sand {
  background: var(--sand);
}

.geraet__eintrag strong {
  font-size: var(--klein);
  font-weight: 600;
}

.geraet__eintrag span {
  color: var(--leise);
  font-size: 0.75rem;
}

.geraet__eintrag--sand span {
  color: var(--sand-leise);
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  padding-block: 0 var(--abschnitt);
}

.abschnitt__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: 2.5rem;
}

.abschnitt__kopf h2 {
  flex: 1 1 26rem;
  max-width: 44rem;
}

.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.125rem 0.875rem;
  border-radius: 999px;
  background: var(--flaeche);
  color: var(--tinte);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.marke--sand {
  background: var(--sand);
  color: var(--sand-tinte);
}

/* Themenliste */

.themen {
  padding: 0;
  border-top: 2px solid var(--tinte);
  list-style: none;
}

.thema {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 11.5rem;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--linie);
}

.thema p {
  color: var(--text);
}

.thema .marke {
  justify-self: end;
}

/* Schritte */

.schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.schritt {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: var(--rund);
  background: var(--flaeche);
  counter-increment: schritt;
}

.schritt::before {
  content: counter(schritt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--tinte);
  color: var(--auf-akzent);
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-weight: 700;
}

.schritt p {
  color: var(--text);
}

/* Zusagen */

.zusagen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 2.5rem;
  padding: 0;
  list-style: none;
}

.zusage {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--tinte);
}

.zusage p {
  color: var(--text);
}

/* Unternehmen */

.unternehmen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--rund-gross);
  background: var(--sand);
  color: var(--sand-tinte);
}

.unternehmen__text {
  flex: 1 1 26rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.unternehmen__text h2 {
  font-size: clamp(1.875rem, 3.8vw, 2.875rem);
}

.unternehmen__text p {
  max-width: 35rem;
}

.oberzeile {
  color: var(--sand-leise);
  font-size: var(--klein);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Fragen */

.fragen {
  max-width: 50rem;
  border-top: 2px solid var(--tinte);
}

.frage {
  border-bottom: 1px solid var(--linie);
}

.frage summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.75rem;
  padding-block: 1.25rem;
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.frage summary::-webkit-details-marker {
  display: none;
}

.frage summary::after {
  content: "+";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--flaeche);
  font-family: var(--schrift-text);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.9rem;
  text-align: center;
}

.frage[open] summary::after {
  content: "–";
}

.frage p {
  max-width: 42rem;
  padding-bottom: 1.5rem;
  color: var(--text);
}

/* Über uns und Kontakt */

.ueber {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
}

.ueber__text {
  flex: 1 1 26rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ueber__text p {
  max-width: 36rem;
  color: var(--text);
}

.kontakt {
  flex: 1 1 20rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--rund);
  background: var(--flaeche);
}

.kontakt address {
  font-style: normal;
}

.kontakt dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 1rem;
}

.kontakt dt {
  color: var(--leise);
}

.kontakt dd {
  overflow-wrap: anywhere;
}

/* ---------- Fuß ---------- */

.fuss {
  background: var(--flaeche);
  color: var(--text);
}

.fuss__inhalt {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 3rem 2.5rem;
}

.fuss__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--linie);
}

.navi--fuss a:not(.knopf) {
  font-weight: 400;
  text-decoration: underline;
}

.fuss__klein {
  font-size: var(--klein);
}

/* ---------- Rechtstexte ---------- */

.rechtstext {
  max-width: 46rem;
  padding-block: clamp(1.5rem, 4vw, 3rem) var(--abschnitt);
}

.rechtstext h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.rechtstext h2 {
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rechtstext h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.rechtstext p,
.rechtstext ul,
.rechtstext address {
  margin-bottom: 1rem;
  color: var(--text);
}

.rechtstext address {
  font-style: normal;
}

.rechtstext ul {
  padding-left: 1.25rem;
}

.rechtstext li {
  margin-bottom: 0.375rem;
}

.rechtstext a {
  overflow-wrap: anywhere;
}

.rechtstext strong {
  color: var(--tinte);
  font-weight: 600;
}

.vorspann {
  color: var(--text);
  font-size: var(--einstieg);
  line-height: 1.5;
}

.kurz {
  margin-block: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--rund);
  background: var(--flaeche);
}

.kurz h2 {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  font-size: 1.1875rem;
}

.kurz ul {
  margin-bottom: 0;
  color: var(--tinte);
}

.pruefen {
  padding: 0.05em 0.35em;
  border-radius: 0.3em;
  background: var(--sand);
  color: var(--sand-tinte);
  font-weight: 600;
}

.stand {
  margin-top: 3rem;
  color: var(--leise);
  font-size: var(--klein);
}

/* ---------- Statistik ---------- */

.formular {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.formular label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-weight: 600;
}

.formular input {
  min-height: 3rem;
  width: min(20rem, 100%);
  padding: 0 0.875rem;
  border: 2px solid var(--tinte);
  border-radius: var(--rund-klein);
  background: var(--grund);
  color: var(--tinte);
  font: inherit;
}

.formular button {
  cursor: pointer;
  font-family: inherit;
}

.tabellenrahmen {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tabelle th,
.tabelle td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--linie);
  text-align: right;
  white-space: nowrap;
}

.tabelle th:first-child,
.tabelle td:first-child {
  padding-left: 0;
  text-align: left;
}

.tabelle thead th {
  border-bottom: 2px solid var(--tinte);
  color: var(--tinte);
  font-weight: 600;
}

.tabelle tfoot td {
  border-bottom: 0;
  color: var(--tinte);
  font-weight: 600;
}

.meldung {
  padding: 0.875rem 1.125rem;
  border-radius: var(--rund-klein);
  background: var(--sand);
  color: var(--sand-tinte);
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 52rem) {
  .thema {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding-block: 1.5rem;
  }

  .thema .marke {
    justify-self: start;
    margin-top: 0.375rem;
  }
}

@media (max-width: 34rem) {
  .knopfreihe .knopf,
  .unternehmen .knopf {
    width: 100%;
  }

  .buehne {
    min-height: 0;
  }

  .navi {
    gap: 0 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .kopf nav,
  .sprung,
  .buehne {
    display: none;
  }
}
