/* ======================================
   Contact Page – scoped
   Scope: .site-contact …
   ====================================== */

.site-contact {
  --radius-card: 16px;
  --radius-field: 12px;
  --c-border: rgba(185, 198, 255, 0.3);
  --c-border-soft: rgba(185, 198, 255, 0.2);
  --c-border-field: rgba(185, 198, 255, 0.35);
  --c-text: #e9ecff;
  --c-text-weak: #cfd6ff;
  --c-bg-1: rgba(16, 20, 36, 0.92);
  --c-bg-2: rgba(10, 12, 24, 0.96);
  --c-sheen: rgba(124, 113, 255, 0.16);

  color: var(--c-text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial;
  padding: 16px 0 24px;
  min-height: 80vh;
  background: url(../img/background-one.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* container schmaller als Bootstrap default */
.site-contact .contact-container {
  max-width: 820px;
  margin: auto;
}

/* ---------- Header ---------- */
.site-contact .contact-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.site-contact .contact-badge {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-border-field);
  background: linear-gradient(
    180deg,
    rgba(26, 30, 48, 0.85),
    rgba(16, 20, 36, 0.85)
  );
  color: #9eaaff;
}
.site-contact .contact-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #f3f5ff;
  text-shadow: 0 0 16px rgba(124, 113, 255, 0.25);
}
.site-contact .contact-subtitle {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--c-text-weak);
  font-size: 14px;
}

/* ---------- Card ---------- */
.site-contact .contact-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  background: radial-gradient(
      120% 120% at 15% -10%,
      var(--c-sheen),
      transparent 60%
    ),
    linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 18px 18px 16px;
}

/* ---------- Sections ---------- */
.site-contact .contact-section {
  margin-top: 12px;
}
.site-contact .section-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-weak);
  letter-spacing: 0.25px;
}

/* ---------- Labels & Controls ---------- */
.site-contact .form-label {
  color: var(--c-text-weak);
  font-size: 13px;
  margin-bottom: 6px;
}
.site-contact .form-control {
  border-radius: var(--radius-field);
  border: 1px solid var(--c-border-field);
  background: linear-gradient(
    180deg,
    rgba(26, 30, 48, 0.85),
    rgba(16, 20, 36, 0.85)
  );
  color: var(--c-text);
  height: 30px;
  margin-top: 10px;
  padding: 0px 6px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}
.site-contact textarea.form-control {
  height: auto;
  min-height: 140px;
  resize: vertical;
  width: 95%;
}
.site-contact .form-control::placeholder {
  color: var(--c-text-weak);
  opacity: 0.9;
}

.site-contact .form-control:hover,
.site-contact .form-control:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 22px rgba(80, 110, 220, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: linear-gradient(
    180deg,
    rgba(32, 36, 60, 0.9),
    rgba(18, 22, 42, 0.9)
  );
}

/* Fehlermeldungen */
.site-contact .text-danger {
  font-size: 12px;
  margin-top: 4px;
}

/* Alert */
.site-contact .contact-alert.alert-success {
  margin-bottom: 12px;
  border-radius: var(--radius-field);
  color: #d9ffe6;
  background: rgba(10, 60, 30, 0.35);
  border-color: rgba(10, 120, 60, 0.45);
}

/* ---------- Actions ---------- */
.site-contact .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Primärbutton (Bootstrap .btn-primary veredeln) */
.site-contact .contact-submit.btn-primary {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;

  border: 1px solid rgba(200, 210, 255, 0.55);
  background: linear-gradient(
      180deg,
      rgba(114, 132, 255, 0.35),
      rgba(114, 132, 255, 0.15)
    ),
    linear-gradient(180deg, rgba(18, 24, 42, 0.95), rgba(14, 18, 32, 0.95));
  color: #f2f4ff;
  font-weight: 700;
  letter-spacing: 0.35px;
  border-radius: var(--radius-field);
  box-shadow: 0 12px 24px rgba(80, 110, 220, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, background 0.18s ease;
}
.site-contact .contact-submit.btn-primary:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 230, 255, 0.9);
  box-shadow: 0 16px 30px rgba(90, 120, 240, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Sekundärbutton */
.site-contact .contact-cancel.btn-light {
  border-radius: var(--radius-field);
  border: 1px solid var(--c-border-soft);
  background: linear-gradient(
    180deg,
    rgba(26, 30, 48, 0.85),
    rgba(16, 20, 36, 0.85)
  );
  color: var(--c-text);
  padding: 5px
}
.site-contact .contact-cancel.btn-light:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(
    180deg,
    rgba(36, 40, 64, 0.9),
    rgba(20, 24, 42, 0.9)
  );
}

/* Fokus sichtbar (A11y) */
.site-contact .form-control:focus-visible,
.site-contact .contact-submit:focus-visible,
.site-contact .contact-cancel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  .site-contact .contact-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-contact .contact-header {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .site-contact .contact-title {
    font-size: 22px;
  }
}
