:root {
  --bfw-font-scale: 1;
}

html {
  scroll-behavior: smooth;
}

body,
.site,
.entry-content,
.elementor,
.wp-block,
main {
  font-size: calc(16px * var(--bfw-font-scale));
  line-height: 1.6;
  transition: font-size 0.2s ease;
}

/* Floating Button */
#bfw-floating-button {
  position: fixed;
  width: 48px;
  height: 48px;
  background-color: #003366;
  color: #ffffff;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#bfw-floating-button:hover {
  background-color: #0059b3;
}

/* Positionen */
.bfw-position-middle-right {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.bfw-position-middle-left {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.bfw-position-top-left {
  top: 20px;
  left: 20px;
}

.bfw-position-top-right {
  top: 20px;
  right: 20px;
}

.bfw-position-bottom-left {
  bottom: 20px;
  left: 20px;
}

.bfw-position-bottom-right {
  bottom: 20px;
  right: 20px;
}

/* Menü */
#bfw-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100000;
}

#bfw-menu button {
  background: #003366;
  color: #fff;
  border: none;
  padding: 6px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
}

#bfw-menu button:hover {
  background: #0059b3;
}

/* Minimieren */
#bfw-floating-button.bfw-minimized {
  width: 36px;
  height: 36px;
  font-size: 18px;
  justify-content: center;
  align-items: center;
}

#bfw-floating-button.bfw-minimized::before {
  content: "↻";
}

#bfw-floating-button.bfw-minimized #bfw-menu {
  display: none !important;
}

/* Kontrastmodus */
.bfw-high-contrast body,
.bfw-high-contrast main,
.bfw-high-contrast .site,
.bfw-high-contrast .entry-content,
.bfw-high-contrast .elementor,
.bfw-high-contrast .wp-block {
  background: #000 !important;
  color: #fff !important;
}

.bfw-high-contrast a,
.bfw-high-contrast a * {
  color: #00ffff !important;
}

.bfw-high-contrast header,
.bfw-high-contrast footer,
.bfw-high-contrast .widget,
.bfw-high-contrast .wp-block,
.bfw-high-contrast .elementor-section {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

.bfw-high-contrast h1,
.bfw-high-contrast h2,
.bfw-high-contrast h3,
.bfw-high-contrast h4,
.bfw-high-contrast h5,
.bfw-high-contrast h6 {
  color: #ffffff !important;
}
