/*
 * Variante C – Minimal & App-artig.
 * Aufgebaut wie ein Salon-Profil in einer Buchungs-App: Titelbild, Profilblatt, Schnellaktionen,
 * gruppierte Listen. Keine Schatten-Karten-Sammlung: Flächen statt Schatten, Radien nach
 * Hierarchie (Blatt 24–28 → Gruppen 16–18 → Pillen). Jede Information endet in einer Aktion.
 */

@font-face { font-family: "Manrope"; src: url(../assets/fonts/manrope-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url(../assets/fonts/manrope-latin-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(../assets/fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(../assets/fonts/plex-arabic-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(../assets/fonts/plex-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(../assets/fonts/plex-arabic-700.woff2) format("woff2"); font-weight: 700 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --bg: #fff;
  --surface: #f5f3f2;
  --surface-2: #ece8e6;
  --ink: #1f1d1d;
  --muted: #6f6a69;
  --line: #e6e1df;
  --ox: #660000;
  --ox-2: #7d1010;
  --tint: #f7ecec;
  --green: #1f7a4d;
  --green-bg: #e8f3ec;
  --focus: #660000;
  --font: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

body { font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
:lang(ar) body, body:lang(ar) { line-height: 1.75; }

/* ---------- Bausteine ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border: 0; border-radius: 14px;
  font: 700 15px/1.1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ox); color: #fff; }
.btn--primary:hover { background: var(--ox-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--small { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .icon { width: 20px; height: 20px; }

.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.chip:lang(ar) { font-family: "IBM Plex Sans Arabic", sans-serif; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); }
.icon-btn .icon { width: 20px; height: 20px; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--ox); font: 700 14px/1.2 var(--font); }
.text-btn .icon { width: 17px; height: 17px; }

.status-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--ox); font-size: 13px; font-weight: 700; }
.status-chip:empty { display: none; }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip[data-open="true"] { background: var(--green-bg); color: var(--green); }

/* ---------- App-Leiste & Menü-Sheet ---------- */

.appbar { position: sticky; top: 0; z-index: 45; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.appbar__inner { display: flex; align-items: center; gap: 8px; max-width: 1120px; min-height: 58px; margin-inline: auto; padding-inline: 16px; }
.appbar__logo { margin-inline-end: auto; }
.appbar__logo img { width: 116px; }

.sheet-nav { display: none; }
.sheet-nav[data-open="true"] {
  display: flex; align-items: flex-end; position: fixed; inset: 0; z-index: 50;
  background: rgb(20 16 16 / .45); animation: c-fade .2s ease;
}
.sheet-nav__list {
  width: 100%; max-height: 82dvh; overflow-y: auto; list-style: none;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-radius: 24px 24px 0 0;
  animation: c-up .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet-nav__list::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: var(--line); }
.sheet-nav__list a { display: block; padding: 13px 12px; border-radius: 12px; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; }
.sheet-nav__list a:hover { background: var(--surface); }
.sheet-nav__list a[aria-current="page"] { background: var(--tint); color: var(--ox); }
@keyframes c-fade { from { opacity: 0; } }
@keyframes c-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 960px) {
  .sheet-nav[data-open="true"] { align-items: flex-start; justify-content: flex-end; background: rgb(20 16 16 / .2); }
  .sheet-nav__list { width: 320px; max-height: calc(100dvh - 96px); margin: 64px max(24px, calc((100vw - 1120px) / 2 + 16px)) 0; border-radius: 20px; padding-bottom: 12px; box-shadow: 0 24px 48px -16px rgb(0 0 0 / .3); }
  .sheet-nav__list::before { display: none; }
}

/* ---------- Layout ---------- */

.layout__side { display: none; }
@media (min-width: 960px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; max-width: 1120px; margin-inline: auto; padding: 24px 16px 0; }
  .layout__side { display: block; position: sticky; top: 82px; }
}

/* ---------- Titelbild & Profil ---------- */

.cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.profile { position: relative; margin-top: -24px; padding: 22px 16px 4px; background: #fff; border-radius: 24px 24px 0 0; }
.profile__name { font-size: 27px; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.profile__sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.profile__address { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 14px; font-size: 14px; }
.profile__address > .icon { width: 18px; height: 18px; color: var(--muted); }
.profile__address > span { margin-inline-end: 6px; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 12px;
  border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 700; text-decoration: none;
}
.action:hover { background: var(--surface-2); }
.action .icon { width: 22px; height: 22px; color: var(--ox); }
@media (min-width: 960px) {
  .cover img { border-radius: 24px; aspect-ratio: 2 / 1; }
  .profile { margin-top: 0; padding: 24px 0 0; }
  .profile__name { font-size: 34px; }
}

/* ---------- Abschnitte ---------- */

.block { padding: 32px 16px 0; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block__head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.block__foot { margin-top: 10px; padding-inline: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.block__foot strong { color: var(--ink); font-weight: 700; }
@media (min-width: 960px) { .block { padding-inline: 0; padding-top: 40px; } .block__head h2 { font-size: 22px; } }

/* Beliebte Leistungen – wischbar */
.svc-scroller {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  list-style: none; margin: 0 -16px; padding: 12px 16px 4px; scroll-padding-inline: 16px;
}
.svc-scroller::-webkit-scrollbar { display: none; }
.svc-scroller li { flex: none; scroll-snap-align: start; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 3px; width: 164px; min-height: 138px;
  padding: 14px 14px 14px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink);
  text-align: start; font: inherit;
}
.svc-card:hover { background: var(--surface-2); }
.svc-card__cat { font-size: 12px; font-weight: 700; color: var(--muted); }
.svc-card__name { padding-inline-end: 26px; font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.svc-card__meta { display: flex; flex-direction: column; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); }
.svc-card__price { color: var(--ox); font-weight: 800; font-size: 14px; }
.svc-card__add { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ox); }
.svc-card__add svg { width: 16px; height: 16px; }
@media (min-width: 960px) {
  .svc-scroller { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 14px 0 0; overflow: visible; }
  .svc-card { width: 100%; }
}

/* Team */
.team { display: grid; gap: 10px; margin-top: 12px; list-style: none; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface); }
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.person__name { font-weight: 800; font-size: 15px; }
.person__role { font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (min-width: 560px) { .team { grid-template-columns: 1fr 1fr; } }

/* Gruppierte Listen */
.group { margin-top: 12px; list-style: none; border-radius: 16px; background: var(--surface); overflow: hidden; }
.group > li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 13px 16px; font-size: 15px; color: inherit; text-decoration: none; }
.row--link:hover { background: var(--surface-2); }
/* Der Abstand hängt am Wochentag: .row__value hat dir="ltr", dort würde margin-inline-start in RTL falsch wirken */
.week .row > span:first-of-type { margin-inline-end: auto; }
.row__value { font-variant-numeric: tabular-nums; color: var(--muted); }
.row__icon { width: 22px; height: 22px; flex: none; color: var(--ox); align-self: flex-start; margin-top: 1px; }
.row__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.row__text > span:first-child { font-weight: 700; }
.row__sub { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.row__chev { width: 18px; height: 18px; flex: none; color: var(--muted); }
[dir="rtl"] .row__chev { transform: scaleX(-1); }
[dir="rtl"] .row__sub[dir="ltr"] { text-align: right; }
.week .row.is-today { font-weight: 800; }
.week .row.is-today .row__value { color: var(--ink); }
.week .row.is-today::before { content: ""; width: 8px; height: 8px; margin-inline-end: -6px; border-radius: 50%; background: var(--ox); }

/* Karte */
.map--c { margin-top: 12px; border-radius: 16px; aspect-ratio: 16 / 10; }

/* Hausbesuche */
.visit { display: flex; gap: 14px; padding: 18px; border-radius: 20px; background: var(--tint); }
.visit__icon { width: 28px; height: 28px; flex: none; color: var(--ox); }
.visit__title { font-size: 17px; font-weight: 800; }
.visit__text { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Footer */
.footer { display: grid; justify-items: center; gap: 14px; margin-top: 40px; padding: 28px 16px calc(100px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__social { display: flex; gap: 16px; }
.footer__social .icon { width: 22px; height: 22px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none; }
@media (min-width: 960px) { .footer { padding-bottom: 40px; } }

/* Buchungskarte (Desktop) */
.book-card { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 48px -28px rgb(40 10 10 / .35); }
.book-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; }
.book-card__list { display: grid; gap: 8px; margin: 18px 0; list-style: none; }
.book-card .svc-card { width: 100%; min-height: 0; }
.book-card .svc-card__meta { flex-direction: row; gap: 10px; padding-top: 6px; }

/* Fester Buchungs-Button (mobil) */
.bookbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
@media (min-width: 960px) { .bookbar { display: none; } }

/* ---------- Buchung in Variante C ---------- */

.bk {
  --bk-font: var(--font);
  --bk-surface: var(--surface);
  --bk-line: var(--line);
  --bk-fg: var(--ink);
  --bk-muted: var(--muted);
  --bk-accent: var(--ox);
  --bk-accent-soft: var(--tint);
  --bk-radius: 28px;
  --bk-radius-sm: 14px;
  --bk-pad: 18px;
}
@media (max-width: 719px) {
  .bk__head::before { content: ""; display: block; width: 40px; height: 5px; margin: -2px auto 6px; border-radius: 3px; background: var(--line); }
}
.bk__title { font-weight: 800; letter-spacing: -.02em; }
.bk__progress { margin-bottom: 14px; }
.bk__progress span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk__progress li::before { height: 4px; margin: 0; }
.bk-tabs { margin-inline: 0; padding: 4px; gap: 2px; border-radius: 14px; background: var(--surface); }
.bk-tab { flex: 1; justify-content: center; min-height: 38px; padding: 0 8px; border: 0; border-radius: 10px; font-weight: 700; font-size: 13.5px; }
.bk-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.bk-svc__check { border-radius: 50%; }
.bk-svc__name, .bk-sty__name { font-weight: 800; }
.bk-svc__price, .bk-sty__price { font-weight: 800; }
.bk-sty { border: 0; background: var(--surface); }
.bk-sty:has(input:checked) { background: var(--tint); }
.bk-len, .bk-date, .bk-slot { border: 0; background: var(--surface); }
.bk-len:has(input:checked) { background: var(--tint); }
.bk__next { border-radius: 14px; font-weight: 800; }
