/* KARMATCH Stellencheck im KARMATCH-Stil (Designdatei Strategie Nord v3.0,
   Übergangsfassung): Blau #012340, Grau #efefef, Türkis #21cce3 nur als
   Fläche, nie als Schrift auf Hell. Durchgehend Quicksand, auch für
   Überschriften (Vorgabe Mathias 03.12.2026: keine Serifenschrift, die
   Designdatei sieht Faustina vor). Vom eigenen Server, font-display: swap.
   Radien: Knöpfe und Felder 10px, Flächen 16px, kleine Marken rund.
   Kontraste sind in docs/adr/0058-stellencheck.md nachgerechnet. */

@font-face { font-family: "Quicksand"; font-weight: 500; font-style: normal; font-display: swap; src: url("quicksand-500.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-style: normal; font-display: swap; src: url("quicksand-700.woff2") format("woff2"); }

[hidden] { display: none !important; }

:root {
  --blau: #012340;
  --grau: #efefef;
  --tuerkis: #21cce3;
  --weiss: #ffffff;

  --grund: var(--weiss);
  --flaeche: var(--grau);
  --text: var(--blau);
  --text-2: #4d5e6e;
  --linie: #d5dce3;
  --feld-rand: #5a6b7a;
  --fokus: var(--blau);
  --auswahl: #bdeff6;

  --ja-grund: var(--tuerkis);
  --ja-text: var(--blau);
  --teil-grund: #e6ebf0;
  --teil-text: var(--blau);
  --nein-grund: var(--blau);
  --nein-text: var(--weiss);
  --offen-rand: #5a6b7a;
  --offen-text: #3f505f;
  --beispiel-grund: var(--grau);
  --beispiel-text: var(--blau);

  --angebot-grund: var(--blau);
  --angebot-text: var(--weiss);

  --schrift-kopf: "Quicksand", "Poppins", "Century Gothic", sans-serif;
  --schrift-text: "Quicksand", "Poppins", "Century Gothic", sans-serif;
  --schrift-marke: "ITC Avant Garde Gothic Std", "Century Gothic", "Quicksand", sans-serif;

  --rand: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #011a30;
    --flaeche: #062844;
    --text: #efefef;
    --text-2: #b9c6d2;
    --linie: #24435f;
    --feld-rand: #8fa3b6;
    --fokus: var(--tuerkis);
    --auswahl: #1b4b73;

    --teil-grund: #1b4b73;
    --teil-text: var(--weiss);
    --nein-grund: var(--grau);
    --nein-text: var(--blau);
    --offen-rand: #8fa3b6;
    --offen-text: #c9d4de;
    --beispiel-grund: #0d3354;
    --beispiel-text: #efefef;

    --angebot-grund: #062844;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  overflow-x: hidden;
}

::selection { background: var(--auswahl); color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--schrift-kopf); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5.2vw, 54px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; }
p { margin: 0; }

.nur-vorlesen { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.springen { position: absolute; left: 16px; top: -60px; background: var(--blau); color: var(--weiss); padding: 10px 16px; border-radius: 10px; z-index: 20; }
.springen:focus { top: 12px; }

.rahmen { max-width: 1200px; margin: 0 auto; padding: 0 var(--rand); }
.einleitung { font-size: clamp(18px, 1.6vw, 20px); max-width: 60ch; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-klein { width: 0.95em; height: 0.95em; margin-left: 0.3em; vertical-align: -0.1em; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; min-height: 68px; }
.marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wortmarke { display: inline-flex; align-items: baseline; font-family: var(--schrift-marke); font-weight: 700; letter-spacing: 0.08em; line-height: 1; font-size: 21px; white-space: nowrap; }
.wortmarke-ma { margin: 0 0.06em; padding: 0.12em 0.14em 0.1em 0.2em; border-radius: 0.18em; background: var(--tuerkis); color: var(--blau); }
.marke-zusatz { font-size: 15px; color: var(--text-2); padding-left: 12px; border-left: 1px solid var(--linie); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 0; border-radius: 10px;
  background: var(--blau); color: var(--weiss);
  font: 700 17px/1.2 var(--schrift-text);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.knopf:active { transform: scale(0.97); }
.knopf[aria-disabled="true"] { cursor: progress; opacity: 0.85; }
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: #1b4b73; } }
.knopf-zweit { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) and (pointer: fine) { .knopf-zweit:hover { background: var(--flaeche); } }
.knopf-hell { background: var(--tuerkis); color: var(--blau); }
@media (hover: hover) and (pointer: fine) { .knopf-hell:hover { background: #5adbec; } }
@media (prefers-color-scheme: dark) {
  .knopf { background: var(--tuerkis); color: var(--blau); }
  @media (hover: hover) and (pointer: fine) { .knopf:hover { background: #5adbec; } }
  .knopf-zweit { background: transparent; color: var(--text); }
  @media (hover: hover) and (pointer: fine) { .knopf-zweit:hover { background: var(--flaeche); } }
}

/* Startseite */
.start { display: grid; gap: 32px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.start-text { display: grid; gap: 20px; align-content: start; }
.pruefform { display: grid; gap: 24px; background: var(--flaeche); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 700; }
.feld-hilfe { font-size: 15px; color: var(--text-2); }
.feld input {
  width: 100%; min-height: 52px; margin-top: 4px; padding: 12px 14px;
  border: 1.5px solid var(--feld-rand); border-radius: 10px;
  background: var(--grund); color: var(--text);
  font: 500 17px/1.3 var(--schrift-text);
}
.feld input::placeholder { color: var(--text-2); opacity: 1; }
.feld input:focus-visible { outline-offset: 1px; }
.feld-fehler input { border-width: 2.5px; border-color: var(--text); }
.feld-meldung { font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.feld-meldung .icon { margin-top: 0.1em; }
.formular-hinweis { font-weight: 700; }
.formular-fuss { font-size: 15px; color: var(--text-2); }
.pruefform .knopf { justify-self: start; }

.umfang { padding-bottom: clamp(48px, 7vw, 96px); }
.umfang h2 { margin-bottom: 24px; }
.umfang-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 40px; counter-reset: punkt; }
.umfang-liste li { padding: 16px 0; border-top: 1px solid var(--linie); display: grid; gap: 4px; }
.umfang-liste h3 { font-family: var(--schrift-text); font-weight: 700; font-size: 17px; letter-spacing: 0; }
.umfang-liste p { color: var(--text-2); font-size: 16px; }
.umfang-fuss { margin-top: 24px; color: var(--text-2); font-size: 15px; max-width: 70ch; }

@media (min-width: 900px) {
  .start { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .umfang-liste { grid-template-columns: 1fr 1fr; }
}

/* Prüfung läuft, Meldungen, Textseiten */
.laeuft, .meldung, .text-seite { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 112px); display: grid; gap: 20px; justify-items: start; }
.laeuft-zeichen { width: 40px; height: 40px; color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .laeuft-zeichen { animation: drehen 900ms linear infinite; }
}
@keyframes drehen { to { transform: rotate(360deg); } }
.laeuft-liste { margin: 0; padding-left: 1.2em; color: var(--text-2); overflow-wrap: anywhere; }
.text-seite { max-width: 760px; }
.text-seite h2 { margin-top: 16px; font-size: 24px; }

/* Ergebnis: Kopf und Gegenüberstellung */
.ergebnis-kopf { display: grid; gap: 12px; align-content: start; padding-bottom: 8px; }
.stand { color: var(--text-2); max-width: 60ch; }
.gegenueber { display: grid; gap: 16px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: 8px; }
.seite { background: var(--flaeche); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.seite-name { font-size: 24px; }
.seite-titel { font-weight: 700; }
.seite-adresse { font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.seite-fehler { font-weight: 700; }
.seite-zahl { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.zahl { font-family: var(--schrift-kopf); font-weight: 700; font-size: 48px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }

/* Statusmarken: Farbe nie allein, immer mit Zeichen und Wort */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.25; }
.status .icon { width: 20px; height: 20px; }
.status-erfuellt { background: var(--ja-grund); color: var(--ja-text); }
.status-teilweise { background: var(--teil-grund); color: var(--teil-text); }
.status-nicht_erfuellt { background: var(--nein-grund); color: var(--nein-text); }
.status-nicht_geprueft { box-shadow: inset 0 0 0 1.5px var(--offen-rand); color: var(--offen-text); }
.status-beispiel { background: var(--beispiel-grund); color: var(--beispiel-text); }
.seite-google .status { font-size: 16px; }

/* Ergebnis: die neun Punkte */
.punkte { padding-top: 32px; padding-bottom: 40px; }
.punkte-spalten { display: none; }
.punkt { display: grid; gap: 18px; padding: 28px 0; border-top: 1px solid var(--linie); }
.punkt-kopf { display: grid; gap: 8px; align-content: start; }
.punkt-kopf p { color: var(--text-2); max-width: 52ch; }
.quelle { font-size: 15px; color: var(--text-2); justify-self: start; }
.wert { display: grid; gap: 10px; justify-items: start; align-content: start; min-width: 0; }
.wert-seite { font-weight: 700; font-size: 15px; color: var(--text-2); }
.wert-text { max-width: 48ch; }
.punkte-fuss { padding-top: 24px; border-top: 1px solid var(--linie); color: var(--text-2); font-size: 15px; max-width: 75ch; }

.einzelheiten { font-size: 15px; width: 100%; }
.einzelheiten summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; font-weight: 700; list-style: none; }
.einzelheiten summary::-webkit-details-marker { display: none; }
.einzelheiten summary::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 160ms var(--ease-out);
}
.einzelheiten[open] summary::after { transform: rotate(180deg); }
.einzelheiten ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--text-2); }

@media (min-width: 900px) {
  .gegenueber { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .ergebnis-kopf h1 { font-size: clamp(32px, 3.4vw, 44px); }
  .punkte-spalten {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
    position: sticky; top: 0; z-index: 2; padding: 12px 0; background: var(--grund);
    font-weight: 700; font-size: 15px; color: var(--text-2); border-bottom: 1px solid var(--linie);
  }
  .punkt { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .punkte-spalten + .punkt { border-top: 0; }
  .wert-seite { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Teilen */
.teilen { display: grid; gap: 12px; padding-top: 32px; padding-bottom: clamp(48px, 6vw, 72px); border-top: 1px solid var(--linie); }
.teilen > p { color: var(--text-2); max-width: 65ch; }
.teilen-zeile { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.teilen-zeile input {
  flex: 1 1 320px; min-width: 0; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--feld-rand); border-radius: 10px; background: var(--flaeche); color: var(--text);
  font: 500 16px/1.3 var(--schrift-text);
}
.teilen-meldung { font-weight: 700; min-height: 1.5em; }
.teilen-weiter { color: var(--text-2); }

/* Hinweis auf KARMATCH */
.angebot { background: var(--angebot-grund); color: var(--angebot-text); }
.angebot-innen { display: grid; gap: 18px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.angebot p { max-width: 62ch; }
.angebot-kontakt { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.angebot-telefon { font-weight: 700; font-size: 19px; }
.angebot :focus-visible { outline-color: var(--tuerkis); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); font-size: 15px; color: var(--text-2); }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 32px; }
.fuss-firma { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.fuss-firma img { margin: 8px 0; }
.fuss-firma img { width: 150px; height: auto; }
.fuss-links { display: flex; gap: 24px; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (prefers-color-scheme: dark) {
  /* Logo als weißes Negativ, wie die Designdatei es auf dunklem Grund verlangt */
  .fuss-firma img { filter: brightness(0) invert(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
