/* =====================================================
   Online-Rezeption (Widget unten rechts / mobil Vollbild)
   Alle Regeln sind unter #rz-root gekapselt, damit die
   globalen Styles der Website nicht hineinwirken.
   ===================================================== */

#rz-root {
  --rz-primary: #3C556E;
  --rz-primary-dark: #2c4054;
  --rz-accent: #B85157;
  --rz-accent-dark: #9c4248;
  --rz-soft: #7A92AA;
  --rz-text: #2b3a49;
  --rz-muted: #6b7a8c;
  --rz-line: #e2e7ed;
  --rz-bg: #ffffff;
  --rz-bg-soft: #f5f7f9;
  --rz-error: #c0392b;
  --rz-radius: 16px;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--rz-text);
}

#rz-root *,
#rz-root *::before,
#rz-root *::after { box-sizing: border-box; }

#rz-root h2,
#rz-root h3,
#rz-root h4 {
  font-family: "Raleway", "Open Sans", sans-serif;
  color: var(--rz-primary);
  margin: 0;
  line-height: 1.25;
}
#rz-root p { margin: 0 0 .75em; }
#rz-root p:last-child { margin-bottom: 0; }
#rz-root ul, #rz-root ol { margin: 0 0 .75em; padding-left: 1.3em; }
#rz-root a { display: inline; color: var(--rz-accent); text-decoration: underline; }
#rz-root a:hover { color: var(--rz-primary); }
#rz-root button { font-family: inherit; }
#rz-root svg { max-width: none; max-height: none; flex-shrink: 0; }

/* ---------- Launcher-Button ---------- */
.rz-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 14px;
  border: 0;
  border-radius: 40px;
  background: var(--rz-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 45, 60, .28);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.rz-launcher:hover { background: var(--rz-primary-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30, 45, 60, .34); }
.rz-launcher:focus-visible { outline: 3px solid var(--rz-accent); outline-offset: 3px; }
.rz-launcher-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--rz-primary);
  display: flex; align-items: center; justify-content: center;
}
.rz-launcher-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.rz-launcher-text small { font-weight: 400; font-size: 12px; opacity: .85; }
#rz-root.rz-open .rz-launcher { display: none; }

/* ---------- Panel ---------- */
.rz-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1101;
  width: 410px;
  height: min(680px, calc(100vh - 48px));
  height: min(680px, calc(100dvh - 48px));
  display: none;
  flex-direction: column;
  background: var(--rz-bg);
  border-radius: var(--rz-radius);
  box-shadow: 0 18px 50px rgba(20, 35, 50, .30);
  overflow: hidden;
}
#rz-root.rz-open .rz-panel { display: flex; animation: rz-in .22s ease-out; }
@keyframes rz-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Kopfzeile */
.rz-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 14px 16px;
  background: var(--rz-primary);
  color: #fff;
  flex-shrink: 0;
}
.rz-head-btn {
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}
.rz-head-btn:hover { background: rgba(255,255,255,.14); }
.rz-head-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.rz-head-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--rz-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rz-head-title {
  flex: 1;
  min-width: 0;
  background: none; border: 0; padding: 0;
  color: #fff; text-align: left; cursor: pointer;
}
.rz-head-title strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.rz-head-title span { display: block; font-size: 13px; opacity: .85; }

/* Fortschritt */
.rz-progress { height: 4px; background: var(--rz-line); flex-shrink: 0; }
.rz-progress-bar { height: 100%; width: 0; background: var(--rz-accent); transition: width .25s ease; }

/* Inhalt */
.rz-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.rz-body:focus { outline: none; }
.rz-intro {
  padding: 14px 20px;
  text-align: center;
  color: var(--rz-muted);
  font-size: 15px;
  border-bottom: 3px solid var(--rz-line);
}

