/* Shared structure of the landing pages in src/service-landing.mjs. Colours come from theme-<id>.css. */
/* Everything else uses all 12 columns inside the page margin. */
body:has(> [class^="theme-"]) { --content: calc(100% - 2 * clamp(1.25rem, 3.4vw, 4rem)); }
[class^="theme-"] { background: var(--ground); color: var(--text); }
[class^="theme-"] :is(h1, h2) { font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 740; letter-spacing: -.045em; text-wrap: balance; }
body:has(> [class^="theme-"]) > :is(header, footer) > .wrap, [class^="theme-"] > section:not(.land-ending) > .wrap, .land-ending { width: var(--content); margin-inline: auto; }
[class^="theme-"] > section:not(.land-hero, .land-ending) h2 { font-size: clamp(1.8rem, calc(2.8 * var(--vw)), 2.8rem); line-height: 1.12; }
[class^="theme-"] :is(.land-hero, .land-build, .land-section) p { color: inherit; }
[class^="theme-"] :is(.land-hero, .land-build, .land-section) .text-link { color: var(--link); }
[class^="theme-"] :is(.land-hero, .land-build, .land-section) .text-link:hover { color: inherit; }
[class^="theme-"] :is(.land-hero, .land-build, .land-section) .button { background: var(--action); border-color: var(--action); color: var(--on-action); min-height: 3.1rem; padding-inline: 1.35rem; border-radius: var(--button-radius); font-size: 1rem; }
[class^="theme-"] :is(.land-hero, .land-build, .land-section) .button:hover { background: var(--action-hover); border-color: var(--action-hover); }
[class^="theme-"] :is(.land-hero, .land-build, .land-section) :focus-visible { outline-color: var(--focus); }

.land-hero .button svg, .land-build .button svg, .land-section .button svg { display: none; }
.land-hero { position: relative; display: grid; isolation: isolate; }
.land-hero { min-height: min(calc(100svh - 5rem), 46rem); align-items: center; padding-block: clamp(3rem, 6vw, 6rem); }
.land-hero-copy { max-width: min(32rem, 42vw); }
.land-hero h1 { font-size: clamp(2.2rem, calc(3.8 * var(--vw)), 3.6rem); line-height: 1.03; }
.land-hero-copy > h1 + p { font-size: clamp(1.08rem, calc(1.4 * var(--vw)), 1.25rem); margin-top: 1.4rem; max-width: 32rem; }
.land-assurance { font-size: .95rem; margin-top: 1.1rem; }

.story-note { font-size: .9rem; margin-top: .8rem; }


.land-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.land-form legend { font-weight: 700; padding: 0; margin-bottom: .6rem; }
.land-form fieldset label { position: relative; display: block; cursor: pointer; }
.land-form fieldset input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.land-form fieldset label span { display: block; padding: .62rem 1.05rem; border: 1.5px solid currentColor; border-radius: var(--button-radius); font-size: .95rem; font-weight: 650; line-height: 1.3; }
.land-form fieldset input:checked + span { background: var(--choice); border-color: var(--choice); color: var(--on-choice); }
.land-form fieldset input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.land-section { padding-block: clamp(3rem, 5vw, 5rem); }
.land-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }



.land-links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.land-call img { width: 100%; max-height: 40rem; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 15%; border-radius: var(--image-radius); }
.call-steps { list-style: none; margin: 1.8rem 0; padding: 0; display: grid; gap: 1.1rem; }
.call-steps strong { font-size: 1.1rem; }
.call-steps p { margin-top: .15rem; }

.land-faq .land-split, .land-request .land-split { align-items: start; }
.land-faq details { border-bottom: 1px solid var(--rule); }
.land-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; list-style: none; cursor: pointer; font-weight: 700; }
.land-faq summary::-webkit-details-marker { display: none; }
.land-faq details[open] summary svg { transform: rotate(45deg); }
.land-faq details p { padding-bottom: 1.2rem; }

