/* ==========================================================================
   Sincomp PC-Konfigurator – Zusatz-Gestaltung
   (Lupe / Großansicht der Bilder, Netzteil-Warnung)
   Wird in konfigurator.php eingebunden. Als eigene Datei, weil die
   Sicherheitseinstellung der Website (Content-Security-Policy) keine
   per JavaScript eingefügten Gestaltungsregeln erlaubt.
   ========================================================================== */

/* ---------- Bild als Knopf mit Lupe ---------- */
.kzoom-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.kzoom-btn:disabled { cursor: default; }
.kzoom-lupe {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 14px;
  line-height: 1;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.kzoom-btn:disabled .kzoom-lupe { display: none; }

/* ---------- Großansicht (Lightbox) ---------- */
.kzoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .75);
  padding: 16px;
  cursor: zoom-out;
}
.kzoom[hidden] { display: none; }
.kzoom-box {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  max-width: min(900px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
.kzoom-box img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.kzoom-text { margin-top: 10px; text-align: center; font-weight: 600; }
.kzoom-zu {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Warnung: Netzteil zu schwach ----------
   !important, damit das Website-Design die rote Farbe nicht überschreibt */
#sum-warn,
.kwarn {
  display: block;
  background: #fdecea !important;
  color: #c62828 !important;
  border: 1px solid #ef9a9a !important;
  border-left: 5px solid #c62828 !important;
  border-radius: 6px;
  padding: 10px 12px !important;
  margin: 10px 0 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  text-align: left;
}
#sum-warn[hidden],
.kwarn[hidden] { display: none !important; }
.kcard.is-warn {
  box-shadow: 0 0 0 2px #c62828 !important;
  border-radius: 10px;
}

/* ---------- Formular "Angebot anfordern" ---------- */
.kangebot {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  background: #f7f9fb;
  text-align: left;
}
.kangebot[hidden], .kangebot [hidden] { display: none !important; }
.kangebot h3 { margin: 0 0 6px; font-size: 18px; }
.kangebot-info { margin: 0 0 12px; font-size: 14px; color: #555; }
.kangebot .field { display: block; margin: 0 0 10px; font-weight: 600; font-size: 14px; }
.kangebot .field small { font-weight: 400; color: #777; }
.kangebot .field input,
.kangebot .field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid #c9d1da;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  background: #fff;
}
.kangebot .field textarea { resize: vertical; min-height: 70px; }
.kangebot .check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; font-size: 13px; line-height: 1.4; }
.kangebot .check input { margin-top: 3px; flex: none; }
.kangebot button[type="submit"] { width: 100%; }
.kangebot button[disabled] { opacity: .6; cursor: wait; }
/* verstecktes Spam-Feld – darf nie sichtbar sein */
.kangebot .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kangebot .notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; line-height: 1.45; }
.kangebot .notice-ok  { background: #e8f5e9; color: #1b5e20; border-left: 5px solid #2e7d32; }
.kangebot .notice-err { background: #fdecea; color: #c62828; border-left: 5px solid #c62828; }
#btn-angebot[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Service-Posten mit Aktion ---------- */
.konfig-summary p.sum-aktion,
.sum-aktion {
  display: block;
  margin: 0 0 10px !important;
  padding: 9px 12px !important;
  border-radius: 6px;
  background: #fff4e5 !important;
  border: 0 !important;
  border-left: 5px solid #ef6c00 !important;
  color: #8a3c00 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.sum-aktion[hidden] { display: none !important; }
.sum-service.is-aktion .sum-price strong { color: #2e7d32 !important; }
.sum-statt { color: #888; font-weight: 400; margin-right: 2px; }

/* ---------- Drucken ---------- */
@media print {
  .kzoom, .kzoom-lupe, .kangebot { display: none !important; }
  #sum-warn, .sum-aktion { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
