/* Grundlayout & Typografie */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --sl-color-bg-start: #3E0099;
  --sl-color-bg-mid-1: #4737D5;
  --sl-color-bg-mid-2: #5743FF;
  --sl-color-bg-end: #3599E6;
  --sl-gradient: linear-gradient(
    135deg,
    var(--sl-color-bg-start) 0%,
    var(--sl-color-bg-mid-1) 25%,
    var(--sl-color-bg-mid-2) 50%,
    var(--sl-color-bg-end) 100%
  );
  --sl-font-sans: "acumin-pro", "Acumin Pro", "AcuminPro", "Helvetica Neue",
    Arial, sans-serif;
  --sl-page-padding-x: 14px;
  --sl-page-padding-top: max(12px, calc(env(safe-area-inset-top, 0) / 2));
  --sl-page-padding-bottom: 0;
  --sl-hero-gap: 4px;
  --sl-hero-padding-top: 0;
  --sl-hero-padding-bottom: 4px;
  --sl-formula-gap: 4px;
  --sl-flag-size: 24px;
  --sl-footer-bg: #5743FF;
  --sl-border-alpha: rgba(255, 255, 255, 0.12);
}

br.sl-mobile-break {
  display: inline;
}

html,
body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100%;
}

html {
  background-color: var(--sl-color-bg-start);
}

body.sl-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  font-family: var(--sl-font-sans);
  color: #ffffff;
  background: var(--sl-gradient);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sl-font-sans);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* OVERLAY FORM */

.sl-form-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0)) var(--sl-page-padding-x)
    max(24px, env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  overflow: auto;
  z-index: 50;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.sl-form-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sl-form-overlay-card {
  color: #ffffff;
  position: relative;
  width: min(560px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(87, 67, 255, 0.92);
  box-shadow: 0 22px 60px rgba(29, 8, 81, 0.35);
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.sl-form-overlay-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.sl-form-overlay-text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.sl-overlay-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.sl-overlay-form.is-hidden {
  display: none;
}

.sl-form-progress {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sl-form-progress-track {
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  height: 4px;
  overflow: hidden;
}

.sl-form-progress-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: inherit;
  transition: width 250ms ease;
}

.sl-form-progress-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.sl-form-step {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.sl-form-step.is-active {
  display: flex;
}

.sl-step-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.sl-step-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sl-step-fields--name {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .sl-step-fields--name {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sl-step-fields--name .sl-field:nth-child(3) {
    grid-column: span 2;
  }
}

.sl-step-fields .sl-field {
  flex: 1;
}

.sl-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.sl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.sl-field input {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 4, 52, 0.3);
  color: #ffffff;
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.sl-field input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.sl-field input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(16, 4, 52, 0.45);
}

.sl-field select {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 4, 52, 0.3);
  color: #ffffff;
  padding: 12px 44px 12px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.sl-field select:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(16, 4, 52, 0.45);
}

.sl-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 4, 52, 0.3);
  color: #ffffff;
  padding: 12px 14px;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 90px;
  transition: border-color 200ms ease, background 200ms ease;
}

.sl-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(16, 4, 52, 0.45);
  outline: none;
}

.sl-form-navigation {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.sl-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(51, 0, 153, 0.7);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 150ms ease, border-color 200ms ease,
    background 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 24px rgba(6, 2, 29, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.sl-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.02)
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.sl-button:hover::after {
  opacity: 1;
}

.sl-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(51, 0, 153, 0.85);
}

.sl-button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.sl-button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.sl-button--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sl-button--icon {
  padding: 0;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  line-height: 0;
}

.sl-button svg,
.sl-button--icon svg {
  width: 24px;
  height: 24px;
}

.sl-button--close svg {
  width: 14px;
  height: 14px;
}

.sl-button-icon--back {
  transform: scaleX(-1);
}

.sl-button--close {
  width: 40px;
  height: 40px;
  padding: 0;
  position: absolute;
  top: 20px;
  right: 20px;
}

.sl-button-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  white-space: nowrap;
}

.sl-button-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transform-origin: center;
  transform: translateX(-50%) rotate(45deg);
}

