/* ============================================================
   BASE
   ============================================================ */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #e3f2ff, #f8faff);
  font-family: "Arial", "Helvetica", sans-serif;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

body.page-loaded {
  opacity: 1;
}
body.exit-left {
  transform: translateX(-40px);
  opacity: 0;
}
body.exit-right {
  transform: translateX(40px);
  opacity: 0;
}

h1 {
  text-align: center;
  padding: 17px 0;
  margin: 0 0 33px 0;
  letter-spacing: 1.1px;
}

sub {
  font-size: 0.7em;
  vertical-align: sub;
}

u {
  font-size: larger;
  text-decoration: underline;
}

/* ============================================================
   FORM / UMECHNER
   ============================================================ */
form {
  position: relative;
  overflow: visible;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  max-width: 715px;
  margin: auto;
  padding: 28px;
  border-radius: 20px;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.05),
    0 12px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.umrechner {
  display: grid;
  grid-template-columns: 145px 220px 50px 220px;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.umrechner input {
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 5px;
  text-align: center;
  font-size: 20px;
}

.umrechner input:focus {
  outline: none;
  border-bottom: 1px solid #0077cc;
}

.umrechner input::-webkit-inner-spin-button {
  appearance: none;
}

.eingabefeld {
  cursor: text;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 13px;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.eingabefeld:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

.title {
  font-size: 1.34rem;
}

.einheit-label {
  opacity: 0.6;
  font-size: 0.99rem;
  margin-bottom: -4px;
  text-align: right;
}

.gray-input {
  background: rgba(200, 200, 200, 0.4);
}
.op {
  opacity: 0;
}

/* Sonderfall letzte Zeile (Non-HDL/…/Quotienten) */
.umrechner.last-input-centered {
  margin-bottom: 0;
  grid-template-columns: 145px 1fr;
}
.umrechner.last-input-centered .eingabefeld {
  grid-column: 2;
  justify-self: center;
  max-width: 220px;
  width: 100%;
}
.umrechner.last-input-centered2 .eingabefeld {
  grid-column: 2;
  justify-self: left;
  max-width: 220px;
  width: 100%;
}

/* Gleichheitszeichen mit Tooltip */
.gleichheitszeichen {
  font-size: 1.54rem;
  padding-left: 20px;
  text-align: center;
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-bottom: none;
}
.gleichheitszeichen .tooltip-box {
  font-size: 0.99rem;
  visibility: hidden;
  opacity: 0;
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 5px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-40%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
  z-index: 10;
}
.gleichheitszeichen .tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(5px);
  border-width: 5px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}
.gleichheitszeichen:hover .tooltip-box,
.gleichheitszeichen:focus-within .tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: relative;
  background: linear-gradient(90deg, #005fa3, #0095ff);
  padding: 17px 0;
  margin-bottom: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.header h1 {
  margin: 0;
  text-align: center;
  font-size: 57px;
  color: white;
  letter-spacing: 1.1px;
}

/* ============================================================
   BUTTONS – Basis
   ============================================================ */
.BTN {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.BTN:hover {
  background: rgb(209, 207, 207);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
  scale: 1.15;
}

.BTN:active {
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Position bleibt fix – nur scale kommt aus .BTN:hover */
#site2Btn:hover,
#resetBtn:hover {
  top: 50%;
}

/* ============================================================
   BUTTONS – Positionen (Desktop)
   ============================================================ */
#site2Btn {
  position: absolute;
  top: 50%;
  left: 20px;
  translate: 0 -50%; /* vorher: transform: translateY(-50%) */
}

#resetBtn {
  position: absolute;
  top: 50%;
  right: 20px;
  translate: 0 -50%; /* vorher: transform: translateY(-50%) */
}

#CopyBtn {
  position: absolute;
  bottom: -50px;
  right: -30px;
  translate: 0 -50%; /* vorher: transform: translateY(-50%) */
}

#Next_BTN {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 999;
}

#Back_BTN {
  position: fixed;
  bottom: 15px;
  left: 15px;
  transform: scaleX(-1);
  z-index: 999;
}

#Save_BTN {
  position: fixed;
  bottom: 15px;
  right: 90px;
  z-index: 999;
}

/* Position bleibt fix – nur scale kommt aus .BTN:hover */
#Next_BTN:hover,
#Back_BTN:hover,
#Save_BTN:hover {
  bottom: 15px;
}

#CopyBtn:hover {
  bottom: -50px;
}

/* ============================================================
   USER-BADGE + LOGOUT  (Badge links, Logout rechts)
   ============================================================ */
