/* ==========================================================================
   Woman & Health · Service-Formulare (README §105, 30.11.2026)
   Gilt nur innerhalb von .whsf (html-Elemente der Service-Seiten 519–599).
   Eingebunden direkt im jeweiligen Element, dazu js/wh-serviceform.js.
   ========================================================================== */

.whsf {
  --whsf-gold: #BFA26E;
  --whsf-gold-d: #8c7244;
  --whsf-ink: #2f2a26;
  --whsf-muted: #6b625a;
  --whsf-line: #d9cebd;
  --whsf-bg: #f7f3ec;
  --whsf-soft: #fbf8f2;
  --whsf-err: #b3261e;
  background: var(--whsf-bg);
  padding: 64px 16px 80px;
  box-sizing: border-box;
  color: var(--whsf-ink);
}
.whsf *, .whsf *::before, .whsf *::after { box-sizing: border-box; }
.whsf__inner { max-width: 880px; margin: 0 auto; }

/* Kopf */
.whsf__head { margin: 0 0 28px; padding: 0 4px; }
.whsf__eyebrow {
  font-family: "chalet-london-sixty", sans-serif;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--whsf-gold-d); margin: 0 0 10px;
}
.whsf.typo .whsf__head h2 { margin: 0 0 12px; }
.whsf .whsf__head p { font-size: 17px; line-height: 1.6; margin: 0 0 10px; color: var(--whsf-ink); }
.whsf__notes { display: grid; gap: 10px; margin: 16px 0 0; }
.whsf .whsf__head .whsf__note {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, .75); border: 1px solid #e6dac6; border-radius: 12px; padding: 13px 16px;
  font-size: 15px; line-height: 1.5; margin: 0; color: var(--whsf-ink);
}
.whsf__note svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; color: var(--whsf-gold-d); }

/* Karte */
.whsf__card {
  background: #fff; border-radius: 20px; padding: 36px;
  box-shadow: 0 1px 2px rgba(47, 42, 38, .06), 0 12px 32px rgba(47, 42, 38, .07);
}
.whsf .whsf__sec { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
.whsf .whsf__sec:last-of-type { margin-bottom: 0; }
.whsf .whsf__sec[hidden] { display: none; }
.whsf__sec > legend, .whsf__legend {
  display: block; width: 100%;
  font-family: "chalet-london-sixty", sans-serif;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--whsf-gold-d); margin: 0 0 16px; padding: 0 0 10px;
  border-bottom: 1px solid #efe7da;
}

