/* Floating contact button + modal (VECTOR-style expand on hover) */
.sc-kontakt-fab {
  position: fixed;
  top: 70%;
  right: 0;
  transform: translateY(-50%);
  /* top is adjusted in JS so the FAB never rises above the stage bottom */
  z-index: 1200;
  background: var(--sc-orange, #f9b000);
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.18);
}

.sc-kontakt-fab__toggle {
  display: flex;
  align-items: center;
  width: 70px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: width 0.45s ease;
}

.sc-kontakt-fab__toggle:hover,
.sc-kontakt-fab__toggle:focus-visible,
.sc-kontakt-fab.is-expanded .sc-kontakt-fab__toggle {
  width: 138px;
  outline: none;
}

.sc-kontakt-fab__icon {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: block;
}

.sc-kontakt-fab__label {
  white-space: nowrap;
  opacity: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-right: 0.85rem;
  transition: opacity 0.3s ease;
}

.sc-kontakt-fab__toggle:hover .sc-kontakt-fab__label,
.sc-kontakt-fab__toggle:focus-visible .sc-kontakt-fab__label,
.sc-kontakt-fab.is-expanded .sc-kontakt-fab__label {
  opacity: 1;
}

.sc-kontakt-modal[hidden] {
  display: none !important;
}

.sc-kontakt-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sc-kontakt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sc-kontakt-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-top: 4px solid var(--sc-burgundy, #b50c40);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1.35rem 1.5rem;
}

.sc-kontakt-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.sc-kontakt-modal__close:hover,
.sc-kontakt-modal__close:focus-visible {
  color: var(--sc-burgundy, #b50c40);
  outline: none;
}

.sc-kontakt-modal__title {
  margin: 0 2rem 0.35rem 0;
  color: var(--sc-burgundy, #b50c40);
  font-size: 1.25rem;
}

.sc-kontakt-modal__lead {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.4;
}

.sc-kontakt-form__row {
  margin: 0 0 0.75rem;
}

.sc-kontakt-form label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
}

.sc-kontakt-form input,
.sc-kontakt-form textarea,
.sc-kontakt-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid #bbb;
  border-radius: 2px;
  font: inherit;
}

.sc-kontakt-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.sc-kontakt-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.sc-kontakt-form__submit {
  appearance: none;
  border: 0;
  background: var(--sc-burgundy, #b50c40);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
}

.sc-kontakt-form__submit:hover,
.sc-kontakt-form__submit:focus-visible {
  background: var(--sc-burgundy-dark, #8f0a33);
  outline: none;
}

.sc-kontakt-form__alt {
  font-size: 0.85rem;
  color: #555;
}

.sc-kontakt-form__alt a {
  color: var(--sc-burgundy, #b50c40);
}

.sc-kontakt-form__success {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  background: #f3f3f3;
  border-left: 4px solid var(--sc-burgundy, #b50c40);
  font-size: 0.92rem;
  line-height: 1.4;
}

.sc-kontakt-form__success[hidden] {
  display: none !important;
}

body.sc-kontakt-open {
  overflow: hidden;
}

@media (max-width: 576px) {
  .sc-kontakt-fab__icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .sc-kontakt-fab__toggle {
    width: 54px;
  }

  .sc-kontakt-fab__toggle:hover,
  .sc-kontakt-fab__toggle:focus-visible,
  .sc-kontakt-fab.is-expanded .sc-kontakt-fab__toggle {
    width: 120px;
  }
}
