/* =========================================================
   Grundvariablen
========================================================= */
:root {
  --base-font-size: 100%;
}

/* =========================================================
   Skalierung
========================================================= */
body {
  font-size: var(--base-font-size) !important;
}

.entry-content,
.wp-site-blocks,
.wp-block-post-content,
main,
article,
p,
li,
blockquote,
td,
th {
  font-size: inherit !important;
}

/* =========================================================
   Flyout-Steuerung
========================================================= */

.flyout-trigger {
  cursor: pointer;
  border-bottom: 1px dotted #888;
}

.flyout-trigger.disabled {
  border-bottom: none;
  cursor: default;
  pointer-events: none;
}

.flyout-off .flyout-trigger {
  pointer-events: none;
  border-bottom: none;
}

/* =========================================================
   Floating UI
========================================================= */

#uds-ui,
#uds-ui * {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

#uds-ui {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 99999;
}

#uds-toggle {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: #333;
  color: #fff;
  cursor: pointer;
}

#uds-menu {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#uds-menu button {
  display: block;
  width: 100%;
  margin-bottom: 0.3rem;
}

/* =========================================================
   Scroll-to-Top Button
========================================================= */

#uds-scroll-top {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #333;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99999;
}

#uds-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}