﻿/* Deck layout and components. Colours, fonts and radii come from brand.css. */
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #262524;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1600px; height: 900px;
  transform-origin: center center;
  overflow: hidden;
  background: var(--cream);
}
#progress {
  position: absolute; top: 0; left: 0; height: 3px; z-index: 5;
  background: var(--gold); transition: width .4s ease;
}

.slide {
  position: absolute; inset: 0;
  padding: 80px 112px 108px;
  display: flex; flex-direction: column;
  background: var(--cream);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.slide.active { opacity: 1; visibility: visible; transform: none; }
.slide.paper { background: var(--paper); }
.slide.dark { background: var(--dark); color: var(--cream); }
.slide .notes { display: none; }

/* Type */
.label {
  font-size: 15px; line-height: 1.5; font-weight: var(--w-semibold);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
h1 { font-weight: var(--w-medium); font-size: 88px; line-height: 1.04; letter-spacing: -.05em; color: var(--ink); margin: 0; }
h2 { font-weight: var(--w-medium); font-size: 56px; line-height: 1.08; letter-spacing: -.05em; color: var(--ink); margin: 0 0 48px; max-width: 1250px; }
h3 { font-size: 26px; line-height: 1.25; font-weight: var(--w-medium); letter-spacing: -.03em; color: var(--ink); margin: 0 0 12px; }
h1 em, h2 em { font-style: normal; color: var(--gold); }
.dark h1, .dark h2, .dark h3 { color: var(--cream); }
p { margin: 0; }
.lead { font-size: 24px; line-height: 1.5; font-weight: var(--w-light); color: var(--muted); max-width: 1000px; }
.body { font-size: 19px; line-height: 1.55; font-weight: var(--w-light); color: var(--text); }
.small { font-size: 16px; line-height: 1.5; font-weight: var(--w-light); color: var(--muted); }
.dark .lead, .dark .body, .dark .small { color: #e4e1d2; }

/* Editorial header: title left, lead right, bottom aligned (as on mara.care) */
.head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: end; margin-bottom: 52px; }
.head h2 { margin: 0; }
.head .lead { font-size: 21px; max-width: none; }

/* Layout */
.grow { flex: 1; min-height: 0; }
.row { display: flex; gap: 56px; align-items: stretch; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.gap-l { column-gap: 56px; row-gap: 40px; }

/* Columns: open text blocks under a hairline (default) or a boxed card (.box) */
.card { border-top: 1px solid var(--line); padding: 26px 0 0; }
.card h3 { font-size: 24px; }
.card p { font-size: 18px; line-height: 1.55; font-weight: var(--w-light); color: var(--muted); }
.card.box { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 34px 36px; }
.paper .card.box { background: var(--cream); }
.dark .card { border-color: #ffffff22; }
.dark .card p { color: #e4e1d2; }
.num { font-size: 14px; font-weight: var(--w-semibold); letter-spacing: .14em; color: var(--gold); margin-bottom: 14px; text-transform: uppercase; }

/* Photo step: photo on top, text below, no box */
.pcard { display: flex; flex-direction: column; min-height: 0; }
.pcard img { width: 100%; height: var(--ph, 320px); flex: none; object-fit: cover; object-position: 50% 0%; display: block; border-radius: var(--r-card); }
.pcard > div { padding: 24px 6px 0 0; }
.pcard .num { margin-bottom: 10px; }
.pcard h3 { font-size: 22px; margin-bottom: 8px; }
.pcard p { font-size: 17px; line-height: 1.5; font-weight: var(--w-light); color: var(--muted); }
.pcard .list { margin-top: 4px; }

/* Photos */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; border-radius: var(--r-card); }
.badge {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
  font-size: 12px; line-height: 1.4; font-weight: var(--w-semibold); letter-spacing: .08em; text-transform: uppercase;
}
.badge.gold { background: var(--gold); color: var(--paper); }
.shot { position: relative; min-height: 0; }

/* Before/after case, as on the website result cards:
   joined photo pair with Vorher / Nach X Monaten badges, caption under a hairline. */
.case { display: flex; flex-direction: column; min-height: 0; }
.case .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex: 1; min-height: 0; }
.case .pair .photo { border-radius: 0; object-position: 50% 50%; }
.case .pair .shot:first-child .photo { border-radius: var(--r-card) 0 0 var(--r-card); }
.case .pair .shot:last-child .photo { border-radius: 0 var(--r-card) var(--r-card) 0; }
.case .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.case .cap h3 { margin: 0; font-size: 28px; white-space: nowrap; }
.case .cap span { font-size: 17px; line-height: 1.4; font-weight: var(--w-light); color: var(--muted); text-align: right; }
.case.sq .pair { flex: none; aspect-ratio: 5 / 3; }

/* Older before/after card (Pitch photos) */
.ba { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.ba h3 { font-size: 20px; margin: 0; }
.ba h3 span { font-weight: var(--w-light); color: var(--muted); }
.ba .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex: 1; min-height: 0; }
.ba .pair .photo { border-radius: 0; }
.ba .pair .shot:first-child .photo { border-radius: var(--r-card) 0 0 var(--r-card); }
.ba .pair .shot:last-child .photo { border-radius: 0 var(--r-card) var(--r-card) 0; }
.ba.side { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.ba.side h3 { align-self: start; padding-right: 16px; }
.ba.side .shot .photo { border-radius: 0; }
.ba.side .shot:nth-child(2) .photo { border-radius: var(--r-small) 0 0 var(--r-small); }
.ba.side .shot:nth-child(3) .photo { border-radius: 0 var(--r-small) var(--r-small) 0; }
.ba h3 small { display: block; margin-top: 6px; font-size: 16px; line-height: 1.45; letter-spacing: 0; font-weight: var(--w-light); color: var(--muted); }

/* Stats: big figures under hairlines */
.stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.stat { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.stat b { display: block; font-size: 44px; line-height: 1.1; font-weight: var(--w-medium); letter-spacing: -.05em; color: var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: 13px; font-weight: var(--w-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Hair development row */
.day .num { margin-bottom: 12px; }
.day .shot { height: 430px; }

/* Lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  position: relative; padding: 16px 0 16px 36px;
  border-top: 1px solid var(--line);
  font-size: 21px; line-height: 1.45; font-weight: var(--w-light);
}
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li::before { content: ""; position: absolute; left: 0; top: 31px; width: 16px; height: 1px; background: var(--gold); }
.list li b { font-weight: var(--w-medium); color: var(--ink); }
.list.tight li { padding: 10px 0 10px 30px; font-size: 18px; }
.list.tight li::before { top: 23px; width: 14px; }
.list.plain li:last-child { border-bottom: 0; }
.dark .list li { border-color: #ffffff22; }

/* Tables (lab values, prices) */
.table { width: 100%; border-collapse: collapse; font-size: 19px; }
.table th { text-align: left; font-size: 13px; font-weight: var(--w-semibold); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 0 0 14px; }
.table td { padding: 15px 0; border-top: 1px solid var(--line); font-weight: var(--w-light); color: var(--text); }
.table td:first-child { font-weight: var(--w-medium); color: var(--ink); }
.table .r, .table th.r { text-align: right; }
.table .muted { color: var(--muted); font-size: 16px; }
.table .hl { color: var(--ink); font-weight: var(--w-medium); }
/* Price comparison: packages as columns, the first row (.lead-row) carries the main figure */
.cmp { width: 100%; border-collapse: collapse; }
.cmp th { text-align: right; padding: 0 0 18px; font-size: 13px; font-weight: var(--w-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cmp th:first-child { text-align: left; }
.cmp td { padding: 24px 0; border-top: 1px solid var(--line); text-align: right; font-size: 20px; font-weight: var(--w-light); color: var(--muted); }
.cmp td:first-child { text-align: left; font-weight: var(--w-medium); color: var(--ink); }
.cmp tr.lead-row td { font-size: 34px; color: var(--ink); letter-spacing: -.03em; }
.cmp tr.lead-row td:first-child { font-size: 20px; letter-spacing: 0; }
.price-layout { margin: auto 0; padding-bottom: 24px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 96px; align-items: start; }
.table tr.total td { font-weight: var(--w-medium); color: var(--ink); }

/* Big price / number */
.price { font-size: 38px; font-weight: var(--w-light); letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.price small { font-size: 18px; letter-spacing: 0; font-weight: var(--w-light); color: var(--muted); margin-left: 6px; }

/* Side note with a gold rule */
.note {
  display: flex; gap: 24px; align-items: baseline;
  padding: 4px 0 4px 26px; border-left: 2px solid var(--gold);
  font-size: 20px; line-height: 1.5; font-weight: var(--w-light); color: var(--ink);
}
.note b { flex: none; font-size: 13px; font-weight: var(--w-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chips span { padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 17px; font-weight: var(--w-light); background: var(--paper); color: var(--text); }

.btn { display: inline-flex; align-items: center; height: 60px; padding: 0 34px; border-radius: var(--r-pill); background: var(--dark); color: var(--cream); font-size: 18px; font-weight: var(--w-semibold); letter-spacing: .02em; }
.dark .btn { background: var(--cream); color: var(--dark); }

/* Split: text left, photo right */
.slide.split { padding: 0; flex-direction: row; }
.split-text { flex: 1.25; display: flex; flex-direction: column; padding: 80px 72px 108px 112px; min-width: 0; }
.split-photo { flex: .9; margin: 24px 24px 24px 0; border-radius: var(--r-hero); background-size: cover; background-position: center; }
.slide.split .foot { right: calc(45% + 72px); }

/* Timeline (numbered steps along a line) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline .step { position: relative; padding: 40px 32px 0 0; border-top: 1px solid var(--line); }
.timeline .step::before { content: ""; position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
.timeline h3 { font-size: 24px; }
.timeline p { font-size: 18px; line-height: 1.55; font-weight: var(--w-light); color: var(--muted); }

/* Intake plan: daily bar vs. 7-day cycles after each treatment */
.plan { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan-row { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.plan-name { display: flex; align-items: baseline; gap: 14px; }
.plan-name h3 { font-size: 20px; margin: 0; }
.plan-name span { font-size: 15px; font-weight: var(--w-light); color: var(--muted); }
.plan-track { height: 22px; border-radius: var(--r-pill); background: var(--line); position: relative; }
.plan-bar { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--dark); }
.plan-cycles { display: grid; grid-template-columns: repeat(6, 1fr); background: none; border-top: 1px dashed var(--line); border-radius: 0; height: 22px; margin-top: 11px; }
.plan-cycles i { display: block; width: 25%; height: 22px; margin-top: -11px; border-radius: var(--r-pill); background: var(--gold); }
.plan-cycles i.load { width: calc(100% * 24 / 28); padding-left: 10px; white-space: nowrap; overflow: hidden; font-style: normal; font-size: 11px; line-height: 22px; font-weight: var(--w-semibold); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); }
.plan-axis { display: grid; grid-template-columns: repeat(6, 1fr); font-size: 12px; font-weight: var(--w-semibold); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }


/* Product tile: photo on top, product names below */
.duo { display: flex; flex-direction: column; min-height: 0; }
.duo-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.duo-caps h3 { font-size: 24px; margin: 0 0 4px; }
.duo-caps span { font-size: 15px; font-weight: var(--w-light); color: var(--muted); }

/* Footer (added by script) */
.foot {
  position: absolute; left: 112px; right: 112px; bottom: 40px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #4c484580;
}
.foot img { height: 18px; display: block; }
.dark .foot { color: #f7f5e780; }
.dark .foot img, .dark .logo-invert { filter: brightness(0) invert(1); opacity: .9; }

/* Hint + presenter */
#hint {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 99px; background: #000000b0; color: #fff;
  font-size: 13px; letter-spacing: .03em; transition: opacity .6s; pointer-events: none; z-index: 20;
}
body.presenter { overflow: auto; background: #1f1e1d; color: #eee; }
body.presenter #stage, body.presenter #hint { display: none; }
#presenter { display: none; }
body.presenter #presenter {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; padding: 28px; height: 100vh;
}
.pv-box { position: relative; overflow: hidden; border-radius: 10px; background: var(--cream); }
.pv-box .slide { transition: none; }
.pv-label { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
#pv-notes { font-size: 22px; line-height: 1.55; color: #f1efe3; white-space: pre-line; overflow: auto; }
#pv-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; color: #aaa; }
#pv-timer { font-size: 44px; font-weight: 200; color: #fff; font-variant-numeric: tabular-nums; }
.pv-btns { display: flex; gap: 10px; }
.pv-btns button { flex: 1; padding: 14px; border: 1px solid #555; border-radius: 8px; background: #2c2c2c; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.pv-btns button:hover { border-color: var(--gold); }

@media print {
  @page { size: 1600px 900px; margin: 0; }
  html, body { overflow: visible; height: auto; background: none; }
  #stage { position: static; transform: none !important; width: 1600px; height: auto; overflow: visible; }
  #progress, #hint, #presenter { display: none !important; }
  .slide { position: relative; width: 1600px; height: 900px; opacity: 1; visibility: visible; transform: none; break-after: page; page-break-after: always; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
