:root {
  --kontakt-width: 390px;
  --kontakt-panel-height: 568px;
  --kontakt-bg: #ffffff;
  --kontakt-border: #d0d5dd;
  --kontakt-text: #1c2024;
  --kontakt-muted: #6e6e73;
  --kontakt-accent: #7e4bb6;
}

#kontakt-knapp {
  position: fixed;
  right: 0;
  top: 40%;
  background: var(--kontakt-accent);
  color: #fff;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 1001;
  border-radius: 8px 0 0 8px;
  font-weight: 700;
  transition: right 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#kontakt-knapp span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: inline-block;
}

#kontakt-knapp.slided {
  right: var(--kontakt-width);
}

#kontakt-formular {
  position: fixed;
  right: calc(var(--kontakt-width) * -1);
  top: 20%;
  width: var(--kontakt-width);
  height: var(--kontakt-panel-height);
  max-height: 90vh;
  background: var(--kontakt-bg);
  border-radius: 10px;
  padding: 30px 20px;
  z-index: 1000;
  transition: right 0.4s;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  overflow: auto;
}

#kontakt-formular.open {
  right: 0;
}

#kontakt-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1002;
  border: 0;
  background: #e6e6e7;
  width: 24px;
  height: 24px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kontakt-header {
  width: 350px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0 0;
}

.kontakt-title {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.75px;
  color: var(--kontakt-text);
}

.kontakt-divider {
  width: 100%;
  height: 1px;
  background: #d0cfd2;
}

.kontakt-subtitle {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 25px;
  letter-spacing: -0.75px;
  color: #000000;
}

.kontakt-desc {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--kontakt-muted);
}

.kontakt-form-inner,
#kontakt-formular .wpcf7 {
  width: 350px;
  max-width: 100%;
}

#kontakt-formular .wpcf7 form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
}

#kontakt-formular .wpcf7 form p {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

#kontakt-formular .wpcf7 form p:last-of-type {
  align-items: flex-end;
}

#kontakt-formular .wpcf7 label {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--kontakt-text);
}

#kontakt-formular .wpcf7 input[type='text'],
#kontakt-formular .wpcf7 input[type='email'],
#kontakt-formular .wpcf7 input[type='tel'],
#kontakt-formular .wpcf7 textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--kontakt-border);
  border-radius: 8px;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--kontakt-muted);
  background: #ffffff;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

#kontakt-formular .wpcf7 textarea {
  min-height: 50px;
  resize: vertical;
}

#kontakt-formular textarea {
  min-height: 50px;
  height: 50px;
}

#kontakt-formular .wpcf7 input[type='submit'] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  width: 199px;
  height: 52px;
  background: var(--kontakt-accent);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 25px;
  letter-spacing: -0.75px;
  cursor: pointer;
  margin-left: auto;
}

#kontakt-formular .wpcf7 p {
  margin: 0;
}

@media (max-width: 420px) {
  body.kontakt-open #kontakt-knapp {
    display: none;
  }
  #kontakt-formular {
    top: 0;
    right: -100vw;
    left: auto;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  #kontakt-formular.open {
    right: 0;
    left: 0;
  }
  #kontakt-knapp.slided {
    right: 90vw;
  }
}
#kontakt-formular textarea {
  height: 120px;
}
