/* seoptimizer.ch
   Helles Werkzeug-Layout nach Semrush-Art: weisser Grund, tiefes Marine für
   Überschriften, ein orangener Akzent für alles, was man anklicken soll.
   Daten stehen in Karten mit klarer Kante, nicht in Verläufen. */

:root {
  --papier: #ffffff;
  --nebel: #f4f6fa;
  --nebel-2: #eaeef6;
  --tinte: #0b1b3a;            /* Überschriften, Marine */
  --text: #2c3a52;
  --leise: #66748d;
  --still: #8e9ab0;
  --linie: #e2e7f0;
  --linie-stark: #ccd5e4;
  --akzent: #ff642d;           /* Handlung */
  --akzent-dunkel: #e24d15;
  --akzent-schwach: #fff1ec;
  --blau: #0b63ce;
  --gut: #12a06a;
  --gut-schwach: #e8f7f0;
  --offen: #d93f2b;
  --offen-schwach: #fdeeec;
  --rund: 10px;
  --rund-gross: 16px;
  --schatten: 0 1px 2px rgba(11, 27, 58, .06), 0 8px 24px rgba(11, 27, 58, .06);
  --schatten-hoch: 0 2px 4px rgba(11, 27, 58, .08), 0 18px 44px rgba(11, 27, 58, .12);
  --breite: 1240px;
}

/* Eine einzige Schrift, selbst gehostet. Kein fremder Server, eine Anfrage. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/schriften/instrument-sans.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--papier);
  color: var(--text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--tinte); line-height: 1.14; letter-spacing: -.02em; font-weight: 700; }
a { color: inherit; }
strong, b { color: var(--tinte); font-weight: 600; }

/* Gemessene Zahlen stehen untereinander bündig, wie in einem Prüfbericht. */
.zahlen, .wert, .note-zahl span, .protokoll dd, .teil-kopf span, .merkmale b {
  font-variant-numeric: tabular-nums;
}

:focus-visible { outline: 3px solid rgba(11, 99, 206, .45); outline-offset: 2px; border-radius: 6px; }

.zum-inhalt {
  position: absolute; left: 10px; top: -60px; z-index: 60;
  padding: 10px 16px; border-radius: 8px;
  background: var(--tinte); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top .15s;
}
.zum-inhalt:focus { top: 10px; }

.visuell-versteckt {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Kopf ─────────────────────────────────────────────────────────────── */
.kopf {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px; height: 68px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}

.marke {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-size: 21px; font-weight: 800; letter-spacing: -.035em;
  color: var(--tinte); text-decoration: none;
}
.marke .endung { color: var(--akzent); }
.marke-punkt { display: none; }

.kopf-nav { display: flex; gap: 4px; margin-left: 20px; font-size: 15px; font-weight: 600; }
.kopf-nav a {
  padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--text);
  transition: background .15s, color .15s;
}
.kopf-nav a:hover { background: var(--nebel); color: var(--tinte); }

.kopf-tat {
  margin-left: auto;
  padding: 11px 22px; border-radius: 8px;
  background: var(--akzent); color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
  transition: background .15s, transform .12s;
}
.kopf-tat:hover { background: var(--akzent-dunkel); }
.kopf-tat:active { transform: translateY(1px); }

/* ── Bühne ────────────────────────────────────────────────────────────── */
.buehne {
  position: relative;
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}

.globus { display: none; }

/* Links das Eingabefeld, rechts das Prüfprotokoll: was hineingeht und was
   gemessen wird, nebeneinander. */
.buehne-inhalt {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px; align-items: start;
  max-width: var(--breite); margin: 0 auto;
  padding: 72px 32px 64px;
  text-align: left;
}

.buehne.schmal .buehne-inhalt { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* ── Prüfprotokoll in der Bühne ───────────────────────────────────────── */
.protokoll {
  border: 1px solid var(--linie-stark); border-radius: var(--rund);
  background: var(--nebel);
  padding: 22px 24px 20px;
}
.protokoll h2 { font-size: 15px; font-weight: 600; color: var(--leise); margin-bottom: 14px; }
.protokoll dl { display: flex; flex-direction: column; gap: 2px; }
.protokoll dl > div {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--linie);
}
.protokoll dt { flex: 0 1 auto; font-size: 15px; color: var(--text); }
.protokoll dl > div::after {
  content: ""; flex: 1 1 auto; height: 0;
  border-bottom: 1px dotted var(--linie-stark); transform: translateY(-3px);
}
.protokoll dd { order: 3; font-size: 15px; font-weight: 600; color: var(--tinte); }
.protokoll-summe {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; font-size: 15px; color: var(--leise);
}
.protokoll-summe b { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.protokoll-fuss { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--still); }

