/* ════════════════════════════════════════════
   style-contact.css – MyStudy Kontakt & Newsletter
   Setzt style-main.css voraus
   ════════════════════════════════════════════ */

/* ─── NAVBAR aktiver Link ─── */
.nav-active {
  background: rgba(117, 208, 43, 0.1) !important;
  color: var(--g3) !important;
}

/* ════════════════════════════════════════════
   KONTAKT-HEADER
   ════════════════════════════════════════════ */
#contact-header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.cth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.cth-blob-1 {
  width: clamp(300px, 55vw, 700px);
  height: clamp(300px, 55vw, 700px);
  background: radial-gradient(var(--g1), transparent);
  top: -10%;
  right: -5%;
}
.cth-blob-2 {
  width: clamp(200px, 35vw, 480px);
  height: clamp(200px, 35vw, 480px);
  background: radial-gradient(var(--g2), transparent);
  bottom: -8%;
  left: -3%;
  opacity: 0.16;
}
.cth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(76, 169, 17, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}

.cth-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: clamp(80px, 10vw, 120px) 0;
}

.cth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(117, 208, 43, 0.12);
  border: 1px solid rgba(117, 208, 43, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--g4);
  margin-bottom: 24px;
}
.cth-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--g2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.cth-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -2.5px;
  line-height: 1;
  margin-bottom: 22px;
  animation: fadeUp 0.55s 0.08s both;
}
.cth-title .hl {
  color: var(--g3);
  position: relative;
  display: inline-block;
}
.cth-title .hl::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0; right: 0;
  height: 5px;
  background: var(--g1);
  border-radius: 3px;
  z-index: -1;
  opacity: 0.65;
}

.cth-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 40px;
  animation: fadeUp 0.55s 0.16s both;
}

/* Kontaktkarte */
.cth-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-card);
  padding: 8px 0;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.55s 0.24s both;
  max-width: 480px;
}
.cth-card-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
}
.cth-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0 28px;
}
.cth-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cth-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: #256800;
}
.cth-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}
.cth-card-value {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  transition: color var(--transition);
}
a.cth-card-value:hover { color: var(--g3); }

/* ════════════════════════════════════════════
   NEWSLETTER SECTION
   ════════════════════════════════════════════ */
#newsletter {
  background: linear-gradient(135deg, var(--g3) 0%, var(--g4) 100%);
  padding: clamp(70px, 10vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
#newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(255,255,255,0.07), transparent);
}
#newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.nl-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Linke Spalte */
.nl-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.nl-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-align: left;
}
.nl-perks li svg {
  width: 16px;
  height: 16px;
  stroke: var(--g1);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Rechte Spalte: Karte */
.nl-card {
  background: var(--white);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.18);
}
.nl-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.nl-card-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.nl-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #256800;
}
.nl-card-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.nl-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Felder */
.nl-field {
  margin-bottom: 18px;
  position: relative;
}
.nl-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.nl-input,
.nl-select {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid #ddf0c0;
  border-radius: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.nl-input:focus,
.nl-select:focus {
  border-color: var(--g2);
  box-shadow: 0 0 0 3px rgba(117, 208, 43, 0.15);
}
.nl-input.error,
.nl-select.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.nl-field:has(.nl-select)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  pointer-events: none;
}

/* Fehlermeldungen */
.nl-error {
  display: none;
  font-size: 11px;
  color: #e74c3c;
  margin-top: 5px;
}
.nl-error.visible { display: block; }

/* Consent */
.nl-consent { margin-bottom: 20px; }
.nl-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.nl-checkbox-wrap input[type="checkbox"] { display: none; }
.nl-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddf0c0;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nl-checkbox-wrap input[type="checkbox"]:checked + .nl-checkmark {
  background: var(--g3);
  border-color: var(--g3);
}
.nl-checkbox-wrap input[type="checkbox"]:checked + .nl-checkmark::after {
  content: "✓";
  font-size: 11px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.nl-consent-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Cloudflare Turnstile */
.nl-captcha-wrap {
  margin-bottom: 18px;
}

/* Submit-Button */
.nl-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--g3);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 18px;
}
.nl-submit:hover {
  background: var(--g4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(76, 169, 17, 0.32);
}
.nl-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.nl-submit svg { width: 16px; height: 16px; flex-shrink: 0; }

.nl-disclaimer {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.nl-disclaimer a { color: var(--g3); font-weight: 500; text-decoration: underline; }

/* Erfolgs-Status */
.nl-success { display: none; text-align: center; padding: 20px 0 10px; }
.nl-success.visible { display: block; }
.nl-success-icon { font-size: 48px; margin-bottom: 16px; }
.nl-success-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--g3);
  margin-bottom: 10px;
}
.nl-success-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nl-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nl-left { text-align: center; }
  .nl-perks {
    align-items: flex-start;
    width: fit-content;
    margin: 28px auto 0;
  }
}
@media (max-width: 1090px) {
  #contact-header { min-height: unset; align-items: flex-start; }
  .cth-inner { padding: 36px 0 28px; }

  #newsletter { padding: 52px 0; }
  .nl-card {
    border-radius: 20px;
    padding: 24px 20px;
  }
  .nl-card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .nl-captcha-wrap { overflow: hidden; }
}
@media (max-width: 600px) {
  .cth-card { max-width: 100%; }
  .cth-card-row { padding: 16px 20px; }
  .cth-divider { margin: 0 20px; }

  .nl-card { padding: 20px 16px; }
  .nl-submit { font-size: 14px; padding: 13px 20px; }
}
