/* ================================================
   KONTAKT — Extrahiert aus mockups/astromantie-kontakt.jsx
   ================================================ */

/* ===== HERO ===== */
.astro-contact-hero {
  padding: 60px 48px 40px;
  text-align: center;
  background: var(--astro-hero-grad);
  transition: background 0.5s;
  position: relative;
  overflow: hidden;
}

.astro-contact-hero-title {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--astro-text);
  margin-bottom: 14px;
}

.astro-contact-hero-desc {
  font-size: 16px;
  color: var(--astro-text-mid);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== MAIN CONTACT SECTION ===== */
.astro-contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 48px;
}

/* Contact Form */
.astro-contact-form {
  animation: slideInLeft 0.7s ease-out both;
}

.astro-contact-form-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--astro-text);
  margin-bottom: 24px;
}

.astro-contact-form-group {
  margin-bottom: 20px;
}

.astro-contact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--astro-accent);
  margin-bottom: 8px;
}

.astro-contact-input,
.astro-contact-select,
.astro-contact-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--astro-input-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--astro-text);
  background: var(--astro-input-bg);
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.astro-contact-input:focus,
.astro-contact-select:focus,
.astro-contact-textarea:focus {
  border-color: rgba(167,139,250,0.5);
  background: rgba(255,255,255,0.08);
}

body.astro-light-theme .astro-contact-input:focus,
body.astro-light-theme .astro-contact-select:focus,
body.astro-light-theme .astro-contact-textarea:focus {
  border-color: rgba(201,168,76,0.4);
  background: #f9f7f3;
}

.astro-contact-select {
  appearance: none;
  cursor: pointer;
}

.astro-contact-select option {
  background: #141428;
  color: #ffffff;
}

body.astro-light-theme .astro-contact-select option {
  background: #ffffff;
  color: #2a2018;
}

.astro-contact-textarea {
  resize: vertical;
  min-height: 150px;
}

.astro-form-submit {
  width: 100%;
  padding: 15px 32px;
  border-radius: 12px;
  border: none;
  background: var(--astro-btn-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 20px var(--astro-accent-glow);
  transition: all 0.3s;
}

.astro-form-submit:hover {
  transform: translateY(-1px);
}

/* Contact Info */
.astro-contact-info {
  animation: slideInRight 0.7s ease-out both;
}

.astro-contact-info-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--astro-text);
  margin-bottom: 24px;
}

.astro-contact-info-block {
  padding: 24px;
  border-radius: 16px;
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-surface-border);
  margin-bottom: 16px;
  transition: all 0.3s;
}

.astro-contact-info-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.astro-contact-info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--astro-text);
  margin-bottom: 4px;
}

.astro-contact-info-value {
  font-size: 13px;
  color: var(--astro-text-mid);
}

.astro-contact-info-value a {
  color: var(--astro-accent);
}

/* ===== INFO CARDS ===== */
.astro-contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 48px 60px;
}

.astro-contact-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-surface-border);
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}

.astro-contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--astro-accent-glow);
}

.astro-contact-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.astro-contact-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--astro-text);
  margin-bottom: 6px;
}

.astro-contact-card-desc {
  font-size: 12px;
  color: var(--astro-text-mid);
  line-height: 1.5;
  margin: 0;
}

/* ===== SOCIAL ICONS (in Card) ===== */
.astro-contact-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.astro-contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
  text-decoration: none;
}

.astro-contact-social a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

body.astro-light-theme .astro-contact-social a {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

body.astro-light-theme .astro-contact-social a:hover {
  background: rgba(201,168,76,0.15);
}

/* TikTok icon: theme-aware fill */
.astro-contact-social .astro-social-tiktok-kontakt svg {
  color: #e8e8e8;
}

body.astro-light-theme .astro-contact-social .astro-social-tiktok-kontakt svg {
  color: #000000;
}

/* ===== CONTACT FORM 7 OVERRIDES ===== */
/* CF7 generiert eigene Wrapper — diese unsichtbar machen damit unser Design greift */

/* CF7 form tag: kein eigenes Styling */
.wpcf7 .wpcf7-form {
  margin: 0;
  padding: 0;
}

/* CF7 generiert <p> Tags UND <br> zwischen Label und Input — beides entfernen */
.wpcf7 .astro-contact-form-group p {
  margin: 0;
  padding: 0;
  line-height: inherit;
}

/* CF7 fügt <br> zwischen Label und Input ein — ausblenden */
.wpcf7 .astro-contact-form-group p br {
  display: none;
}

/* CF7 wraps inputs in <span class="wpcf7-form-control-wrap"> — reset */
.wpcf7-form-control-wrap {
  display: block;
  margin: 0;
  padding: 0;
}

/* Label direkt am Input */
.wpcf7 .astro-contact-label {
  margin-bottom: 6px;
}

/* CF7-generierte Inputs erben unsere Klassen via class: im Shortcode,
   aber falls CF7 eigene Styles injiziert, überschreiben wir sie hier */
.wpcf7 .astro-contact-input,
.wpcf7 .astro-contact-select,
.wpcf7 .astro-contact-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--astro-input-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--astro-text);
  background: var(--astro-input-bg);
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.wpcf7 .astro-contact-input:focus,
.wpcf7 .astro-contact-select:focus,
.wpcf7 .astro-contact-textarea:focus {
  border-color: rgba(167,139,250,0.5);
  background: rgba(255,255,255,0.08);
}

body.astro-light-theme .wpcf7 .astro-contact-input:focus,
body.astro-light-theme .wpcf7 .astro-contact-select:focus,
body.astro-light-theme .wpcf7 .astro-contact-textarea:focus {
  border-color: rgba(201,168,76,0.4);
  background: #f9f7f3;
}

/* CF7 Submit-Button */
.wpcf7 .astro-form-submit {
  width: 100%;
  padding: 15px 32px;
  border-radius: 12px;
  border: none;
  background: var(--astro-btn-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 20px var(--astro-accent-glow);
  transition: all 0.3s;
}

.wpcf7 .astro-form-submit:hover {
  transform: translateY(-1px);
}

/* CF7 Spinner ausblenden */
.wpcf7 .wpcf7-spinner {
  display: none;
}

/* CF7 Validierungs-Meldungen: Astromantie-konform */
.wpcf7 .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 11px;
  margin-top: 6px;
  display: block;
}

/* CF7 Erfolgs-/Fehlermeldung */
.wpcf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.wpcf7 .wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.08);
  color: #22c55e;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
  color: #ef4444;
}

.wpcf7 form.invalid .wpcf7-response-output {
  border: 1px solid rgba(234,179,8,0.3);
  background: rgba(234,179,8,0.08);
  color: #eab308;
}

/* CF7 Select: appearance reset (CF7 kann appearance überschreiben) */
.wpcf7 .astro-contact-select {
  appearance: none;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .astro-contact-hero {
    padding: 40px 20px 30px;
  }

  .astro-contact-hero-title {
    font-size: 28px;
  }

  .astro-contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }

  .astro-contact-cards {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }
}
