:root {
  --cream: #F7F2EC;
  --card: #FCFAF7;
  --line: #E6DED3;
  --forest: #141F1A;
  --ink: #2A2420;
  --muted: #8A8078;
  --gold: #C4A06B;
  --tan: #A98862;
  --tan-soft: #E9DCCB;
  --sage: #E4E7DF;
  --ok: #DCEFD9; --ok-ink: #3D6B3F;
  --danger: #9C3D2E;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { font-size: 17px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
#app { min-height: 100%; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- Navigation (hell, wie die Vorlage) ------------------------------------ */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(247,242,236,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; min-height: 56px; }
.nav .back { font-size: 26px; line-height: 1; padding: 6px 10px; border-radius: 10px; justify-self: start; }
.nav .title { text-align: center; font-weight: 600; font-size: 19px; }
.nav .menu { font-size: 24px; padding: 6px 10px; border-radius: 10px; justify-self: end; }
.nav .menu.txt { font-size: 15px; color: var(--muted); }
.nav .logo { display: flex; align-items: center; gap: 10px; justify-content: center; }
.nav .logo svg { height: 30px; width: auto; }
.nav .logo span { font-family: var(--serif); font-size: 18px; letter-spacing: .08em; }

/* ---- Knöpfe ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--tan-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.btn-tan { background: var(--tan); color: #fff; }
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-line { background: transparent; border: 1px solid var(--line); font-weight: 500; }
.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; font-size: 18px; border-radius: 18px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; }

/* ---- Seiten ----------------------------------------------------------------- */
.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 20px calc(env(safe-area-inset-bottom) + 48px); flex: 1; }
.page.wide { max-width: 900px; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px 18px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translateX(-50%); background: var(--forest); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 15px; box-shadow: 0 8px 30px rgba(0,0,0,.18); z-index: 20; max-width: 90vw; }
.toast.err { background: var(--danger); }
.empty { padding: 36px 12px; text-align: center; color: var(--muted); }

/* ---- Login ------------------------------------------------------------------ */
.login { flex: 1; display: grid; place-items: center; padding: 40px 20px; }
.login form { width: 100%; max-width: 380px; text-align: center; }
.login .wordmark { width: 230px; height: auto; margin: 0 auto; display: block; }
.login .sub { font-size: 12px; letter-spacing: .2em; color: var(--muted); margin: 10px 0 34px; }
.login input { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 18px; text-align: center; }
.login .err { color: var(--danger); margin-top: 12px; min-height: 22px; }

/* ---- Kundenliste ------------------------------------------------------------ */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px; margin: 6px 0 18px; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: 17px; -webkit-appearance: none; }
.search input:focus { outline: none; }
.list { display: grid; gap: 10px; }
.crow { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 12px 16px; }
.crow .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--tan-soft); }
.crow .av svg { width: 100%; height: 100%; display: block; }
.crow .nm { font-weight: 600; font-size: 18px; }
.crow .mt { color: var(--muted); font-size: 14px; }
.crow .nr { color: var(--muted); font-size: 13px; text-align: right; }
.crow .nr b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; background: var(--sage); color: var(--forest); }
.badge.ok { background: var(--ok); color: var(--ok-ink); }

/* ---- Kundenprofil (Vorlage) ------------------------------------------------- */
.phead { display: grid; grid-template-columns: 124px 1fr; gap: 20px; align-items: center; padding: 10px 0 18px; }
.phead .avatar { width: 124px; height: 124px; border-radius: 50%; overflow: hidden; background: var(--tan-soft); }
.phead .avatar svg { width: 100%; height: 100%; display: block; }
.phead .pn { font-size: 26px; font-weight: 600; line-height: 1.15; }
.phead .pm { color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.5; }
.phead .btn { margin-top: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 20px; overflow-x: auto; }
.tabs button { padding: 12px 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--tan); background: var(--card); border-radius: 12px 12px 0 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; padding: 4px 0; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); word-break: break-word; }
.blk { margin-top: 22px; }
.blk h3 { margin-bottom: 6px; }
.notes { display: grid; gap: 10px; }
.notes .n { background: var(--card); border-radius: var(--r); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.notes .n .d { color: var(--muted); font-size: 13px; margin-top: 4px; }
.notes .n button { color: var(--muted); font-size: 18px; padding: 0 4px; }
.addbtn { margin-top: 18px; }
.sheet { background: var(--card); border-radius: var(--r); padding: 18px; margin-top: 14px; }

/* Bearbeiten */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; -webkit-appearance: none; }
.field textarea { min-height: 96px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* Behandlungsverlauf */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 7px; top: 24px; bottom: 24px; width: 2px; background: var(--tan-soft); }
.tl .t { position: relative; display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items: center; padding: 10px 0 10px 8px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.tl .t::before { content: ''; position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--tan); transform: translateY(-50%); }
.tl .t .th { width: 86px; height: 86px; border-radius: 12px; overflow: hidden; background: var(--tan-soft); display: grid; place-items: center; }
.tl .t .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl .t .th svg { width: 64px; height: 64px; color: var(--tan); stroke-width: 1.5; }
.tl .t .d { color: var(--muted); font-size: 14px; }
.tl .t .n { font-weight: 600; font-size: 17px; }
.tl .t .s { color: var(--muted); font-size: 14px; }
.tl .t .chev { color: var(--muted); font-size: 22px; padding: 6px; }

