/* Zentrale Button-Stile für alle produktiven Bereiche. Demo-Seiten laden diese Datei nicht. */
button {
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-body, inherit);
}

button:focus-visible {
  outline: 3px solid rgb(var(--blue-rgb, 18 103 248) / .35);
  outline-offset: 2px;
}

.btn {
  --btn-bg: #fff;
  --btn-bg-hover: #f3f7ff;
  --btn-bg-active: #e7efff;
  --btn-color: #0847c7;
  --btn-color-hover: #073ea8;
  --btn-color-active: #06358f;
  --btn-border: #9bbcf4;
  --btn-border-hover: #0847c7;
  --btn-border-active: #073ea8;
  --btn-shadow: 0 8px 20px rgba(25, 43, 84, .08);
  --btn-shadow-hover: 0 10px 24px rgba(8, 71, 199, .12);
  --btn-shadow-active: 0 6px 15px rgba(8, 71, 199, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-color);
  box-shadow: var(--btn-shadow);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:visited { color: var(--btn-color); }
.btn:not(:disabled):not([aria-disabled="true"]):hover,
.btn:not(:disabled):not([aria-disabled="true"]):focus-visible {
  border-color: var(--btn-border-hover);
  background: var(--btn-bg-hover);
  color: var(--btn-color-hover);
  box-shadow: var(--btn-shadow-hover);
  text-decoration: none;
  transform: translateY(-1px);
  filter: none;
}
.btn:not(:disabled):not([aria-disabled="true"]):active {
  border-color: var(--btn-border-active);
  background: var(--btn-bg-active);
  color: var(--btn-color-active);
  box-shadow: var(--btn-shadow-active);
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn--primary,
.btn-primary {
  --btn-bg: linear-gradient(135deg, #0847c7, #5b21b6);
  --btn-bg-hover: linear-gradient(135deg, #073da9, #4c1d95);
  --btn-bg-active: linear-gradient(135deg, #06358f, #40177e);
  --btn-color: #fff;
  --btn-color-hover: #fff;
  --btn-color-active: #fff;
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-border-active: transparent;
  --btn-shadow: 0 10px 24px rgba(8, 71, 199, .22);
  --btn-shadow-hover: 0 14px 30px rgba(8, 71, 199, .28);
  --btn-shadow-active: 0 7px 18px rgba(8, 71, 199, .2);
}

.btn--function {
  --btn-bg: #eef2f7;
  --btn-bg-hover: #e2e8f0;
  --btn-bg-active: #d8e0ea;
  --btn-color: #0b1733;
  --btn-color-hover: #0b1733;
  --btn-color-active: #0b1733;
  --btn-border: #aeb9c8;
  --btn-border-hover: #64748b;
  --btn-border-active: #526174;
  --btn-shadow: none;
  --btn-shadow-hover: 0 6px 16px rgba(15, 23, 42, .1);
  --btn-shadow-active: 0 4px 12px rgba(15, 23, 42, .08);
}

.btn--danger,
.btn-danger {
  --btn-bg: #991b1b;
  --btn-bg-hover: #7f1d1d;
  --btn-bg-active: #681818;
  --btn-color: #fff;
  --btn-color-hover: #fff;
  --btn-color-active: #fff;
  --btn-border: #7f1d1d;
  --btn-border-hover: #681818;
  --btn-border-active: #561313;
  --btn-shadow: 0 10px 24px rgba(153, 27, 27, .2);
  --btn-shadow-hover: 0 13px 28px rgba(127, 29, 29, .26);
  --btn-shadow-active: 0 6px 16px rgba(104, 24, 24, .2);
}

.btn--small,
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .86rem; }
.btn--inline { margin-left: 8px; vertical-align: middle; }
.stack .btn { width: 100%; white-space: normal; line-height: 1.25; }
.subhead .btn { white-space: nowrap; }
.training-teaser .btn { margin-top: 4px; }
.location-strength__services .btn { width: 100%; margin-top: 16px; }
.calc-suggest .btn { margin: 0; }
.page-speedtest .speedtest-help .btn { margin: .25rem .35rem .25rem 0; }
.page-tools .tool-module .btn { max-width: 100%; white-space: normal; }
.webcalc-actions .btn { flex: 1 1 11rem; }
body.admin-hinweis-page--login .hp-login--hero .btn { width: 100%; }

.site-page .btn { padding: 11px 18px; font-weight: 800; }
.site-page .hero__cta .btn { min-height: 44px; padding-inline: 15px; }
.site-page .hero__cta .btn--ghost {
  --btn-bg: rgba(255, 255, 255, .07);
  --btn-bg-hover: rgba(255, 255, 255, .14);
  --btn-bg-active: rgba(255, 255, 255, .2);
  --btn-color: #fff;
  --btn-color-hover: #fff;
  --btn-color-active: #fff;
  --btn-border: rgba(255, 255, 255, .34);
  --btn-border-hover: rgba(255, 255, 255, .55);
  --btn-border-active: rgba(255, 255, 255, .65);
  --btn-shadow: none;
  --btn-shadow-hover: 0 10px 24px rgba(0, 0, 0, .12);
  --btn-shadow-active: 0 5px 14px rgba(0, 0, 0, .1);
}
.premium-hero__actions .btn {
  min-height: 64px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}
.premium-hero__actions .btn::after {
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgb(255 255 255 / .34) 48%,
    transparent 62%
  );
  transform: translateX(-90%);
  transition: transform .65s ease;
  pointer-events: none;
}
.premium-hero__actions .btn:not(:disabled):not([aria-disabled="true"]):hover::after,
.premium-hero__actions .btn:not(:disabled):not([aria-disabled="true"]):focus-visible::after {
  transform: translateX(90%);
}
@media (prefers-reduced-motion: reduce) {
  .premium-hero__actions .btn::after { display: none; }
}
.premium-hero__actions .btn:first-child {
  --btn-bg: linear-gradient(135deg, #0b75ff, #0753d6);
  --btn-bg-hover: linear-gradient(135deg, #0968e1, #0647b7);
  --btn-bg-active: linear-gradient(135deg, #0758bf, #053b98);
  --btn-color: #fff;
  --btn-color-hover: #fff;
  --btn-color-active: #fff;
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-border-active: transparent;
  --btn-shadow: 0 14px 30px rgba(0, 92, 255, .28);
}

.nav__toggle {
  display: none;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-strong, #0b1733);
  cursor: pointer;
}
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; border-radius: 2px; background: currentColor; }
.nav__toggle:not(:disabled):hover,
.nav__toggle:not(:disabled):focus-visible { background: #e7efff; color: #0847c7; }
.nav__toggle:not(:disabled):active { background: #dbe7ff; color: #06358f; }
.nav__toggle:disabled { opacity: .55; cursor: not-allowed; }

.scrolltop {
  position: fixed;
  right: 16px;
  bottom: 140px;
  z-index: 65;
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: 999px;
  background: linear-gradient(135deg, #061424, #0b5cff);
  color: #fff;
  box-shadow: 0 16px 38px rgb(2 6 23 / .14);
  font-weight: 900;
  cursor: pointer;
}
.scrolltop:not(:disabled):hover,
.scrolltop:not(:disabled):focus-visible { background: linear-gradient(135deg, #0a1d33, #084bd0); color: #fff; }
.scrolltop:not(:disabled):active { background: linear-gradient(135deg, #061424, #073da9); color: #fff; transform: translateY(1px); }
.scrolltop:disabled { opacity: .55; cursor: not-allowed; }

.error-404-page .error404__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.error404__button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.error404__button--primary,
.error404__button--primary:visited { color: #fff; background: linear-gradient(135deg, #1267f8, #109cf4); box-shadow: 0 14px 34px rgba(18, 103, 248, .3); }
.error404__button--secondary,
.error404__button--secondary:visited { color: #cfe8ff; background: rgba(255, 255, 255, .055); border-color: rgba(151, 210, 255, .28); }
.error404__button:not([aria-disabled="true"]):hover,
.error404__button:not([aria-disabled="true"]):focus-visible { transform: translateY(-2px); }
.error404__button--primary:not([aria-disabled="true"]):hover,
.error404__button--primary:not([aria-disabled="true"]):focus-visible { color: #fff; background: linear-gradient(135deg, #0f5de1, #0c89d8); box-shadow: 0 18px 42px rgba(18, 103, 248, .4); }
.error404__button--secondary:not([aria-disabled="true"]):hover,
.error404__button--secondary:not([aria-disabled="true"]):focus-visible { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(151, 210, 255, .5); }
.error404__button:not([aria-disabled="true"]):active { transform: translateY(1px); }
.error404__button[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.helper__btn {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(220, 230, 245, .96);
  border-radius: 18px;
  background: #fff;
  color: var(--text-strong, #0b1733);
  box-shadow: 0 10px 26px rgba(25, 43, 84, .06);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.helper__btn small { display: block; margin-top: 4px; color: var(--text-soft, #40506a); font-weight: 600; }
.helper__btn.is-selected { border-color: rgb(219 39 119 / .52); box-shadow: 0 0 0 4px rgb(219 39 119 / .12), 0 16px 38px rgb(11 92 255 / .14); }
.helper__btn:not(:disabled):hover,
.helper__btn:not(:disabled):focus-visible { border-color: rgba(18, 103, 248, .34); background: linear-gradient(180deg, #fff, #f7fbff); color: var(--text-strong, #0b1733); box-shadow: var(--shadow, 0 22px 60px rgba(25, 43, 84, .12)); transform: translateY(-4px); }
.helper__btn:not(:disabled):active { background: #eef5ff; transform: translateY(1px); }
.helper__btn:disabled { opacity: .55; cursor: not-allowed; }
.site-page .helper__btn { min-height: 94px; padding: 18px; border-radius: 17px; }

.calc-tile {
  width: 100%;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.calc-tile:focus-visible { outline: 2px solid rgb(var(--blue-rgb, 18 103 248) / .35); outline-offset: 2px; }
.calc-tile:not(:disabled):hover { border-color: rgb(var(--blue-rgb, 18 103 248) / .34); }
.calc-tile:not(:disabled):active { transform: translateY(1px); }
.calc-tile[aria-pressed="true"] { border-color: rgb(219 39 119 / .52); box-shadow: 0 0 0 4px rgb(219 39 119 / .12), 0 16px 38px rgb(11 92 255 / .14); }
.calc-tile:disabled { opacity: .55; cursor: not-allowed; }

.assistant-page :is(.assistant-mode__button, .assistant-chip, .assistant-suggest__item) {
  border: 1px solid rgba(220, 230, 245, .96);
  background: rgba(255, 255, 255, .9);
  color: var(--text-strong, #0b1733);
  box-shadow: 0 16px 42px rgba(25, 43, 84, .08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.assistant-page :is(.assistant-mode__button, .assistant-chip) { padding: 10px 14px; border-radius: 999px; }
.assistant-page .assistant-mode__button.is-active { border-color: rgb(var(--blue-rgb, 18 103 248) / .45); background: rgb(var(--blue-rgb, 18 103 248) / .08); color: var(--blue, #1267f8); }
.assistant-page .assistant-suggest__item { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 9px 14px; border-radius: 999px; white-space: normal; }
.assistant-page :is(.assistant-mode__button, .assistant-chip, .assistant-suggest__item):not(:disabled):hover,
.assistant-page :is(.assistant-mode__button, .assistant-chip, .assistant-suggest__item):not(:disabled):focus-visible { border-color: rgba(18, 103, 248, .34); background: linear-gradient(180deg, #fff, #f7fbff); color: var(--text-strong, #0b1733); box-shadow: 0 18px 46px rgba(25, 43, 84, .11); }
.assistant-page .assistant-suggest__item:not(:disabled):is(:hover, :focus-visible) { transform: translateY(-1px); }
.assistant-page :is(.assistant-mode__button, .assistant-chip, .assistant-suggest__item):not(:disabled):active { border-color: rgba(18, 103, 248, .48); background: #eaf2ff; color: #073ea8; transform: translateY(1px); }
.assistant-page :is(.assistant-mode__button, .assistant-chip, .assistant-suggest__item):disabled { opacity: .55; cursor: not-allowed; }
.assistant-page .assistant-form__submit { min-height: 52px; }

.intern-seo-page :is(button, .report-link) {
  display: inline-block;
  padding: .75rem 1rem;
  border: 0;
  border-radius: .45rem;
  background: #173b67;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.intern-seo-page :is(button:not(:disabled), .report-link):is(:hover, :focus-visible) { background: #102f54; color: #fff; box-shadow: 0 8px 18px rgba(23, 59, 103, .22); transform: translateY(-1px); }
.intern-seo-page :is(button:not(:disabled), .report-link):active { background: #0d2746; color: #fff; transform: translateY(1px); }
.intern-seo-page button:disabled { opacity: .55; cursor: wait; }
.intern-seo-page .danger { background: #8d1d1d; color: #fff; }
.intern-seo-page .danger:not(:disabled):is(:hover, :focus-visible) { background: #731717; color: #fff; }
.intern-seo-page .danger:not(:disabled):active { background: #5d1212; }
.intern-seo-page .seo-intern-nav button { padding: .55rem .8rem; }

.intern-login-page button {
  width: 100%;
  margin-top: 1.2rem;
  padding: .85rem;
  border: 0;
  border-radius: 8px;
  background: #173c67;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.intern-login-page button:not(:disabled):is(:hover, :focus-visible) { background: #102f54; color: #fff; }
.intern-login-page button:not(:disabled):active { background: #0d2746; transform: translateY(1px); }
.intern-login-page button:disabled { opacity: .55; cursor: not-allowed; }

.intern-index-page .logout-form button {
  padding: .65rem .9rem;
  border: 1px solid #aeb9c7;
  border-radius: .5rem;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.intern-index-page .logout-form button:not(:disabled):is(:hover, :focus-visible) { border-color: #7f8fa3; background: #f3f6fa; color: #101827; }
.intern-index-page .logout-form button:not(:disabled):active { background: #e8edf3; transform: translateY(1px); }

.setup-primary-link,
.setup-primary-link:visited { flex: 0 0 auto; padding: 13px 18px; border-radius: 12px; background: #0b5cff; color: #fff; font-weight: 800; text-decoration: none; }
.setup-primary-link:is(:hover, :focus-visible) { background: #0849cc; color: #fff; }
.setup-primary-link:active { background: #063da9; color: #fff; transform: translateY(1px); }
.setup-page .btn-primary,
.setup-page .setup-form-actions .btn-primary {
  --btn-bg: #0b5cff;
  --btn-bg-hover: #0849cc;
  --btn-bg-active: #063da9;
  --btn-color: #fff;
  --btn-color-hover: #fff;
  --btn-color-active: #fff;
  --btn-border: #0b5cff;
  --btn-border-hover: #0849cc;
  --btn-border-active: #063da9;
}
.intern-logout-form .btn { font: inherit; cursor: pointer; }
.setup-inline-reset-form .btn-small { min-height: 2.15rem; padding: .42rem .7rem; font-size: .78rem; }
.stats-page :is(.toolbar, .page-filter, .period-toolbar, .dashboard-settings__form, .trend-period-form, .dashboard-ip-form) .btn { min-height: 38px; font-size: .76rem; }
.stats-page .toolbar .btn { font-size: .78rem; }
.stats-page .period-toolbar .btn { font-size: .79rem; }
.stats-page .dashboard-ip-form .btn { width: fit-content; }
.stats-page .stats-settings-button { justify-self: start; }

body.portal-page .portal-wrap .btn { min-height: 48px; padding: 11px 18px; border-radius: 14px; white-space: normal; }
body.portal-page .portal-wrap .btn--primary {
  --btn-bg: linear-gradient(135deg, var(--portal-blue), var(--portal-indigo));
  --btn-bg-hover: linear-gradient(135deg, #0e5ce0, #4f35c8);
  --btn-bg-active: linear-gradient(135deg, #0b4dbb, #412ca7);
  --btn-color: #fff;
  --btn-color-hover: #fff;
  --btn-color-active: #fff;
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-border-active: transparent;
  --btn-shadow: 0 12px 26px rgba(18, 103, 248, .22);
}
body.portal-page .portal-wrap .btn--function {
  --btn-bg: linear-gradient(135deg, #173f89, #4338ca);
  --btn-bg-hover: linear-gradient(135deg, #123574, #392fac);
  --btn-bg-active: linear-gradient(135deg, #0f2c61, #30288f);
  --btn-color: #fff;
  --btn-color-hover: #fff;
  --btn-color-active: #fff;
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-border-active: transparent;
  --btn-shadow: 0 10px 22px rgba(30, 64, 175, .18);
}
body.portal-page .portal-wrap .btn--small { min-height: 42px; padding: 8px 14px; }
body.portal-page .portal-mode-actions .btn { justify-content: flex-start; min-height: 62px; text-align: left; }

@supports selector(form:tool-form-active) {
  button:tool-submit-active { outline: 2px dashed currentColor; outline-offset: 3px; }
}

@media (max-width: 980px) {
  .nav__toggle { display: inline-block; }
  .site-page .nav__toggle { display: block; width: 48px; height: 48px; padding: 11px; border: 1px solid rgba(18, 103, 248, .14); background: #f3f7ff; }
  .nav__links button,
  .hero__cta .btn { width: 100%; }
}
@media (max-width: 820px) {
  .assistant-page .assistant-form__submit,
  .assistant-page .assistant-diagnose__picker-row .btn { width: 100%; }
}
@media (max-width: 760px) {
  .webcalc-actions .btn,
  .webcalc-submit .btn,
  .setup-danger-card .btn { width: 100%; }
  .webcalc-actions .btn,
  .webcalc-submit .btn { flex-basis: 100%; }
}
@media (max-width: 720px) { .premium-hero__actions .btn { width: 100%; } }
@media (max-width: 700px) {
  .site-page .hero__cta .btn { width: 100%; }
  .intern-seo-page .form-row button { width: 100%; margin-top: .65rem; }
}
@media (max-width: 680px) { .setup-actions .btn, .setup-primary-link { text-align: center; } }
@media (max-width: 640px) {
  body.portal-page .card__actions .btn,
  body.portal-page .portal-mode-actions .btn,
  .stats-page .stats-overview__heading .btn { width: 100%; }
}
@media (max-width: 620px) { .stats-page .period-toolbar .btn { flex: 1 1 110px; } }
@media (max-width: 560px) { .error-404-page .error404__button { width: 100%; } }
@media (max-width: 520px) { .subhead .btn { width: 100%; } }
@media (max-width: 480px) { .btn { width: 100%; } }
@media (max-width: 460px) { .site-page .btn { width: 100%; } }
@media (min-width: 981px) {
  .site-page .hero__cta .btn { padding-inline: 12px; font-size: .78rem; white-space: nowrap; }
}
@media (min-width: 981px) and (max-height: 900px) {
  .site-page .hero__cta .btn { min-height: 38px; padding: 6px 10px; font-size: .74rem; }
}
@media (min-width: 1101px) and (max-height: 820px) {
  .premium-hero--viewport-entry .premium-hero__actions .btn { min-height: 52px; padding-inline: 22px; font-size: .94rem; }
}
@media (pointer: coarse) { .btn { min-height: var(--tap, 44px); touch-action: manipulation; } }
@media (prefers-reduced-motion: reduce) {
  .btn,
  .error404__button,
  .helper__btn,
  .assistant-page :is(.assistant-mode__button, .assistant-chip, .assistant-suggest__item) { transition: none; }
  .error404__button:is(:hover, :focus-visible),
  .helper__btn:is(:hover, :focus-visible) { transform: none; }
}