.header-right {
  position: absolute;
  top: 50%;
  right: 90px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

/* Logout-Button erbt Position vom Container */
.header-right #logoutBtn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}
.header-right #logoutBtn:hover {
  top: auto !important;
  right: auto !important;
  transform: none !important;
  background: rgb(209, 207, 207);
  scale: 1.15;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  max-width: 220px;
  white-space: nowrap;
}

.user-badge svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  flex-shrink: 0;
}

.user-badge .material-symbols-outlined {
  font-size: 18px;
}

#usernameLabel {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   TOGGLE ITEMS (ausblendbar)
   ============================================================ */
.toggle-item {
  display: none;
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown-container {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  gap: 13px;
  position: relative;
  overflow: visible;
  z-index: 9999;
}
.dropdown-container .title {
  font-size: 1.34rem;
}
.dropdown-container label {
  opacity: 0.6;
  font-size: 0.99rem;
  margin-bottom: 3px;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 220px;
  justify-self: center;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 13px;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
  z-index: 9999;
  overflow: visible;
}
.custom-dropdown:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

.dropdown-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-size: 1rem;
  color: #222;
  cursor: pointer;
}
.dropdown-button:hover {
  border-bottom-color: #0077cc;
}
.dropdown-button span {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  padding: 6px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 9999;
}
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.arrow {
  transition: transform 0.2s ease;
}
.arrow.rotate {
  transform: rotate(180deg);
}

.dropdown-option {
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 1rem;
  color: #222;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.dropdown-option:hover {
  background: rgba(0, 119, 204, 0.1);
  transform: translateX(3px);
}

/* ============================================================
   WARNUNG
   ============================================================ */
.Triglyceride-warning {
  margin-top: 20px;
  text-align: left;
  font-size: 0.99rem;
  font-weight: bold;
  color: white;
  background: rgb(75, 73, 73);
  padding: 12px 20px;
  border-radius: 14px;
}

/* ============================================================
   CHECKBOX (modern)
   ============================================================ */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
}
.checkbox-container input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #bfc8d4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}
.checkbox-container input[type="checkbox"]:hover {
  border-color: #0077cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 119, 204, 0.15);
}
.checkbox-container input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #0077cc, #00a2ff);
  border-color: #0077cc;
}
.checkbox-container input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 16px;
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
}
.checkbox-container span {
  flex: 1;
  display: flex;
}

/* ============================================================
   MATERIAL SYMBOLS (nur wenn verwendet)
   ============================================================ */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 26px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  user-select: none;
  pointer-events: none;
}

/* Icon-Farben je Button */
#site2Btn,
#Next_BTN,
#Back_BTN {
  color: #ffffff;
}
#resetBtn,
#logoutBtn,
#Save_BTN,
#CopyBtn {
  color: #000000;
}

.umschalter {
  position: absolute;
  top: 50%;
  left: 5%;             /* ← ganz links */
  right: auto;             /* ← wichtig, sonst überschreibt right den Wert */
  transform: translateY(-50%);
  width: 3.2em;
  height: 1.8em;
  z-index: 5;
}
.umschalter input {
  appearance: none;
  width: 100%;
  height: 100%;
  border: 1px solid #bbbbbb;
  margin: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.umschalter-knopf {
  background-color: #bbbbbb;
  width: 1.4em;
  height: 1.4em;
  box-shadow: 0 0 1px #333333;
  position: absolute;
  top: 0.2em;
  left: 0.2em;
  pointer-events: none;
  transition: transform 0.5s ease-in-out;
  border-radius: 50%;
}

.umschalter input:checked {
  background-color: hsl(216, 98%, 52%);
  border-color: hsl(216, 98%, 42%);
}

.umschalter input:checked + .umschalter-knopf {
  transform: translateX(1.4em);
  background-color: white;
}

/* ============================================================
   TABLET  (<= 900px)
   ============================================================ */
@media (max-width: 900px) {
  form {
    margin: 20px;
  }

  .umrechner,
  .dropdown-container {
    grid-template-columns: 130px 1fr;
  }

  .header h1 {
    font-size: 42px;
  }
}

/* ============================================================
   TOUCH-GERÄTE (kein Hover) – Hover-Effekte abschalten
   (gilt auch für Tablets > 650px)
   ============================================================ */
@media (hover: none), (pointer: coarse) {
  .eingabefeld:hover,
  .custom-dropdown:hover {
    transform: none;
    box-shadow: none;
  }

  .BTN:hover,
  #site2Btn:hover,
  #resetBtn:hover,
  #Next_BTN:hover,
  #Back_BTN:hover,
  #Save_BTN:hover,
  #CopyBtn:hover,
  #logoutBtn:hover,
  .header-right #logoutBtn:hover {
    scale: 1;
    background: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }

  #site2Btn:hover,
  #resetBtn:hover {
    top: 50%;
  }
  #Next_BTN:hover,
  #Back_BTN:hover,
  #Save_BTN:hover {
    bottom: 15px;
  }
  #CopyBtn:hover {
    bottom: -50px;
  }
}

