/* ==========================================================================
   Anfrage: aufgeräumtes Formular links, persönliche Kontaktkarte rechts.
   ========================================================================== */

.contact-section .section__head { margin-bottom: var(--space-6); }

@media (min-width: 1100px) {
  .contact-section .form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Betreuungszeitraum: ein Feld, zwei Daten */
.field--range {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field--range legend { padding: 0; margin-bottom: 0.4rem; }
.range {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 30rem;
  min-height: 48px;
  padding: 0 0.6rem;
  border: 1.5px solid #9aa79f;
  border-radius: var(--radius-s);
  background: #fff;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.range:hover { border-color: var(--wiese); }
.range:focus-within { border-color: var(--wiese); box-shadow: 0 0 0 3px rgb(63 106 90 / 0.25); }
.range:has([aria-invalid="true"]) { border-color: var(--fehler); }
.field .range input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.field .range input:focus-visible { outline: none; box-shadow: none; }
.range__sep { flex: none; color: var(--torf-leise); font-size: var(--fs-sm); }

/* Leere Datumsfelder: statt des (in Safari irreführenden) heutigen Datums steht
   „Anreise wählen“ / „Abreise wählen“. Beim Anklicken erscheint die normale Eingabe. */
.date-field { position: relative; flex: 1; min-width: 0; display: flex; }
.date-field input { width: 100%; }
@supports selector(::-webkit-datetime-edit) {
  /* Safari färbt die einzelnen Datumsteile selbst: Eingabe und alle Teile transparent */
  .date-field input.is-empty:not(:focus),
  .date-field input.is-empty:not(:focus)::-webkit-datetime-edit,
  .date-field input.is-empty:not(:focus)::-webkit-datetime-edit-fields-wrapper,
  .date-field input.is-empty:not(:focus)::-webkit-datetime-edit-day-field,
  .date-field input.is-empty:not(:focus)::-webkit-datetime-edit-month-field,
  .date-field input.is-empty:not(:focus)::-webkit-datetime-edit-year-field,
  .date-field input.is-empty:not(:focus)::-webkit-datetime-edit-text { color: transparent; }
  .date-field:has(input.is-empty:not(:focus))::before {
    content: attr(data-empty-label);
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--torf-leise);
    font-size: 1rem;
    pointer-events: none;
  }
}

.contact-section textarea { min-height: 11.5rem; line-height: 1.6; }
@media (min-width: 961px) {
  .contact-section textarea { min-height: clamp(7rem, 18vh, 11.5rem); }
}

/* Kontaktkarte */
.contact-card {
  padding: var(--space-5);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(36 33 28 / 0.05), 0 24px 48px -30px rgb(36 33 28 / 0.5);
}
.contact-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.contact-card__head img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--himmel);
}
.contact-card__head h3 { margin: 0 0 0.15rem; font-size: var(--fs-md); }
.contact-card__head p { margin: 0; font-size: var(--fs-sm); color: var(--torf-leise); }

.contact-card__wa { width: 100%; }
.contact-card__wa svg { width: 20px; height: 20px; }

.contact-card__rows { margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.contact-card__rows a {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 0 var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--linie);
  color: var(--torf);
  text-decoration: none;
}
.contact-card__rows li:last-child a { border-bottom: 1px solid var(--linie); }
.contact-card__rows a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
.contact-card__rows strong { font-weight: 600; }
.contact-card__rows small { grid-column: 2; font-size: var(--fs-sm); color: var(--torf-leise); }
.contact-card__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--himmel);
  color: var(--wiese);
}
.contact-card__icon svg { width: 18px; height: 18px; }


.contact-card__address {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  font-size: var(--fs-sm);
  color: var(--torf-leise);
}
.contact-card__address svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--wiese); }

/* niedrige Laptop-Bildschirme: etwas enger, damit die Anfrage auf einen Bildschirm passt */
@media (min-width: 961px) and (max-height: 820px) {
  .contact-section .section__head { margin-bottom: var(--space-4); }
  .contact-card { padding-block: var(--space-4); }
  .contact-card__head { margin-bottom: var(--space-4); }
  .contact-card__head img { width: 56px; height: 56px; }
  .contact-card__rows a { padding-block: var(--space-2); }
  .contact-card__address { margin-top: var(--space-4); }
  .contact__side { gap: var(--space-3); }
}

/* Rechte Spalte: Kontaktkarte und darunter die Social-Box */
.contact__side { display: grid; gap: var(--space-4); }

/* Social-Box: auffällig in Tanne, mit kleinem Foto-Raster wie ein Instagram-Profil */
.social-card {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-radius: 20px;
  background: var(--wiese);
  color: #fff;
  box-shadow: 0 24px 48px -30px rgb(36 33 28 / 0.5);
}
.social-card__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
/* drei runde, überlappende Fotos wie Instagram-Storys */
.social-card__stories { display: flex; flex: none; }
.social-card__stories img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fffdf8;
  box-shadow: 0 0 0 2px var(--wiese);
}
.social-card__stories img + img { margin-left: -14px; }
.social-card h3 { margin: 0 0 0.1rem; color: #fff; font-size: var(--fs-md); hyphens: manual; -webkit-hyphens: manual; }
.social-card p { margin: 0; font-size: var(--fs-sm); color: #dfe7e2; }
.social-card__links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 999px;
  background: var(--nebel);
  color: var(--wiese);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}
.social-btn:hover { background: #fff; transform: translateY(-1px); }
.social-btn svg { width: 19px; height: 19px; }
/* Sehr schmale Handys: kleinere Story-Fotos, Buttons untereinander */
@media (max-width: 400px) {
  .social-card__head { gap: var(--space-3); }
  .social-card__stories img { width: 38px; height: 38px; }
  .social-card__stories img + img { margin-left: -12px; }
  .social-card__links { grid-template-columns: 1fr; }
}