/* Behandlungsdokumentation (Formular) */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.areas button { display: grid; justify-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.areas button .c { width: 72px; height: 72px; border-radius: 50%; background: var(--card); border: 2px solid transparent; display: grid; place-items: center; }
.areas button .c svg { width: 58px; height: 58px; color: var(--tan); stroke-width: 1.5; }
.areas button.on .c { border-color: var(--tan); background: var(--tan-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.chip.on { background: var(--tan-soft); border-color: var(--tan); }

/* Fotos */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos .p { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tan-soft); }
.photos .p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .p .d { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); text-align: left; }
.viewer { position: fixed; inset: 0; background: rgba(20,31,26,.96); z-index: 30; display: grid; grid-template-rows: auto 1fr auto; }
.viewer img { max-width: 100%; max-height: 100%; margin: auto; display: block; object-fit: contain; }
.viewer .vb { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 12px) 18px 12px; color: var(--cream); }
.viewer .vf { padding: 12px 18px calc(env(safe-area-inset-bottom) + 16px); display: flex; justify-content: center; gap: 12px; }
.viewer .btn-line { color: var(--cream); border-color: rgba(255,255,255,.35); }
.viewer video { max-width: 100%; max-height: 100%; width: 100%; margin: auto; display: block; background: #000; }
.viewer .novidbig { margin: auto; color: var(--cream); font-size: 17px; text-align: center; padding: 24px; }
/* Video-Kacheln im Foto-Raster: Poster oder dunkle Fläche, Abspielzeichen, Dauer */
.photos .p .novid { display: block; width: 100%; height: 100%; background: #2B3B33; }
.photos .p.vid .play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; display: grid; place-items: center; padding-left: 3px; pointer-events: none; }
.photos .p.vid .len { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; font-variant-numeric: tabular-nums; pointer-events: none; }

/* Dokumente */
.docs { display: grid; gap: 10px; }
.docs .doc { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 14px 16px; width: 100%; text-align: left; }
.docs .doc .di { width: 40px; height: 44px; color: var(--tan); }
.docs .doc .t { font-weight: 600; }
.docs .doc .m { color: var(--muted); font-size: 14px; }

/* Formularauswahl */
.choose { display: grid; gap: 10px; }
.choose button { text-align: left; padding: 16px 18px; background: var(--card); border-radius: var(--r); display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; width: 100%; }
.choose button svg { width: 40px; height: 40px; color: var(--tan); }
.choose button .ct { font-weight: 600; font-size: 17px; }
.choose button .ck { font-size: 13.5px; color: var(--muted); }
.choose button .chev { color: var(--muted); font-size: 22px; }

/* ---- Kundinnen-Modus (Formular ausfüllen) ----------------------------------- */
.cmode { font-size: 18px; }
.cmode .page { max-width: 760px; padding-bottom: 140px; }
.cmode .intro { margin: 10px 0 26px; }
.cmode .intro h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; }
.cmode .intro .claim { font-family: var(--serif); font-style: italic; color: var(--muted); }
.sec { margin-top: 36px; }
.sec h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 2px; }
.rule-gold { height: 1px; background: var(--gold); opacity: .8; margin: 8px 0 18px; }
.q { padding: 16px 0; border-bottom: 1px solid var(--line); }
.q .ql { display: block; margin-bottom: 10px; }
.q input[type=text], .q input[type=email], .q input[type=tel], .q input[type=date], .q textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 18px; -webkit-appearance: none; }
.q .prefix { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.q .prefix span { padding: 13px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sage); }
.seg { display: inline-flex; border: 1px solid var(--forest); border-radius: 999px; overflow: hidden; }
.seg button { min-width: 96px; min-height: 48px; padding: 0 18px; font-weight: 600; }
.seg button + button { border-left: 1px solid var(--forest); }
.seg button.on { background: var(--forest); color: var(--cream); }
.q .detail { margin-top: 12px; }
.q .chips .chip { border: 1px solid var(--forest); background: transparent; border-radius: 999px; }
.q .chips .chip.on { background: var(--forest); color: var(--cream); }
.info ul { margin: 6px 0 0; padding-left: 22px; }
.info li { margin: 6px 0; }
.info p { margin: 8px 0; }
.info h4 { margin: 12px 0 2px; font-size: 16px; }
.consent { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 14px 0; }
.consent .box { width: 28px; height: 28px; border: 2px solid var(--forest); border-radius: 7px; margin-top: 2px; display: grid; place-items: center; background: #fff; }
.consent.on .box { background: var(--gold); border-color: var(--gold); }
.consent .box svg { width: 18px; height: 18px; opacity: 0; }
.consent.on .box svg { opacity: 1; }
.consent .req { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.sigwrap { border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
.sigwrap canvas { display: block; width: 100%; height: 220px; touch-action: none; border-radius: 12px; }
.sigwrap .baseline { position: absolute; left: 32px; right: 32px; bottom: 46px; border-top: 1px dashed var(--line); pointer-events: none; }
.sigwrap .hint { position: absolute; left: 32px; bottom: 18px; color: var(--muted); font-size: 14px; pointer-events: none; }
.sigwrap .clear { position: absolute; right: 12px; top: 12px; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(247,242,236,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 14px 20px calc(env(safe-area-inset-bottom) + 14px); display: flex; justify-content: center; gap: 12px; z-index: 6; }
.actionbar .btn { min-width: 200px; }
.problems { background: #fff; border: 1px solid var(--danger); border-radius: 12px; padding: 12px 16px; color: var(--danger); margin: 18px 0; }
.done { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.done h1 { font-family: var(--serif); font-weight: 500; font-size: 40px; }
.done .heart { color: var(--gold); font-size: 30px; }
.lock { flex: 1; display: grid; place-items: center; background: var(--forest); color: var(--cream); padding: 40px 20px; }
.lock form { width: 100%; max-width: 360px; text-align: center; }
.lock input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--cream); font-size: 18px; text-align: center; }
.lock .btn { margin-top: 14px; }
.lock .err { color: #F0B8AC; margin-top: 10px; min-height: 22px; }

/* ---- Menü, Kalender, Termine ---------------------------------------------- */
.nav .home { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--tan); }
.nav .home svg { width: 30px; height: 30px; stroke-width: 1.6; }
.menu-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { background: var(--card); border-radius: 18px; padding: 26px 20px 22px; display: grid; justify-items: center; gap: 4px; text-align: center; min-height: 170px; }
.tile svg { width: 56px; height: 56px; color: var(--tan); stroke-width: 1.4; margin-bottom: 8px; }
.tile .tt { font-weight: 600; font-size: 19px; }
.tile .ts { color: var(--muted); font-size: 14px; }
.appts { display: grid; gap: 8px; }
.appt { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 12px 14px; }
.appt .tm { font-weight: 600; font-size: 17px; line-height: 1.2; }
.appt .du { color: var(--muted); font-size: 13px; font-weight: 500; }
.appt .nm { font-weight: 600; }
.appt .s { color: var(--muted); font-size: 14px; }
.appt .chev { color: var(--muted); font-size: 22px; padding: 6px; }
.week { display: grid; grid-template-columns: 32px repeat(7, 1fr) 32px; gap: 4px; align-items: center; }
.wnav { text-align: center; font-size: 24px; color: var(--muted); }
.wd { display: grid; justify-items: center; gap: 2px; padding: 10px 0 8px; border-radius: 14px; position: relative; }
.wd .wn { font-size: 12px; color: var(--muted); }
.wd .wdd { font-weight: 600; font-size: 18px; }
.wd.today .wdd { color: var(--tan); }
.wd.on { background: var(--forest); color: var(--cream); }
.wd.on .wn, .wd.on .wdd { color: var(--cream); }
.wd .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); margin-top: 2px; }
.wd.on .dot { background: var(--gold); }
.cresults { display: grid; gap: 6px; margin-top: 8px; }
.cresults button { text-align: left; background: var(--card); border-radius: 12px; padding: 12px 14px; }
.crow.has-appt .mt b { color: var(--ink); }
.photos .p { display: grid; }
.photos .p .pv { width: 100%; height: 100%; display: block; position: relative; }
.photos .p .px { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(20,31,26,.55); color: #fff; font-size: 14px; display: grid; place-items: center; }

/* Farben der Mitarbeiterinnen */
.dot-c { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; }
.wd .dots { display: inline-flex; gap: 3px; margin-top: 3px; }
.wd .dots .dot { width: 7px; height: 7px; margin: 0; }
.wd.on .dots .dot { opacity: .9; }
.swatches { display: inline-flex; gap: 6px; margin-right: 6px; }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset; }
.sw.on { border-color: var(--ink); }

/* Kalender: Modus, Woche, Monat */
.modebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 16px; }
.seg2 { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg2 a { padding: 8px 18px; border-radius: 999px; font-weight: 500; color: var(--muted); }
.seg2 a.on { background: var(--forest); color: var(--cream); font-weight: 600; }
.wd.we .wn { color: var(--tan); }
.wgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wcol { background: var(--card); border-radius: 12px; padding: 8px 6px 6px; min-height: 260px; display: flex; flex-direction: column; gap: 6px; }
.wcol.we { background: #F1E7DA; }
.wcol.today { outline: 2px solid var(--tan); }
.wh { display: block; text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wh .wn { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.wcol.we .wh .wn { color: var(--tan); font-weight: 600; }
.wh .wdd { display: block; font-weight: 600; font-size: 15px; }
.wcol.today .wh .wdd { color: var(--tan); }
.mini { display: block; background: #fff; border-radius: 8px; padding: 6px 7px; font-size: 12.5px; line-height: 1.3; }
.mini b { font-weight: 600; }
.mini span { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wempty { flex: 1; }
.wadd { margin-top: auto; text-align: center; color: var(--muted); font-size: 20px; line-height: 1; padding: 6px 0 2px; border-radius: 8px; }
.wadd:active { background: var(--tan-soft); }
.mgrid { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 4px; }
.mh { text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.mh.we { color: var(--tan); font-weight: 600; }
.kw { font-size: 11.5px; color: var(--muted); text-align: center; align-self: center; }
.kw.kwh { font-weight: 600; }
.mday { display: block; background: var(--card); border-radius: 10px; min-height: 78px; padding: 6px 6px; text-align: left; }
.mday.we { background: #F1E7DA; }
.mday.out { opacity: .35; }
.mday.today { outline: 2px solid var(--tan); }
.mday .mn { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.mday .mi { display: block; color: #fff; font-size: 11px; border-radius: 5px; padding: 1px 5px; margin-top: 3px; }
.mday .more { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
@media (max-width: 700px) { .wgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; } .wcol { padding: 6px 3px; min-height: 200px; } .mini { font-size: 11px; padding: 4px 4px; } .mini span { display: none; } .mday { min-height: 60px; padding: 4px; } .mday .mi { font-size: 10px; } }

/* Ampel und Warnungen */
.st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; margin-right: 8px; vertical-align: middle; }
.st-ok { background: #DCEFD9; color: #2F5F32; }
.st-warn { background: #F8ECC2; color: #7A5A00; }
.st-bad { background: #F4D6D0; color: #8E2F1F; }
.mini.st-ok { background: #EAF5E8; } .mini.st-warn { background: #FBF3D6; } .mini.st-bad { background: #F9E4E0; }
.ampel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amp { min-height: 46px; border-radius: 12px; font-weight: 600; border: 2px solid transparent; opacity: .55; }
.amp.on { opacity: 1; border-color: currentColor; }
.badge.bad { background: #F4D6D0; color: #8E2F1F; }
.badge.warn { background: #F8ECC2; color: #7A5A00; }
.badge.vor { background: var(--tan-soft); color: #7A5A00; }
.tl .t .n .badge { font-weight: 600; white-space: nowrap; }
.phead.warn { background: #FBEDEA; border-radius: 16px; padding: 12px 14px; margin: 4px -14px 14px; }
.crow.warn { background: #FBEDEA; }
.chev .st { margin-right: 6px; }

.hint { background: #FBF3D6; border: 1px solid #E8D48A; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; }

.photos .p .d b { display: block; font-weight: 600; }
.photos .p .d { line-height: 1.25; padding: 6px 8px 5px; }

footer.powered { text-align: center; font-size: 11.5px; letter-spacing: .06em; color: var(--muted); opacity: .7; padding: 8px 16px calc(env(safe-area-inset-bottom) + 12px); margin-top: auto; }
.cmode footer.powered, .lock ~ footer.powered, .done ~ footer.powered { display: none; }

/* Kalender: eigene / Kolleginnen */
.calsec { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.calsec.fremd { color: var(--muted); }
.wgrid.fremd .wcol, .mgrid.fremd .mday { background: #F3EEE7; }
.wgrid.fremd .wcol.we, .mgrid.fremd .mday.we { background: #EBE1D3; }
.mini.fremd, .appt.fremd { opacity: .85; }
.appt.fremd .nm { font-weight: 500; }
/* Demo-Banner: nach Anmeldung nach oben schieben */
.demo-banner { transition: transform .45s ease, opacity .45s ease; }
body.angemeldet .demo-banner { transform: translateY(-100%); opacity: 0; pointer-events: none; }
body.angemeldet { padding-top: 0 !important; }
body.angemeldet .nav { top: 0 !important; }
.field label.btn { font-size: 17px; color: var(--ink); }
.field label.btn-tan { color: #fff; font-size: 18px; }

.choose button.locked { opacity: .45; filter: grayscale(1); cursor: not-allowed; }
.choose button .badge { vertical-align: middle; margin-left: 6px; }

/* Preisliste */
.prow { display: grid; grid-template-columns: 22px minmax(150px, 1fr) 112px 70px 60px 66px 34px 28px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.prow input, .prow select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; }
.prow .px2 { color: var(--muted); font-size: 18px; text-align: center; }
.prow.ph { font-size: 13px; color: var(--muted); }
.prow.ro { padding: 10px 0; }
.prow.ro svg { width: 26px; height: 26px; vertical-align: middle; margin-right: 8px; color: var(--tan); }
.prow.ro b { text-align: right; }
.chart { width: 100%; height: auto; display: block; }
.q.dep-off { opacity: .4; pointer-events: none; }

/* PIN-Sperrbildschirm */
.pindots { display: flex; justify-content: center; gap: 18px; margin: 10px 0 26px; }
.pindots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.pindots span.on { background: var(--gold); border-color: var(--gold); }
.pinpad { display: grid; grid-template-columns: repeat(3, 84px); gap: 14px; justify-content: center; }
.pinpad button { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--cream); font-size: 30px; font-weight: 500; }
.pinpad button:active { background: rgba(255,255,255,.25); }

.pinfield { -webkit-text-security: disc; letter-spacing: .3em; font-size: 22px; }

.langbar { margin: 0; } .langbar .chip { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.cmode .langbar { margin: 0 0 14px; justify-content: flex-end; }

.syncbar { display: flex; justify-content: center; margin: -4px 0 6px; }
.syncpill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: var(--card); }
.syncpill .dot-c { width: 8px; height: 8px; margin: 0; }
.syncpill.on .dot-c { background: #7A9E7E; } .syncpill.wait .dot-c { background: #C4A06B; } .syncpill.off .dot-c { background: #9C3D2E; }
.syncpill.off { color: var(--danger); font-weight: 600; }

/* Auswahl-Overlay (Behandlung, PIN) */
.picker { position: fixed; inset: 0; background: rgba(20,31,26,.55); display: grid; place-items: center; z-index: 40; padding: 20px; }
.pbox { background: var(--cream); border-radius: 18px; width: 100%; max-width: 460px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pbox.dark { background: var(--forest); padding: 20px; }
.phead2 { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.phead2 b { text-align: center; font-size: 17px; }
.plist { overflow-y: auto; padding: 10px 12px 16px; display: grid; gap: 8px; }
.choose-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-align: left; background: var(--card); border-radius: 12px; padding: 12px 14px; width: 100%; }
.choose-row svg { width: 34px; height: 34px; color: var(--tan); }
.choose-row .ct { font-weight: 600; }
.choose-row .ck { font-size: 13px; color: var(--muted); }
.choose-row .chev { color: var(--muted); font-size: 20px; }
.pick { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; text-align: left; min-height: 48px; }
.pick .chev { color: var(--muted); font-size: 20px; }
.docs .doc { grid-template-columns: 44px 1fr auto; }
.docs .doc .x2 { color: var(--muted); font-size: 17px; padding: 4px 8px; margin-left: 10px; }
.docs .doc > span:last-of-type { display: inline-flex; align-items: center; }

/* Mehrere Behandlungen im Termin */
.behchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.behchips .bchip { display: inline-flex; align-items: center; gap: 6px; background: var(--tan-soft); border-radius: 999px; padding: 6px 8px 6px 10px; font-size: 15px; }
.behchips .bchip svg { width: 22px; height: 22px; color: var(--tan); }
.behchips .bchip button { color: var(--muted); font-size: 15px; padding: 0 4px; }
.choose-row.gewaehlt { outline: 2px solid var(--tan); }

.lsec { font-size: 17px; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.lsec:first-of-type { margin-top: 4px; }

.telrow { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 8px; }
.telrow select, .telrow input { width: 100%; }
.q .prefix select { padding: 13px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--sage); font-size: 17px; max-width: 46vw; }

/* Preisliste: Bereiche und Verschieben */
.pgrp { margin: 18px 0 6px; }
.pgh { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--tan-soft); }
.pgh svg { width: 26px; height: 26px; color: var(--tan); }
.pgrp.zusatz { background: #F2F4EF; border-radius: 14px; padding: 12px 12px 6px; }
.pgrp.zusatz .pgh { border-bottom-color: #C9D2C4; }
.pgrp.zusatz .pgh svg { color: #7A9E7E; }
.pgrp.zusatz .prow:not(.ph) { background: rgba(255,255,255,.5); border-radius: 10px; }
.prow .grip { color: var(--muted); cursor: grab; text-align: center; font-size: 15px; }
.prow[data-row] { touch-action: pan-y; }
.prow.drag { touch-action: none; }
.prow.drag { opacity: .5; }
.prow.over { outline: 2px dashed var(--tan); outline-offset: 2px; }
.prow.ro { grid-template-columns: 1fr 80px 90px; }
@media (max-width: 640px) { .prow { grid-template-columns: 16px minmax(96px, 1fr) 76px 52px 44px 52px 28px 20px; gap: 5px; } .prow.ro { grid-template-columns: 1fr 64px 76px; } }

.pgh .grow { flex: 1; }
.pgh .btn { font-size: 13px; min-height: 30px; padding: 0 12px; }
.pbox .field label { font-size: 14px; color: var(--muted); }
.pbox .field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; }

.pbox .seg { width: 100%; }
.pbox .seg button { flex: 1; min-width: 0; }

/* Pflicht-Nachfrage nach dem Termin */
.picker.pflicht { background: rgba(20,31,26,.72); z-index: 60; }
.picker.pflicht .ampel { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.picker.pflicht .amp { min-height: 56px; font-size: 15px; }

.fotoknoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fotoknoepfe .btn { justify-content: center; }

/* Update-Hinweis */
.picker.update { z-index: 70; }
.upnotes { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
/* Zeitraster (Tag/Woche): Zeitachse links, Termine als Blöcke nach Dauer, Lücken dazwischen sichtbar */
.tkopf { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 0 3px; margin-top: 10px; }
.tkopf .wh { grid-column: span 1; border-bottom: 0; margin: 0; padding: 4px 0 6px; }
.tkopf .wh:first-child { grid-column: 2; }
.tkopf .wh.today .wdd { color: var(--tan); } .tkopf .wh.we .wn { color: var(--tan); font-weight: 600; }
.traster { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 0 3px; align-items: start; margin-bottom: 14px; }
.traster.tag { grid-template-columns: 48px 1fr; }
.tachse { position: relative; }
.tachse .tl { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tachse .tl.half { font-size: 10.5px; opacity: .8; } .tachse .tl.ende { opacity: .7; }
.tcol { position: relative; background: var(--card); border-radius: 10px; overflow: hidden; cursor: pointer; }
.tcol.we { background: #F1E7DA; } .tcol.today { outline: 2px solid var(--tan); outline-offset: -2px; }
.tcol .tline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid rgba(0,0,0,.08); pointer-events: none; }
.tcol .tline.half { border-top-style: dashed; border-top-color: rgba(0,0,0,.05); }
.tb { position: absolute; display: block; box-sizing: border-box; background: #fff; border-radius: 7px; border-left: 4px solid var(--tan); padding: 3px 4px 3px 5px; font-size: 11.5px; line-height: 1.25; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tb b { font-weight: 700; font-size: 11px; } .tb .nm { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb .s { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb.kurz { padding-top: 2px; } .tb.kurz .nm { display: inline; }
.traster:not(.tag) .tb:not(.kurz) .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; word-break: break-word; } /* schmale Wochenspalten: Name darf zweizeilig umbrechen statt „Cl…“ */
.tb.fremd { opacity: .8; background: #FBF8F3; } .tb .st { position: absolute; right: 4px; top: 3px; }
.tb.st-ok { background: #EAF5E8; } .tb.st-warn { background: #FBF3D6; } .tb.st-bad { background: #F9E4E0; }
.traster.tag .tb { font-size: 14px; padding: 6px 10px; border-left-width: 5px; } .traster.tag .tb b { font-size: 14px; } .traster.tag .tb .s { font-size: 12.5px; }
.tcol .gap { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tcol .gap span { font-size: 10px; color: var(--muted); background: rgba(255,255,255,.55); padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.traster.tag .gap span { font-size: 12.5px; padding: 3px 10px; }
.tcol .now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #C0392B; pointer-events: none; z-index: 2; }
.tcol .now::before { content: ''; position: absolute; left: -1px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #C0392B; }
/* Bereichsfarben: Preisliste (Gruppenkopf) und Farbwahl im Bereichsdialog; im Kalender der Streifen links am Termin */
.pgrp[style*="--bf"] .pgh { border-left: 6px solid var(--bf); padding-left: 10px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--bf) 45%, transparent), transparent 70%); }
.bfdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.08); }
.farben { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; border: 1.5px solid var(--tan-soft); background: #fff; font-size: 14px; cursor: pointer; }
.fchip span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); } .fchip.on { border-color: var(--forest, #22312A); box-shadow: 0 0 0 2px rgba(34,49,42,.15); } .fchip.belegt { opacity: .45; cursor: not-allowed; } .fchip small { color: var(--muted); }
.tb .mdot { position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
/* Bereiche verschieben: Griff im Kopf, gezogener Bereich halbtransparent, Ziel gestrichelt umrandet */
.pgh .ggrip { color: var(--muted); cursor: grab; font-size: 17px; padding: 4px 2px; touch-action: none; }
.pgh[data-grpkopf] { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pgrp.drag { opacity: .5; }
.pgrp.over { outline: 2px dashed var(--tan); outline-offset: 4px; border-radius: 10px; }
body.bzieht { touch-action: none; }

/* Info-Knopf je Behandlung und Info-Fenster (Kurze Info, Was ist …?, Vor/Nach der Behandlung) */
.pinfo { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--tan); background: #fff; color: var(--tan); font: italic 700 15px Georgia, 'Times New Roman', serif; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.pinfo.voll { background: var(--tan); color: #fff; }
.prow.ro .pinfo { width: 24px; height: 24px; font-size: 13px; margin-left: 6px; vertical-align: middle; }
.ibox { max-width: 640px; }
.ikachel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.ikachel label { display: block; font-weight: 600; margin: 0 0 6px; }
.ikachel textarea { width: 100%; border: 0; padding: 0; font: inherit; font-size: 16px; background: transparent; resize: vertical; min-height: 2.6em; outline: none; }
.ikachel .itext { white-space: pre-wrap; line-height: 1.45; }
/* Info-Fenster: Überschrift (Frage) änderbar, Auswahl gemerkter Fragen */
.ikopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.ikopf label { margin: 0; }
.qbtn { background: none; border: 0; color: var(--tan); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; padding: 4px 0; }
.qpanel { background: var(--cream, #FBF7F2); border: 1px dashed var(--tan-soft); border-radius: 12px; padding: 10px; margin: 0 0 10px; }
.qpanel input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; background: #fff; }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qchip { display: inline-flex; align-items: center; border: 1px solid var(--tan-soft); border-radius: 999px; background: #fff; font-size: 13.5px; overflow: hidden; }
.qchip > button, button.qchip { background: none; border: 0; padding: 6px 10px; cursor: pointer; font: inherit; color: inherit; }
button.qchip.std small { color: var(--muted); margin-left: 4px; }
.qchip .qdel { padding: 6px 9px 6px 2px; color: var(--muted); }
/* Kacheln entfernen */
.ikopf-r { display: inline-flex; align-items: center; gap: 10px; }
.kdel { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 2px; line-height: 1; }
.kdel:hover { color: #A0392B; }
/* Kalender: Umschalter Meine/Alle Termine unter Tag/Woche/Monat */
.modebar.ansichtbar { margin-top: -6px; }
.modebar.ansichtbar .seg2 a { min-width: 128px; }
/* Team: Gruppen (Läden) und Auswahl von Gruppe/Rolle je Person */
.glist { display: flex; flex-direction: column; gap: 8px; }
.grow2 { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.grow2 .grow { flex: 1; }
.tsel { margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.tsel select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14.5px; max-width: 100%; }
.kalgruppe { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; margin-left: 8px; }
#gNeu { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; }
/* Paket (aus der Admin-Console) auf der Team-Seite */
.paketkarte .pnutz { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.paketkarte.ueber { border: 1.5px solid #D9A441; }
/* Warnung Paket/Speicher auf der Startseite (Hauptinhaberin) */
.paketwarn { display: flex; gap: 12px; align-items: flex-start; background: #FFF6DA; border: 1.5px solid #E8C25A; color: #5A4500; border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; text-decoration: none; line-height: 1.4; }
.paketwarn .pw-i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #F2C230; color: #3A2C00; font-weight: 800; display: grid; place-items: center; }
/* Online-Shop-Einstellungen */
.ozeile { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ozeit.zwei { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 2px; } /* 2. Zeit (optional) unter der ersten – nicht mehr gequetscht */
.ozeit.zwei input { font-size: 14px; padding: 6px; }
.ozeile:last-child { border-bottom: 0; }
.otag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.otag input { width: 20px; height: 20px; accent-color: var(--forest, #22312A); }
.ozeit { display: inline-flex; align-items: center; gap: 6px; } .ozeit input { padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; }
.ozeit.klein input { font-size: 14px; padding: 6px; }
@media (max-width: 640px) { .ozeile { grid-template-columns: 1fr; } .ozeit.zwei { grid-column: 1; } }
.zurow { display: grid; grid-template-columns: 1fr auto 1fr 1.4fr 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.zurow input { padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; min-width: 0; }
@media (max-width: 640px) { .zurow { grid-template-columns: 1fr auto 1fr 32px; } .zurow [data-grund] { grid-column: 1 / 4; } }
.shlogo { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; height: 56px; padding: 4px 8px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; }
.shlogo img { max-height: 48px; max-width: 160px; }
.tb .onl { font-size: 10px; margin-left: 3px; }
.onlneu { border: 1.5px solid #D9C3A0; }
.onlneu .appt { grid-template-columns: auto 1fr auto; gap: 18px; } /* „Fr, 16.10.2026 – 10:00“ in einer Zeile, Name rückt nach rechts */
.onlneu .appt .tm { white-space: nowrap; font-size: 15px; line-height: 1.25; }
/* Produktbild-Kachel im Info-Fenster der Preisliste */
.pbkachel { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 0 0 14px; background: #fff; }
.pbv { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #f4ece6; }
.pbv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbstd { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(59, 44, 39, .55); }
.pbstd svg { width: 48px; height: 48px; }
/* Bereich bearbeiten: Bild im Online-Shop (Symbol oder Foto) */
.brbild { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.brvor { width: 72px; height: 72px; border-radius: 12px; background: #F4E6DD; color: #A0634F; display: grid; place-items: center; overflow: hidden; }
.brvor svg { width: 46px; height: 46px; } .brvor img { width: 100%; height: 100%; object-fit: cover; }
.brsym { display: flex; flex-wrap: wrap; gap: 6px; }
.brs { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #A0634F; display: grid; place-items: center; padding: 0; font-size: 11px; font-weight: 600; }
.brs svg { width: 28px; height: 28px; }
.brs.on { border-color: var(--forest, #22312A); box-shadow: 0 0 0 1.5px var(--forest, #22312A) inset; background: #F4E6DD; }

/* Elemente mit hidden-Attribut immer ausblenden (auch wenn eine Klasse display setzt) */
[hidden] { display: none !important; }
/* Zeit blocken: geblockte Zeiten im Kalender (schraffiert) */
.blockbtn { margin-top: 10px; }
.tblk { position: absolute; left: 0; right: 0; z-index: 1; border: 1px dashed #B9AFA7; border-radius: 8px; padding: 4px 8px; text-align: left; color: #6E625B; font-size: 12px; line-height: 1.25; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(185, 175, 167, .18) 0 7px, rgba(185, 175, 167, .06) 7px 14px), #F4F1EE; cursor: pointer; }
.tblk { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.tblk b { display: block; font-weight: 600; color: #5A4F49; } .tblk span { display: block; } .tblk .wer { font-style: italic; }
.tblk.ganz { opacity: .9; } .tblk.fremd { opacity: .7; }
.mi.blk { background: #DCD5CF !important; color: #5A4F49; }
/* stornierte Termine */
.st-storno { opacity: .55; } .tb.st-storno b, .tb.st-storno .nm, .mini.st-storno { text-decoration: line-through; }
.storno-info { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #F4F1EE; border: 1px dashed #B9AFA7; color: #5A4F49; }

/* Anmeldeseite anderer Firmen: Name statt Lucis-Logo */
.wordmark-text { font-family: Georgia, "Times New Roman", serif; font-size: 34px; color: #324d2a; text-align: center; margin: 10px 0 4px; letter-spacing: .02em; }
/* Produkte & Lager */
.lgrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "bild tx best" "akt akt akt"; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.lgrow:first-of-type { border-top: 0; }
.lgbild { grid-area: bild; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #F4E6DD; color: #A0634F; display: grid; place-items: center; }
.lgbild img { width: 100%; height: 100%; object-fit: cover; } .lgbild svg { width: 32px; height: 32px; }
.lgtx { grid-area: tx; min-width: 0; } .lgtx b { display: block; } .lgtx small { color: var(--muted, #8a8580); }
.lgbest { grid-area: best; text-align: right; } .lgbest b { display: block; font-size: 22px; line-height: 1; } .lgbest small { color: var(--muted, #8a8580); font-size: 11px; }
.lgrow.knapp .lgbest b, .lgrow.knapp .lgbest small { color: var(--danger, #b3261e); }
.lgakt { grid-area: akt; display: flex; gap: 6px; flex-wrap: wrap; }
.lgv { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.lgv:first-of-type { border-top: 0; } .lgv .plus { color: #2e7d32; } .lgv .minus { color: #8a3b2e; }
.paketwarn.info .pw-i { background: #F4E6DD; }

/* Menü: große Kacheln über beide Spalten */
.tile.breit { grid-column: 1 / -1; }

/* Kachel für nicht gebuchte Zusätze (z. B. Online-Shop) */
.tile.aus { opacity: .55; filter: grayscale(1); cursor: not-allowed; }
.tile.aus .ts { font-weight: 600; }
/* Online-Shop: Prüfliste vor dem Freischalten; Kachel gedimmt, solange der Shop nicht freigeschaltet ist (bleibt öffnbar) */
.pruefliste { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; }
.pz { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #FBF3EC; border: 1px solid #F0D9C7; font-size: 14px; }
.pz.ok { background: #F3F7F1; border-color: #D9E6D3; color: var(--muted, #6d6760); }
.pz .pzi { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #F0D9C7; color: #8a3b2e; flex: none; }
.pz.ok .pzi { background: #D9E6D3; color: #2e7d32; }
.pz .btn { margin-left: auto; }
.tile.grau { opacity: .6; }
.tile.grau .ts { font-weight: 600; }
.seg button:disabled { opacity: .4; }

/* Lager: Bestand je Geschäft */
.lgtx .lgorte { display: block; margin-top: 3px; } .lgtx .lgorte span { white-space: nowrap; } .lgtx .lgorte b { display: inline; color: var(--text, #2b2420); } .lgtx .lgorte .knapp, .lgtx .lgorte .knapp b { color: var(--danger, #b3261e); }

/* Kundinnen-Import: Vorschau */
.tablewrap { overflow-x: auto; }
.kitab { width: 100%; border-collapse: collapse; font-size: 13px; } .kitab th, .kitab td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; } .kitab th { color: var(--muted); font-weight: 600; }

/* Leistungsliste: Wer bietet das an? */
.pwer { font-size: 12px; font-weight: 600; padding: 6px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwer.teil { background: #F3ECE4; border-color: #D9C3A0; color: var(--text, #2b2420); }
.pwpunkt { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.pwalle { font-weight: 700; }

/* Hilfe & Erste Schritte */
.ersteschritte { display: flex; align-items: center; gap: 12px; border: 1.5px solid #D9C3A0; margin-bottom: 14px; }
.ersteschritte .es-l { flex: 1; display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.es-balken { display: block; height: 6px; border-radius: 99px; background: #EFE6DC; overflow: hidden; margin-top: 4px; } .es-balken span { display: block; height: 100%; background: var(--tan, #A9845C); border-radius: 99px; }
details.hilfe { border-top: 1px solid var(--line); padding: 10px 0; } details.hilfe:first-of-type { border-top: 0; }
details.hilfe summary { font-weight: 600; cursor: pointer; list-style: none; } details.hilfe summary::after { content: '›'; float: right; color: var(--muted); transition: transform .2s; } details.hilfe[open] summary::after { transform: rotate(90deg); }
details.hilfe p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
#fbText { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; resize: vertical; }

/* Dokumente & Fragebögen */
.flist { display: flex; flex-direction: column; } .frow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .frow:first-child { border-top: 0; } .frow.aus { opacity: .55; }
.fsec .fsec-titel { flex: 1; font-weight: 700; font-size: 17px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.fed { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.fed-kopf { display: flex; align-items: center; gap: 10px; } .fed select, .fed input[type=text], .fed textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.fed-kopf select { width: auto; } .fed .px2 { font-size: 16px; }

/* Produkt-Kategorien in der Produkt- & Lagerliste */
.lgkatsym { width: 34px; height: 34px; border-radius: 10px; background: #F4E6DD; color: #A0634F; display: grid; place-items: center; flex: none; overflow: hidden; } .lgkatsym svg { width: 22px; height: 22px; } .lgkatsym img { width: 100%; height: 100%; object-fit: cover; }
/* Bestellte Ware: Selbstabholer und Lieferungen */
details.bw { border-top: 1px solid var(--line); padding: 10px 0 4px; margin-top: 8px; } details.bw summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 16px; }
details.bw summary::after { content: '›'; margin-left: auto; color: var(--muted); transition: transform .2s; } details.bw[open] summary::after { transform: rotate(90deg); }
.bwz { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: #EFE6DC; font-size: 13px; font-weight: 700; } .bwz.warnbg { background: #F2C94C; color: #4a3500; }
details.bw .sheet.abhol { margin-top: 10px; box-shadow: none; border: 1px solid var(--line); }
/* Kachel: gelbes Warndreieck mit Zahl */
.tile { position: relative; } .warnzahl { position: absolute; top: 10px; right: 12px; width: 34px; height: 31px; display: grid; place-items: center; }
.warnzahl svg { position: absolute; inset: 0; width: 100%; height: 100%; } .warnzahl svg path { fill: #F2C94C; stroke: #B8860B; stroke-width: 1.2; stroke-linejoin: round; }
.warnzahl b { position: relative; top: 4px; font-size: 13px; color: #3d2d00; }
/* Produktfrage am Terminende, Kalendermarke, Käufe in der Akte */
.prodfrage { border: 1.5px solid #D9C3A0; } .prodmark { color: #8a5a2b !important; }
.kaeufe { display: flex; flex-direction: column; } .kauf { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); align-items: start; } .kauf:first-child { border-top: 0; }

/* ---- Online-Shop: Bezahlung und Versand (1.23.0) ---- */
.seg.seg3 button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.15; padding-top: 8px; padding-bottom: 8px; }
.seg.seg3 button b { font-weight: 600; }
.seg.seg3 button span { font-size: 12px; opacity: .72; }
.seg button.aus { opacity: .45; }
.zmErkl { margin-top: 10px; font-size: 14px; line-height: 1.45; animation: zmAuf .28s ease; }
@keyframes zmAuf { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zmErkl { animation: none; } }
.zanb { margin-top: 10px; }
.gedimmt { opacity: .55; }
.seg.seg3 button b { font-size: 13.5px; }
.seg.seg3 button span { font-size: 11.5px; }
.picker [data-ef] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; white-space: normal; height: auto; min-height: 50px; padding: 10px 14px; line-height: 1.25; text-align: center; }
.picker [data-ef] .small { font-weight: 400; opacity: .85; }
/* Hinweis: neue Adresse des Kundenbuchs */
.sheet.umzug { border: 1.5px solid #C4A06B; background: #FFF9EF; margin-bottom: 16px; }

/* Online-Shop: Adresse oben im Status */
.shadr { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); } .shadr a { color: inherit; } details.shcode { margin-top: 10px; } details.shcode summary { cursor: pointer; color: var(--muted); }
