/* anfrage.css — Anfragefenster "Individuell" (public/anfrage.js).
   Nutzt die Farb-Variablen der Seite (--bg1, --text, --border, --green …),
   funktioniert deshalb in Hell und Dunkel ohne eigene Theme-Regeln. */
html.anf-open { overflow: hidden; }
.anf-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.anf-overlay[hidden] { display: none; }
.anf-dialog {
  width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--card-bg, var(--bg1)); color: var(--text);
  border: 1px solid var(--card-border, var(--border)); border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  padding: 18px 24px 26px;
  font-family: 'Inter', sans-serif;
}
.anf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.anf-back, .anf-close {
  width: 40px; height: 40px; border-radius: 10px; border: none; background: transparent;
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.anf-back:hover, .anf-close:hover { background: var(--bg3); color: var(--text); }
.anf-dots { display: flex; gap: 6px; }
.anf-dots span { width: 22px; height: 4px; border-radius: 4px; background: var(--border2); }
.anf-dots span.on { background: var(--green); }
.anf-title {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25;
  margin: 4px 0 16px;
}
.anf-muted { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.anf-small { font-size: 12px; margin-top: 12px; }
.anf-center { text-align: center; margin-top: 10px; }
.anf-muted a { color: var(--text); }
.anf-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.anf-chip {
  min-height: 52px; padding: 12px 14px; border-radius: 12px; text-align: left;
  border: 1px solid var(--border2); background: var(--bg2); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.anf-chip:hover { border-color: var(--green); }
.anf-chip.on { border-color: var(--green); background: rgba(37, 211, 102, .12); }
.anf-summary {
  font-size: 14px; line-height: 1.5; margin: 0 0 18px;
  padding: 12px 14px; border-radius: 12px; background: var(--bg3); color: var(--text);
}
.anf-primary, .anf-secondary {
  display: block; width: 100%; text-align: center; text-decoration: none;
  padding: 14px 18px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; border: none;
}
.anf-primary { background: var(--green); color: #000; }
.anf-primary:hover { background: var(--green-d); }
.anf-primary[disabled] { opacity: .6; cursor: default; }
.anf-secondary { margin-top: 10px; border: 1px solid var(--border2); background: transparent; color: var(--text); }
.anf-link {
  display: block; margin: 6px auto 0; padding: 8px 12px; border: none; background: none;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.anf-link:hover { color: var(--text); }
.anf-form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.anf-form input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border2); background: var(--bg2); color: var(--text); font: inherit; font-size: 16px;
}
.anf-form input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.anf-opt { font-weight: 400; }
.anf-error { color: var(--danger, #dc2626); font-size: 13px; margin: 0 0 10px; }
.anf-error[hidden] { display: none; }
@media (max-width: 600px) {
  .anf-overlay { align-items: flex-end; padding: 0; }
  .anf-dialog { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; padding: 14px 16px 24px; }
  .anf-chips { grid-template-columns: 1fr; }
  .anf-chip { min-height: 48px; }
}