.ueberzeile {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px; margin-bottom: 26px;
  border: 1px solid var(--linie-stark); border-radius: 999px;
  background: var(--papier);
  font-size: 13.5px; font-weight: 600; color: var(--leise);
  text-transform: none; letter-spacing: 0;
}
.ueberzeile::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gut); box-shadow: 0 0 0 3px var(--gut-schwach);
}

.ueberzeile[data-ton="warn"]::before { background: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-schwach); }

h1 { font-size: clamp(33px, 4.4vw, 52px); max-width: 17ch; text-wrap: balance; }
.buehne.schmal h1 { max-width: 20ch; }

.lead {
  margin: 20px 0 0; max-width: 58ch;
  font-size: 18.5px; color: var(--leise);
}

/* Suchfeld: das Herzstück, darum gross und mit einer sichtbaren Kante. */
.suche {
  display: flex; gap: 8px; margin: 32px 0 0; max-width: 620px;
  padding: 7px; border-radius: 14px;
  background: var(--papier);
  border: 1px solid var(--linie-stark);
  box-shadow: var(--schatten-hoch);
  transition: border-color .18s, box-shadow .18s;
}
.suche:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-schwach), var(--schatten-hoch); }

.suche input {
  flex: 1; min-width: 0; padding: 15px 16px;
  background: transparent; border: none;
  color: var(--tinte); font-size: 17px; font-family: inherit;
}
.suche input::placeholder { color: var(--still); }
.suche input:focus { outline: none; }

.suche button {
  padding: 15px 30px; border: none; border-radius: 9px;
  background: var(--akzent); color: #fff;
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .15s, transform .12s;
}
.suche button:hover { background: var(--akzent-dunkel); }
.suche button:active { transform: translateY(1px); }
.suche button[disabled] { opacity: .6; cursor: progress; }

.hinweis { margin-top: 14px; font-size: 14px; color: var(--still); }
.hinweis.fehler { color: var(--offen); font-weight: 600; }

/* Beispiele: ein Klick, ein echter Bericht. Senkt die Hürde zum ersten Check. */
.beispiele {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin-top: 20px; font-size: 14px; color: var(--still);
}
.beispiele button {
  padding: 6px 13px; border: 1px solid var(--linie-stark); border-radius: 999px;
  background: var(--papier); color: var(--text);
  font-size: 13.5px; font-family: inherit; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.beispiele button:hover { border-color: var(--akzent); color: var(--akzent); background: var(--akzent-schwach); }

.merkmale {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 30px; margin-top: 42px;
  font-size: 14px; color: var(--leise);
}
.merkmale li { display: flex; align-items: baseline; gap: 8px; }
.merkmale b { font-size: 21px; font-weight: 800; color: var(--tinte); letter-spacing: -.03em; }
.merkmale li + li { padding-left: 30px; border-left: 1px solid var(--linie); }

/* Schritte während der Prüfung */
.schritte {
  display: flex; flex-wrap: wrap;
  gap: 8px 22px; margin-top: 26px;
}
.schritt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--still); transition: color .3s; }
.schritt span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--linie-stark); transition: background .3s, box-shadow .3s;
}
.schritt.aktiv { color: var(--tinte); font-weight: 600; }
.schritt.aktiv span { background: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-schwach); }
.schritt.fertig span { background: var(--gut); box-shadow: none; }

/* ── Ergebnis ─────────────────────────────────────────────────────────── */
.ergebnis {
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start;
  max-width: var(--breite); margin: 0 auto; padding: 48px 32px 80px;
}

.tafel {
  position: sticky; top: 88px;
  border: 1px solid var(--linie); border-radius: var(--rund-gross);
  background: var(--papier); box-shadow: var(--schatten);
  padding: 28px 26px;
}

.note-block { position: relative; width: 190px; height: 190px; margin: 0 auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-spur { stroke: var(--nebel-2); }
.ring-wert {
  stroke: var(--akzent); stroke-linecap: round;
  stroke-dasharray: 540; stroke-dashoffset: 540;
  transition: stroke-dashoffset 1.3s cubic-bezier(.16, 1, .3, 1);
}

.note-zahl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.note-zahl span { font-size: 56px; font-weight: 800; color: var(--tinte); letter-spacing: -.04em; line-height: 1; }
.note-zahl i { font-style: normal; font-size: 12.5px; color: var(--still); margin-top: 4px; }

.note-satz { margin-top: 18px; text-align: center; font-size: 15px; color: var(--text); }
.geprueft { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--still); overflow-wrap: anywhere; }