/* ============================================================
   HANDY  (<= 650px)
   WICHTIG: muss GANZ AM ENDE der Datei stehen
   ============================================================ */
@media (max-width: 650px) {
  /* ---------- Grundlayout ---------- */
  body {
    padding-bottom: 160px; /* Platz für fixe Buttons */
    /* nur Fade, kein transform (sonst springen fixed-Buttons nach unten) */
    transition: opacity 0.4s ease !important;
  }
  body.exit-left,
  body.exit-right {
    transform: none !important;
  }

  input {
    font-size: 16px;
    min-height: 44px;
  }

  form {
    padding: 20px 14px;
    border-radius: 18px;
    margin: 12px;
  }

  /* ---------- Header ---------- */
  .header {
    padding: 10px 0;
    margin-bottom: 18px;
    min-height: 60px;
  }
  .header h1 {
    font-size: 26px;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
  }

  /* ---------- Buttons: keine Animation, kein Hover-Effekt ---------- */
  .BTN,
  .BTN:hover,
  .BTN:active,
  .BTN:focus {
    transition: none !important;
    scale: 1 !important;
    background: white !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* ---------- Header-Buttons (fixe Position, auch bei Hover/Active) ---------- */
  #site2Btn,
  #site2Btn:hover,
  #site2Btn:active,
  #site2Btn:focus {
    position: absolute !important;
    top: 50% !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    translate: 0 -50% !important;
    transform: none !important;
    width: 38px;
    height: 38px;
  }

  #resetBtn,
  #resetBtn:hover,
  #resetBtn:active,
  #resetBtn:focus {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    translate: 0 -50% !important;
    transform: none !important;
    width: 38px;
    height: 38px;
  }

  #resetBtn svg,
  #site2Btn svg {
    width: 20px;
    height: 20px;
  }

  /* ---------- Logout nur als Icon links vom Reset ---------- */
  .header-right {
    right: 54px; /* 10 (reset) + 38 (reset) + 6 (gap) */
    gap: 0;
    z-index: 3;
  }
  .header-right #logoutBtn {
    width: 38px;
    height: 38px;
  }
  .header-right #logoutBtn svg {
    width: 20px;
    height: 20px;
  }

  /* Benutzername-Badge auf dem Handy ausblenden */
  .user-badge {
    display: none !important;
  }

  /* ---------- Umschalter (Toggle) ---------- */
  .umschalter {
    top: 50%;
    transform: translateY(-50%);
    width: 2.8em;
    height: 1.5em;
  }
  .umschalter-knopf {
    width: 1.1em;
    height: 1.1em;
    top: 0.18em;
    left: 0.18em;
  }
  .umschalter input:checked + .umschalter-knopf {
    transform: translateX(1.2em);
  }

  /* ---------- Umrechner / Eingaben ---------- */
  .umrechner {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 34px;
  }
  .umrechner label {
    text-align: center;
  }

  /* Einzelne Felder: volle Breite wie die Doppelfelder */
  .umrechner.last-input-centered {
    grid-template-columns: 1fr !important;
  }
  .umrechner.last-input-centered .eingabefeld {
    grid-column: auto !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }
  /* leere Platzhalter ausblenden (keine Extra-Lücken) */
  .umrechner.last-input-centered > div:empty,
  .umrechner.last-input-centered > .gleichheitszeichen {
    display: none !important;
  }

  .gleichheitszeichen {
    display: none;
  }

  .eingabefeld {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 16px;
  }
  .eingabefeld:hover,
  .custom-dropdown:hover {
    transform: none;
    box-shadow: none;
  }
  .eingabefeld input {
    font-size: 20px;
    padding: 10px 0;
    min-height: 48px;
  }

  .einheit-label {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  /* ---------- Untere Buttons: fest am Bildschirmrand ---------- */
  #Next_BTN,
  #Next_BTN:hover,
  #Next_BTN:active,
  #Next_BTN:focus {
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 1000;
  }

  #Back_BTN,
  #Back_BTN:hover,
  #Back_BTN:active,
  #Back_BTN:focus {
    position: fixed !important;
    bottom: 16px !important;
    left: 16px !important;
    right: auto !important;
    top: auto !important;
    transform: scaleX(-1) !important; /* Pfeil bleibt gespiegelt */
    z-index: 1000;
  }

  #Save_BTN,
  #Save_BTN:hover,
  #Save_BTN:active,
  #Save_BTN:focus {
    position: fixed !important;
    bottom: 16px !important;
    right: 84px !important; /* 16 (Next) + 60 (Next) + 8 (Lücke) */
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 999;
  }

  #CopyBtn,
  #CopyBtn:hover,
  #CopyBtn:active,
  #CopyBtn:focus {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 16px !important;
    bottom: 90px !important;
    translate: 0 !important; /* NEU – hebt das translate aus der Basis auf */
    transform: none !important;
    width: 52px;
    height: 52px;
    z-index: 999;
  }

  /* ---------- Dropdowns auf Handy ---------- */
  .dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .dropdown-container .title {
    text-align: center;
    font-size: 1.4rem;
  }
  .custom-dropdown {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 16px;
    box-sizing: border-box;
  }
  .dropdown-button {
    width: 100%;
    min-height: 52px;
    font-size: 20px;
    padding: 0;
  }
  .dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: 250px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 99999;
  }
  .dropdown-option {
    padding: 16px;
    font-size: 18px;
  }
  .dropdown-option:active {
    background: rgba(0, 119, 204, 0.15);
  }

  /* ---------- Checkboxen ---------- */
  input[type="checkbox"] {
    min-height: 22px;
  }
}