.sl-button:hover .sl-button-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sl-form-next.is-hidden,
.sl-form-submit.is-hidden {
  display: none;
}

.sl-form-message {
  min-height: 20px;
  font-size: 0.78rem;
  color: #ffdad6;
}

.sl-overlay-result {
  display: none;
  text-align: center;
  padding: 30px 10px 10px;
}

.sl-overlay-result[hidden] {
  display: none;
}

.sl-overlay-result-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.sl-result-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  opacity: 0.8;
}

.sl-result-copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}

.sl-result-close {
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sl-result-close > span {
  position: relative;
  z-index: 2;
}

.sl-button-progress {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 5s linear;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.sl-button-progress.is-active {
  transform: scaleX(1);
}

.sl-overlay-card-success .sl-overlay-form {
  display: none;
}

.sl-overlay-card-success .sl-overlay-result {
  display: block;
}

.sl-phone-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sl-phone-country select {
  min-width: 120px;
}

@media (min-width: 560px) {
  .sl-phone-row {
    flex-direction: row;
  }
  .sl-phone-country {
    flex: 0 0 140px;
  }
  .sl-phone-input {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .sl-form-overlay-card {
    padding: 20px 16px 26px;
  }
}

/* Seite */

.sl-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--sl-page-padding-top) var(--sl-page-padding-x)
    var(--sl-page-padding-bottom);
}

/* HEADER */

.sl-header {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.sl-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sl-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 10px;
}

.sl-logo-wrapper {
  display: flex;
  align-items: center;
}

.sl-logo {
  display: block;
  width: clamp(160px, 20vw, 260px);
  height: auto;
  color: #ffffff;
}

.sl-header-meta {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.sl-flag-header {
  width: 36px;
  height: 24px;
  border-radius: 2px;
  display: block;
}

.sl-flag {
  width: 32px;
  height: 22px;
  border-radius: 2px;
  overflow: hidden;
}

.sl-location {
  white-space: nowrap;
}

/* MAIN / HERO */

.sl-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.sl-hero {
  width: 100%;
  max-width: 980px;
  margin: -70px auto 0;
  padding: var(--sl-hero-padding-top) 0 var(--sl-hero-padding-bottom);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease 150ms, transform 700ms ease 150ms;
}

.sl-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sl-hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sl-hero-gap);
  align-items: center;
  text-align: center;
}

.sl-hero-flag {
  margin-top: -10px;
  margin-bottom: -42px;
}

.sl-flag-hero {
  width: var(--sl-flag-size);
  height: auto;
  display: block;
}

.sl-hero-title {
  font-size: clamp(1rem, 4.4vw, 1.18rem);
  line-height: 1.45;
  font-weight: 500;
  max-width: 40em;
  margin: 0 0 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.sl-hero-text {
  max-width: 34em;
  font-size: clamp(0.9rem, 3.6vw, 0.98rem);
  line-height: 1.5;
  opacity: 0.9;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sl-keyword {
  font-weight: 600;
  font-size: 1.03em;
}

.sl-hero-text p {
  margin: 0 0 0.2em;
}

.sl-hero-text p + p {
  margin-top: 0.35em;
}

.sl-hero-text p:nth-child(4) {
  margin-top: 0.8em;
}

/* FORMELBLOCK */

.sl-formula-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: -30px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.sl-formula-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sl-formula-icon {
  flex: 0 0 auto;
  margin-top: -6px;
  margin-bottom: -24px;
}

.sl-icon-fx {
  width: 26px;
  height: auto;
  color: #ffffff;
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.35));
}

.sl-formula-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: -12px;
  align-items: center;
  text-align: center;
}

/* Mathe-Schrift – STIX Two Math oder kompatibel */
.sl-formula-text {
  font-family: "STIX Two Math", "STIX Two Text", "Times New Roman", serif;
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: normal;
  overflow: hidden;
  font-style: italic;
}

