/* ============================================================
   anfrage-modal.css — Popup form for service-specific inquiries
   ============================================================ */

.anfrage-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.anfrage-modal.is-open { display: flex; }

.anfrage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 60, 0.55);
  animation: amFade 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anfrage-modal__panel {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(13, 31, 60, 0.30);
  overflow-y: auto;
  animation: amSlideUp 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 640px) {
  .anfrage-modal { align-items: flex-end; }
  .anfrage-modal__panel {
    margin: 0;
    max-width: none;
    max-height: 94vh;
    border-radius: 6px 6px 0 0;
    animation: amSlideUpMobile 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

.anfrage-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 300;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 2;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.anfrage-modal__close:hover { background: var(--gray-100); color: var(--gray-900); }

.anfrage-modal__body {
  padding: 32px 28px 26px;
}

.anfrage-modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.anfrage-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin: 0 0 8px;
  line-height: 1.2;
}

.anfrage-modal__intro {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0 0 22px;
}

/* ── Form ── */
.anfrage-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.anfrage-row { display: flex; flex-direction: column; gap: 14px; }
.anfrage-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) {
  .anfrage-row--two { grid-template-columns: 1fr; }
}

.anfrage-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anfrage-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.005em;
}

.anfrage-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}
.anfrage-input::placeholder { color: var(--gray-400); }
.anfrage-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.15);
}

select.anfrage-input { cursor: pointer; }

.anfrage-textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

.anfrage-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 4px;
}

.anfrage-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #495262;
  margin-top: 4px;
}
.anfrage-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #1a4f8b;
  cursor: pointer;
}
.anfrage-consent label { cursor: pointer; user-select: none; }
.anfrage-consent a {
  color: #1a4f8b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.anfrage-consent--err { color: #b91c1c; }
.anfrage-consent--err input[type="checkbox"] { outline: 2px solid #dc2626; outline-offset: 2px; }

.anfrage-submit {
  margin-top: 4px;
  padding: 14px 24px;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.anfrage-submit:hover:not(:disabled) { background: var(--blue-700); }
.anfrage-submit:active:not(:disabled) { transform: scale(0.99); }
.anfrage-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.anfrage-privacy {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.5;
  margin: 4px 0 0;
}
.anfrage-privacy a { color: var(--blue-600); text-decoration: underline; }

/* ── Success state ── */
.anfrage-success {
  text-align: center;
  padding: 20px 0 8px;
}
.anfrage-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 50%;
}
.anfrage-success__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin: 0 0 8px;
}
.anfrage-success__text {
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0 auto 22px;
  max-width: 36ch;
}

@keyframes amFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes amSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes amSlideUpMobile {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .anfrage-modal__panel,
  .anfrage-modal__backdrop {
    animation: none !important;
  }
}

/* ============================================================
   Vorsorge-Picker — package chooser modal
   ============================================================ */
.vp-panel { max-width: 640px; }

.vp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.vp-row {
  border: 1px solid var(--gray-200, #e0e2e8);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--white);
  transition: border-color 150ms, box-shadow 150ms;
}
.vp-row:hover {
  border-color: var(--blue-300, #93b4d4);
  box-shadow: 0 2px 8px rgba(13, 31, 60, 0.06);
}
.vp-row--featured {
  border-color: var(--blue-600, #1a4f8b);
  background: #f6fafd;
}

.vp-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.vp-row__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vp-row__code {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-600, #1a4f8b);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vp-row__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-900, #1a1a2e);
  letter-spacing: -0.01em;
}
.vp-row__variant {
  color: var(--gray-500, #636d7e);
  font-weight: 500;
}
.vp-row__sub {
  font-size: 12.5px;
  color: var(--gray-500, #636d7e);
  margin-top: 2px;
}

.vp-row__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900, #1a1a2e);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.vp-row__price small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-500, #636d7e);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}

.vp-row__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vp-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms, transform 100ms;
  font-family: inherit;
}
.vp-btn:active { transform: scale(0.98); }
.vp-btn:disabled { opacity: 0.55; cursor: wait; }

.vp-btn--ghost {
  border-color: var(--gray-300, #c3c8d2);
  color: var(--gray-700, #2e3545);
}
.vp-btn--ghost:hover {
  border-color: var(--blue-600, #1a4f8b);
  color: var(--blue-600, #1a4f8b);
  background: #f4f8fc;
}

.vp-btn--primary {
  background: var(--blue-600, #1a4f8b);
  color: #fff;
}
.vp-btn--primary:hover {
  background: var(--blue-700, #143e6e);
}

@media (max-width: 520px) {
  .vp-row__head { flex-wrap: wrap; }
  .vp-row__actions { grid-template-columns: 1fr; }
  .vp-row__price { font-size: 15px; }
}
