/* Leistung pages (telefon.html, termine.html …). Builds on fern.css; every Leistung page shares this layout. */

.tile { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: .55rem; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.tile .px { width: 1.35rem; height: 1.35rem; max-width: none; }
.tile--lg { width: 3.5rem; height: 3.5rem; border-radius: .8rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 10px 22px -12px rgba(29, 27, 24, .45); }
.tile--lg .px { width: 2.2rem; height: 2.2rem; }

/* Head */
.l-hero { padding-bottom: 0; }
.l-hero .tile--lg { margin: 0 auto 1.4rem; }
.l-hero .h1 { max-width: 15ch; }
.l-hero__note { max-width: 38rem; margin: .75rem auto 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
/* Breadcrumbs: an ordered list, the dividers come from CSS (empty alt text, so they aren't read out) */
.l-crumbs { margin-bottom: 1.6rem; font-size: .84rem; color: var(--faint); }
.l-crumbs ol { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; }
.l-crumbs li + li::before { content: "/" / ""; margin-right: .45rem; }
.l-crumbs a { color: var(--muted); }
.l-crumbs a[aria-current="page"] { color: inherit; }
@media (forced-colors: active) { .l-crumbs a[aria-current="page"] { text-decoration: underline; } }
.l-crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Picture: Handem does one job, the owner's WhatsApp sits on the right */
.l-stage { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.l-stage .band { height: 58%; }
.shot--one { height: auto; }
.shot--one .app { height: auto; min-height: 29rem; }
.shot__title { display: inline-flex; align-items: center; gap: .45rem; height: 2.15rem; padding: 0 .8rem; border-radius: .45rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .06); font-size: .85rem; font-weight: 560; color: var(--ink); }
.shot__title svg { width: .95rem; height: .95rem; color: var(--brand); }
.shot--one .wa__msgs { max-height: 26rem; }
.js .shot--one .wa [data-s]:not(.is-on), .js .shot--one .wa [data-after]:not(.is-on) { display: none; }

/* So arbeitet Handem: three steps on dark */
.l-steps { background: var(--dark); color: var(--on-dark); padding-block: clamp(4rem, 8vw, 6rem); }
.l-head { display: grid; grid-template-columns: 1fr minmax(0, 24rem); gap: 1rem 3rem; align-items: end; }
.l-head .h2 { max-width: 16ch; }
.l-head > p { font-size: 1.02rem; line-height: 1.55; color: var(--muted); }
.l-steps .l-head > p { color: var(--on-dark-2); }
.l-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.l-steps li { padding: 1.4rem 1.4rem 1.6rem; border-radius: .875rem; background: var(--dark-2); border: 1px solid var(--dark-line); }
.l-steps__n { font: 600 .78rem var(--mono); color: var(--lime); }
.l-steps h3 { margin-top: .9rem; font-size: 1.3rem; font-weight: 620; line-height: 1.2; letter-spacing: -.025em; }
.l-steps li p { margin-top: .55rem; font-size: .95rem; line-height: 1.55; color: var(--on-dark-2); }
.l-appr { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; padding: .28rem .65rem; border-radius: .38rem; background: rgba(217, 164, 65, .14); box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .4); font-size: .78rem; font-weight: 600; color: #F0C66E; }
.l-appr svg { width: .9rem; height: .9rem; }

/* Was Sie entscheiden: three lists on one sheet */
.l-rules { padding-block: clamp(4rem, 8vw, 6rem) 0; }
.l-rules__sheet { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border-radius: .875rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); }
.l-rules__sheet > div { padding: 1.5rem 1.5rem 1.7rem; }
.l-rules__sheet > div + div { border-left: 1px solid var(--line); }
.l-rules h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 620; letter-spacing: -.02em; }
.l-rules h3 .px { width: 1.4rem; height: 1.4rem; }
.l-rules ul { margin-top: 1rem; }
.l-rules li { position: relative; padding: .55rem 0 .55rem 1.2rem; border-top: 1px solid var(--line); font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.l-rules li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .45rem; height: .45rem; background: var(--brand); }
.l-rules__sheet > div:nth-child(1) li::before { background: var(--mustard); }
.l-rules__sheet > div:nth-child(3) li::before { background: var(--orange); }
.l-rules__more { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); }
.l-rules__more a, .l-setup a:not(.btn), .l-price__all { font-weight: 560; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Einrichtung and price */
.l-setup { padding-block: clamp(4rem, 8vw, 6rem); }
.l-setup__grid { display: grid; grid-template-columns: 1fr 22rem; gap: 3.5rem; align-items: start; }
.l-setup .h2 { max-width: 14ch; }
.l-setup__list { display: grid; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: s; }
.l-setup__list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; align-items: start; counter-increment: s; }
.l-setup__list li::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; height: 2.5rem; border-radius: .55rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 .78rem var(--mono); color: var(--brand); }
.l-setup__list b { display: block; font-weight: 620; color: var(--ink); }
.l-setup__list span { display: block; margin-top: .1rem; font-size: .93rem; line-height: 1.5; color: var(--muted); }
.l-setup__list small { display: inline-block; margin-top: .35rem; padding: .05rem .45rem; border-radius: .3rem; background: var(--chrome); font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.l-works { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2rem; font-size: .88rem; color: var(--muted); }
.l-works b { margin-right: .3rem; font-weight: 600; color: var(--ink-2); }
.l-works span { padding: .3rem .7rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }

.l-price { position: sticky; top: 6rem; padding: 1.6rem; border-radius: .875rem; background: var(--dark); color: var(--on-dark); box-shadow: 0 30px 60px -36px rgba(29, 27, 24, .6); }
.l-price__k { font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--lime); }
.l-price__v { margin-top: .7rem; font: 650 2.4rem/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.l-price__v span { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--on-dark-2); }
.l-price__v--text { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.03em; }
.l-price ul { margin-top: 1.2rem; border-top: 1px solid var(--dark-line); }
.l-price li { display: flex; gap: .55rem; padding: .6rem 0; border-bottom: 1px solid var(--dark-line); font-size: .9rem; line-height: 1.45; color: var(--on-dark-2); }
.l-price li svg { width: .95rem; height: .95rem; margin-top: .2rem; flex: none; color: var(--lime); }
.l-price .btn { width: 100%; margin-top: 1.4rem; }
.l-price__all { display: block; margin-top: .9rem; text-align: center; font-size: .88rem; color: var(--lime) !important; }