/* Raster */
.whsf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.whsf__f { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.whsf__f--full { grid-column: 1 / -1; }
.whsf__lab {
  display: block; font-size: 15px; line-height: 1.35; font-weight: 600;
  color: var(--whsf-ink); margin: 0 0 8px; padding: 0;
}
.whsf__req { color: var(--whsf-gold-d); margin-left: 2px; }
.whsf__opt { font-weight: 400; color: var(--whsf-muted); font-size: 14px; }
.whsf .whsf__hint { font-size: 14px; line-height: 1.45; color: var(--whsf-muted); margin: 7px 0 0; }

/* Felder */
.whsf input[type=text], .whsf input[type=email], .whsf input[type=tel], .whsf input[type=date],
.whsf select, .whsf textarea {
  display: block; width: 100%; height: auto; min-height: 54px; margin: 0;
  padding: 14px 16px;
  font-family: "chalet-paris-sixty", sans-serif; font-size: 17px; line-height: 1.4;
  color: var(--whsf-ink); background-color: #fff;
  border: 1.5px solid var(--whsf-line); border-radius: 12px;
  box-shadow: none; outline: 0;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.whsf input[type=date] { min-width: 0; }
.whsf input[type=date]::-webkit-date-and-time-value { text-align: left; }
.whsf input[type=date]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.whsf textarea { min-height: 150px; resize: vertical; }
.whsf select {
  padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238c7244' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 9px;
}
.whsf select:invalid, .whsf select.is-empty { color: #8a8077; }
.whsf select option, .whsf select optgroup { color: var(--whsf-ink); }
.whsf input::placeholder, .whsf textarea::placeholder { color: #9b9188; opacity: 1; }
.whsf input:hover, .whsf select:hover, .whsf textarea:hover { border-color: #c9b994; }
.whsf input:focus, .whsf select:focus, .whsf textarea:focus {
  border-color: var(--whsf-gold);
  box-shadow: 0 0 0 4px rgba(191, 162, 110, .24);
}
.whsf input[readonly] { background-color: var(--whsf-soft); }
.whsf input.is-invalid, .whsf select.is-invalid, .whsf textarea.is-invalid,
.whsf input.is-invalid:hover, .whsf select.is-invalid:hover, .whsf textarea.is-invalid:hover { border-color: var(--whsf-err); background-color: #fffafa; }
.whsf input.is-invalid:focus, .whsf select.is-invalid:focus, .whsf textarea.is-invalid:focus { border-color: var(--whsf-err); box-shadow: 0 0 0 4px rgba(179, 38, 30, .16); }
.whsf .whsf__err { display: none; color: var(--whsf-err); font-size: 14px; line-height: 1.4; margin: 7px 0 0; }
.whsf .whsf__f.has-err .whsf__err { display: block; }

/* Auswahl-Kacheln (Radio / Checkbox) */
.whsf__choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.whsf__choices--2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.whsf__choices--1 { grid-template-columns: 1fr; }
.whsf__choice {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  min-height: 54px; margin: 0; padding: 15px 16px;
  font-size: 16px; line-height: 1.35; font-weight: 400; color: var(--whsf-ink);
  background: #fff; border: 1.5px solid var(--whsf-line); border-radius: 12px;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.whsf__choice:hover { border-color: #c9b994; }
.whsf__choice input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.whsf__dot {
  flex: 0 0 20px; width: 20px; height: 20px; margin-top: 0;
  border: 2px solid #b9aa90; border-radius: 50%; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.whsf__choice input[type=checkbox] + .whsf__dot { border-radius: 6px; }
.whsf__choice input:checked + .whsf__dot {
  border-color: var(--whsf-gold-d); box-shadow: inset 0 0 0 4px #fff; background: var(--whsf-gold-d);
}
.whsf__choice input[type=checkbox]:checked + .whsf__dot {
  box-shadow: none;
  background: var(--whsf-gold-d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 10px;
}
.whsf__choice input:focus-visible + .whsf__dot { box-shadow: 0 0 0 4px rgba(191, 162, 110, .35); }
.whsf__choice input:checked:focus-visible + .whsf__dot { box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px rgba(191, 162, 110, .35); }
.whsf__choice.is-checked, .whsf__choice:has(input:checked) { border-color: var(--whsf-gold); background: var(--whsf-soft); }
.whsf__choice small { display: block; color: var(--whsf-muted); font-size: 14px; margin-top: 3px; }
.whsf__f.has-err .whsf__choice { border-color: #e2b4b0; }

/* Rechnung aus der Mahn-Mail */
.whsf__inv {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 0 0 28px; padding: 16px 18px;
  background: var(--whsf-soft); border: 1.5px solid #e6d9c1; border-radius: 14px;
  font-size: 16px; line-height: 1.5;
}
.whsf__inv[hidden] { display: none; }
.whsf__inv svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--whsf-gold-d); margin-top: 1px; }
.whsf__inv strong { font-weight: 600; }
.whsf .whsf__inv p { margin: 0; font-size: 16px; line-height: 1.5; }
.whsf .whsf__inv .whsf__inv-ok { margin-top: 6px; color: #2e6b3a; }

/* Rezept: weitere Medikamente */
.whsf__med { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px 16px; margin: 0 0 14px; }
.whsf__med[hidden] { display: none; }
.whsf__more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 2px 0 0; padding: 0 18px;
  font-family: "chalet-london-sixty", sans-serif; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--whsf-gold-d); background: transparent; border: 1.5px dashed #cdb98f; border-radius: 999px; cursor: pointer;
}
.whsf__more:hover { background: var(--whsf-soft); border-style: solid; }
.whsf__more[hidden] { display: none; }

/* Fehlerhinweis über dem Absenden */
.whsf .whsf__alert {
  display: none; margin: 24px 0 0; padding: 14px 16px; border-radius: 12px;
  background: #fdf2f1; color: var(--whsf-err); font-size: 15px; line-height: 1.45;
}
.whsf .whsf__alert.is-on { display: block; }

/* Fuß: Absenden + Datenschutz */
.whsf__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  margin: 32px 0 0; padding: 28px 0 0; border-top: 1px solid #efe7da;
}
.whsf__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; min-width: 240px; margin: 0; padding: 0 36px;
  font-family: "chalet-london-sixty", sans-serif; font-size: 16px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--whsf-ink); background: linear-gradient(180deg, #d7c093 0%, var(--whsf-gold) 100%);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(140, 114, 68, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-appearance: none; appearance: none;
}
.whsf__btn:hover { filter: brightness(1.04); box-shadow: 0 8px 22px rgba(140, 114, 68, .32); }
.whsf__btn:active { transform: translateY(1px); }
.whsf__btn:focus-visible { outline: 3px solid var(--whsf-ink); outline-offset: 3px; }
.whsf__btn[disabled] { cursor: progress; filter: grayscale(.2); opacity: .8; }
.whsf__btn svg { width: 18px; height: 18px; }
.whsf .whsf__privacy { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--whsf-muted); }
.whsf .whsf__privacy a { text-decoration: underline; }   /* Farbe: .typo p a ist seitenweit !important schwarz */
.whsf .whsf__legal { margin: 0; font-size: 14px; line-height: 1.4; color: var(--whsf-muted); }

/* Mobil */
@media (max-width: 720px) {
  .whsf { padding: 40px 12px 56px; }
  .whsf__card { padding: 24px 18px; border-radius: 16px; }
  .whsf__grid { grid-template-columns: 1fr; gap: 18px; }
  .whsf__choices, .whsf__choices--2, .whsf__choices--1 { grid-template-columns: 1fr; }
  .whsf__med { grid-template-columns: 1fr; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #efe7da; }
  .whsf__btn { width: 100%; min-width: 0; }
  .whsf .whsf__head p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .whsf * { transition: none !important; }
}