/* Kategorie-Liste */
.rz-cats { list-style: none; margin: 0 !important; padding: 0 !important; }
.rz-cat {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--rz-line);
  background: #fff;
  color: var(--rz-text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease;
}
.rz-cat:hover, .rz-cat:focus-visible { background: var(--rz-bg-soft); outline: none; }
.rz-cat-icon { width: 28px; height: 28px; color: var(--rz-primary); display: flex; align-items: center; justify-content: center; }
.rz-cat-label { flex: 1; line-height: 1.3; }
.rz-cat-label small { display: block; font-weight: 400; font-size: 13px; color: var(--rz-muted); margin-top: 2px; }
.rz-cat-chev { color: #9aa6b3; }


/* Schritt */
.rz-step { padding: 20px 20px 28px; }
.rz-step-title {
  font-size: 22px !important;
  color: var(--rz-muted) !important;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 18px !important;
  border-bottom: 1px solid #c9d1da;
}
.rz-stepcount {
  font-size: 13px;
  font-weight: 700;
  color: var(--rz-accent);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0 0 4px !important;
}
.rz-callout-wichtig {
  margin: 0 0 16px;
  border-left: 4px solid var(--rz-primary);
  background: #eef2f6;
}
.rz-callout-wichtig p { margin-bottom: 6px !important; }
.rz-step-lead { color: var(--rz-muted); font-size: 15px; margin-bottom: 16px !important; }
.rz-info { font-size: 16px; color: var(--rz-text); }
.rz-info h4 { font-size: 20px; margin-bottom: 8px; color: var(--rz-text); }
.rz-info strong { color: var(--rz-text); }
.rz-info li { margin-bottom: 6px; }
.rz-info hr { border: 0; border-top: 1px dashed #c9d1da; margin: 18px 0; }
.rz-callout {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--rz-bg-soft);
  font-size: 15px;
}

/* Felder */
.rz-field { margin-bottom: 18px; }
.rz-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--rz-text);
  margin-bottom: 4px;
}
.rz-req { color: var(--rz-error); margin-left: 2px; }
.rz-hint { display: block; font-size: 13px; color: var(--rz-muted); margin: -2px 0 6px; line-height: 1.4; }

#rz-root .rz-input {
  display: block;
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 16px; /* >= 16px verhindert Zoom auf iOS */
  font-weight: 400;
  color: var(--rz-text);
  background: #fff;
  border: 1px solid #c9d1da;
  border-radius: 8px;
  box-shadow: none;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}
#rz-root textarea.rz-input { height: auto; min-height: 110px; resize: vertical; }
#rz-root .rz-input:focus { border-color: var(--rz-primary); box-shadow: 0 0 0 3px rgba(60, 85, 110, .18); }
#rz-root .rz-input::placeholder { color: #a3adb8; font-weight: 400; }
#rz-root .rz-input[aria-invalid="true"] { border-color: var(--rz-error); }
#rz-root input[type="date"].rz-input { min-height: 46px; line-height: 1.2; }

.rz-error-msg { display: none; color: var(--rz-error); font-size: 13px; margin-top: 5px; }
.rz-field.rz-has-error .rz-error-msg { display: block; }

/* Geburtsdatum: Eingabe + Klick-Auswahl */
.rz-dob { position: relative; }
#rz-root .rz-dob .rz-input { padding-right: 52px; }
.rz-dob-btn {
  position: absolute; top: 4px; right: 4px;
  width: 40px; height: 38px;
  border: 0; border-radius: 6px;
  background: var(--rz-bg-soft);
  color: var(--rz-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.rz-dob-btn:hover, .rz-dob-btn[aria-expanded="true"] { background: #e3e9ef; }
.rz-dob-picker {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--rz-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 45, 60, .10);
}
.rz-dob-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin-bottom: 10px; font-size: 14px;
}
.rz-dob-head strong { color: var(--rz-primary); }
.rz-dob-head .rz-link-btn { justify-self: start; }
.rz-dob-sel { justify-self: end; color: var(--rz-muted); font-size: 13px; }
.rz-dob-grid { display: grid; gap: 6px; }
.rz-dob-tag { grid-template-columns: repeat(7, 1fr); }
.rz-dob-monat { grid-template-columns: repeat(4, 1fr); }
.rz-dob-jahr { grid-template-columns: repeat(4, 1fr); }
.rz-dob-grid button {
  padding: 9px 0;
  border: 1px solid var(--rz-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rz-text);
  font-size: 15px;
  cursor: pointer;
}
.rz-dob-grid button:hover:not([disabled]), .rz-dob-grid button:focus-visible { background: var(--rz-primary); border-color: var(--rz-primary); color: #fff; outline: none; }
.rz-dob-grid button[disabled] { opacity: .35; cursor: not-allowed; }

/* Checkbox / Radio */
.rz-choice-list { display: flex; flex-direction: column; gap: 4px; }
.rz-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 2px;
  cursor: pointer;
  font-size: 16px;
  color: var(--rz-text);
  line-height: 1.4;
}
#rz-root .rz-choice input {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid #9aa6b3;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color .12s ease, background .12s ease;
}
#rz-root .rz-choice input[type="radio"] { border-radius: 50%; }
#rz-root .rz-choice input:checked { background: var(--rz-primary); border-color: var(--rz-primary); }
#rz-root .rz-choice input[type="checkbox"]:checked::after {
  content: "";
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
#rz-root .rz-choice input[type="radio"]:checked::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}
#rz-root .rz-choice input:focus-visible { outline: 3px solid rgba(60,85,110,.35); outline-offset: 2px; }
.rz-choice-small { font-size: 14px; }

