/* ============================================================
   KONTAKT-MODAL + FLOATING BUTTON + KONTAKT-HINWEISE
   ============================================================ */

/* ── Overlay ── */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Container ── */
.contact-modal {
  position: fixed;
  z-index: 901;
  background: var(--background-primary, #FAF9F6);
  overflow-y: auto;
  overscroll-behavior: contain;

  /* Desktop: zentriert */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(600px, 90vw);
  max-height: 90vh;
  border-radius: 16px;
  padding: 48px;
  box-sizing: border-box;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;

  border-left: 4px solid var(--accent-primary, #9327C3);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile: Slide-up */
@media (max-width: 767px) {
  .contact-modal {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    padding: 32px 24px 40px;
    border-left: none;
    border-top: 4px solid var(--accent-primary, #9327C3);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.14);
  }
  .contact-modal.is-open {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Schließen-Button ── */
.contact-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #666);
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-modal-close:hover {
  background: var(--background-secondary, #F5F5F5);
  color: var(--text-primary, #1A1A1A);
}

.contact-modal-close:focus-visible {
  outline: 2px solid var(--accent-primary, #9327C3);
  outline-offset: 2px;
}

/* ── Headline + Sub ── */
.contact-modal-headline {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary, #1A1A1A);
  margin-bottom: 12px;
  padding-right: 32px;
}

.contact-modal-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary, #5A5A5A);
  margin-bottom: 32px;
}

@media (max-width: 767px) {
  .contact-modal-headline { font-size: 22px; }
  .contact-modal-sub      { font-size: 15px; }
}

/* ── Formular ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary, #1A1A1A);
  background: #ffffff;
  border: 1px solid rgba(138, 138, 138, 0.30);
  border-radius: 8px;
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-tertiary, #9A9A9A);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary, #9327C3);
  box-shadow: 0 0 0 3px rgba(147, 39, 195, 0.10);
}

.contact-form input.is-error,
.contact-form textarea.is-error {
  border-color: #D93025;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.08);
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

/* Honeypot: nur Bots sehen es */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Submit-Button ── */
.contact-form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent-primary, #9327C3);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  margin-top: 8px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.contact-form-submit:hover:not(:disabled) {
  background: #7d1fa6;
  transform: translateY(-1px);
}

.contact-form-submit:active:not(:disabled) {
  transform: translateY(0);
}

.contact-form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Alternativer E-Mail-Pfad ── */
.contact-form-alt {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary, #8A8A8A);
  text-align: center;
  line-height: 1.5;
}

.contact-form-alt a {
  color: var(--accent-primary, #9327C3);
  text-decoration: none;
}

.contact-form-alt a:hover {
  text-decoration: underline;
}

/* ── Erfolgs-Ansicht ── */
.contact-success {
  display: none;
  text-align: center;
  padding: 16px 0 8px;
}

.contact-success.is-visible {
  display: block;
}

.contact-success-icon {
  width: 60px;
  height: 60px;
  background: rgba(147, 39, 195, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent-primary, #9327C3);
}

.contact-success-headline {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #1A1A1A);
  margin-bottom: 12px;
}

.contact-success-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary, #5A5A5A);
  margin-bottom: 36px;
  max-width: 380px;
  margin-inline: auto;
}

.contact-success-close {
  background: none;
  border: 1px solid var(--border-subtle, #E8E8E8);
  border-radius: 8px;
  padding: 12px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary, #5A5A5A);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-success-close:hover {
  border-color: var(--text-primary, #1A1A1A);
  color: var(--text-primary, #1A1A1A);
}

/* ============================================================
   FLOATING CONTACT BUTTON
   ============================================================ */

.contact-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;

  display: flex;
  align-items: center;
  gap: 10px;

  height: 52px;
  padding: 0 18px;
  border-radius: 26px;

  background: var(--background-primary, #FAF9F6);
  color: var(--accent-primary, #9327C3);
  border: 1px solid rgba(0, 0, 0, 0.10);
  cursor: pointer;

  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity    0.4s ease,
    transform  0.4s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.contact-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.contact-float.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
}

.contact-float:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-color: rgba(147, 39, 195, 0.25);
  transform: translateY(-2px);
}

.contact-float.is-hidden:hover {
  transform: translateY(8px) !important;
}

.contact-float:focus-visible {
  outline: 3px solid rgba(147, 39, 195, 0.5);
  outline-offset: 3px;
}

.contact-float-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.contact-float-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 767px) {
  .contact-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .contact-float-label {
    display: none;
  }
}

/* ============================================================
   KONTAKT-HINWEISE IM CONTENT
   ============================================================ */

.contact-hint {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--container-padding-x, 24px);
  text-align: center;
}

.contact-hint-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary, #5A5A5A);
  margin-bottom: 20px;
}

.contact-hint-text a {
  color: var(--accent-primary, #9327C3);
  text-decoration: none;
}

.contact-hint-text a:hover {
  text-decoration: underline;
}

.contact-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--accent-primary, #9327C3);
  border-radius: 8px;
  color: var(--accent-primary, #9327C3);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-hint-btn:hover {
  background: rgba(147, 39, 195, 0.07);
}

@media (max-width: 600px) {
  .contact-hint-btn {
    width: 100%;
    justify-content: center;
  }
}