/* Fragen: reuses .faq and .qa from fern.css */
.l-faq { padding-top: 0; }

/* Passt dazu */
.l-next { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.l-next ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.l-next li a { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; height: 100%; padding: 1.2rem 1.3rem 1.3rem; border-radius: .875rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); transition: box-shadow .2s, transform .2s; }
.l-next li a:hover { box-shadow: 0 0 0 1px light-dark(#B9B1A3, #9E978C), 0 14px 28px -18px rgba(29, 27, 24, .45); transform: translateY(-2px); }
.l-next .tile { grid-row: span 3; }
.l-next b { font-size: 1.08rem; font-weight: 620; letter-spacing: -.015em; color: var(--ink); }
.l-next span { font-size: .9rem; line-height: 1.45; color: var(--muted); }
.l-next em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--brand-deep); }
.l-next__all { margin-top: 1.4rem; font-size: .92rem; color: var(--muted); }
.l-next__all a { font-weight: 560; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 66.25em) {
  .l-setup__grid { grid-template-columns: 1fr 19rem; gap: 2.5rem; }
}

@media (max-width: 53.75em) {
  .l-head, .l-setup__grid { grid-template-columns: 1fr; }
  .l-steps ol, .l-rules__sheet, .l-next ul { grid-template-columns: 1fr; }
  .l-rules__sheet > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .l-price { position: static; }
  .shot--one .app { grid-template-rows: auto auto; min-height: 0; }
  .shot--one .wa__msgs { max-height: 22rem; }
}

/* Large text on a phone: the cards put their icon above the text, the demo's title may take two lines */
@media (max-width: 22em) {
  .l-next li a { grid-template-columns: minmax(0, 1fr); }
  .l-next .tile { grid-row: auto; }
  .shot__title { height: auto; min-height: 2.15rem; padding-block: .3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .l-hero .tile--lg.in .px, .l-hero .tile--lg .px { animation: pop .45s steps(3) both .15s; }
  .l-next li a:hover .px { animation: hop .5s steps(2); }
}