.teilnoten { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.teil { font-size: 13.5px; }
.teil-kopf { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--leise); }
.teil-kopf b { font-weight: 700; color: var(--tinte); }
.balken { height: 6px; background: var(--nebel-2); border-radius: 999px; overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--akzent); border-radius: 999px; width: 0; transition: width 1s cubic-bezier(.16, 1, .3, 1); }
/* Die Farbe des Balkens sagt, wie der Bereich dasteht. */
.balken i[data-stufe="gut"] { background: var(--gut); }
.balken i[data-stufe="warn"] { background: var(--akzent); }
.balken i[data-stufe="schwach"] { background: var(--offen); }

.tafel-knoepfe { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.tafel-knoepfe button {
  padding: 11px; background: var(--papier); color: var(--text);
  border: 1px solid var(--linie-stark); border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.tafel-knoepfe button:hover { border-color: var(--tinte); color: var(--tinte); background: var(--nebel); }
.tafel-knoepfe button.haupt {
  background: var(--akzent); color: #fff; border-color: var(--akzent);
  font-weight: 700; font-size: 15px; padding: 13px;
}
.tafel-knoepfe button.haupt:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }
.tafel-knoepfe button.haupt[disabled] { opacity: .65; cursor: progress; }

.tafel-fuss { margin-top: 11px; font-size: 12px; color: var(--still); text-align: center; overflow-wrap: anywhere; }
.tafel-fuss.fehler { color: var(--offen); }

/* Befunde */
.dringend {
  border: 1px solid var(--linie); border-left: 4px solid var(--akzent);
  border-radius: var(--rund); background: var(--papier);
  box-shadow: var(--schatten);
  padding: 26px 28px; margin-bottom: 28px;
}
.dringend h2 { font-size: 21px; margin-bottom: 6px; }
.dringend p.unter { font-size: 14.5px; color: var(--leise); margin-bottom: 20px; }
.dringend ol { list-style: none; counter-reset: d; display: flex; flex-direction: column; gap: 14px; }
.dringend li { counter-increment: d; display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; }
.dringend li::before {
  content: counter(d);
  flex: 0 0 26px; height: 26px; border-radius: 7px;
  background: var(--akzent-schwach); color: var(--akzent-dunkel);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 2px;
}

.gruppe {
  margin-bottom: 20px; border: 1px solid var(--linie);
  border-radius: var(--rund-gross); background: var(--papier); overflow: hidden;
}
.gruppe-kopf {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 22px; background: var(--nebel); border-bottom: 1px solid var(--linie);
}
.gruppe-kopf h3 { font-size: 16px; }
.gruppe-kopf span { font-size: 13px; color: var(--leise); font-weight: 600; white-space: nowrap; }

.punkt { border-bottom: 1px solid var(--linie); }
.punkt:last-child { border-bottom: none; }

.punkt-kopf {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 22px; background: none; border: none;
  color: var(--tinte); font-family: inherit; font-size: 15px; font-weight: 600; text-align: left;
  cursor: pointer; transition: background .15s;
}
.punkt-kopf:hover { background: var(--nebel); }

.marker { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--gut); box-shadow: 0 0 0 3px var(--gut-schwach); }
.punkt.offen .marker { background: var(--offen); box-shadow: 0 0 0 3px var(--offen-schwach); }
.punkt-kopf .wert { margin-left: auto; font-size: 12.5px; color: var(--still); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34%; }
.punkt-kopf .pfeil { color: var(--still); font-size: 12px; transition: transform .2s; }
.punkt.auf .punkt-kopf .pfeil { transform: rotate(90deg); }

.punkt-text { display: none; padding: 0 22px 20px 43px; }
.punkt.auf .punkt-text { display: block; }
.punkt-text p { font-size: 14.5px; color: var(--text); max-width: 76ch; }

