/* contact.css - scoped styles for contact section */
/* Font is loaded in HTML; this file uses Poppins */

/* Reset / global fix */
.cs-wrapper, .cs-wrapper * {
  box-sizing: border-box; /* verhindert, dass padding die Breite sprengt */
}

/* Wrapper */
.cs-wrapper {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* SECTION */
.cs-section {
  padding: 48px 20px;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, rgba(240,246,255,0.9), rgba(255,255,255,0.95));
  overflow-x: hidden; /* 🔧 kein horizontaler Scroll auf Mobile */
}

/* CARD */
.cs-card {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,253,255,0.96));
  box-shadow: 0 12px 40px rgba(6,18,40,0.08), inset 0 -4px 18px rgba(10,102,230,0.02);
  border: 1px solid rgba(10,102,230,0.06);
  position: relative;
  overflow: hidden; /* verhindert Überlauf */
}

/* organic shapes behind card (subtle) */
.cs-card::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(10,102,230,0.12), transparent 35%),
              linear-gradient(90deg, rgba(11,118,255,0.06), transparent);
  filter: blur(30px);
  transform: rotate(10deg);
  pointer-events: none;
  border-radius: 48%;
  z-index: 0;
}

/* Responsive: Tablet & smaller */
@media (max-width: 980px) {
  .cs-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .cs-card::before { display: none; }

  /* 🔧 sorgt dafür, dass die rechte Box unter der linken erscheint */
  .cs-info-pane {
    order: 2;
    width: 100%;
  }
  .cs-form-pane {
    order: 1;
    width: 100%;
  }
}

/* LEFT (FORM) */
.cs-form-pane {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  width: 100%; /* 🔧 füllt volle Breite auf kleineren Screens */
}

.cs-intro { margin-bottom: 12px; }
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #084db6;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(10,102,230,0.06), rgba(10,102,230,0.02));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
}
.cs-title { font-size: 26px; margin: 10px 0 6px; color: #072c5b; }
.cs-sub { margin: 0 0 12px; color: #475569; font-weight: 300; }

/* FORM ROW / LABEL / INPUTS */
.cs-form { display: flex; flex-direction: column; gap: 12px; }
.cs-row { display: flex; flex-direction: column; }
.cs-label {
  font-size: 13px;
  color: #0b2a4a;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.cs-label i { color: #0a66e6; }

/* Inputs */
.cs-input,
.cs-textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(13,25,40,0.07);
  background: linear-gradient(180deg,#ffffff,#fbfdff);
  color: #062033;
  transition: box-shadow .18s ease, border-color .18s ease, transform .08s ease;
  box-shadow: 0 6px 18px rgba(9,19,35,0.03);
  width: 100%;
  max-width: 100%;
}

.cs-input:focus,
.cs-textarea:focus {
  outline: none;
  border-color: #0a66e6;
  box-shadow: 0 12px 30px rgba(10,102,230,0.12);
  transform: translateY(-1px);
}

.cs-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Buttons */
.cs-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg,#0a66e6,#084db6);
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(10,102,230,0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cs-btn-primary:active { transform: translateY(1px); }
.cs-btn-primary[disabled] { opacity:.6; cursor:not-allowed; transform:none; }

.cs-btn-ghost {
  background: transparent;
  color: #084db6;
  border: 1px solid rgba(10,102,230,0.08);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* small note */
.cs-note { color: #6b7280; font-size: 13px; margin-left: 6px; }

/* RIGHT (INFO) */
.cs-info-pane {
  position: relative;
  z-index: 1;
  width: 100%;
}
.cs-info-card {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg,#f8fbff,#ffffff);
  box-shadow: 0 10px 28px rgba(6,18,40,0.06);
  border: 1px solid rgba(10,102,230,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

/* Hero */
.cs-info-hero { text-align: center; }
.cs-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,#0a66e6,#2ea0ff);
  color: white;
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(10,102,230,0.16);
  margin-bottom: 10px;
}
.cs-info-title { font-weight: 700; color: #072c5b; font-size: 18px; }
.cs-info-sub { color: #475569; font-size: 13px; }

/* contact items */
.cs-contact-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.cs-contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #063047;
  background: linear-gradient(90deg, rgba(10,102,230,0.03), transparent);
}
.cs-contact-row .cs-ico {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(10,102,230,0.08);
  color: #064a93;
}
.cs-contact-row .cs-text { font-weight: 600; font-size: 14px; }

/* socials */
.cs-socials { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.cs-socials a { color: #084db6; font-size: 18px; text-decoration: none; }

/* small privacy row */
.cs-privacy .cs-text { font-weight: 500; color: #0b2a4a; }

/* toast container (top-right) */
.cs-toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
}

/* toast */
.cs-toast {
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(2,6,23,0.12);
  animation: cs-toast-in .35s cubic-bezier(.2,.9,.3,1);
}
.cs-toast.ok { background: linear-gradient(90deg,#16a34a,#059669); }
.cs-toast.err { background: linear-gradient(90deg,#dc2626,#ef4444); }

@keyframes cs-toast-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* accessible helpers */
.cs-visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* honeypot hidden field */
.cs-hp { display: none; }

/* entrance animations */
.cs-anim-in { opacity: 0; transform: translateY(18px) scale(.995); animation: cs-fade-up .6s ease forwards; }
.cs-anim-in-delay { opacity: 0; transform: translateY(22px) scale(.995); animation: cs-fade-up .75s ease forwards; animation-delay: .12s; }
@keyframes cs-fade-up { to { opacity: 1; transform: translateY(0) scale(1); } }

/* small screens adjustments */
/* === MOBILE FIX (Überlauf & Textabschneiden) === */
/* === MOBILE FIX (sauberer Innenabstand + kein Überlauf) === */
@media (max-width: 600px) {
  /* verhindert horizontales Scrollen */
  .cs-section, .cs-card, .cs-wrapper {
    overflow-x: hidden;
  }

  /* Karte füllt Bildschirmbreite korrekt */
  .cs-card {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  /* gleichmäßiger Innenabstand im Formular */
  .cs-form-pane {
    width: 100%;
    padding: 0 10px 10px 10px; /* 👈 sorgt für "Luft" links/rechts/unten */
    margin: 0;
  }

  /* Eingabefelder passen sich Containerbreite an, mit sicherem Rand */
  .cs-input,
  .cs-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    padding: 12px 14px;
    margin: 0;
  }

  /* Labels und Texte sauber umbrechen */
  .cs-title,
  .cs-sub,
  .cs-label {
    white-space: normal;
    word-break: break-word;
  }

  /* Kein Überlauf der Formulargruppen */
  .cs-row {
    width: 100%;
    margin: 0;
  }

  /* Info-Box unterhalb, volle Breite */
  .cs-info-pane {
    order: 2;
    width: 100%;
  }

  .cs-info-card {
    margin-top: 16px;
    width: 100%;
  }
}
