/* =========================================================
   RESET / BASIS
   ========================================================= */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  width: 100%;
  height: 100%;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  background: #000; /* Fallback */
}

#tinnitus-frequency-test-root {
  position: fixed;              /* WICHTIG */
  inset: 0;                     /* top/right/bottom/left = 0 */
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* =========================================================
   MAIN BOX
   ========================================================= */

.tft-box {
  position: relative;  
  width: min(440px, 92vw);
  border-radius: 16px;
  padding: 18px 16px 16px;
  color: #e9eef2;
  background: linear-gradient(
    180deg,
    rgba(30, 30, 30, 0.92),
    rgba(12, 12, 12, 0.92)
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tft-box button {
  font-family: inherit;
}

/* =========================================================
   TITLE (EXPLIZIT HELL – THEME-SICHER)
   ========================================================= */

.tft-box h2 {
  margin: 6px 0 10px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0.3px;
  color: #f4f8fc;              /* dauerhaft hell */
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   WARNING
   ========================================================= */

.warning {
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #f0f5fa;
  font-size: 11px;
  line-height: 1.30;
  opacity: 0.9;
}

/* =========================================================
   FREQUENCY DISPLAY
   ========================================================= */

.freq-display {
  text-align: center;
  margin: 10px 0 10px;
  font-size: 22px;
}

/* =========================================================
   SLIDERS
   ========================================================= */

#freqSlider,
#volumeSlider,
#qSlider {
  width: 100%;
  accent-color: #00e5ff;
  margin: 8px 0 12px;
}

/* =========================================================
   LABELS
   ========================================================= */

.tft-label {
  display: block;
  font-size: 13px;
  opacity: 0.9;
  margin: 8px 0 6px;
}

/* =========================================================
   BUTTON GROUPS
   ========================================================= */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 10px;
}

.buttons button {
  border: none;
  padding: 8px 13px;
  border-radius: 8px;
  background: #00e5ff;
  color: #041016;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

.buttons button:hover {
  filter: brightness(1.06);
}

/* Active state (Sinus / Rauschen / L/R) */
.buttons button.active {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18) inset;
}

/* =========================================================
   START BUTTON
   ========================================================= */

#toggleBtn {
  margin-top: 10px;
  width: 100%;
  background: #00e5ff;
  color: #041016;
  font-weight: 800;
  border-radius: 8px;
  padding: 10px 12px;
  border: none;
  cursor: pointer;
}

#toggleBtn:hover {
  filter: brightness(1.05);
}

/* =========================================================
   ANALYSER
   ========================================================= */

#analyserCanvas {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
  margin-top: 12px;
}

/* =========================================================
   MENU
   ========================================================= */

.tft-menu {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10000;
}

.tft-menu-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #f2f6fa;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
}

.tft-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 38px;
  min-width: 170px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  z-index: 10000;
}

.tft-menu-panel.is-open {
  display: block;
}

.tft-menu-panel a {
  display: block;
  padding: 6px;
  border-radius: 8px;
  color: #00e5ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.tft-menu-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tft-menu-version {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  margin-bottom: 8px;
}

/* =========================================================
   MOBILE TWEAKS
   ========================================================= */

@media (max-width: 420px) {
  .tft-box h2 {
    font-size: 24px;
  }

  #analyserCanvas {
    height: 140px;
  }
}
@media (max-width: 420px) {
  .tft-menu {
    top: 10px;
    right: 10px;
  }
}
/* =========================================================
   FORCE FULLSCREEN (WordPress-Wrapper neutralisieren)
   ========================================================= */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
}

.wp-site-blocks,
.wp-block-post-content,
.wp-block-group,
.wp-block-cover,
.wp-site-blocks > * {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: transparent !important;
}