/* ============================================================
   MOBIL-FIX 4 – ganz am Ende, nur <= 650px
   ============================================================ */
@media (max-width: 650px) {
  /* Kein horizontales Überstehen (verschiebt fixed-Buttons auf Android) */
  html {
    overflow-x: hidden;
  }
  html body form,
  html body .eingabefeld {
    box-sizing: border-box;
  }

  /* Alle Zeilen: genau eine Spalte, gleicher Abstand */
  html body form .umrechner,
  html body form .umrechner.last-input-centered,
  html body form .umrechner.last-input-centered2 {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    margin-bottom: 34px !important;
  }
  html body form .umrechner:last-child {
    margin-bottom: 0 !important;
  }

  /* Alles in der Zeile über die volle Breite */
  html body form .umrechner > * {
    grid-column: 1 / -1 !important;
    min-width: 0;
  }
  html body form .umrechner > .eingabefeld {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    margin: 0 !important;
  }

  /* Leere Platzhalter in den Einzelfeld-Zeilen ausblenden */
  html body form .umrechner[class*="last-input"] > div:not(.eingabefeld),
  html body form .umrechner[class*="last-input"] > .gleichheitszeichen {
    display: none !important;
  }
}

/* ============================================================
   KLICK-FEEDBACK für Buttons – ganz am Ende der Datei
   Nur scale/Farbe/Schatten, nie die Position
   ============================================================ */
html body .BTN,
html body .BTN:focus,
html body .BTN:focus-visible {
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html body .BTN svg {
  transition: transform 0.12s ease;
}

/* ---------- PC / Maus ---------- */
@media (hover: hover) and (pointer: fine) {
  html body .BTN {
    transition:
      scale 0.12s ease,
      background 0.12s ease,
      box-shadow 0.12s ease;
  }
  html body .BTN:active,
  html body .BTN.is-pressed {
    scale: 1.15 !important; /* vorher: 135% */
    background: #c4c4c4 !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25) !important;
  }
  html body .BTN:active svg,
  html body .BTN.is-pressed svg {
    transform: scale(0.92);
  }
}

/* ---------- Handy / Touch ---------- */
@media (hover: none), (pointer: coarse), (max-width: 650px) {
  html body .BTN {
    transition:
      scale 0.12s ease,
      background 0.12s ease,
      box-shadow 0.12s ease !important;
  }
  html body .BTN:active,
  html body .BTN.is-pressed {
    scale: 1.15 !important; /* vorher: 0.9 (Verkleinern) */
    background: #e4e4e4 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  }
  html body .BTN:active svg,
  html body .BTN.is-pressed svg {
    transform: scale(0.92);
  }
}

#site2Btn:hover,
#resetBtn:hover {
  top: 50%;
}
#Next_BTN:hover,
#Back_BTN:hover,
#Save_BTN:hover {
  bottom: 15px;
}
#CopyBtn:hover {
  bottom: -50px;
}
