:root {
  --navy: #031c84;
  --green: #95c11e;
  --green-dark: #6f9a0f;
  --orange: #eb6a24;
  --text: #39444c;
  --muted: #54595f;
  --mint: #edf5f6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  font-family: "Ropa Sans", "Segoe UI", sans-serif;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-corner {
  border-radius: 20px 0 20px 0;
}

.site-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-logo--hero {
  max-height: 8.5rem;
  max-width: min(37rem, 92vw);
}

.site-logo--rates {
  max-height: 3.25rem;
  max-width: 10.5rem;
}

.site-logo--footer {
  max-height: 3.5rem;
  max-width: 12rem;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(219, 227, 230, 0.9);
  box-shadow: 0 12px 40px -12px rgba(3, 28, 132, 0.18);
}

.hero-nav {
  transform: translateY(50%);
}

#nav.nav--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: auto;
  transform: none;
  z-index: 60;
  padding: 0;
  pointer-events: none;
}

#nav.nav--sticky .glass-nav {
  pointer-events: auto;
}

#nav.nav--sticky .glass-nav {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.nav-link {
  display: inline-block;
  padding: 0.15rem 0;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--navy);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--navy);
}

.nav-link.is-active::after {
  width: 100%;
}

.split-rate-int {
  font-size: 3.8rem;
  line-height: 1;
  font-weight: 600;
}

.split-rate-dec {
  font-size: 2rem;
  vertical-align: super;
  line-height: 1;
  font-weight: 600;
  margin-left: 1px;
}

.price-card-refined {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(219, 227, 230, 0.6);
}

.price-card-refined:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(3, 28, 132, 0.08);
  border-color: var(--navy);
}

.price-card-featured {
  border: 2px solid var(--green);
  box-shadow: 0 15px 35px -10px rgba(149, 193, 30, 0.25);
}

.hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.hero-bg__img--gwp {
  object-position: 68% 42%;
}

.hero-overlay {
  background: transparent;
  pointer-events: none;
}

.hero-top {
  max-width: 100%;
}

/* ——— Hero logo (transparent PNG) ——— */
.hero-logo-pro {
  display: inline-block;
  text-decoration: none;
  max-width: 100%;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-logo-pro:focus-visible .hero-logo-pro__img {
  outline: 2px solid rgba(149, 193, 30, 0.85);
  outline-offset: 4px;
}

.hero-logo-pro__plate {
  display: block;
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(8px);
}

.hero-logo-pro.is-ready .hero-logo-pro__plate,
.hero-logo-pro__plate.is-ready {
  animation: heroLogoEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroLogoEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-pro:hover {
  transform: translateY(-2px);
}

.hero-logo-pro:active {
  transform: translateY(0);
}

.hero-logo-pro__img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: min(26rem, 100%);
  max-height: clamp(4.5rem, 12vw, 8.75rem);
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
  image-rendering: auto;
  -webkit-user-drag: none;
  user-select: none;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45))
    drop-shadow(0 8px 22px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.22));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.hero-logo-pro:hover .hero-logo-pro__img {
  transform: scale(1.015);
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.28));
}

.hero-brand-stack {
  position: relative;
  max-width: min(100%, 30rem);
}

.hero-brand-stack > * {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  max-width: min(100%, 22rem);
  text-align: left;
}

