/* 3-Punkte-Kopf-Hals-Check · Farben aus Farbtabelle.docx · Montserrat lokal eingebunden (keine Google-Server) */
@font-face { font-family: "KHC Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "KHC Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "KHC Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

.khc {
  --khc-hintergrund: #FAFAFA;
  --khc-sand: #E8DFC8;
  --khc-taupe: #B7A58C;
  --khc-braun: #37250C;
  --khc-warmbraun: #9C7A4C;
  --khc-salbei: #8FA08F;
  --khc-salbei-dunkel: #5F6F63;
  /* Ampelfarben: nicht in der Farbtabelle, gedämpft an die Marke angepasst. Von Michaela freizugeben. */
  --khc-gruen: #5F6F63;
  --khc-gelb: #B8932E;
  --khc-orange: #B8662E;
  --khc-rot: #9E3B2C;

  box-sizing: border-box;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 32px;
  font-family: "KHC Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--khc-braun);
  background: var(--khc-hintergrund);
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.khc *, .khc *::before, .khc *::after { box-sizing: inherit; }
.khc h2, .khc h3, .khc h4 { font-family: inherit; color: var(--khc-braun); line-height: 1.25; margin: 0 0 .5em; }
.khc h2 { font-size: 1.5rem; font-weight: 700; }
.khc h3 { font-size: 1.15rem; font-weight: 700; }
.khc h4 { font-size: 1rem; font-weight: 600; }
.khc p { margin: 0 0 1em; }
.khc h2:focus { outline: none; }

.khc-karte { background: #fff; border: 1px solid var(--khc-sand); border-radius: 14px; padding: 20px 16px; margin: 0 0 16px; }
.khc-sand { background: var(--khc-sand); border: 0; }
.khc-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--khc-warmbraun); margin-bottom: .4em; }

.khc-sicherheit { border-left: 4px solid var(--khc-salbei); background: #fff; padding: 12px 14px; border-radius: 8px; font-size: .95rem; }

.khc-fortschritt { display: flex; gap: 6px; margin: 16px 0; }
.khc-fortschritt span { flex: 1; height: 6px; border-radius: 3px; background: var(--khc-sand); }
.khc-fortschritt span.aktiv { background: var(--khc-warmbraun); }

.khc-tastbild { width: 100%; height: auto; border-radius: 10px; margin: 0 0 12px; display: block; }
.khc-platzhalter { border: 2px dashed var(--khc-taupe); border-radius: 10px; padding: 14px; color: var(--khc-warmbraun); font-size: .9rem; margin: 0 0 12px; }

.khc-optionen { display: grid; gap: 10px; margin: 12px 0 4px; border: 0; padding: 0; }
.khc-optionen legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.khc-option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border: 2px solid var(--khc-sand); border-radius: 12px; background: #fff; cursor: pointer; font-size: 1rem; }
.khc-option input { width: 22px; height: 22px; accent-color: var(--khc-braun); flex: none; margin: 0; }
.khc-option:has(input:checked) { border-color: var(--khc-braun); background: #FBF8F1; }
.khc-option:focus-within { outline: 3px solid var(--khc-salbei); outline-offset: 2px; }

.khc-feld { margin: 0 0 16px; }
.khc-feld label { display: block; font-weight: 600; margin-bottom: 6px; }
.khc-feld .khc-optional { font-weight: 400; color: var(--khc-warmbraun); }
.khc-feld input[type=text], .khc-feld input[type=email] { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--khc-braun); border: 2px solid var(--khc-sand); border-radius: 10px; background: #fff; }
.khc-feld input:focus { outline: none; border-color: var(--khc-braun); }
.khc-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem; cursor: pointer; }
.khc-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--khc-braun); }
.khc-check a { color: var(--khc-braun); }
.khc-fehler { color: var(--khc-rot); font-size: .9rem; margin-top: 6px; font-weight: 600; }
.khc-feld.hat-fehler input[type=text], .khc-feld.hat-fehler input[type=email], .khc-optionen.hat-fehler .khc-option { border-color: var(--khc-rot); }
.khc-honig { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.khc-knoepfe { display: flex; gap: 10px; margin-top: 16px; }
.khc-knopf { white-space: nowrap; min-width: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border-radius: 12px; border: 2px solid var(--khc-braun); background: var(--khc-braun); color: var(--khc-hintergrund); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; flex: 1; text-align: center; }
.khc-knopf:hover { background: #4a3313; }
.khc-knopf:focus-visible { outline: 3px solid var(--khc-salbei); outline-offset: 2px; }
.khc-knopf[disabled] { opacity: .6; cursor: wait; }
.khc-knopf.zweit { background: transparent; color: var(--khc-braun); flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
.khc-knopf.inaktiv { cursor: default; }

/* Ergebnis */
.khc-karte-svg { width: 100%; height: auto; display: block; }
.khc-legende { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.khc-legende li { display: flex; align-items: flex-start; gap: 8px; }
.khc-legende .khc-punkt-farbe { margin-top: 5px; }
.khc-punkt-farbe { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.khc-ampel { display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; }
.khc-ampel.gruen, .khc-punkt-farbe.gruen { background: var(--khc-gruen); }
.khc-ampel.gelb, .khc-punkt-farbe.gelb { background: var(--khc-gelb); }
.khc-ampel.orange, .khc-punkt-farbe.orange { background: var(--khc-orange); }
.khc-ampel.rot, .khc-punkt-farbe.rot { background: var(--khc-rot); }
.khc-gesamtbild { border-left: 6px solid var(--khc-salbei-dunkel); }
.khc-gesamtbild.D { border-left-color: var(--khc-rot); }
.khc-punkt-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 8px; }
.khc-punkt-kopf h3 { margin: 0; }
.khc-reaktion { font-size: .88rem; color: var(--khc-warmbraun); margin-bottom: 10px; }
.khc-tun { background: #FBF8F1; border-radius: 10px; padding: 10px 12px; margin: 0; }
.khc-video { position: relative; margin: 10px 0; }
.khc-video iframe, .khc-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; display: block; }
.khc-mail-hinweis { background: var(--khc-salbei-dunkel); color: #fff; border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.khc-mail-hinweis p { margin: 0; }
.khc-bezahlt { background: var(--khc-braun); color: var(--khc-hintergrund); border: 0; }
.khc-bezahlt h3, .khc-bezahlt .khc-kicker { color: var(--khc-sand); }
.khc-bezahlt ul { margin: 0 0 1em; padding-left: 1.2em; }
.khc-bezahlt li { margin-bottom: .4em; }
.khc-bezahlt .khc-knopf { background: var(--khc-sand); color: var(--khc-braun); border-color: var(--khc-sand); }
.khc-hinweis-klein { font-size: .85rem; color: var(--khc-warmbraun); }
.khc-allgemein-fehler { background: #F7E9E6; color: var(--khc-rot); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 12px 0; }

@media (max-width: 400px) {
  .khc { padding: 0 0 24px; }
  .khc-karte { padding: 18px 14px; border-radius: 12px; }
  .khc h2 { font-size: 1.35rem; }
  .khc-option { padding: 10px 12px; gap: 10px; }
}
@media (min-width: 600px) {
  .khc-karte { padding: 24px; }
  .khc h2 { font-size: 1.75rem; }
}

/* Platz für das Rapidmail-Formular */
.khc-formular { margin: 8px 0 4px; }
.khc-formular .khc-knopf { margin-top: 8px; white-space: normal; }
.khc-formular iframe { width: 100%; border: 0; }

.khc-uebung-kopf { margin-top: 20px; }

.khc-logo { display: block; width: 120px; height: auto; margin: 0 0 12px; }
.khc-vorgehen-box { background: #FBF8F1; border-radius: 10px; padding: 12px 14px; margin: 4px 0 8px; }
.khc-vorgehen-box h4 { margin-bottom: 6px; }
.khc-vorgehen { margin: 0; padding-left: 1.1em; font-size: .95rem; }
.khc-vorgehen li { margin-bottom: .4em; }
.khc-tastbild { background: #fff; border: 1px solid var(--khc-sand); }

.khc-abbildung { margin: 0 0 12px; }
.khc-abbildung .khc-tastbild { margin: 0; }
.khc-abbildung figcaption { font-size: .75rem; line-height: 1.4; color: var(--khc-warmbraun); margin-top: 6px; }

.khc-video-titel { font-weight: 600; margin-bottom: 8px; }
.khc-video.hochkant { max-width: 300px; margin-left: auto; margin-right: auto; }
.khc-video.hochkant iframe, .khc-video.hochkant video, .khc-video.hochkant .khc-video-start { aspect-ratio: 9 / 16; }
.khc-video-start { width: 100%; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; border: 0; border-radius: 10px; background: var(--khc-braun); color: var(--khc-hintergrund); font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
.khc-video-start:focus-visible { outline: 3px solid var(--khc-salbei); outline-offset: 2px; }
.khc-play { width: 64px; height: 64px; border-radius: 50%; background: var(--khc-sand); position: relative; flex: none; }
.khc-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid var(--khc-braun); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.khc-video-label { font-weight: 700; font-size: 1.05rem; }
.khc-video-hinweis { font-size: .78rem; opacity: .85; max-width: 22ch; }

/* Rapidmail-Formular an den Markenauftritt anpassen */
.khc-formular #rmOrganism .rmBase, .khc-formular #rmOrganism .rmSubscription { background: transparent; color: var(--khc-braun); font-family: inherit; max-width: none; }
.khc-formular #rmOrganism .rmSubscription .rmBase__container { padding: 0; }
.khc-formular #rmOrganism .rmSubscription .rmBase__compLabel { color: var(--khc-braun); font-weight: 600; }
.khc-formular #rmOrganism .rmBase__el .comp__input { min-height: 50px; font-size: 16px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--khc-sand); color: var(--khc-braun); }
.khc-formular #rmOrganism .rmBase__el .comp__input:focus { box-shadow: inset 0 0 0 2px var(--khc-braun); outline: none; }
.khc-formular #rmOrganism .rmBase__comp--checkbox .vFormCheckbox__label { font-size: .92rem; line-height: 1.5; }
.khc-formular #rmOrganism .rmBase__comp--cta { min-height: 52px; border-radius: 12px; font-size: 1rem; }
.khc-formular #rmOrganism .rmBase__comp--privacy .privacy__text { color: var(--khc-warmbraun); }

/* Rapidmail-Formular: bleibt immer in der Seite, außerhalb von Schritt 4 nur aus dem Blickfeld geparkt */
.khc-rapidmail.khc-geparkt { position: absolute !important; left: -10000px !important; top: 0 !important; width: 340px; }
.khc-rapidmail { background: #fff; border: 1px solid var(--khc-sand); border-top: 0; border-radius: 0 0 14px 14px; padding: 4px 16px 20px; margin: -16px 0 16px; }
.khc-karte-oben { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: 16px; }
.khc-zurueck-link { background: none; border: 0; padding: 0; margin: 0 0 12px; font: inherit; font-size: .9rem; color: var(--khc-warmbraun); cursor: pointer; text-decoration: underline; }
.khc-ds { margin: 12px 0 0; }
.khc-ds a { color: var(--khc-warmbraun); }
@media (min-width: 600px) { .khc-rapidmail { padding: 4px 24px 24px; } }

/* Körperkarte mit Michaelas Grafik */
.khc-kartenbild { position: relative; border-radius: 10px; overflow: hidden; background: #46564F; }
.khc-kartenbild img { display: block; width: 100%; height: auto; }
.khc-marke { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 3px solid #FAFAFA; color: #FAFAFA; font-weight: 700; font-size: 14px; line-height: 24px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.khc-marke.gruen { background: var(--khc-gruen); } .khc-marke.gelb { background: var(--khc-gelb); } .khc-marke.orange { background: var(--khc-orange); } .khc-marke.rot { background: var(--khc-rot); }

/* Eingaben auf dem Postfach-Schirm */
.khc .khc-eingaben { list-style: none; padding: 0; margin: 0 0 12px; }
.khc .khc-eingaben li { padding: 10px 0; border-bottom: 1px solid #B7A58C; line-height: 1.45; }
.khc .khc-eingaben strong { display: block; font-weight: 700; font-size: .85em; letter-spacing: .02em; color: #9C7A4C; }
.khc .khc-eingaben li:last-child { border-bottom: 0; }