.land-request .button { margin-top: 1.6rem; }
.land-request .land-form { margin: 0; max-width: none; padding: clamp(1.2rem, 3vw, 2.2rem); gap: 1.1rem; background: #fff; color: #1d2938; border-radius: var(--image-radius); --choice: #1d2938; --on-choice: #fff; --focus: #3477a8; }
.land-form h3 { font-size: 1.4rem; letter-spacing: -.03em; }
.land-form .button { margin-top: 0; }
[class^="theme-"] .land-form .land-privacy { margin: 0; font-size: .85rem; color: #475465; }
.land-form [role="status"]:empty { display: none; }

@media (max-width: 60rem) {
  .land-hero-copy { max-width: 37rem; }
}
@media (max-width: 47rem) {
  .land-split { grid-template-columns: minmax(0, 1fr); }
  :is(.land-hero, .land-build, .land-section) .button { width: 100%; }
}

/* Shared scenes, used by the software and websites pages. Started by landing-scenes.mjs. */
.showcase { min-width: 0; margin: 0; padding: 0; border: 0; }
.showcase-stage, .offer-scene, .making-stage { container-type: inline-size; }
[class^="theme-"] :is(.demo, .offer-scene, .making-stage) p { max-width: none; margin: 0; }
.showcase-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.1rem; }
.showcase-tabs label { position: relative; display: block; padding-top: .9rem; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.showcase-tabs b { display: block; font-size: 1rem; }
.showcase-tabs input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.showcase-tabs label:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.showcase-time { position: absolute; inset: 0 0 auto; height: 3px; background: var(--rule); }
.showcase-time::after { content: ""; display: block; height: 100%; background: var(--link); transform-origin: 0 50%; scale: 0 1; }
:checked + .showcase-time::after { scale: 1; }
.app-window { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #fff; color: #14202d; border-radius: .7em; box-shadow: 0 1.5em 3.5em #14202d55; }
.app-bar { display: flex; align-items: center; gap: .4em; padding: .7em 1em; background: #e8eef1; font-size: .85em; }
.app-bar i { width: .65em; height: .65em; border-radius: 50%; background: #b3c0c9; }
.app-bar span { margin-left: .6em; }
.app-phone { width: 16.2em; padding: 1.3em 1em; border: .5em solid #070d14; border-radius: 2em; background: #f3f6f7; color: #14202d; box-shadow: 0 1.5em 3em #14202d66; }
.app-phone > strong { font-size: 1.1em; }
.app-phone p b { display: block; font-size: 1.12em; }
.phone-button { display: block; margin-top: .9em; padding: .75em; border-radius: .6em; background: #14293b; color: #fff; font-weight: 700; text-align: center; }
/* Offers: each service shows what it does. */
.offer-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 2.5vw, 2.5rem); margin-top: 2rem; }
.offer-scene { position: relative; display: grid; place-items: center; height: clamp(20rem, 27vw, 25rem); overflow: hidden; border-radius: 1rem; background: var(--scene); color: #14202d; }
[class^="theme-"] .offer-grid article { border: 0; padding: 0; }
.offer-scene .app-phone { width: 17em; font-size: clamp(.8rem, calc(1.1 * var(--vw)), 1rem); }
.offer-grid h3 { margin-top: 1.3rem; font-size: clamp(1.4rem, calc(2 * var(--vw)), 1.8rem); letter-spacing: -.03em; }
[class^="theme-"] .offer-grid article > p { max-width: 38rem; margin-top: .5rem; }
.offer-grid .offer-quote { font-weight: 700; }
.offer-grid .text-link { display: inline-block; margin-top: .9rem; }
.sheet { position: relative; width: min(24rem, 86cqw); padding: 1.5rem; border-radius: .7rem; background: #fff; box-shadow: 0 1.2rem 2.5rem #14202d44; }
.sheet strong { font-size: 1.3rem; }
.sheet p { display: flex; justify-content: space-between; padding-block: .65rem; border-bottom: 1px solid #dbe3e8; font-variant-numeric: tabular-nums; }
.sheet .sheet-total { border: 0; font-weight: 750; font-size: 1.15rem; }
.sheet em { padding: .1rem .7rem; border-radius: 1rem; background: #cdeedb; color: #10512f; font-style: normal; font-weight: 650; font-size: .9rem; }
.stamp { position: absolute; right: -1rem; bottom: -1rem; padding: .7rem 1.1rem; border-radius: .5rem; background: #1c7a48; color: #fff; font-weight: 750; }
[class^="theme-"] .calculator { display: grid; grid-template: auto 1fr / minmax(0, 7fr) minmax(0, 5fr); padding: 0; border: 0; border-radius: 1rem; }
[class^="theme-"] .calc-layout { display: contents; }
[class^="theme-"] .calc-intro { margin: 0; padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) 0; }
[class^="theme-"] #rechner .calc-intro h2 { font-size: clamp(1.4rem, calc(2 * var(--vw)), 1.8rem); }
[class^="theme-"] .calc-form { padding: 1.4rem clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem); }
[class^="theme-"] .calc-fields { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
[class^="theme-"] .calc-range { gap: 0; }
[class^="theme-"] .calc-examples { align-items: center; }
[class^="theme-"] .calc-examples::before { content: "Beispiel:"; font-weight: 600; font-size: .875rem; }
[class^="theme-"] .calc-select { max-width: 16rem; }
[class^="theme-"] .calc-preset { border: 2px solid #14202d; border-radius: var(--button-radius); }
[class^="theme-"] .calc-preset:hover { background: #e4eaed; }
[class^="theme-"] .calc-range-heading { font-size: 1rem; }
[class^="theme-"] .calc-range-value { font-size: 1.3rem; }
[class^="theme-"] .calc-summary { grid-area: 1 / 2 / 3; align-content: center; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 0 1rem 1rem 0; --calculator-muted: #14202d; --calculator-line: #14202d55; }
[class^="theme-"] .calc-summary .calc-amount { color: #14202d; font-size: clamp(2.6rem, calc(5 * var(--vw)), 4.6rem); font-weight: 740; }
[class^="theme-"] .calc-action { min-height: 3.1rem; border-radius: var(--button-radius); font-size: 1rem; }
.motion-toggle { position: fixed; z-index: 3; left: .35rem; bottom: .75rem; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #ffffff80; border-radius: 50%; background: #0e1a27; cursor: pointer; }
.motion-toggle::before { content: ""; display: block; width: .9rem; height: .9rem; margin: auto; background: linear-gradient(90deg, #fff 35%, transparent 0 65%, #fff 0); }
[class^="theme-"]:not(.has-motion) .motion-toggle::before { background: #fff; clip-path: polygon(15% 0, 100% 50%, 15% 100%); }
.motion-toggle:focus-visible { outline: 3px solid #f4bd6c; outline-offset: 2px; }
/* 20 minutes are a third of the dial. */
[class^="theme-"] .land-call .land-split > div::before { content: ""; display: block; width: 5.5rem; aspect-ratio: 1; margin-bottom: 1.4rem; border: 2px solid var(--link); border-radius: 50%; background: conic-gradient(var(--link) var(--minutes), transparent 0); }

@media (max-width: 47rem) {
  [class^="theme-"] .calculator { grid-template: none / minmax(0, 1fr); }
  [class^="theme-"] .calc-summary { grid-area: auto; border-radius: 0 0 1rem 1rem; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .showcase-tabs { gap: .7rem; }
  .showcase-tabs label { font-size: .8rem; }
  .showcase-tabs b { font-size: .88rem; line-height: 1.25; }
}

/* Motion plays by itself once a scene is seen. The scroll position never drives it. Described in docs/MOTION_DESIGN.md. The request form stands still. The calculator only fills its tracks, values never change by themselves.
   Every scene ends in the state it has without motion. */
@media screen and (prefers-reduced-motion: no-preference) {
  [class^="theme-"] .button { transition: background .2s, border-color .2s, scale .2s; }
  [class^="theme-"] .button:active { scale: .97; }
  [class^="theme-"] .land-form fieldset span { transition: background .2s, border-color .2s, color .2s; }
  [class^="theme-"] .land-faq summary svg { transition: transform .3s cubic-bezier(.2, .7, .3, 1); }
  [class^="theme-"] .land-faq details { interpolate-size: allow-keywords; }
  [class^="theme-"] .land-faq details::details-content { block-size: 0; overflow: clip; transition: block-size .3s cubic-bezier(.2, .7, .3, 1), content-visibility .3s allow-discrete; }
  [class^="theme-"] .land-faq details[open]::details-content { block-size: auto; }
  .has-motion {
    --out: cubic-bezier(.16, 1, .3, 1);
    --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);
  }
  .has-motion [data-showcase]:not(.is-chosen) :checked + .showcase-time::after { animation: showcase-time var(--time, 7s) linear both; }
  .has-motion .sheet p { animation: scene-up .6s var(--out) both; }
  .has-motion .sheet p:nth-of-type(1) { animation-delay: .4s; }
  .has-motion .sheet p:nth-of-type(2) { animation-delay: .9s; }
  .has-motion .sheet p:nth-of-type(3) { animation-delay: 1.4s; }
  .has-motion .sheet p:nth-of-type(4) { animation-delay: 2s; }
  .has-motion .stamp { animation: scene-pop .6s 2.8s var(--spring) both; }
  .has-motion .release em { animation: scene-pop .6s 1s var(--spring) both; }
  .has-motion .release p:nth-of-type(2) em { animation-delay: 1.5s; }
  .has-motion .release p:nth-of-type(3) em { animation-delay: 2.4s; }
  .has-motion .offer-scene .phone-button { animation: scene-press .4s 2.6s both; }
  .has-motion .land-call .land-split > div::before { animation: call-minutes 1.6s .3s var(--out) both; }
  .has-motion .calc-choice input:checked { animation: scene-pop .4s var(--spring); }
  .has-motion .calc-range input { animation: budget-track 1.2s var(--out) both; }
  .has-motion .calc-range:nth-child(3) input { animation-delay: .15s; }
  .has-motion .calc-range:nth-child(4) input { animation-delay: .3s; }
  .has-motion .calc-range:nth-child(5) input { animation-delay: .45s; }
  .has-motion [data-scene]:not(.is-playing), .has-motion [data-scene]:not(.is-playing) *, .has-motion [data-scene]:not(.is-playing) ::before, .has-motion [data-scene]:not(.is-playing) ::after { animation-play-state: paused !important; }
}
@keyframes showcase-time { from { scale: 0 1; } to { scale: 1; } }
@keyframes scene-up { from { opacity: 0; translate: 0 2.5em; } }
@keyframes scene-pop { from { opacity: 0; scale: .4; } }
@keyframes scene-press { 50% { scale: .93; } }
@keyframes making-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@property --minutes { syntax: "<angle>"; inherits: false; initial-value: 120deg; }
@keyframes call-minutes { from { --minutes: 0deg; } }
@property --range-progress { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@keyframes budget-track { from { --range-progress: 0%; } }
