/* Shared dimensions and interaction states for primary website actions. */
:root {
  --svp-button-height: 56px;
  --svp-button-min-width: 190px;
  --svp-button-padding-x: 30px;
}

.btn,
.wp-element-button,
.wp-block-button__link,
:where(.entry-content, .post-content, .page-content, .content-card, .sparte-wp-content, .sparte-gallery-content, .sparte-editor-content, .miniem-wp-content, .miniwm-wp-content, .download-wp-content, .kontakt-extra-content) .wp-block-file__button {
  display: inline-flex;
  min-width: var(--svp-button-min-width);
  min-height: var(--svp-button-height);
  align-items: center;
  justify-content: center;
  padding: 14px var(--svp-button-padding-x);
  border-width: 1px;
  border-style: solid;
  border-radius: 3px;
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.btn {
  border-color: transparent;
}

.btn-o {
  border-color: var(--g2);
}

.btn:focus-visible,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
:where(.entry-content, .post-content, .page-content, .content-card, .sparte-wp-content, .sparte-gallery-content, .sparte-editor-content, .miniem-wp-content, .miniwm-wp-content, .download-wp-content, .kontakt-extra-content) .wp-block-file__button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Navigation and utility controls intentionally stay compact. */
.btn.nav-header-cta {
  min-width: 0;
  min-height: 42px;
  padding: 11px 24px;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 34px);
  bottom: clamp(16px, 2.5vw, 30px);
  z-index: 980;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 3px;
  background: rgba(17, 17, 17, .94);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, background-color .2s, border-color .2s;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(255, 255, 255, .4);
  background: #222;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.back-to-top__icon {
  font-size: 18px;
  line-height: .8;
}

@media (max-width: 700px) {
  :root {
    --svp-button-height: 52px;
    --svp-button-padding-x: 24px;
  }

  .site-content :is(.btn, .wp-element-button, .wp-block-button__link) {
    width: 100%;
    min-width: 0;
  }

  .back-to-top {
    width: 44px;
    min-width: 44px;
    padding: 10px;
  }

  .back-to-top__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .btn.nav-header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .wp-element-button,
  .wp-block-button__link,
  .back-to-top {
    transition-duration: .01ms;
  }
}
