/* ═══════════════════════════════════════════════════════════════
   HAUT RITUALE — Website-Admin Styles
   Wird in die bestehende Studio-Software integriert.
   ═══════════════════════════════════════════════════════════════ */

.website-admin {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.website-admin__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-line, #e8dede);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.website-admin__header h1 { margin: 0; font-size: 28px; }
.website-admin__header-actions { display: flex; gap: 8px; }

/* Tabs ─────────────────────────────────────── */
.website-admin__tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-line, #e8dede);
  margin-bottom: 32px;
  padding-bottom: 0;
}
.website-admin__tabs .tab {
  padding: 10px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-soft, #666);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}
.website-admin__tabs .tab:hover { color: var(--color-accent, #a07878); }
.website-admin__tabs .tab.is-active {
  color: var(--color-accent, #a07878);
  border-bottom-color: var(--color-accent, #a07878);
}

/* Gruppen-Container ─────────────────────────── */
.toggle-group {
  background: #fff;
  border: 1px solid var(--color-line, #e8dede);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.toggle-group__header {
  padding: 16px 20px;
  background: #faf5f5;
  border-bottom: 1px solid var(--color-line, #e8dede);
}
.toggle-group__header h3 { margin: 0 0 4px; font-size: 16px; }
.toggle-group__header p { margin: 0; font-size: 13px; }
.toggle-group__body { padding: 8px 20px; }

/* Einzelne Toggle-Zeile ─────────────────────── */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f5efef;
  gap: 24px;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row__info { flex: 1; }
.toggle-row__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink, #2a2323);
  cursor: pointer;
  margin: 0;
}
.toggle-row__hint {
  font-size: 12px;
  color: var(--color-ink-muted, #999);
  margin-top: 2px;
}
.toggle__extra {
  padding: 0 0 14px 0;
  border-bottom: 1px solid #f5efef;
}
.toggle__extra label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  margin-bottom: 4px;
}
.toggle__extra input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 14px;
}

/* Toggle-Switch (iOS-Stil) ──────────────────── */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  transition: 0.3s;
  border-radius: 999px;
}
.switch__slider::before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.switch input:checked + .switch__slider {
  background: var(--color-accent, #a07878);
}
.switch input:checked + .switch__slider::before {
  transform: translateX(22px);
}
.switch input:disabled + .switch__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tab-Header mit Action-Button ─────────────── */
.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.tab-header h2 { margin: 0 0 4px; }

/* Team-Liste ────────────────────────────────── */
.team-list { display: flex; flex-direction: column; gap: 12px; }
.team-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  align-items: center;
}
.team-item__photo {
  width: 100px; height: 100px;
  background-size: cover;
  background-position: center;
  background-color: #f5efef;
  border-radius: 8px;
}
.team-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-item__body input,
.team-item__body textarea {
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 14px;
}
.team-item__body textarea { min-height: 60px; resize: vertical; }
.team-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* Galerie ───────────────────────────────────── */
.gallery-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-tile {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}
.gallery-tile__image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.gallery-tile__controls {
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.gallery-tile__controls select {
  flex: 1;
  font-size: 12px;
  padding: 4px;
}

/* Blog-Liste ──────────────────────────────── */
.blog-list { display: flex; flex-direction: column; gap: 12px; }
.blog-item {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}
.blog-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.blog-item__meta h3 { margin: 0; font-size: 16px; }
.blog-item__actions { display: flex; gap: 8px; margin-top: 12px; }

/* Review-Liste ───────────────────────────── */
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-left: 4px solid;
  border-radius: 8px;
}
.review-item.is-approved { border-left-color: #6b8e7f; }
.review-item.is-pending { border-left-color: #c9a875; background: #fffbf2; }
.review-item__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.review-item__source {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.review-item__actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.switch-label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
}

/* Daten-Tabellen ────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}
.data-table th {
  background: #faf5f5;
  text-align: left;
  padding: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  font-weight: 500;
}
.data-table td {
  padding: 12px;
  border-top: 1px solid #f5efef;
  font-size: 14px;
  vertical-align: top;
}
.data-table tr.is-unread td { font-weight: 500; background: #fffbf2; }

/* Badges ───────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: #eee;
  color: #666;
}
.badge--success { background: #d6e8dc; color: #2d5238; }
.badge--warning { background: #fff1d6; color: #7a5600; }
.badge--danger  { background: #f5d6d6; color: #7a2d2d; }
.badge--muted   { background: #eee; color: #999; }

/* Form-Grid ───────────────────────────── */
.settings-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.settings-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  margin-bottom: 4px;
}
.settings-form input,
.settings-form textarea,
.settings-form select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
.settings-form textarea { min-height: 80px; resize: vertical; }
.settings-form__footer {
  padding: 16px;
  background: #faf5f5;
  border-radius: 8px;
  margin-top: 16px;
}

/* Wartungsmodus ─────────────────────────── */
.danger-box {
  padding: 24px;
  background: #fff;
  border: 2px solid #c9a875;
  border-radius: 12px;
  max-width: 720px;
}
.danger-box h2 { margin-top: 0; color: #7a5600; }

/* Knöpfe ─────────────────────────────── */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 4px;
}
.btn-sm:hover { background: #f5efef; }

.btn-danger {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #c75555;
  color: #c75555;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.btn-danger:hover { background: #c75555; color: #fff; }

/* Empty-States ───────────────────────── */
.empty {
  padding: 40px;
  text-align: center;
  background: #faf5f5;
  border-radius: 8px;
  color: var(--color-ink-muted);
}

.muted { color: var(--color-ink-muted, #999); font-size: 13px; }

/* Toast ───────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 12px 20px;
  background: var(--color-ink, #2a2323);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 9999;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--error { background: #c75555; }

/* Responsive ──────────────────────── */
@media (max-width: 700px) {
  .team-item { grid-template-columns: 1fr; }
  .settings-form .form-grid { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
  .treatment-admin-item { grid-template-columns: 1fr; }
  .treatment-admin-item__image { aspect-ratio: 4/3; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   NEUE KOMPONENTEN — Behandlungen, FAQ, Über mich, Modal
   ═══════════════════════════════════════════════════════════ */

/* Behandlungs-Liste ─────────────────────────────────────── */
.treatments-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.treatment-admin-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  align-items: center;
}
.treatment-admin-item__image {
  width: 120px;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #f5efe7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.treatment-admin-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.treatment-admin-item__price {
  font-family: var(--font-display, serif);
  font-size: 1.5rem;
  color: var(--color-accent, #a07878);
  font-weight: 500;
}
.treatment-admin-item__meta {
  font-size: 13px;
}
.treatment-admin-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* FAQ-Liste ─────────────────────────────────────── */
.faq-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-admin-item {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}
.faq-admin-item__header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.faq-admin-item .faq-question {
  flex: 1;
  min-width: 200px;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
}
.faq-admin-item__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.faq-admin-item .faq-answer {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
}

/* Über-mich ────────────────────────────────────── */
.about-photo-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.about-photo-preview {
  width: 150px;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #f5efe7;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid var(--color-line);
}
.qual-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.qual-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
}

/* Modal ───────────────────────────────────────── */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 35, 35, 0.5);
  backdrop-filter: blur(4px);
}
.admin-modal__box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease;
}
@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.admin-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-line);
  background: #faf5ef;
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-modal__header h2 {
  margin: 0;
  font-size: 20px;
}
.admin-modal__close {
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-ink-muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.admin-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-ink);
}

/* ═══════════════════════════════════════════════════════════════
   NEUE KOMPONENTEN: Behandlungen, FAQ, Dialog
   ═══════════════════════════════════════════════════════════════ */

/* Treatments Admin ───────────────────────────── */
.treatments-admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.treatment-admin-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-line, #e8ddd3);
  border-radius: 12px;
}

.treatment-admin-item__image {
  width: 180px;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: #f5efef;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.image-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.image-upload-overlay:hover { opacity: 1; }
.image-upload-overlay input[type="file"] { display: none; }

.treatment-admin-item__body {
  min-width: 0;
}
.treatment-admin-item__body .form-grid {
  grid-template-columns: 2fr 1fr 100px 100px;
}
.treatment-admin-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.switch-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line-soft, #f2e9e0);
  margin-bottom: 4px;
}

.switch-label-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.switch-label-inline > span:first-child {
  color: var(--color-ink-soft, #5e4d44);
}

/* FAQ Admin ───────────────────────────── */
.faq-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-line, #e8ddd3);
  border-radius: 12px;
  align-items: start;
}

.faq-admin-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 100px;
}

/* Dialog ───────────────────────────── */
.admin-dialog {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 35, 35, 0.5);
  backdrop-filter: blur(4px);
}
.admin-dialog__window {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.admin-dialog__window h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

/* Responsive ───────────────────────── */
@media (max-width: 900px) {
  .treatment-admin-item {
    grid-template-columns: 1fr;
  }
  .treatment-admin-item__image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .treatment-admin-item__body .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