.loesung { margin-top: 14px; position: relative; border: 1px solid var(--linie); border-radius: 9px; background: var(--nebel); }
.loesung pre {
  margin: 0; padding: 14px 58px 14px 15px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.65; color: #16233d;
  white-space: pre-wrap; word-break: break-word;
}
.loesung button {
  position: absolute; top: 8px; right: 8px;
  padding: 5px 11px; font-size: 11.5px; font-family: inherit; font-weight: 700;
  background: var(--papier); color: var(--leise);
  border: 1px solid var(--linie-stark); border-radius: 6px; cursor: pointer;
}
.loesung button:hover { color: var(--akzent); border-color: var(--akzent); }

/* ── Abschnitte ───────────────────────────────────────────────────────── */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: 84px 32px; }
.abschnitt h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; text-wrap: balance; }
.abschnitt > p { color: var(--leise); max-width: 68ch; font-size: 17.5px; }
.abschnitt .vor-raster { margin-bottom: 44px; }

.band { background: var(--nebel); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.band .abschnitt { padding-top: 84px; padding-bottom: 84px; }

.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.raster article {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--rund-gross);
  padding: 28px 26px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.raster article:hover { border-color: var(--linie-stark); box-shadow: var(--schatten); transform: translateY(-2px); }
.raster h3 { font-size: 18px; margin-bottom: 10px; }
.raster p { font-size: 15px; color: var(--leise); }
.raster .nummer {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 10px; background: var(--akzent-schwach); color: var(--akzent-dunkel);
  font-size: 15px; font-weight: 800; letter-spacing: 0;
}
.raster article.hell { background: var(--tinte); border-color: var(--tinte); }
.raster article.hell h3 { color: #fff; }
.raster article.hell p { color: #b9c4d8; }
.raster article.hell .nummer { background: rgba(255, 255, 255, .12); color: #fff; }
.raster article.hell:hover { box-shadow: 0 18px 44px rgba(11, 27, 58, .28); }

.ablauf { list-style: none; counter-reset: a; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.ablauf li { counter-increment: a; padding-top: 22px; border-top: 3px solid var(--akzent); position: relative; }
.ablauf li:nth-child(2) { border-top-color: var(--linie-stark); }
.ablauf li:nth-child(3) { border-top-color: var(--linie-stark); }
.ablauf li::before {
  content: "Schritt " counter(a); display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; color: var(--akzent-dunkel);
}
.ablauf h3 { font-size: 18px; margin-bottom: 10px; }
.ablauf p { font-size: 15px; color: var(--leise); }

.liste { margin-top: 26px; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.liste li { padding-left: 30px; position: relative; color: var(--leise); font-size: 16px; max-width: 74ch; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--akzent-schwach);
  box-shadow: inset 0 0 0 2px var(--akzent);
}
.liste strong { color: var(--tinte); font-weight: 700; }

/* Häufige Fragen */
.fragen { margin-top: 34px; border: 1px solid var(--linie); border-radius: var(--rund-gross); overflow: hidden; background: var(--papier); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen details:last-child { border-bottom: none; }
.fragen summary {
  list-style: none; cursor: pointer; padding: 20px 52px 20px 24px; position: relative;
  font-size: 17px; font-weight: 700; color: var(--tinte);
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+"; position: absolute; right: 22px; top: 17px;
  color: var(--akzent); font-size: 20px; font-weight: 700;
}
.fragen details[open] summary::after { content: "\2212"; }
.fragen summary:hover { background: var(--nebel); }
.fragen p { padding: 0 52px 22px 24px; font-size: 15.5px; color: var(--leise); max-width: 78ch; }
.fragen a { color: var(--blau); }

/* Aufruf zum Schluss */
.tat { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.tat span { font-size: 15px; color: var(--still); max-width: 44ch; }
.knopf-gross {
  display: inline-block; padding: 15px 30px; border-radius: 9px;
  background: var(--akzent); color: #fff; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: background .15s, transform .12s;
}
.knopf-gross:hover { background: var(--akzent-dunkel); }
.knopf-gross:active { transform: translateY(1px); }

.umsetzen {
  background: var(--tinte); border: none; border-radius: 22px;
  padding: 68px 56px; margin-bottom: 80px;
}
.umsetzen h2, .umsetzen h3 { color: #fff; }
.umsetzen > p, .umsetzen .tat span { color: #b9c4d8; }

/* ── Werbeplätze ──────────────────────────────────────────────────────── */
.werbeplatz {
  max-width: var(--breite); margin: 0 auto; padding: 24px 32px;
}
.werbeplatz > .werbe-label {
  display: flex; gap: 14px; margin-bottom: 8px;
  font-size: 11.5px; color: var(--still); letter-spacing: .04em;
}
.werbeplatz > .werbe-label a { color: var(--still); }
.werbe-rahmen {
  border: 1px solid var(--linie); border-radius: var(--rund);
  background: var(--nebel); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 96px;
}
.werbeplatz.breit .werbe-rahmen { min-height: 110px; }

/* Gebuchte Anzeige: reiner Text, kein fremdes Skript. */
.anzeige {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  width: 100%; padding: 22px 26px; text-decoration: none;
  background: linear-gradient(100deg, #0b1b3a 0%, #16305e 100%);
  color: #fff;
}
.anzeige-text { flex: 1 1 320px; min-width: 0; }
.anzeige-text b { display: block; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.anzeige-text span { display: block; margin-top: 4px; font-size: 14.5px; color: #b9c4d8; }
.anzeige-text i {
  display: block; margin-top: 8px; font-style: normal;
  font-size: 12.5px; color: #8fa0bd; letter-spacing: .02em;
}
.anzeige-knopf {
  flex: 0 0 auto; padding: 11px 22px; border-radius: 8px;
  background: var(--akzent); color: #fff; font-weight: 700; font-size: 15px;
}
.anzeige:hover .anzeige-knopf { background: var(--akzent-dunkel); }

/* Freier Platz: Einladung, ihn selbst zu buchen. */
.platz-frei {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  width: 100%; padding: 22px 26px; text-decoration: none;
  background: var(--nebel); color: var(--leise);
}
.platz-frei > span:first-child { flex: 1 1 320px; min-width: 0; }
.platz-frei b { display: block; color: var(--tinte); font-size: 16.5px; }
.platz-frei b + span { display: block; margin-top: 4px; font-size: 14.5px; }
.platz-knopf {
  flex: 0 0 auto; padding: 10px 20px; border-radius: 8px;
  border: 1px solid var(--linie-stark); background: #fff;
  color: var(--tinte); font-weight: 700; font-size: 14.5px;
}
.platz-frei:hover .platz-knopf { border-color: var(--akzent); color: var(--akzent); }

/* ── Werbeseite: Formular, Vorschau, Kampagnentafel ───────────────────── */
.buehne.schmal { padding-bottom: 20px; }
.raster h3 .anzahl {
  display: block; margin-top: 5px;
  font-size: 13.5px; font-weight: 500; color: var(--still);
  letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.buchen-raster {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start;
}
.formular { display: flex; flex-direction: column; gap: 18px; }
.formular h3 { font-size: 19px; margin-top: 10px; }
.feld { display: flex; flex-direction: column; gap: 6px; border: none; }
.feld label, .feld legend {
  font-size: 14px; font-weight: 700; color: var(--tinte);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.feld .zaehler { font-weight: 500; color: var(--still); font-size: 12.5px; }
.feld input, .feld select, .feld textarea, #linkFeld, .aendern input, .aendern textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15.5px;
  color: var(--text); background: #fff;
  border: 1px solid var(--linie-stark); border-radius: var(--rund);
}
.feld textarea { resize: vertical; line-height: 1.55; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feld-hilfe { font-size: 13.5px; color: var(--still); line-height: 1.55; }
.formular .haken, .haken {
  display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px;
  font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--text);
}
.haken input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--akzent); }
.haken a { color: var(--blau); }

.vorschau-spalte {
  position: sticky; top: 92px;
  border: 1px solid var(--linie); border-radius: var(--rund-gross);
  background: var(--nebel); padding: 22px;
}
.vorschau-titel {
  font-size: 11.5px; color: var(--still); letter-spacing: .04em; margin-bottom: 8px;
}
.vorschau-spalte .werbe-rahmen { background: #fff; margin-bottom: 14px; }
.vorschau-spalte .anzeige { cursor: default; }

.fertig {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--linie);
  display: flex; flex-direction: column; gap: 10px;
}
.fertig p { font-size: 14.5px; color: var(--leise); }
#linkFeld { font-size: 13px; background: #fff; }
#linkKopieren {
  align-self: flex-start; padding: 10px 18px; font: inherit; font-weight: 700;
  border: 1px solid var(--linie-stark); border-radius: var(--rund);
  background: #fff; color: var(--tinte); cursor: pointer;
}

.meldung {
  padding: 12px 16px; border-radius: var(--rund); font-size: 14.5px;
  background: var(--nebel); color: var(--leise);
}
.meldung.gut { background: var(--gut-schwach); color: #0a6b48; }
.meldung.warn { background: var(--offen-schwach); color: #a52a1a; }

.kampagne {
  margin-top: 24px; padding: 26px 28px; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--rund-gross);
  box-shadow: var(--schatten);
}
.kampagne + .kampagne { margin-top: 18px; }
.kampagne-kopf h3 { font-size: 21px; margin: 8px 0 4px; }
.kampagne-kopf p { font-size: 14.5px; color: var(--leise); }
.kampagne-kopf .grund { color: #a52a1a; margin-top: 6px; }
.zustand {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--nebel-2); color: var(--leise);
}
.zustand.frei { background: var(--gut-schwach); color: #0a6b48; }
.zustand.wartet { background: var(--akzent-schwach); color: var(--akzent-dunkel); }
.zustand.abgelehnt { background: var(--offen-schwach); color: #a52a1a; }

.zahlen {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--linie);
}
.zahlen b { display: block; font-size: 24px; color: var(--tinte); letter-spacing: -.03em; }
.zahlen span { font-size: 13px; color: var(--still); }

.kampagne-daten {
  display: grid; grid-template-columns: 130px 1fr; gap: 8px 18px; font-size: 14.5px;
}
.kampagne-daten dt { color: var(--still); }
.kampagne-daten dd { color: var(--text); overflow-wrap: anywhere; }
.kampagne-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.kampagne-knoepfe button {
  padding: 11px 20px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--linie-stark); border-radius: var(--rund);
  background: #fff; color: var(--tinte);
}
.kampagne-knoepfe button:hover { border-color: var(--akzent); color: var(--akzent); }
.kampagne-knoepfe .haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.kampagne-knoepfe .haupt:hover { background: var(--akzent-dunkel); color: #fff; }
.kampagne-knoepfe .gefahr { color: var(--offen); }
.kampagne-knoepfe button[disabled] { opacity: .5; cursor: default; }
.aendern { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--linie); }
.nach-liste { margin-top: 18px; font-size: 15px; color: var(--leise); }
.nach-liste a { color: var(--blau); }

@media (max-width: 900px) {
  .buchen-raster { grid-template-columns: 1fr; }
  .vorschau-spalte { position: static; }
  .zahlen { grid-template-columns: repeat(2, 1fr); }
  .kampagne-daten { grid-template-columns: 1fr; gap: 2px; }
  .kampagne-daten dd { margin-bottom: 10px; }
}

/* ── Fuss ─────────────────────────────────────────────────────────────── */
.fuss {
  border-top: 1px solid var(--linie); background: var(--nebel);
}
.fuss-inhalt {
  max-width: var(--breite); margin: 0 auto; padding: 48px 32px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
.fuss-marke { font-size: 15px; color: var(--leise); }
.fuss-marke .marke { font-size: 19px; }
.fuss-marke p { margin-top: 12px; max-width: 42ch; font-size: 14.5px; }
.fuss-adresse { font-style: normal; line-height: 1.8; color: var(--leise); font-size: 14.5px; }
.fuss-adresse a { color: var(--blau); text-decoration: none; }
.fuss-adresse a:hover { text-decoration: underline; }
.fuss h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.fuss-nav { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.fuss-nav a { color: var(--leise); text-decoration: none; }
.fuss-nav a:hover { color: var(--akzent); }
.fuss-rechts {
  max-width: var(--breite); margin: 0 auto; padding: 18px 32px 34px;
  border-top: 1px solid var(--linie); font-size: 13.5px; color: var(--still);
}

/* ── Rechtsseiten ─────────────────────────────────────────────────────── */
.rechtstext { max-width: 760px; margin: 0 auto; padding: 64px 32px 88px; }
.rechtstext h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.rechtstext h2 { font-size: 20px; margin: 40px 0 10px; }
.rechtstext p, .rechtstext li { color: var(--leise); }
.rechtstext p + p { margin-top: 10px; }
.rechtstext ul { margin: 10px 0 0 22px; }
.rechtstext ul li { margin-bottom: 6px; }
.rechtstext a { color: var(--blau); }
.rechtstext .kasten {
  margin-top: 26px; padding: 22px 24px; border: 1px solid var(--linie);
  border-radius: var(--rund); background: var(--nebel); font-style: normal;
  line-height: 1.8; color: var(--text);
}

/* ── Ratgeber ─────────────────────────────────────────────────────────── */

.artikel { max-width: 780px; }
.artikel h2 { font-size: 24px; margin: 44px 0 12px; scroll-margin-top: 90px; }
.artikel h3 { font-size: 18px; margin: 26px 0 8px; color: var(--tinte); }
.artikel p, .artikel li { font-size: 17px; }
.artikel ul { margin: 12px 0 0 22px; }
.artikel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--nebel); border: 1px solid var(--linie);
  border-radius: 5px; padding: 1px 5px; color: var(--tinte); word-break: break-word;
}

.krumen { font-size: 14px; color: var(--still); margin-bottom: 18px; }
.krumen a { color: var(--leise); text-decoration: none; }
.krumen a:hover { color: var(--akzent); text-decoration: underline; }
.krumen span[aria-hidden] { padding: 0 4px; }

.artikel-meta { font-size: 14px; color: var(--still); margin-bottom: 22px; }
.artikel-lead { font-size: 19px; color: var(--text); margin-bottom: 8px; }

.rechtstext .kasten.kurzfassung { background: var(--akzent-schwach); border-color: #ffd7c8; }
.kurzfassung strong {
  display: block; color: var(--tinte); font-size: 15px; margin-bottom: 8px;
}
.kurzfassung ul { margin: 0 0 0 20px; }
.kurzfassung li { color: var(--text); margin-bottom: 5px; }

.inhaltsverzeichnis {
  margin: 26px 0 8px; padding: 20px 24px; border: 1px solid var(--linie);
  border-radius: var(--rund); background: var(--nebel);
}
.inhaltsverzeichnis strong {
  display: block; color: var(--tinte); font-size: 15px; margin-bottom: 8px;
}
.inhaltsverzeichnis ol { margin: 0 0 0 20px; }
.inhaltsverzeichnis li { color: var(--leise); margin-bottom: 4px; }
.inhaltsverzeichnis a { color: var(--blau); text-decoration: none; }
.inhaltsverzeichnis a:hover { text-decoration: underline; }

.codeblock {
  margin: 14px 0; padding: 16px 18px; border: 1px solid var(--linie);
  border-left: 3px solid var(--akzent); border-radius: var(--rund);
  background: var(--nebel); overflow-x: auto;
}
.codeblock code {
  background: none; border: none; padding: 0; font-size: 14px; line-height: 1.7;
  white-space: pre; color: var(--tinte);
}

.reihenfolge { margin: 12px 0 0 22px; }
.reihenfolge li { margin-bottom: 7px; }

.artikel-tat { background: var(--nebel); margin-top: 40px; }
.artikel-tat strong { display: block; color: var(--tinte); font-size: 18px; }
.artikel-tat p { margin-top: 8px; }
.artikel-tat .knopf-gross { margin-top: 6px; display: inline-block; }

.artikel-fussnote {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--linie);
  font-size: 14px; color: var(--still);
}

.artikel-raster h3 a { color: var(--tinte); text-decoration: none; }
.artikel-raster h3 a:hover { color: var(--akzent); }
.artikel-raster .artikel-meta { margin: 10px 0 0; }

.artikel .werbeplatz { padding-left: 0; padding-right: 0; margin: 32px 0; }

/* ── Schmale Bildschirme ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .buehne-inhalt { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 56px; }
  .protokoll { max-width: 620px; }
  .ergebnis { grid-template-columns: 1fr; gap: 28px; }
  .tafel { position: static; }
  .raster { grid-template-columns: repeat(2, 1fr); }
  .ablauf { grid-template-columns: 1fr; gap: 24px; }
  .fuss-inhalt { grid-template-columns: 1fr 1fr; }
  .kopf-nav { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .kopf { padding: 0 18px; gap: 12px; }
  .kopf-tat { padding: 10px 16px; font-size: 14px; }
  .buehne-inhalt { padding: 52px 18px 56px; }
  .lead { font-size: 17px; }
  .suche { flex-direction: column; gap: 7px; }
  .suche button { padding: 15px; }
  .merkmale { gap: 10px 20px; }
  .merkmale li + li { padding-left: 0; border-left: none; }
  .ergebnis, .abschnitt, .werbeplatz, .fuss-inhalt, .fuss-rechts { padding-left: 18px; padding-right: 18px; }
  .abschnitt { padding-top: 56px; padding-bottom: 56px; }
  .umsetzen { padding: 44px 26px; margin-bottom: 44px; border-radius: 18px; }
  .band .abschnitt { padding-top: 56px; padding-bottom: 56px; }
  .raster { grid-template-columns: 1fr; }
  .punkt-kopf { padding: 14px 16px; }
  .punkt-kopf .wert { display: none; }
  .punkt-text { padding: 0 16px 18px 37px; }
  .fuss-inhalt { grid-template-columns: 1fr; gap: 28px; }
  .rechtstext { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ── Druck: der Bericht für die Kundenmappe ───────────────────────────── */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .kopf, .buehne, .abschnitt, .band, .fuss, .tafel-knoepfe, .schritte,
  .werbeplatz, .tafel-fuss, .beispiele, .merkmale { display: none !important; }
  .ergebnis { display: block; padding: 0; max-width: none; }
  .tafel { border: none; box-shadow: none; padding: 0 0 18mm; page-break-after: avoid; }
  .dringend, .gruppe { box-shadow: none; }
  .punkt-text { display: block !important; }
  .loesung button, .punkt-kopf .pfeil { display: none; }
  .punkt { page-break-inside: avoid; }
}

/* ==========================================================================
   Noten A+ bis F (22.09.2026)
   Der Buchstabe ist die Antwort auf einen Blick, die Prozentzahl bleibt
   daneben als Messwert stehen. Vier Farbstufen, mehr wäre Dekoration.
   Farben kommen aus den vorhandenen Token, kein neuer Akzent.
   ========================================================================== */

:root {
  --ok: #c58a12;               /* mittlere Stufe, Messing statt Gelb */
  --ok-schwach: #fdf4e3;
}

/* Die Note im Ring: gross, fett, ersetzt die blosse Zahl als Hauptaussage. */
.note-zahl .note-buchstabe {
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}
.note-zahl .note-buchstabe[data-stufe="gut"] { color: var(--gut); }
.note-zahl .note-buchstabe[data-stufe="ok"] { color: var(--ok); }
.note-zahl .note-buchstabe[data-stufe="warn"] { color: var(--akzent-dunkel); }
.note-zahl .note-buchstabe[data-stufe="schwach"] { color: var(--offen); }
.note-zahl i { font-size: 13px; }
.note-zahl i span { font-size: inherit; font-weight: 700; letter-spacing: 0; }

/* Der Ring nimmt die Farbe der Note an, sonst zeigt er eine zweite Wahrheit. */
.ergebnis[data-stufe="gut"] .ring-wert { stroke: var(--gut); }
.ergebnis[data-stufe="ok"] .ring-wert { stroke: var(--ok); }
.ergebnis[data-stufe="warn"] .ring-wert { stroke: var(--akzent-dunkel); }
.ergebnis[data-stufe="schwach"] .ring-wert { stroke: var(--offen); }

/* Abzeichen je Bereich. Feste Breite, damit die sechs untereinander
   eine saubere Spalte ergeben und nicht je nach Buchstabe springen. */
.note-abzeichen,
.teil-note,
.gruppe-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.teil-note[data-stufe="gut"], .gruppe-note[data-stufe="gut"] { background: var(--gut-schwach); color: #0a6b48; }
.teil-note[data-stufe="ok"], .gruppe-note[data-stufe="ok"] { background: var(--ok-schwach); color: #8a5e05; }
.teil-note[data-stufe="warn"], .gruppe-note[data-stufe="warn"] { background: var(--akzent-schwach); color: var(--akzent-dunkel); }
.teil-note[data-stufe="schwach"], .gruppe-note[data-stufe="schwach"] { background: var(--offen-schwach); color: #a52a1a; }

/* Der Bereichskopf in der Seitenspalte: Name links, Note und Wert rechts. */
.teil-kopf { align-items: center; gap: 8px; }
.teil-kopf b { margin-right: auto; }
.teil-wert { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--leise); min-width: 26px; text-align: right; }

.balken i[data-stufe="ok"] { background: var(--ok); }
.balken i[data-stufe="warn"] { background: var(--akzent-dunkel); }

/* Im Bericht steht die Note vor der Überschrift, wie ein Zeugnisvermerk. */
.gruppe-kopf { gap: 10px; }
.gruppe-kopf h3 { margin-right: auto; }
.gruppe-note { min-width: 38px; padding: 4px 8px; font-size: 14px; }
.gruppe-zahl { font-size: 13px; color: var(--leise); font-weight: 600; white-space: nowrap; }

@media (max-width: 560px) {
  .gruppe-zahl { display: none; }        /* die Note genügt auf dem Handy */
  .note-zahl .note-buchstabe { font-size: 52px; }
}
