/* Template buttons in the NWS look (all pages) – same as the new components (.nws-btn): brand gradient,
   8 px radius, DM Sans, soft glow, calm hover without movement (no transform → no shimmer in Safari).
   CSS only; markup and logic (e.g. the contact form's submit) unchanged. */

/* Primary: btn-main (links, the contact form's submit input) */
a.btn-main,
a.btn-main:active,
a.btn-main:focus,
a.btn-main:visited,
a.btn-main:hover,
.btn-main,
input.btn-main,
input[type=button].btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 24px;
  border: 0;
  border-radius: var(--nws-radius-btn);
  background: var(--nws-grad-button);
  box-shadow: 0 8px 22px rgba(74, 129, 211, 0.28);
  color: #fff;
  font-family: var(--nws-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-decoration: none;
  transition: box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
a.btn-main:hover,
.btn-main:hover,
input.btn-main:hover {
  box-shadow: 0 12px 30px rgba(74, 129, 211, 0.45);
  color: #fff;
}
a.btn-main:focus-visible,
.btn-main:focus-visible,
input.btn-main:focus-visible {
  outline: 3px solid var(--nws-c-focus);
  outline-offset: 3px;
}
/* w-100 buttons keep their full width */
a.btn-main.w-100,
.btn-main.w-100 {
  display: flex;
  width: 100%;
}
/* very narrow phones: full-width buttons wrap instead of cutting their text off (template: nowrap + overflow hidden –
   e.g. "Kostenlose Beratung anfragen" in the price box was cut at 320 px) */
@media (max-width: 400px) {
  a.btn-main.w-100,
  a.btn-main.w-100:visited,
  .btn-main.w-100 {
    white-space: normal;
    text-align: center;
  }
}

/* The template's "slide" hover (text slides out, a copy slides in) – the NWS buttons stay calm. */
a.btn-main.fx-slide span,
a.btn-main.fx-slide:hover span {
  display: inline;
  transform: none;
  opacity: 1;
  transition: none;
}
a.btn-main.fx-slide::before,
a.btn-main.fx-slide:hover::before {
  content: none;
  display: none;
}

/* Outline variant (e.g. "Kontaktieren Sie uns!" in the blue bands) */
a.btn-main.btn-line,
a.btn-main.btn-line:active,
a.btn-main.btn-line:focus,
a.btn-main.btn-line:visited,
.btn-main.btn-line {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  box-shadow: none;
  color: #fff;
}
a.btn-main.btn-line:hover,
.btn-main.btn-line:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #fff;
}
/* Outline buttons outside dark/coloured areas: brand outline */
#content :not(.text-light):not(.section-dark) > a.btn-main.btn-line:not(.text-light a) {
  border-color: rgba(var(--nws-c-primary-rgb), 0.55);
  color: var(--nws-c-brand);
}

/* Buttons on dark cards ("Mehr..." in "Wie wir helfen"): quiet glass button */
a.btn-main.bg-dark,
a.btn-main.bg-dark:visited,
a.btn-main.bg-dark:focus {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
  color: #fff;
}
a.btn-main.bg-dark:hover {
  border-color: transparent;
  background: var(--nws-grad-button) !important;
  box-shadow: 0 10px 26px rgba(74, 129, 211, 0.35);
  color: #fff;
}

/* Service pages: outline buttons ("Admin-Panel ansehen", "Speisekarte ansehen" …) */
.svc-btn-outline,
a.svc-btn-outline,
button.svc-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid rgba(var(--nws-c-primary-rgb), 0.55);
  border-radius: var(--nws-radius-btn);
  background: transparent;
  color: var(--nws-c-brand);
  font-family: var(--nws-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.svc-btn-outline:hover,
a.svc-btn-outline:hover,
button.svc-btn-outline:hover {
  border-color: transparent;
  background: var(--nws-grad-button);
  box-shadow: 0 10px 26px rgba(74, 129, 211, 0.32);
  color: #fff;
}
[data-theme='dark'] .svc-btn-outline,
[data-theme='dark'] a.svc-btn-outline {
  border-color: rgba(141, 176, 238, 0.6);
  color: #8db0ee;
}
[data-theme='dark'] .svc-btn-outline:hover,
[data-theme='dark'] a.svc-btn-outline:hover {
  color: #fff;
}
