/* Consent-Check – Oberfläche. Ergänzt unterseite.css, erfindet nichts neu:
   Braun als Text, Türkis als Akzent, Sand als Fläche, weiche weiße Karten. */

:root {
  --cc-rot: #c0392b;
  --cc-rot-hell: #fdf2f0;
  --cc-rot-rand: #f2cdc7;
  --cc-gelb: #b07d20;
  --cc-gelb-hell: #fdf8ee;
  --cc-gelb-rand: #eeddb8;
  --cc-gruen: #3e7d5a;
  --cc-gruen-hell: #f1f8f4;
  --cc-gruen-rand: #c6e2d2;
  --cc-orange: #b5601f;
}

.cc-bereich { max-width: 860px; margin: 0 auto; }

/* ---------- Eingabe ---------- */

.cc-form { background: #fff; border-radius: 22px; padding: 28px 26px;
  box-shadow: 0 18px 50px rgba(78, 64, 55, .10); }
.cc-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.cc-eingabereihe { display: flex; gap: 12px; flex-wrap: wrap; }
.cc-eingabereihe input[type=url] {
  flex: 1 1 320px; min-width: 0; font: inherit; font-size: 17px; color: #4e4037;
  padding: 14px 16px; border: 1px solid #ded7d1; border-radius: 12px; background: #fdfcfb;
}
.cc-eingabereihe input[type=url]:focus { outline: 2px solid #0098da; outline-offset: 1px; border-color: #0098da; }
.cc-form button[type=submit] {
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
  background: #0098da; color: #fff; border: 0; border-radius: 12px; padding: 14px 26px;
  transition: background .2s;
}
.cc-form button[type=submit]:hover { background: #007cb3; }
.cc-optionen { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.cc-optionen select { font: inherit; padding: 7px 10px; border: 1px solid #ded7d1; border-radius: 9px; background: #fdfcfb; color: #4e4037; }
.cc-datenhinweis { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: #7d7069; }
#cc-eingabefehler { margin-top: 10px; color: var(--cc-rot); font-weight: 700; font-size: 15px; }

/* ---------- Fortschritt ---------- */

.cc-lauf { background: #fff; border-radius: 22px; padding: 30px 26px; text-align: center;
  box-shadow: 0 18px 50px rgba(78, 64, 55, .10); }
.cc-balken-huelle { height: 8px; background: #efeae6; border-radius: 99px; overflow: hidden; margin: 20px 0 16px; }
.cc-balken { height: 100%; width: 4%; background: #0098da; border-radius: 99px; transition: width .6s ease; }
#cc-lauf-text { font-weight: 700; font-size: 18px; }
#cc-lauf-unter { color: #7d7069; font-size: 15px; margin-top: 6px; min-height: 1.5em; overflow-wrap: anywhere; }

/* ---------- Urteil ---------- */

.cc-urteil { border-radius: 18px; padding: 26px 28px; border: 1px solid; margin-bottom: 26px; }
.cc-urteil.rot { background: var(--cc-rot-hell); border-color: var(--cc-rot-rand); }
.cc-urteil.gelb { background: var(--cc-gelb-hell); border-color: var(--cc-gelb-rand); }
.cc-urteil.gruen { background: var(--cc-gruen-hell); border-color: var(--cc-gruen-rand); }
.cc-stufe { font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.cc-stufe::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.cc-urteil.rot .cc-stufe { color: var(--cc-rot); }
.cc-urteil.gelb .cc-stufe { color: var(--cc-gelb); }
.cc-urteil.gruen .cc-stufe { color: var(--cc-gruen); }
.cc-urteil p { font-size: 21px; line-height: 1.45; margin: 0; }

/* ---------- Kennzahlen ---------- */

.cc-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 30px; }
.cc-zahl { background: #fff; border-radius: 14px; padding: 18px 18px 16px;
  box-shadow: 0 8px 24px rgba(78, 64, 55, .07); }
.cc-zahl b { display: block; font-size: 34px; line-height: 1.05; font-weight: 700; }
.cc-zahl b.warn { color: var(--cc-rot); }
.cc-zahl b.mittel { color: var(--cc-orange); }
.cc-zahl b.gut { color: var(--cc-gruen); }
.cc-zahl span { display: block; margin-top: 6px; font-size: 14px; color: #7d7069; line-height: 1.4; }

/* ---------- Abschnitte im Ergebnis ---------- */

#cc-ergebnis h3 { font-size: 24px; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid #e6dfd9; }
#cc-ergebnis h3:first-of-type { margin-top: 34px; }

.cc-einordnung, .cc-hinweise { background: #f7f5f3; border-radius: 16px; padding: 22px 24px; margin-bottom: 8px; }
/* Höhere Gewichtung als die Regel für #cc-ergebnis h3 - sonst erben die
   Überschriften in Kästen deren großen Vorlauf und die Trennlinie. */
#cc-ergebnis .cc-einordnung h3,
#cc-ergebnis .cc-hinweise h3,
#cc-ergebnis .cc-fehler h3 { margin: 0 0 10px; font-size: 19px; border: 0; padding: 0; }
.cc-einordnung p { margin: 0; font-size: 16.5px; line-height: 1.65; }
.cc-hinweise { margin-top: 18px; background: var(--cc-gelb-hell); border: 1px solid var(--cc-gelb-rand); }
.cc-hinweise ul { margin: 0; padding-left: 20px; }
.cc-hinweise li { margin-bottom: 8px; font-size: 15.5px; line-height: 1.6; }
.cc-hinweise li:last-child { margin-bottom: 0; }

.cc-banner-lage { border-radius: 14px; padding: 18px 20px; border: 1px solid; }
.cc-banner-lage.gut { background: var(--cc-gruen-hell); border-color: var(--cc-gruen-rand); }
.cc-banner-lage.schlecht { background: var(--cc-rot-hell); border-color: var(--cc-rot-rand); }
.cc-banner-lage.neutral { background: #f7f5f3; border-color: #e6dfd9; }
.cc-banner-lage p { margin: 0 0 6px; }
.cc-banner-lage p:last-child { margin-bottom: 0; }

.cc-leer { background: var(--cc-gruen-hell); border: 1px solid var(--cc-gruen-rand);
  border-radius: 14px; padding: 18px 20px; margin: 0; }

/* ---------- Dienstkarten ---------- */

.cc-dienst { background: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(78, 64, 55, .07); }
.cc-dienst header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.cc-dienst h4 { font-size: 19px; margin: 0 0 3px; font-weight: 700; }
.cc-dienst p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.cc-dienst p:last-of-type { margin-bottom: 0; }

.cc-abzeichen { flex: none; font-size: 13px; font-weight: 700; padding: 4px 11px;
  border-radius: 99px; border: 1px solid; white-space: nowrap; }
.st-rot { color: var(--cc-rot); background: var(--cc-rot-hell); border-color: var(--cc-rot-rand); }
.st-orange { color: var(--cc-orange); background: #fdf5ef; border-color: #f0d8c4; }
.st-gelb { color: var(--cc-gelb); background: var(--cc-gelb-hell); border-color: var(--cc-gelb-rand); }
.st-gruen { color: var(--cc-gruen); background: var(--cc-gruen-hell); border-color: var(--cc-gruen-rand); }
.st-grau { color: #7d7069; background: #f7f5f3; border-color: #e6dfd9; }

.cc-nachweis { border-radius: 10px; padding: 10px 14px; font-size: 15px !important; }
.cc-nachweis.hart { background: var(--cc-rot-hell); color: #8f2c20; }
.cc-nachweis.weich { background: var(--cc-gelb-hell); color: #8a6118; }
.cc-loesung { background: #f7f5f3; border-left: 3px solid #0098da; border-radius: 0 10px 10px 0;
  padding: 10px 14px; font-size: 15.5px !important; }

.cc-dienst details { margin-top: 12px; }
.cc-dienst summary { cursor: pointer; font-size: 14.5px; color: #7d7069; }
.cc-dienst summary:hover { color: #4e4037; }
.cc-belege { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }
.cc-belege li { margin-bottom: 6px; overflow-wrap: anywhere; }
.cc-art { display: inline-block; min-width: 82px; color: #7d7069; font-size: 13px; }

/* ---------- Tabellen ---------- */

.cc-tabelle { overflow-x: auto; background: #fff; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(78, 64, 55, .07); }
.cc-tabelle table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cc-tabelle th { text-align: left; font-size: 12.5px; font-weight: 700; color: #7d7069;
  text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px;
  background: #faf8f7; border-bottom: 1px solid #e6dfd9; }
.cc-tabelle td { padding: 12px 14px; border-bottom: 1px solid #f2eeeb; vertical-align: top; font-size: 14.5px; }
.cc-tabelle tr:last-child td { border-bottom: 0; }

/* ---------- Grundlage und Abschluss ---------- */

.cc-grundlage { background: #fff; border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(78, 64, 55, .07); }
.cc-grundlage p { margin: 0 0 8px; }
.cc-liste { margin: 0 0 12px; padding-left: 20px; font-size: 15px; }
.cc-liste li { margin-bottom: 4px; overflow-wrap: anywhere; }

.cc-abschluss { margin-top: 40px; background: #f7f5f3; border-radius: 18px; padding: 26px 28px; }
.cc-abschluss p { font-size: 16.5px; line-height: 1.65; }
.cc-abschluss .cta-knopf { margin-top: 8px; margin-right: 10px; }
.cc-neu { font: inherit; font-size: 16px; cursor: pointer; background: transparent;
  color: #0098da; border: 1px solid #bfe0f2; border-radius: 99px; padding: 13px 26px; margin-top: 8px; }
.cc-neu:hover { background: #eaf6fc; }

/* ---------- Fehler ---------- */

.cc-fehler { background: var(--cc-gelb-hell); border: 1px solid var(--cc-gelb-rand);
  border-radius: 18px; padding: 26px 28px; }
.cc-fehler h3 { margin: 0 0 10px; font-size: 21px; border: 0; padding: 0; }
.cc-fehler p { font-size: 16.5px; line-height: 1.65; }

/* ---------- Kleinkram ---------- */

.cc-leise { color: #7d7069; }
.cc-klein { font-size: 14.5px; }
#cc-ergebnis code, .cc-datenhinweis code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; background: #f4f1ef; border: 1px solid #e6dfd9; border-radius: 4px; padding: 1px 5px; }

@media (max-width: 640px) {
  .cc-urteil p { font-size: 18.5px; }
  #cc-ergebnis h3 { font-size: 21px; }
  .cc-dienst header { flex-direction: column; gap: 8px; }
  .cc-form, .cc-lauf { padding: 22px 18px; }
}

/* ---------- Feinschliff im Seitenzusammenhang ---------- */

/* Das Werkzeug ist der Kern dieser Seite: Es soll dicht unter der Einleitung
   stehen, nicht erst nach dem vollen Abschnittsabstand. */
#cc-start { padding-top: 0; }

/* Die Navigation liegt fest oben. Ohne diesen Vorlauf verschwindet beim Sprung
   zum Befund genau dessen erste Zeile darunter. */
#cc-ergebnis { scroll-margin-top: 96px; }

/* Auf schmalen Anzeigen bricht die Statuszeile um; der Punkt gehört dann an
   den Anfang der ersten Zeile, nicht in die optische Mitte des Blocks. */
.cc-stufe { align-items: flex-start; }
.cc-stufe::before { margin-top: .42em; }

/* Nach einer Kapitelüberschrift soll sichtbar eine Zeile Luft stehen, bevor der
   Text beginnt. Der Standardabstand des Browsers ist dafür zu knapp, und
   .statement bringt in der Basis keinen eigenen mit. */
h2.statement { margin-bottom: 40px; }

/* Zwischenüberschrift, die mehrere Kartenreihen gliedert. */
.cc-gruppe { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; margin: 44px 0 4px;
  color: #4e4037; }
.cc-gruppe + .karten { margin-top: 18px; }