/* Artikel (Rezept) */
.rz-article {
  border: 1px solid var(--rz-line);
  border-radius: 12px;
  padding: 16px 14px 4px;
  margin-bottom: 16px;
  background: #fcfdfe;
}
.rz-article-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rz-article-head h4 { font-size: 17px !important; }
.rz-link-btn {
  background: none; border: 0; padding: 4px 6px;
  color: var(--rz-accent);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}
.rz-link-btn:hover { background: #fbeeee; }
.rz-add-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  border: 1.5px dashed var(--rz-soft);
  border-radius: 12px;
  background: #fff;
  color: var(--rz-primary);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.rz-add-btn:hover { background: var(--rz-bg-soft); }

/* Datei-Upload */
.rz-drop {
  border: 1.5px dashed #b6c1cc;
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  color: var(--rz-muted);
  font-size: 14px;
  transition: background .12s ease, border-color .12s ease;
}
.rz-drop.rz-drag { background: var(--rz-bg-soft); border-color: var(--rz-primary); }
.rz-drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 10px; }
.rz-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 4px;
  color: var(--rz-accent);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.rz-drop-btn:hover { color: var(--rz-primary); }
.rz-files { list-style: none; margin: 10px 0 0 !important; padding: 0 !important; }
.rz-files li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px;
  background: var(--rz-bg-soft);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}
.rz-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Zusammenfassung */
.rz-summary-sec { margin-bottom: 18px; border: 1px solid var(--rz-line); border-radius: 12px; overflow: hidden; }
.rz-summary-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--rz-bg-soft);
}
.rz-summary-head h4 { font-size: 15px !important; }
.rz-summary-sec dl { margin: 0; padding: 4px 14px 10px; }
.rz-summary-sec dt { font-size: 13px; color: var(--rz-muted); margin-top: 8px; }
.rz-summary-sec dd { margin: 0; font-size: 15px; color: var(--rz-text); white-space: pre-wrap; word-break: break-word; }

/* Fußzeile */
.rz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rz-line);
  background: #fbfaf8;
  flex-shrink: 0;
}
.rz-foot:empty { display: none; }
.rz-btn {
  border: 0;
  border-radius: 30px;
  padding: 11px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none !important;
}
.rz-btn-ghost { background: transparent; color: var(--rz-primary); }
.rz-btn-ghost:hover { background: var(--rz-bg-soft); }
.rz-btn-primary { background: var(--rz-accent); color: #fff !important; margin-left: auto; }
.rz-btn-primary:hover { background: var(--rz-accent-dark); color: #fff !important; }
.rz-btn-primary[disabled] { opacity: .6; cursor: wait; }
.rz-btn:focus-visible { outline: 3px solid rgba(60,85,110,.4); outline-offset: 2px; }
.rz-btn-block { width: 100%; justify-content: center; margin-top: 18px; }

/* Ergebnis */
.rz-result { padding: 40px 24px; text-align: center; }
.rz-result-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #e6f4ea; color: #256029;
}
.rz-result.rz-fail .rz-result-icon { background: #fbeeee; color: var(--rz-error); }
.rz-result h3 { font-size: 22px !important; margin-bottom: 10px !important; }
.rz-result p { color: var(--rz-muted); }

.rz-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rz-spin .8s linear infinite;
}
@keyframes rz-spin { to { transform: rotate(360deg); } }

.rz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Bestätigungsdialog im Fenster */
.rz-dialog {
  position: absolute; inset: 0;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(30, 45, 60, .45);
  animation: rz-fade .15s ease-out;
}
.rz-dialog-box {
  width: 100%; max-width: 340px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 16px;
  box-shadow: 0 16px 40px rgba(20, 35, 50, .3);
  animation: rz-in .18s ease-out;
}
.rz-dialog-box h4 { font-size: 19px !important; margin-bottom: 8px !important; color: var(--rz-text) !important; }
.rz-dialog-box p { color: var(--rz-muted); font-size: 15px; margin-bottom: 18px !important; }
.rz-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rz-dialog-actions .rz-btn-primary { margin-left: 0; }
@keyframes rz-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Mobil: Vollbild ---------- */
@media (max-width: 600px) {
  .rz-launcher { right: 14px; bottom: 14px; padding: 10px 18px 10px 10px; font-size: 15px; }
  .rz-launcher-icon { width: 32px; height: 32px; }
  .rz-panel {
    inset: 0;
    right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .rz-head { padding-top: max(14px, env(safe-area-inset-top)); }
  body.rz-lock { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  #rz-root.rz-open .rz-panel { animation: none; }
  .rz-launcher, .rz-progress-bar { transition: none; }
}

@media print {
  #rz-root { display: none !important; }
}

/* Header-Button "Termin buchen" nur am PC zeigen; auf dem Handy läuft
   die Terminbuchung über "Anfragen + Termine" unten rechts. */
@media (max-width: 767px) {
  .site-header .menu-btn { display: none !important; }
}
