/* Gesichtskarte (/gesicht): Foto eines Gesichts mit anklickbaren Partien.
   Markup: pages/templates/pages/partials/gesicht-svg.html, Verhalten: js/gesichtskarte.js. */

.gk-svg {
  --gk-akzent: #e11d48;
  display: block; width: 100%; height: auto; max-height: 76vh; margin: 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.gk-svg a { cursor: pointer; outline: none; }

/* Klickflächen über dem Foto: unsichtbar, bis der Zeiger darüber liegt oder die Partie gewählt ist */
.gk-zone { fill: var(--gk-akzent); fill-opacity: 0; stroke: #fff; stroke-opacity: 0; stroke-width: 1.4; stroke-linejoin: round;
  transition: fill-opacity .15s, stroke-opacity .15s; }
/* Zeiger über dem Bild: alle wählbaren Partien zart andeuten; verlässt er das Bild, verschwinden sie wieder. */
.gk-svg:hover .gk-zone { fill-opacity: .07; stroke-opacity: .55; }
.gk-part:hover .gk-zone, .gk-part:focus-visible .gk-zone { fill-opacity: .22; stroke-opacity: .95; }
.gk-part.is-active .gk-zone { fill-opacity: .36; stroke-opacity: 1; }
/* Die Haut liegt unter allen anderen Partien und bleibt deshalb zarter. */
[data-partie="haut"]:hover .gk-zone, [data-partie="haut"]:focus-visible .gk-zone { fill-opacity: .12; }
[data-partie="haut"].is-active .gk-zone { fill-opacity: .2; }

/* Schielen: Solange die Partie gewählt ist, blendet ein zweites Bild des Auges über – die Iris steht zur Nase hin. */
.gk-schielbild { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.gk-svg[data-aktiv="schielen"] .gk-schielbild { opacity: 1; }
[data-partie="schielen"].is-active .gk-zone { fill-opacity: 0; stroke: var(--gk-akzent); stroke-width: 1.8; }

/* Ganzes Gesicht: Hilfslinien und Mehrfach-Hervorhebung */
.gk-ov { opacity: 0; pointer-events: none; transition: opacity .2s; }
.gk-ov path { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 7 6; stroke-linecap: round; filter: drop-shadow(0 0 1.5px rgb(0 0 0 / .7)); }
.gk-ov-augenabstand path { stroke-dasharray: none; stroke-width: 1.8; }
.gk-svg[data-aktiv="symmetrie"] .gk-ov-symmetrie,
.gk-svg[data-aktiv="proportionen"] .gk-ov-proportionen,
.gk-svg[data-aktiv="augenabstand"] .gk-ov-augenabstand { opacity: 1; }
.gk-svg[data-aktiv="kontraste"] :is([data-partie="brauen"], [data-partie="augen"], [data-partie="lippen"]) .gk-zone { fill-opacity: .36; stroke-opacity: 1; }

/* Bühne der Karte */
.gk-buehne { position: relative; border: 1px solid #e2e8f0; border-radius: 16px; background: #dfe2e4; overflow: hidden; }
.gk-schild { position: absolute; left: 14px; top: 12px; z-index: 1; border-radius: 999px; background: #0f172a; color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; pointer-events: none; opacity: 0; transition: opacity .12s; }
.gk-schild.is-on { opacity: 1; }

.gk-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.gk-wahl a { border: 1px solid #cbd5e1; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 500; color: #334155; background: #fff; transition: background .12s, border-color .12s, color .12s; }
.gk-wahl a:hover, .gk-wahl a.is-hover { border-color: #fb7185; color: #be123c; }
.gk-wahl a.is-active { background: #e11d48; border-color: #e11d48; color: #fff; }

/* Belegstärke und Art eines Befunds */
.gk-marke { display: inline-block; white-space: nowrap; border-radius: 4px; padding: 1px 7px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.gk-art-gesund { background: #fee2e2; color: #991b1b; }
.gk-art-schoen { background: #fce7f3; color: #9d174d; }
.gk-art-alter { background: #fef3c7; color: #92400e; }
.gk-art-mythos { background: #e2e8f0; color: #334155; }
.gk-beleg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12.5px; color: #64748b; }
.gk-beleg i { display: inline-flex; gap: 2px; }
.gk-beleg i b { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.gk-beleg-hoch i b, .gk-beleg-mittel i b:nth-child(-n+2), .gk-beleg-gering i b:first-child { background: #0f766e; }

@media (prefers-reduced-motion: reduce) {
  .gk-zone, .gk-ov, .gk-schild, .gk-schielbild { transition: none; }
}

/* Beim überblendeten Auge steht die Iris woanders: dort keinen Ring zeigen. */
.gk-svg[data-aktiv="schielen"] [data-partie="schielen"] .gk-zone:last-child { stroke-opacity: 0; }
