/* =============================================================
   contact-modal.css — Zentrales Kontakt-Modal
   ============================================================= */

/* ─── Overlay ─────────────────────────────────────────────── */

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

.contact-modal[hidden] { display: none; }

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

/* ─── Karte ───────────────────────────────────────────────── */

.contact-modal__card {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 920px;
  max-height: calc(100svh - 2rem);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: cm-enter 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cm-enter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ─── Schließen-Button ────────────────────────────────────── */

.contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ─── Sidebar (links, dunkel) ─────────────────────────────── */

.contact-sidebar {
  width: 290px;
  flex-shrink: 0;
  background: #060607;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.contact-sidebar__inner {
  padding: 2.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-sidebar__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 1rem;
}

.contact-sidebar__headline {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.contact-sidebar__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-sidebar__list li {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}

.contact-sidebar__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--avio-green, #1ea336);
}

.contact-sidebar__footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.contact-sidebar__symbol {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.12);
}

/* ─── Content-Bereich (rechts, hell) ─────────────────────── */

.contact-content {
  flex: 1;
  background: #f8f7f5;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ─── Screens ─────────────────────────────────────────────── */

.contact-screen {
  flex: 1;
  padding: 2.25rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  animation: cm-step 0.18s ease both;
}

@keyframes cm-step {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.contact-screen[hidden] { display: none; }

/* ─── Formular-Kopf ───────────────────────────────────────── */

.contact-form-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-form-head__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--avio-green, #1ea336);
  margin-bottom: 0.35rem;
}

.contact-form-head__sub {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.5;
}

/* ─── Formular ────────────────────────────────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.02em;
}

.contact-form__optional {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.32);
}

.contact-form__input {
  padding: 0.72rem 0.9rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0a0a0b;
  transition: border-color 0.14s, box-shadow 0.14s;
  width: 100%;
  -webkit-appearance: none;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--avio-green, #1ea336);
  box-shadow: 0 0 0 3px rgba(30, 163, 54, 0.1);
}

.contact-form__input::placeholder {
  color: rgba(0, 0, 0, 0.28);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 88px;
}

/* ─── Datenschutz-Checkbox ────────────────────────────────── */

.contact-form__check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  margin-top: 0.15rem;
}

.contact-form__checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-top: 0.05rem;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}

.contact-form__checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 163, 54, 0.15);
}

.contact-form__checkbox:checked {
  background: var(--avio-green, #1ea336);
  border-color: var(--avio-green, #1ea336);
}

.contact-form__checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 2px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.contact-form__check-text {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.55;
  margin-top: 0;
}

.contact-form__link {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form__link:hover {
  color: rgba(0, 0, 0, 0.85);
}

/* ─── Fehlermeldung ───────────────────────────────────────── */

.contact-form__error {
  font-size: 0.82rem;
  color: #c0392b;
  padding: 0.55rem 0.8rem;
  background: rgba(192, 57, 43, 0.07);
  border-radius: 7px;
  border: 1px solid rgba(192, 57, 43, 0.12);
}

/* ─── Submit-Button ───────────────────────────────────────── */

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ─── Trust-Strip ─────────────────────────────────────────── */

.contact-form__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding-top: 0.85rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.contact-form__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
}

.contact-form__trust-item svg {
  flex-shrink: 0;
  color: var(--avio-green, #1ea336);
}

/* ─── Erfolgs-Screen ──────────────────────────────────────── */

.contact-screen--success {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

.contact-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(30, 163, 54, 0.1);
  border: 2px solid rgba(30, 163, 54, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--avio-green, #1ea336);
  margin: 0 auto 1.5rem;
}

.contact-success__title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0a0a0b;
  margin-bottom: 0.75rem;
}

.contact-success__sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.48);
  max-width: 38ch;
  margin: 0 auto 2rem;
}

/* ─── Mobile ──────────────────────────────────────────────── */

@media (max-width: 680px) {
  .contact-modal {
    padding: 0;
    align-items: flex-end;
  }

  .contact-modal__card {
    flex-direction: column;
    max-width: 100%;
    max-height: 96svh;
    border-radius: 18px 18px 0 0;
  }

  .contact-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .contact-sidebar__inner {
    padding: 1.25rem 1.25rem 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    flex: 1;
  }

  .contact-sidebar__eyebrow {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .contact-sidebar__headline {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .contact-sidebar__sub,
  .contact-sidebar__list {
    display: none;
  }

  .contact-sidebar__footer {
    padding: 0.75rem 1.25rem;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    align-self: stretch;
    align-items: flex-start;
    padding-top: 1.25rem;
  }

  .contact-modal__close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .contact-screen {
    padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .contact-form__input {
    font-size: 1rem;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .contact-form__trust {
    gap: 0.35rem 0.75rem;
  }
}

.contact-form__privacy-note {
  font-size: 0.77rem;
  color: var(--c-gray-500);
  line-height: 1.5;
  margin-top: var(--space-xs);
}

.contact-form__privacy-note a {
  color: inherit;
  text-decoration: underline;
}
