/* Preise: tier cards, comparison, add-ons, Büro-Leistungen, contract and pilot */
.phero .h1 { max-width: 20ch; }

/* Tier cards on the colour band */
.tiers__stage { margin-top: 0; padding-bottom: 3.5rem; }
.tiers__stage .band { height: 70%; }
.tiers .wrap { --wrap: 76rem; }
.tiers__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: stretch; }
.tier { --pt: 1.9rem; --pb: 1.8rem; display: flex; flex-direction: column; padding: var(--pt) 1.75rem var(--pb); border-radius: .875rem; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -32px rgba(29, 27, 24, .5); }
.tier__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 1.6rem; }
.tier__step { font: 600 .75rem var(--mono); letter-spacing: .04em; color: var(--faint); }
.tier__badge { padding: .22rem .55rem; border-radius: .3rem; background: var(--lime); color: var(--dark); font-size: .72rem; font-weight: 650; white-space: nowrap; }
.tier__name { margin-top: 1rem; font-size: 1.6rem; font-weight: 650; line-height: 1.15; letter-spacing: -.03em; }
.tier__price { margin-top: 1.3rem; font-size: clamp(2.8rem, .18rem + 4.14vw, 3.6rem); font-weight: 650; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier__price span { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.tier__setup { margin-top: .7rem; font-size: .92rem; color: var(--muted); }
.tier__list { display: grid; gap: .7rem; margin: 1.5rem 0 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.tier__list li { display: grid; grid-template-columns: 1.15rem 1fr; gap: .65rem; }
.tier__list svg { width: 1.15rem; height: 1.15rem; margin-top: .1rem; padding: .2rem; border-radius: 50%; background: light-dark(#E1F1E6, #18291F); color: var(--brand); }
.tier__list strong { font-weight: 620; color: var(--ink); }
.tier .btn { width: 100%; min-height: 3rem; margin-top: auto; }
.tier--rec { --lift: 1.1rem; margin-block: calc(-1 * var(--lift)); padding-block: calc(var(--pt) + var(--lift)) calc(var(--pb) + var(--lift)); background: var(--dark); color: var(--on-dark); box-shadow: 0 0 0 1px var(--dark-line), 0 40px 70px -30px rgba(29, 27, 24, .8); }
.tier--rec .tier__step { color: var(--lime); }
.tier--rec .tier__price span, .tier--rec .tier__setup { color: var(--on-dark-3); }
.tier--rec .tier__list { border-top-color: var(--dark-line); color: var(--on-dark-2); }
.tier--rec .tier__list svg { background: rgba(201, 242, 122, .16); color: var(--lime); }
.tier--rec .tier__list strong { color: var(--on-dark); }

/* Immer dabei */
.incl { background: var(--dark); color: var(--on-dark); padding-block: 1.75rem 2.5rem; }
.incl__terms { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; font-size: .86rem; color: var(--on-dark-2); text-align: center; }
.incl__terms li { display: flex; align-items: center; gap: .55rem; }
.incl__terms li::before { content: ""; flex: none; width: .45rem; height: .45rem; background: var(--lime); }
.incl__h { margin-top: 3.5rem; font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--lime); }
.incl__list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.1rem; border: 1px solid var(--dark-line); border-radius: .75rem; overflow: clip; background: var(--dark-2); }
.incl__list li { display: flex; align-items: center; gap: .85rem; padding: 1.15rem 1.3rem; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); font-size: .98rem; font-weight: 560; }
.incl__list li:nth-child(3n) { border-right: 0; }
.incl__list li:nth-child(n+4) { border-bottom: 0; }
.incl__list .px { width: 1.6rem; height: 1.6rem; }
.incl__note { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem 3rem; margin-top: 1.75rem; font-size: .9rem; line-height: 1.6; color: var(--on-dark-2); }
.incl__note strong { font-weight: 620; color: var(--on-dark); }

/* Comparison */
.cmp { background: var(--dark); padding-block: 1.5rem clamp(4.5rem, 9vw, 6.5rem); }
.cmp__box { border-radius: .875rem; background: var(--paper); color: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); overflow: clip; }
.cmp__box > summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; }
.cmp__box > summary::-webkit-details-marker { display: none; }
.cmp__box > summary:hover .cmp__title { color: var(--brand-deep); }
.cmp__box[open] > summary { border-bottom: 1px solid var(--line); }
.cmp__ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .6rem; background: light-dark(#F7F5F0, var(--dark-2)); box-shadow: inset 0 0 0 1px var(--line); }
.cmp__ico .px { width: 1.45rem; height: 1.45rem; }
/* Styled like the h2 it was: a heading inside <summary> loses its role */
.cmp__title { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.cmp__sub { display: block; margin-top: .15rem; font-size: .88rem; color: var(--muted); }
.cmp__toggle { position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.cmp__toggle::before, .cmp__toggle::after { content: ""; position: absolute; width: .85rem; height: 1.5px; background: var(--ink); }
.cmp__toggle::after { transform: rotate(90deg); }
.cmp__box[open] .cmp__toggle::after { transform: none; }
.cmp__box > summary:hover .cmp__toggle { background: light-dark(#F6F3ED, var(--dark-2)); }
.cmp__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmp__table th, .cmp__table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp__table thead th { position: sticky; top: 4rem; z-index: 1; padding-block: 1rem .9rem; background: var(--paper); vertical-align: bottom; box-shadow: inset 0 -1px 0 var(--line-2); border-bottom: 0; }
.cmp__table thead th:first-child { padding-left: 1.4rem; font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--faint); }
.cmp__table thead th + th, .cmp__table td { width: 17%; text-align: center; }
.cmp__table tbody th { padding-left: 1.4rem; font-weight: 450; line-height: 1.45; color: var(--ink-2); }
.cmp__step { display: block; font: 600 .7rem var(--mono); color: var(--faint); }
.cmp__name { display: block; margin-top: .25rem; font-size: .9rem; font-weight: 650; color: var(--ink); }
.cmp__price { display: block; margin-top: .15rem; font-size: 1.25rem; font-weight: 650; letter-spacing: -.045em; color: var(--ink); }
.cmp__table thead th:nth-child(2), .cmp__table td:nth-child(2) { background: light-dark(#F3FBE6, #1B2715); }
.cmp__table thead th:nth-child(2) .cmp__step { color: light-dark(#5E8A2A, #A8D65A); }
.cmp__table .cmp__group th { padding-top: 1.5rem; padding-bottom: .6rem; background: light-dark(#FAF9F6, #171614); font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--brand); }
.cmp__group svg { display: inline-block; width: .95rem; height: .95rem; margin-right: .55rem; vertical-align: -.15rem; }
.cmp__yes { display: inline-block; width: 1.4rem; height: 1.4rem; padding: .27rem; border-radius: 50%; background: light-dark(#E1F1E6, #18291F); color: var(--brand); vertical-align: middle; }
.cmp__no { display: inline-block; width: .8rem; height: 2px; background: var(--line-2); vertical-align: middle; }
.cmp__note { padding: 1rem 1.4rem 1.2rem; background: light-dark(#F7F4EE, #171614); font-size: .84rem; color: var(--muted); }

/* Zusatzmodule */
.adds { padding-block: clamp(4.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 3.5rem); }
.adds .h2, .more .h2 { max-width: 18ch; }
.more .h2 { margin-top: 1rem; }
.adds .lede, .more .lede { max-width: 38rem; margin-top: 1.3rem; }
.addons { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.75rem; border-radius: .75rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); overflow: hidden; }
.addon { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: start; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.addon:nth-child(odd) { border-right: 1px solid var(--line); }
.addon:nth-last-child(-n+2) { border-bottom: 0; }
.addon__ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .55rem; background: light-dark(#F7F5F0, var(--dark-2)); box-shadow: inset 0 0 0 1px var(--line); }
.addon__ico .px { width: 1.4rem; height: 1.4rem; }
.addon h3 { font-size: 1.08rem; font-weight: 620; line-height: 1.3; letter-spacing: -.015em; }
.addon p { margin-top: .4rem; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.addon .tag { margin-right: .3rem; vertical-align: .08rem; }
.addon .addon__price { margin-top: 0; font-size: 1.5rem; font-weight: 650; line-height: 1.1; letter-spacing: -.045em; text-align: right; white-space: nowrap; color: var(--ink); }
.addon__price span { display: block; margin-top: .2rem; font-size: .74rem; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.addon--note { grid-template-columns: 2.5rem 1fr; background: light-dark(#F7F4EE, #171614); }
.addon--note p { margin-top: 0; color: var(--ink-2); }
.addon--note strong { font-weight: 620; color: var(--ink); }

/* Weitere Büro-Leistungen */
.more { padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(4.5rem, 9vw, 7rem); }
.more__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.75rem; }
.more__grid > li { position: relative; display: flex; flex-direction: column; padding: 1.3rem 1.25rem 1.4rem; border-radius: .65rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); transition: box-shadow .2s; }
.more__grid > li:not(.more__note):hover { box-shadow: 0 0 0 1px var(--brand), 0 10px 24px -16px rgba(29, 27, 24, .35); }
.more__grid .px { width: 1.6rem; height: 1.6rem; }
.more__grid h3 { margin-top: 1.1rem; font-size: 1.05rem; font-weight: 620; line-height: 1.3; letter-spacing: -.01em; }
.more__grid h3 a { display: inline-flex; align-items: center; gap: .3rem; }
.more__grid h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.more__grid h3 svg { width: .95rem; height: .95rem; color: var(--faint); transition: transform .2s, color .2s; }
.more__grid > li:hover h3 { color: var(--brand-deep); }
.more__grid > li:hover h3 svg { color: var(--brand); transform: translateX(3px); }
.more__grid p { margin-top: .5rem; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.more__grid > .more__note { justify-content: space-between; gap: 1.25rem; background: var(--dark); color: var(--on-dark); box-shadow: none; }
.more__note p { margin-top: 0; font-size: 1.02rem; font-weight: 560; line-height: 1.45; letter-spacing: -.015em; color: var(--on-dark); }
.more__note .btn { align-self: flex-start; }

/* Pilot und Vertrag */
.deal { background: var(--green); color: #fff; padding-block: clamp(4rem, 8vw, 6rem); }
.deal__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2.4rem 0 0; }
.deal__facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .28); }
.deal__facts dd { margin: 0; font-size: clamp(1.9rem, .55rem + 2.4vw, 2.5rem); font-weight: 650; line-height: 1.05; letter-spacing: -.05em; white-space: nowrap; }
.deal__facts dt { margin-top: .5rem; font-size: .86rem; line-height: 1.4; color: #CFE6D8; }
.deal__notes { display: grid; gap: 1rem; max-width: 34rem; margin-top: 2.4rem; font-size: .95rem; line-height: 1.6; color: #CFE6D8; }
.deal__notes strong { font-weight: 620; color: #fff; }
.deal .h2 { max-width: 13ch; }
.pilot { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: .875rem; background: var(--cream); color: var(--ink); box-shadow: 0 24px 48px -24px rgba(29, 27, 24, .55); }
.pilot__offer { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.75rem, 3.5vw, 2.75rem); border-right: 1px solid var(--line); }
.pilot__h { font-size: clamp(1.5rem, .18rem + 2.14vw, 2rem); font-weight: 650; line-height: 1.1; letter-spacing: -.035em; max-width: 14ch; }
.pilot__price { margin-top: 1.6rem; font-size: clamp(4rem, .44rem + 7.36vw, 6rem); font-weight: 650; line-height: .9; letter-spacing: -.065em; color: var(--brand-deep); }
.pilot__what { margin-top: 1rem; font-weight: 500; max-width: 26rem; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.pilot__offer .btn { margin-top: auto; }
.pilot__what + .btn { margin-top: 2rem; }
.pilot__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.pilot__steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.pilot__steps li:last-child { border-bottom: 0; }
.pilot__steps small { padding-top: .15rem; font-size: .8rem; font-weight: 650; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.pilot__steps h3 { font-size: 1.05rem; font-weight: 620; letter-spacing: -.02em; }
.pilot__steps p { margin-top: .35rem; font-size: .93rem; line-height: 1.55; color: var(--ink-2); }
.pilot__credit { display: grid; gap: .4rem; margin: .85rem 0 0; padding: .8rem 1rem; border-radius: .5rem; background: light-dark(#fff, var(--dark-3)); box-shadow: inset 0 0 0 1px var(--line); }
.pilot__credit > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.pilot__credit dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.pilot__credit s { margin-right: .4rem; font-weight: 400; color: var(--muted); }
.pilot__steps .pilot__fine { font-size: .85rem; color: var(--muted); }
.deal__terms { margin-top: clamp(3.5rem, 7vw, 5rem); }
.deal__terms .deal__facts { margin-top: 2rem; max-width: 52rem; }
.deal__terms .deal__notes { grid-template-columns: 1fr 1fr; column-gap: 3rem; max-width: none; }

/* Fragen zum Preis */
.faq { padding-top: clamp(4.5rem, 9vw, 6.5rem); }

/* Desktop: head and cards fill the first screen. The script below the page sets --screen, and on short screens --fit shrinks both evenly. */
@media (min-width: 53.8125em) {
  .first { display: flex; flex-direction: column; min-height: var(--screen, auto); }
  .first .phero { flex: 1; display: grid; align-content: center; padding-block: 1.75rem 2.75rem; }
  .first .phero .wrap, .first .tiers .wrap { zoom: var(--fit, 1); }
  .phero .h1 { max-width: none; font-size: clamp(2.6rem, .18rem + 4.14vw, 4rem); }
  .phero .h1 br { display: none; }
  .tiers__stage { padding-bottom: 3rem; }
}

@media (max-width: 66.25em) {
  .tier { padding-inline: 1.25rem; }
  .more__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 53.75em) {
  .tiers__grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .tiers__stage .band { height: 40%; }
  .tier--rec { margin-block: 0; padding-block: var(--pt) var(--pb); }
  .incl__list { grid-template-columns: 1fr 1fr; }
  .incl__list li:nth-child(3n) { border-right: 1px solid var(--dark-line); }
  .incl__list li:nth-child(2n) { border-right: 0; }
  .incl__list li:nth-child(n+4) { border-bottom: 1px solid var(--dark-line); }
  .incl__list li:nth-child(n+5) { border-bottom: 0; }
  .incl__note { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr; }
  .addon:nth-child(odd) { border-right: 0; }
  .addon:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 40em) {
  .incl__terms { flex-direction: column; align-items: flex-start; text-align: left; }
  .incl__terms li { align-items: baseline; }
  .incl__list { grid-template-columns: 1fr; }
  .incl__list li:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .incl__list li:last-child { border-right: 0; border-bottom: 0; }
  .cmp__box > summary { grid-template-columns: 1fr auto; padding: 1rem 1.1rem; }
  .cmp__ico { display: none; }
  .cmp__table, .cmp__table thead, .cmp__table tbody { display: block; }
  .cmp__table thead { position: sticky; top: 4rem; z-index: 1; background: var(--paper); box-shadow: inset 0 -1px 0 var(--line-2); }
  .cmp__table tr { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cmp__table thead th { position: static; box-shadow: none; padding: .8rem .5rem .7rem; text-align: center; }
  .cmp__table thead th:first-child { display: none; }
  .cmp__table thead th + th, .cmp__table td { width: auto; }
  .cmp__table tbody th { grid-column: 1 / -1; padding: .85rem 1.1rem .3rem; border-bottom: 0; font-size: .9rem; }
  .cmp__table td { padding: .35rem .5rem .75rem; }
  .cmp__table .cmp__group th { padding: 1.2rem 1.1rem .6rem; border-bottom: 1px solid var(--line); }
  .cmp__name { font-size: .78rem; overflow-wrap: anywhere; }
  .cmp__price { font-size: 1.05rem; }
  .cmp__note { padding-inline: 1.1rem; }
  .addon { grid-template-columns: 2.5rem 1fr; padding: 1.2rem 1.1rem; }
  .addon .addon__price { grid-column: 2; text-align: left; }
  .addon__price span { display: inline; margin-left: .35rem; }
  .more__grid { grid-template-columns: 1fr; }
  .deal__facts { grid-template-columns: 1fr; gap: 0; }
  .deal__facts > div { display: grid; grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: 1rem; padding-block: .9rem; }
  .deal__facts dd { order: -1; }
  .deal__facts dt { margin-top: 0; }
  .deal__facts dd { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .tier.in .tier__list svg { animation: pop .45s steps(3) both; animation-delay: calc(var(--i, 0) * 90ms + .35s); }
  .tier.in .tier__list li:nth-child(2) svg { animation-delay: calc(var(--i, 0) * 90ms + .45s); }
  .tier.in .tier__list li:nth-child(3) svg { animation-delay: calc(var(--i, 0) * 90ms + .55s); }
  .tier.in .tier__list li:nth-child(4) svg { animation-delay: calc(var(--i, 0) * 90ms + .65s); }
  .tier.in .tier__list li:nth-child(5) svg { animation-delay: calc(var(--i, 0) * 90ms + .75s); }
  /* One lift and back (5s), decoration only */
  .tier--rec { animation: float 5s ease-in-out; }
  .incl__list > * { --rise-from: none; }
  .incl__list > .in .px { animation: pop .45s steps(3) both; animation-delay: calc(var(--i, 0) * 90ms + .2s); }
  .incl__list li:hover .px, .addon:hover .px, .more__grid > li:hover .px { animation: hop .5s steps(2); }
  .cmp__box { interpolate-size: allow-keywords; }
  .cmp__box::details-content { block-size: 0; overflow: clip; transition: block-size .5s cubic-bezier(.2, .7, .2, 1), content-visibility .5s allow-discrete; }
  .cmp__box[open]::details-content { block-size: auto; }
  .cmp__toggle::after { transition: transform .25s ease; }
  .cmp__box[open] .cmp__yes { animation: pop .45s steps(3) both; animation-delay: .25s; }
  .cmp__box[open] td:nth-child(3) .cmp__yes { animation-delay: .35s; }
  .cmp__box[open] td:nth-child(4) .cmp__yes { animation-delay: .45s; }
  .js .deal__facts > [data-rise] dd { transition: letter-spacing .9s cubic-bezier(.2, .7, .2, 1); letter-spacing: .02em; }
  .js .deal__facts > [data-rise].in dd { letter-spacing: -.05em; }
}

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* Pilot und Vertrag: narrow screens */
@media (max-width: 66.25em) {
  .pilot { grid-template-columns: 1fr; max-width: 40rem; }
  .pilot__offer { border-right: 0; border-bottom: 1px solid var(--line); }
  .deal__terms .deal__notes { grid-template-columns: 1fr; max-width: 40rem; }
}
@media (max-width: 40em) {
  .pilot__steps li { grid-template-columns: 1fr; gap: .35rem; padding-inline: 1.25rem; }
  .pilot__credit { padding-inline: .85rem; }
  .pilot__credit > div { flex-wrap: wrap; column-gap: .75rem; row-gap: 0; }
  .deal__facts > div { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
  .deal__facts dd { white-space: normal; }
  .pilot__offer { padding: 1.5rem 1.25rem; }
}
/* Large text on a phone: the price may wrap */
@media (max-width: 22em) { .tier__price { white-space: normal; } }