@media (min-width: 768px) {
  .hero-brand-stack {
    max-width: min(100%, 30rem);
  }

  .hero-tagline {
    text-align: right;
    align-self: flex-end;
  }

  .hero-logo-pro {
    align-self: flex-end;
    max-width: 100%;
  }

  .hero-logo-pro__img {
    margin-left: auto;
    margin-right: 0;
    max-width: min(28rem, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-pro,
  .hero-logo-pro__img,
  .hero-logo-pro__plate.is-ready,
  .hero-logo-pro.is-ready .hero-logo-pro__plate {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.hero-copy {
  text-shadow: 0 1px 24px rgba(3, 28, 132, 0.35);
}

.hero-eyebrow,
.hero-headline,
.hero-lead {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.process-step__num {
  letter-spacing: 0.18em;
}

.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;
}

.tracking-tight-title {
  letter-spacing: -0.025em;
}

.team-card__photo {
  transition: transform 0.45s ease, filter 0.35s ease;
  filter: saturate(0.92) contrast(1.02);
}

.team-card:hover .team-card__photo {
  transform: scale(1.03);
  filter: saturate(1);
}

.team-card__media {
  background: #dbe3e6;
}

.fw-bild img {
  transition: transform 0.45s ease;
}

.fw-bild:hover img {
  transform: scale(1.04);
}

.partner-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  height: 2rem;
}

.partner-logo--credem {
  height: 2.25rem;
}

.partner-logo--ubs {
  height: 2.5rem;
}

.partner-logo--valiant {
  height: 3rem;
}

@media (min-width: 768px) {
  .partner-logo {
    height: 2.25rem;
  }

  .partner-logo--ubs {
    height: 2.75rem;
  }

  .partner-logo--valiant {
    height: 3.25rem;
  }
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
}

.nav-menu.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    flex: 1;
    min-width: 0;
    padding: 0 0.5rem;
    gap: clamp(0.75rem, 2vw, 2rem);
  }
}

.form-status { min-height: 1.2em; font-size: 0.88rem; margin-top: 0.75rem; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: var(--green-dark); }
.is-invalid { border-color: #b3261e !important; }

[data-field].has-field-error label {
  color: #b3261e;
}

.field-error {
  color: #b3261e;
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

.field-error:not([hidden]) {
  display: block;
}

.contact-form-panel {
  position: relative;
  z-index: 25;
}

.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea,
.contact-form-panel button {
  pointer-events: auto;
}

#kontakt {
  position: relative;
  z-index: 20;
}

#formSubmitBtn.is-loading {
  cursor: wait;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ——— Zinsrechner Pro (JSON-driven) ——— */
.zins-calc-pro {
  width: 100%;
  max-width: 360px;
}

.zins-calc-pro__shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(3, 28, 132, 0.08);
  background: linear-gradient(165deg, #ffffff 0%, #f4f9fa 48%, #edf5f6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 48px -22px rgba(3, 28, 132, 0.35);
  padding: 1.35rem 1.35rem 1.5rem;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.zins-calc-pro__shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), #c8e86a 35%, var(--orange));
  opacity: 0.95;
}

.zins-calc-pro__shell.is-ready {
  animation: zinsCalcEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes zinsCalcEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zins-calc-pro__header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.zins-calc-pro__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(3, 28, 132, 0.06);
  color: var(--orange);
  font-size: 1.35rem;
  box-shadow: 0 8px 20px -12px rgba(235, 106, 36, 0.55);
}

.zins-calc-pro__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

.zins-calc-pro__subtitle {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.zins-calc-pro__field {
  margin-bottom: 1.1rem;
}

.zins-calc-pro__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.zins-calc-pro__amount-wrap {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 1px solid #cfd9dc;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.zins-calc-pro__amount-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(3, 28, 132, 0.12);
}

.zins-calc-pro__currency {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(3, 28, 132, 0.04);
  border-right: 1px solid #e4eaec;
}

.zins-calc-pro__amount {
  flex: 1;
  border: 0;
  padding: 0.72rem 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  min-width: 0;
}

.zins-calc-pro__amount:focus {
  outline: none;
}

.zins-calc-pro__terms {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.zins-calc-pro__term {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #dbe3e6;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.zins-calc-pro__term:hover {
  border-color: rgba(3, 28, 132, 0.25);
  box-shadow: 0 6px 18px -14px rgba(3, 28, 132, 0.45);
}

.zins-calc-pro__term.is-selected {
  border-color: var(--navy);
  background: linear-gradient(135deg, rgba(3, 28, 132, 0.04), rgba(149, 193, 30, 0.08));
  box-shadow: 0 10px 24px -16px rgba(3, 28, 132, 0.5);
  transform: translateX(2px);
}

.zins-calc-pro__term:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.zins-calc-pro__term-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.zins-calc-pro__term-rate {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}

.zins-calc-pro__term-tag {
  position: absolute;
  top: -0.45rem;
  right: 0.65rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.zins-calc-pro__term-tag--muted {
  background: rgba(84, 89, 95, 0.85);
}

.zins-calc-pro__results {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #031c84 0%, #0a2d9e 55%, #123cb0 100%);
  color: #fff;
  box-shadow: 0 14px 32px -18px rgba(3, 28, 132, 0.85);
}

.zins-calc-pro__results.is-refreshing .zins-calc-pro__result-hero {
  animation: zinsPulse 0.45s ease;
}

@keyframes zinsPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

.zins-calc-pro__result-hero {
  margin-bottom: 0.85rem;
}

.zins-calc-pro__result-hero-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.78;
  margin-bottom: 0.25rem;
}

.zins-calc-pro__result-hero-value {
  font-size: clamp(1.45rem, 4.5vw, 1.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8f4c4;
  line-height: 1.15;
}

.zins-calc-pro__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.82rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.zins-calc-pro__result-row span:first-child {
  opacity: 0.8;
}

.zins-calc-pro__result-row strong {
  font-variant-numeric: tabular-nums;
}

.zins-calc-pro__split {
  margin-top: 0.85rem;
}

.zins-calc-pro__split-track {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.zins-calc-pro__split-principal,
.zins-calc-pro__split-interest {
  height: 100%;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.zins-calc-pro__split-principal {
  background: rgba(255, 255, 255, 0.55);
}

.zins-calc-pro__split-interest {
  background: linear-gradient(90deg, var(--green), #d4f07a);
}

.zins-calc-pro__split-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  margin-top: 0.4rem;
  opacity: 0.75;
}

.zins-calc-pro__footnote {
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 1rem 0 0.85rem;
}

.zins-calc-pro__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.82rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #d45a18);
  box-shadow: 0 10px 28px -14px rgba(235, 106, 36, 0.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.zins-calc-pro__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 32px -12px rgba(235, 106, 36, 0.95);
}

.zins-calc-pro__cta:active {
  transform: translateY(0);
}

.zins-calc-pro__shimmer {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(3, 28, 132, 0.06) 0%,
    rgba(3, 28, 132, 0.12) 50%,
    rgba(3, 28, 132, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: zinsShimmer 1.2s ease-in-out infinite;
}

@keyframes zinsShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zins-calc-pro__shell.is-ready,
  .zins-calc-pro__results.is-refreshing .zins-calc-pro__result-hero,
  .zins-calc-pro__split-principal,
  .zins-calc-pro__split-interest,
  .zins-calc-pro__term,
  .zins-calc-pro__cta {
    animation: none !important;
    transition: none !important;
  }
}