.sl-formula-subline {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* FOOTER / CTA */

.sl-footer {
  margin-top: 20px;
  margin-left: calc(-1 * var(--sl-page-padding-x));
  margin-right: calc(-1 * var(--sl-page-padding-x));
  padding: 0 var(--sl-page-padding-x)
    max(12px, env(safe-area-inset-bottom, 0));
  background-color: var(--sl-footer-bg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.sl-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sl-footer-inner {
  border-top: 1px solid var(--sl-border-alpha);
  padding-top: 14px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  align-items: center;
  text-align: center;
}

.sl-cta-button {
  align-self: center;
  padding: 7px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  margin-bottom: 10px;
  background: radial-gradient(circle at 0 0,
                              rgba(255, 255, 255, 0.14),
                              rgba(255, 255, 255, 0.03));
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 200ms ease, transform 150ms ease,
              box-shadow 200ms ease, border-color 200ms ease,
              border-radius 200ms ease;
}

.sl-cta-button:hover {
  background: radial-gradient(circle at 0 0,
                              rgba(255, 255, 255, 0.26),
                              rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.35);
  border-radius: 6px;
}

.sl-cta-button:active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.sl-contact-line {
  margin: 4px 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

.sl-contact-line a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}

.sl-contact-line a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

.sl-footer-meta {
  margin: 14px 0 0;
  opacity: 0.7;
  font-size: 0.83rem;
}

.sl-footer-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sl-footer-meta a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* RESPONSIVE – DESKTOP */

@media (min-width: 769px) {
  :root {
    --sl-page-padding-x: clamp(24px, 4vw, 48px);
    --sl-page-padding-top: 24px;
    --sl-page-padding-bottom: 24px;
    --sl-hero-gap: clamp(14px, 2.4vw, 22px);
    --sl-hero-padding-top: clamp(12px, 4vh, 28px);
    --sl-hero-padding-bottom: clamp(16px, 4vh, 28px);
    --sl-formula-gap: clamp(18px, 3vw, 28px);
    --sl-flag-size: 40px;
    --sl-footer-bg: transparent;
  }

  br.sl-mobile-break {
    display: none;
  }

  html,
  body {
    height: 100%;
    min-height: 100%;
  }

  .sl-page {
    padding: var(--sl-page-padding-top) var(--sl-page-padding-x)
      var(--sl-page-padding-bottom);
  }

  .sl-main {
    align-items: center;
    justify-content: center;
  }

  .sl-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sl-header-meta {
    display: flex;
    font-size: 0.85rem;
  }

  .sl-hero {
    margin: 0 auto;
    padding: var(--sl-hero-padding-top) 0 var(--sl-hero-padding-bottom);
  }

  .sl-hero-inner {
    gap: var(--sl-hero-gap);
  }

  .sl-hero-flag {
    margin-top: 0;
    margin-bottom: calc(var(--sl-hero-gap) * -0.75);
  }

  .sl-hero-title {
    font-size: clamp(1.4rem, 2.3vw, 1.7rem);
    margin-bottom: 0;
  }

  .sl-hero-text {
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.65;
  }

  .sl-hero-text p + p {
    margin-top: 0.55em;
  }

  .sl-hero-text p:nth-child(4) {
    margin-top: 1.1em;
  }

  .sl-formula-block {
    flex-direction: row;
    justify-content: center;
    gap: var(--sl-formula-gap);
    margin-top: clamp(18px, 3vh, 28px);
    margin-bottom: clamp(12px, 2vh, 24px);
  }

  .sl-formula-icon {
    margin-top: 0;
  }

  .sl-icon-fx {
    width: clamp(52px, 7vw, 64px);
  }

  .sl-formula-text-wrapper {
    align-items: flex-start;
    gap: 6px;
    margin-top: 0;
    text-align: left;
  }

  .sl-formula-text {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    white-space: nowrap;
  }

  .sl-footer {
    margin-top: clamp(12px, 2vh, 24px);
    padding: 0 var(--sl-page-padding-x)
      calc(48px + env(safe-area-inset-bottom, 0));
  }

  .sl-footer-inner {
    font-size: 0.9rem;
    align-items: flex-start;
    text-align: left;
  }

  .sl-contact-line {
    font-size: 0.9rem;
    margin-top: 0;
  }

  .sl-cta-button {
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 8px 22px;
  }
}
