/* ============================
   HORMON-SCHNELLTEST – WordPress Plugin CSS
   Frauen Ärztinnen Konstanz
   Alle Klassen mit .hq- Präfix um Konflikte zu vermeiden
   ============================ */

/* Avenir direkt von der Praxis-Domain */
@font-face {
  font-family: 'avenir-light';
  src: url('https://frauenaerztinnen-konstanz.de/wp-content/uploads/2024/07/Avenir-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'avenir';
  src: url('https://frauenaerztinnen-konstanz.de/wp-content/uploads/2024/07/Avenir-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'avenir-black';
  src: url('https://frauenaerztinnen-konstanz.de/wp-content/uploads/2024/07/Avenir-Black.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- WRAPPER ---- */
.hq-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 0;
  font-family: 'avenir-light', 'Avenir', sans-serif;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

/* ---- PROGRESS ---- */
.hq-progress-bar-wrap {
  height: 3px;
  background: #e9dad2;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.hq-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff7175, #19478d);
  border-radius: 999px;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hq-progress-label {
  font-family: 'avenir-black', 'Avenir', sans-serif;
  font-size: 0.75rem;
  color: #8f8f8f;
  text-align: right;
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
}

/* ---- FRAGEN ---- */
.hq-question {
  display: none;
  animation: hqFadeIn 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hq-question.hq-active { display: block; }

@keyframes hqFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hq-question-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  margin-bottom: 2rem;
}

.hq-answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hq-answer-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem 1.25rem calc(1.5rem + 28px);
  background: #fff;
  border: 1.5px solid #e9dad2;
  font-family: 'avenir-light', 'Avenir', sans-serif;
  font-size: 1rem;
  color: #000;
  cursor: pointer;
  position: relative;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.hq-answer-btn::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #e9dad2;
  background: #fdf9f8;
  transition: border-color 180ms ease, background 180ms ease;
}
.hq-answer-btn:hover {
  border-color: #ff7175;
  background: #f8bcd0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  transform: translateY(-1px);
}
.hq-answer-btn:hover::before { border-color: #ff7175; }
.hq-answer-btn:active { transform: translateY(0); }
.hq-answer-btn:disabled { cursor: default; }

.hq-answer-btn.hq-selected {
  border-color: #19478d;
  background: rgba(25,71,141,0.08);
  color: #19478d;
}
.hq-answer-btn.hq-selected::before {
  background: #19478d;
  border-color: #19478d;
}

/* ---- ERGEBNIS ---- */
.hq-result-area {
  animation: hqFadeIn 380ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hq-result-card {
  background: #fff;
  border: 1.5px solid #e9dad2;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
.hq-result-card.hq-level-low  { border-top: 4px solid #3a7c52; }
.hq-result-card.hq-level-mid  { border-top: 4px solid #ff7175; }
.hq-result-card.hq-level-high { border-top: 4px solid #19478d; }

.hq-result-icon { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1; }

.hq-result-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.hq-level-low  .hq-result-title { color: #3a7c52; }
.hq-level-mid  .hq-result-title { color: #ff7175; }
.hq-level-high .hq-result-title { color: #19478d; }

.hq-result-body {
  font-family: 'avenir-light', 'Avenir', sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  max-width: 54ch;
  margin: 0 auto 2.5rem;
}

.hq-result-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Buttons – exakt wie Praxis-Theme */
.hq-btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: #19478d;
  color: #fff !important;
  text-decoration: none !important;
  font-family: 'avenir-black', 'Avenir', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid #19478d;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.hq-btn-primary:hover {
  background: #f8bcd0 !important;
  border-color: #f8bcd0 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.hq-btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid #e9dad2;
  background: transparent;
  font-family: 'avenir-black', 'Avenir', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.hq-btn-secondary:hover {
  border-color: #19478d;
  color: #19478d;
  background: rgba(25,71,141,0.06);
}

.hq-disclaimer {
  font-size: 0.75rem;
  color: #8f8f8f;
  margin-top: 1.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .hq-result-cta { flex-direction: column; align-items: stretch; }
  .hq-btn-primary, .hq-btn-secondary { text-align: center; }
}

/* Focus */
.hq-answer-btn:focus-visible,
.hq-btn-primary:focus-visible,
.hq-btn-secondary:focus-visible {
  outline: 2px solid #ff7175;
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hq-answer-btn, .hq-btn-primary, .hq-btn-secondary,
  .hq-progress-bar, .hq-question, .hq-result-area {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
