/* ===== Variables base ===== */
:root { --bg:#fff; --fg:#111; }
body { background:var(--bg); color:var(--fg); }

/* ===== Switch (interruptor) ===== */
.hc-switch {
  position: fixed;
  right: 3rem;
  top: 3.5rem;   /* <-- antes bottom: 1rem; */
  z-index: 9999;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.hc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hc-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #ccc;
  transition: background-color .3s;
  border-radius: 34px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05) inset;
  overflow: visible;
}

.hc-slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
  z-index: 1;
}

/* === Icono que se mueve con la bolita === */
.hc-slider i.fa-adjust {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #111;
  pointer-events: none;
  transition: transform .3s, color .3s;
  z-index: 2;
  transform: translateX(0);
}

/* Estado activado */
.hc-switch input:checked + .hc-slider { background: #2196F3; }
.hc-switch input:checked + .hc-slider:before { transform: translateX(22px); }
.hc-switch input:checked + .hc-slider i.fa-adjust {
  transform: translateX(22px);
  color: #fff;
}

/* ===== Modo Alto Contraste ===== */
html.hc body {
  --bg: #000;
  --fg: #fff;
  background: var(--bg) !important;
  color: var(--fg) !important;
}

html.hc h1,
html.hc .event-untertitel,
html.hc span,
html.hc .widgettitle,
html.hc a {
  color: #ffffff;
}

html.hc #footer a {
  color: #000000;
}

/* Alto contraste: color por defecto (no sticky activo) */
html.hc #menu-oben a .link {
  color: #fff !important;
}

/* (Opcional) hover/focus en sticky activo - SOLO en hover */
html.hc .site-header--sticky-active-style #menu-oben li > a:hover,
html.hc .site-header--sticky-active-style #menu-oben li > a:focus,
html.hc .site-header--sticky-active-padding #menu-oben li > a:hover,
html.hc .site-header--sticky-active-padding #menu-oben li > a:focus {
  background: #000 !important;
  color: #fff !important;
  border-radius: 4px; /* opcional */
}

html.hc hr,
html.hc .wp-block-separator {
  border-color: #fff !important;
  background: #fff !important;
}

html.hc button,
html.hc input,
html.hc select,
html.hc textarea {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

html.hc table { color: #fff !important; }
html.hc th, html.hc td { border-color: #fff !important; }

/* Imágenes y vídeos en blanco y negro */
html.hc img,
html.hc picture img,
html.hc video {
  filter: grayscale(100%) contrast(110%) !important;
}

/* Admin bar */
#wpadminbar { position: fixed; }

/* Switch en modo activo */
html.hc .hc-slider { background: #555 !important; }
html.hc .hc-switch input:checked + .hc-slider { background: #0f0 !important; }

/* Color del icono en alto contraste */
html.hc .hc-slider i.fa-adjust { color: #fff; }

.social-icons--instance-1 {
  --k-si-color: white;
}

html.hc .social-icons--with-icon-shape {
  --k-si-background: #000;
}

/* Solo iconos dentro de los eventos */
html.hc .event-info-item i {
  color: #fff !important;
}

html.hc p.vk-datum { color: #000000!important; }

/* HC: enlaces en el contenido subrayados */
html.hc .entry-content a,
html.hc .post-content a,
html.hc p a,
html.hc li a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
}

/* Evitar que el override de links animados afecte al menú */
html.hc header .link-style a,
html.hc header .link-style a .link {
  text-decoration: none !important;
  background: transparent !important;
}

/* Sticky ACTIVO: texto negro por defecto */
html.hc .site-header--sticky-active-style #menu-oben a .link,
html.hc .site-header--sticky-active-padding #menu-oben a .link {
  color: #000 !important;
}

/* Sticky ACTIVO + hover: fondo negro, texto blanco */
html.hc .site-header--sticky-active-style #menu-oben li > a:hover .link,
html.hc .site-header--sticky-active-padding #menu-oben li > a:hover .link {
  background: #000 !important;
  color: #fff !important;
  border-radius: 2px;
}

/* HC: títulos de portfolio en negro */
html.hc .portfolio-item__details > h3.portfolio-item__title.link-plain > a {
  color: #000 !important;
	text-decoration:none;
}
