/* =========================================================
   Global Protection (Deterrent) - CrazyWebAlex
   ========================================================= */

/* ---------- Blur Shield ---------- */
#privacy-shield {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.10);
}

#privacy-shield.active {
  display: block;
}

#privacy-shield::before {
  content: "CrazyWebAlex - Geschützter Inhalt – 👉 mit einem Klick zurück zur Ansicht. 👍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 600 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
}

/* ---------- Wasserzeichen ---------- */
#watermark-layer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: none;
  opacity: 0.02;
}

#watermark-layer.active {
  display: block;
}

#watermark-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -25deg,
    transparent 0 90px,
    rgba(255,255,255,0.2) 90px 130px
  );
}

#watermark-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 20px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  transform: rotate(-18deg);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  text-align: center;
  padding: 20px;
}

/* ---------- GLOBAL no-copy für ganze Seite ---------- */
html.no-copy-all,
html.no-copy-all body,
html.no-copy-all body * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Inputs/Textareas bleiben benutzbar */
html.no-copy-all input,
html.no-copy-all textarea,
html.no-copy-all [contenteditable="true"] {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* ---------- GLOBAL Bildschutz ---------- */
/* Bild selbst nicht direkt anklickbar/dragbar */
html.no-copy-all img {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
  pointer-events: none !important;
}

/* Wenn Bild in einem Link steckt, bleibt der Link klickbar */
html.no-copy-all a {
  pointer-events: auto;
}

/* ---------- Optional Druckschutz ---------- */
@media print {
  body * {
    visibility: hidden !important;
  }

  #privacy-shield {
    display: block !important;
  }
}