/* Office Check, US landing page (index.html #check): matches the German form and summary preview.
   Loaded only on the landing page so office-check.html keeps its own form card. No card, no shadows:
   white fields and the white sheet sit straight on the lime field. */
.cta--check { --edge: light-dark(rgba(30, 45, 10, .42), rgba(201, 242, 122, .45)); --edge-hover: light-dark(rgba(30, 45, 10, .7), rgba(201, 242, 122, .7)); --olive: light-dark(#2F4A1B, #CDE0B5); text-align: left; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.cta--check .h2 { max-width: none; margin: 0; font-size: clamp(2.6rem, .21rem + 5.7vw, 5.6rem); line-height: .95; letter-spacing: -.045em; }
.cta--check .check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 clamp(2.5rem, 5vw, 4.5rem); max-width: none; margin: clamp(2rem, 3.6vw, 3rem) 0 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.cta--check .check__status { grid-column: 1 / -1; grid-row: 1; margin-bottom: 1.5rem; padding: 1rem 1.2rem; font-size: 1.05rem; background: var(--paper); color: var(--ink); }
.cta--check .check__status--error { background: light-dark(#FBE6DC, #35190F); color: light-dark(#8A3410, #F4A27F); }
.cta--check .check__a { grid-column: 1; grid-row: 2; display: grid; gap: 1.25rem; align-content: start; }
.cta--check .check__b { grid-column: 1; grid-row: 3; display: grid; gap: 1rem; align-content: start; margin-top: 1.75rem; }
.cta--check .aufst { grid-column: 2; grid-row: 2 / 4; }
.cta--check .check > [hidden] { display: none; }

.cta--check .lede { max-width: 34rem; margin: 0 0 .75rem; color: var(--ink); font-size: clamp(1.1rem, .56rem + .54vw, 1.25rem); text-wrap: pretty; }
.cta--check .lede b { font-weight: 650; }

.cta--check .field { gap: .45rem; font-size: .95rem; color: var(--ink); }
.cta--check .field input, .cta--check .field select { min-height: 3.1rem; padding: .7rem .95rem; border-radius: .5rem; font-size: 1rem; box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow .15s; }
.cta--check .field select { padding-right: 2.6rem; background-color: var(--paper); }
.cta--check .field input::placeholder { color: light-dark(#857F74, #A39C91); }
.cta--check .field input:hover, .cta--check .field select:hover { box-shadow: inset 0 0 0 1px var(--edge-hover); }
.cta--check .field input:focus, .cta--check .field select:focus { box-shadow: inset 0 0 0 2px var(--ink); }

.cta--check .check__chips { gap: .45rem .4rem; }
.cta--check .check__chips legend { margin-bottom: .65rem; font-size: .95rem; color: var(--ink); }
.cta--check .check__chips label { min-height: 2.5rem; padding: .4rem .95rem .4rem .75rem; gap: .4rem; font-size: .95rem; color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px light-dark(transparent, var(--edge)); transition: background-color .15s, color .15s, transform .15s; }
.cta--check .check__chips input:not(:checked) { opacity: .6; }
.cta--check .check__chips label:hover { background: light-dark(#F2F9E2, #263319); box-shadow: inset 0 0 0 1px light-dark(transparent, var(--edge-hover)); }
.cta--check .check__chips label:has(:checked) { background: light-dark(var(--dark), var(--lime)); color: light-dark(var(--lime), var(--dark)); box-shadow: none; }
.cta--check .check__chips label:hover:has(:checked) { background: light-dark(#34312C, #B5DD68); }
.cta--check .check__chips label:has(:focus-visible) { outline-color: var(--ink); }

.cta--check .check__ok { padding-top: 0; border-top: 0; font-size: .95rem; color: var(--ink); }
.cta--check .check__ok input { width: 1.25rem; height: 1.25rem; margin-top: .05rem; box-shadow: inset 0 0 0 1.5px var(--edge-hover); }
.cta--check .check__ok input:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cta--check .check__ok input:checked { background: var(--dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9F27A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .8rem no-repeat; box-shadow: none; }
.cta--check .check__ok input:focus-visible { outline-color: var(--ink); }
.cta--check .check__ok a { color: var(--ink); text-decoration-thickness: 1px; }
.cta--check .check .btn { min-height: 3.4rem; font-size: 1.02rem; box-shadow: none; transition: background-color .15s, transform .15s; }
.cta--check .check .btn:hover { background: var(--green); }
.cta--check .check .btn:focus-visible { outline-color: var(--ink); }
.cta--check .check__note { margin: 0; font-size: .9rem; color: var(--olive); text-align: left; }

/* The sheet: a white page with the Handem letterhead. Lines appear for the ticked boxes, the package that
   covers them is marked. Works without script; the script fills in business and trade and compacts the service lines. */
.aufst { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.5rem, 2.6vw, 2.25rem); background: var(--paper); border-radius: .875rem; color: var(--ink); }
.aufst__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted); }
.aufst__top img { width: 7.3rem; height: auto; }
.aufst__h { margin-top: 1.9rem; font-size: clamp(1.6rem, .21rem + 2vw, 2.05rem); font-weight: 650; line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
.aufst__meta { max-width: 30rem; margin-top: .5rem; font-size: .95rem; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.aufst__lines { flex: 1; display: flex; flex-direction: column; margin-top: 1.9rem; }
.aufst__cols { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; font-size: .88rem; color: var(--muted); }
.aufst__empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: 1.4rem 1.25rem; border-radius: .5rem; background: var(--cream); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.aufst__icons { display: grid; grid-template-columns: repeat(12, 1.5rem); justify-content: space-between; gap: .75rem .5rem; }
.aufst__empty .aufst__icons .px { grid-area: auto; width: 1.5rem; height: 1.5rem; margin: 0; }
.aufst .nw { white-space: nowrap; }
.aufst__lines ul { display: grid; gap: .35rem; }
.aufst__lines li { display: none; grid-template-columns: 1.75rem minmax(0, 1fr) auto; grid-template-areas: "ico name pk" "ico desc desc"; column-gap: .9rem; padding: .8rem 1rem .85rem .85rem; border-radius: .5rem; background: #F1F8E2; }
.aufst__lines .px { grid-area: ico; width: 1.75rem; height: 1.75rem; margin-top: .1rem; }
.aufst__lines b { grid-area: name; font-weight: 620; }
.aufst__lines em { grid-area: pk; font-style: normal; font-size: .9rem; color: var(--muted); }
.aufst__lines li > span { grid-area: desc; margin-top: .15rem; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.check:has(.check__chips :checked) .aufst__empty { display: none; }
.check:has([value="telefon"]:checked) [data-z="telefon"],
.check:has([value="termine"]:checked) [data-z="termine"],
.check:has([value="emails"]:checked) [data-z="emails"],
.check:has([value="angebote"]:checked) [data-z="angebote"],
.check:has([value="rechnungen"]:checked) [data-z="rechnungen"],
.check:has([value="mahnungen"]:checked) [data-z="mahnungen"],
.check:has([value="belege"]:checked) [data-z="belege"],
.check:has([value="nachtraege"]:checked) [data-z="nachtraege"],
.check:has([value="einsatzplanung"]:checked) [data-z="einsatzplanung"],
.check:has([value="fristen"]:checked) [data-z="fristen"],
.check:has([value="ueberblick"]:checked) [data-z="ueberblick"],
.check:has([value="stunden"]:checked) [data-z="stunden"] { display: grid; }

/* Compact sheet: from three ticks the script sets is-dicht. Earlier picks shrink to tags that wrap, the newest
   pick (is-neu) keeps its full line below them, so the sheet stays about as tall as the form at any count.
   Without script every pick keeps its full line. */
.aufst.is-dicht .aufst__cols { display: none; }
.aufst.is-dicht .aufst__lines ul { display: flex; flex-wrap: wrap; }
.aufst.is-dicht .aufst__lines li:not(.is-neu) { grid-template-columns: 1.5rem auto; grid-template-areas: "ico name"; align-items: center; column-gap: .55rem; padding: .5rem .9rem .5rem .6rem; }
.aufst.is-dicht .aufst__lines li:not(.is-neu) .px { width: 1.5rem; height: 1.5rem; margin: 0; }
.aufst.is-dicht .aufst__lines li:not(.is-neu) > :is(em, span) { display: none; }
.aufst.is-dicht .aufst__lines li.is-neu { order: 1; flex: 1 0 100%; }

.aufst__immer { margin-top: 1.75rem; }
.aufst__immer h4 { font: 620 .95rem/1.4 var(--font); }
.aufst__immer ul { display: grid; gap: .35rem; margin-top: .55rem; font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
.aufst__immer li { display: flex; align-items: baseline; gap: .6rem; }
.aufst__immer li::before { content: ""; flex: none; width: .5rem; height: .5rem; background: var(--brand-deep); }

.aufst__paket { margin-top: 1.75rem; }
.aufst__fit { margin-bottom: .6rem; font-weight: 620; }
.aufst__fit span { display: none; }
.aufst__pk { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .1rem 1rem; padding: .85rem 1rem; border-radius: .5rem; background: var(--cream); transition: background-color .25s, color .25s; }
.aufst__pk + .aufst__pk { margin-top: .35rem; }
.aufst__pk b { font-weight: 620; }
.aufst__pk strong { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aufst__pk small { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); transition: color .25s; }
.aufst__note { margin-top: .7rem; font-size: .88rem; color: var(--muted); }
/* Which plan covers the selections: phone, scheduling, email → Inquiries; anything else → Office. */
.check:not(:has(.check__chips :checked)) .fit--none,
.check:has(.check__chips :checked):not(:has(.check__chips :checked:not([value="telefon"], [value="termine"], [value="emails"]))) .fit--anfragen,
.check:has(.check__chips :checked:not([value="telefon"], [value="termine"], [value="emails"])) .fit--buero { display: inline; }
.check:has(.check__chips :checked):not(:has(.check__chips :checked:not([value="telefon"], [value="termine"], [value="emails"]))) [data-pk="anfragen"],
.check:has(.check__chips :checked:not([value="telefon"], [value="termine"], [value="emails"])) [data-pk="buero"] { background: var(--ink); color: #fff; }
.check:has(.check__chips :checked):not(:has(.check__chips :checked:not([value="telefon"], [value="termine"], [value="emails"]))) [data-pk="anfragen"] small,
.check:has(.check__chips :checked:not([value="telefon"], [value="termine"], [value="emails"])) [data-pk="buero"] small { color: var(--on-dark-2); }

@media (max-width: 63.75em) {
  .cta--check .check { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cta--check .check__a, .cta--check .check__b, .cta--check .aufst { grid-column: 1; grid-row: auto; }
  .cta--check .aufst { margin-top: 1.75rem; }
}
@media (max-width: 37.5em) {
  .cta--check .check { padding: 0; }
  .aufst { padding: 1.25rem; }
  .aufst__h { margin-top: 1.4rem; }
  .aufst__lines { margin-top: 1.4rem; }
  .aufst__lines li { padding-inline: .75rem; column-gap: .75rem; }
  .aufst__icons { grid-template-columns: repeat(6, 1.5rem); }
}
@media (max-width: 22em) {
  .aufst__icons { grid-template-columns: repeat(auto-fill, 1.5rem); }
  .aufst__pk { grid-template-columns: minmax(0, 1fr); }
  .aufst__pk strong { white-space: normal; }
}

@media (prefers-reduced-motion: no-preference) {
  .aufst__lines li { animation: aufst-line .4s cubic-bezier(.2, .7, .2, 1) both; }
  .aufst__lines li .px { animation: pop .45s steps(3) .1s both; }
  .aufst__fit span { animation: slot .35s cubic-bezier(.2, .7, .2, 1) both; }
  .cta--check .check__chips label:active { transform: scale(.95); }
  .cta--check .check__chips input:checked { animation: pop .35s steps(3); }
  .cta--check .check .btn:active { transform: scale(.985); }
  .cta--check .check .btn:hover svg { transform: translateX(3px); }
  .cta--check .check .btn svg { transition: transform .15s; }
}
@keyframes aufst-line { from { opacity: 0; transform: translateY(8px); } }

/* US-only labels and the link to the existing euro pricing and terms. */
.cta--check .field__opt { color: var(--olive); }
.aufst__note a { text-decoration: underline; text-underline-offset: 2px; }
