/* Webdesign page v2. Shared tokens and blocks come from ../css/site.css. */

/* ---------- Hero: the claim around a belt of real sites ---------- */
.wd-hero { --hero-fit: 16; --hero-fit-m: 7.7; --window-bg: var(--gelb); }
.wd-hero .page-hero__line--b { hyphens: manual; }
.belt { position: absolute; inset: 0; display: flex; align-items: center; }
.belt__track { display: flex; align-items: center; gap: 5cqh; padding-left: 5cqh; width: max-content; height: 100%; }
.belt__item { position: relative; flex: none; }
.belt__item--desk { height: 66cqh; aspect-ratio: 1600 / 1072; }
.belt__item--phone { height: 76cqh; aspect-ratio: 780 / 1760; }
.belt__item--phone .browser__bar { font-size: 9px; }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.belt.is-looping .belt__track { animation: belt 70s linear infinite; }

/* ---------- 01 Pakete: four scenes ---------- */
.packs { padding-bottom: var(--space-7); }
.stage__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); margin-bottom: var(--space-3); }
.stage__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--round);
  font-size: var(--t-small);
  font-weight: 600;
  transition: background-color var(--dur-fast-out) var(--ease-exit), color var(--dur-fast-out) var(--ease-exit), border-color var(--dur-fast-out) var(--ease-exit);
}
.stage__tab .tnum, .stage__tab em { font-weight: 400; color: var(--muted); }
.stage__tab-dot { width: 8px; height: 8px; border-radius: var(--round); background: currentColor; }
.stage__tab:hover { border-color: var(--fg); transition-duration: var(--dur-fast); transition-timing-function: var(--ease-enter); }
.stage__tab.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.stage__tab.is-active .tnum, .stage__tab.is-active em { color: color-mix(in oklab, var(--bg) 78%, var(--fg)); }

.scenes { display: grid; gap: var(--gap); container-type: inline-size; }
.scene {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--space-4);
  align-content: space-between;
  padding: clamp(32px, 4.4cqw, 64px);
  border-radius: var(--card);
  background: var(--bg);
  color: var(--fg);
  scroll-margin-top: calc(var(--nav-h) + 72px);
}
.scene__head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: var(--space-2); align-items: end; }
.scene__count { grid-column: 1 / -1; font-size: var(--t-small); font-weight: 600; letter-spacing: 0.04em; }
.scene__count span { font-weight: 400; color: var(--muted); }
.scene__name { grid-column: 1 / 8; font-size: clamp(3.25rem, 7.4cqw, 7.5rem); line-height: 0.86; font-weight: 250; letter-spacing: -0.045em; white-space: nowrap; }
.scene__price { grid-column: 8 / 13; justify-self: end; display: flex; align-items: baseline; font-size: clamp(3.25rem, 8cqw, 8rem); line-height: 0.82; font-weight: 750; letter-spacing: -0.05em; white-space: nowrap; }
.scene__cur { margin-left: 0.08em; font-size: 0.4em; font-weight: 300; letter-spacing: 0; }
.scene__from { margin-right: 0.18em; font-size: 0.32em; font-weight: 300; letter-spacing: 0; }
.scene__price--ask { font-size: clamp(2.75rem, 6.2cqw, 6rem); font-weight: 200; letter-spacing: -0.035em; }
.scene__price--ask em { color: var(--accent); }
.scene__for { grid-column: 1 / 5; grid-row: 2; align-self: start; font-size: var(--t-l); line-height: 1.36; font-weight: 300; text-wrap: pretty; }
.scene__say { grid-column: 6 / 13; grid-row: 2; align-self: start; font-size: clamp(1.25rem, 1.75cqw, 1.75rem); line-height: 1.3; }
/* The package as facts: four short label and value pairs, like the data sheet of the hosting tiers. */
.scene__facts { grid-column: 6 / 13; grid-row: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--gap); align-self: end; }
.scene__facts > div { display: grid; align-content: start; gap: 4px; padding-top: var(--space-1); border-top: 1px solid var(--line); }
.scene__facts dt { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.scene__facts dd { font-size: var(--t-small); line-height: 1.38; font-weight: 500; }
.js .scene:not(.is-live) .scene__facts > div { opacity: 0; transform: translateY(10px); }
.js .scene .scene__facts > div { transition: opacity var(--dur-moderate) var(--ease-enter), transform var(--dur-slow) var(--ease-enter); }
.js .scene.is-live .scene__facts > div:nth-child(2) { transition-delay: 60ms; }
.js .scene.is-live .scene__facts > div:nth-child(3) { transition-delay: 120ms; }
.js .scene.is-live .scene__facts > div:nth-child(4) { transition-delay: 180ms; }
/* The page plan: what the package builds, drawn as pages; they lay themselves down when the scene opens. */
.plan { grid-column: 1 / 5; grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) 12px; }
.plan__item { display: grid; justify-items: center; gap: 6px; }
.plan__page { position: relative; display: grid; align-content: start; gap: 5px; width: 46px; height: 60px; padding: 8px 7px; border: 1.5px solid currentColor; }
.plan__page i { display: block; height: 3px; background: currentColor; opacity: 0.55; }
.plan__page i:first-child { height: 6px; opacity: 1; }
.plan__page--long { width: 58px; height: 132px; gap: 12px; }
.plan__page--choice { border-style: dashed; }
.plan__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.js .scene:not(.is-live) .plan__item { opacity: 0; transform: translateY(14px); }
.js .scene .plan__item { transition: opacity var(--dur-moderate) var(--ease-enter), transform var(--dur-slow) var(--ease-enter); }
.js .scene.is-live .plan__item:nth-child(2) { transition-delay: 50ms; }
.js .scene.is-live .plan__item:nth-child(3) { transition-delay: 100ms; }
.js .scene.is-live .plan__item:nth-child(4) { transition-delay: 150ms; }
.js .scene.is-live .plan__item:nth-child(5) { transition-delay: 200ms; }
.js .scene.is-live .plan__item:nth-child(6) { transition-delay: 250ms; }
.js .scene.is-live .plan__item:nth-child(7) { transition-delay: 300ms; }
.js .scene.is-live .plan__item:nth-child(8) { transition-delay: 350ms; }
.scene__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.scene__after { font-size: var(--t-small); color: var(--muted); }
.scene__after strong { color: var(--fg); font-weight: 600; }

/* Pinned stage (js adds .stage-on on wide screens): the scenes lie on each other, the active one on top. */
.stage-on .stage__wrap { display: grid; grid-template-rows: auto 1fr; height: 100svh; padding-top: calc(var(--nav-h) + var(--space-2)); padding-bottom: var(--space-3); }
.stage-on .scenes { position: relative; display: block; }
.stage-on .scene { position: absolute; inset: 0; visibility: hidden; }
.stage-on .scene.is-shown { visibility: visible; }
/* Short screens (720 to 860 px high): the page plan steps aside and type and padding follow the height, so the whole package fits. */
@media (max-height: 860px) {
  .stage-on .plan { display: none; }
  .stage-on .scene__for { grid-row: 2 / 4; }
  .stage-on .scene { row-gap: var(--space-3); padding: clamp(24px, 3cqw, 48px); }
  .stage-on .scene__name { font-size: clamp(3rem, min(7.4cqw, 11vh), 7.5rem); }
  .stage-on .scene__price { font-size: clamp(3rem, min(8cqw, 12vh), 8rem); }
}

.packs__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: var(--space-7); }
.packs__extras { grid-column: 1 / 11; }
.packs__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.packs__end .fineprint { margin: 0; max-width: 64ch; }

/* ---------- 02 Umfang: three phases, each a column of what is delivered; items rise in one after another ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.phase { display: grid; align-content: start; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--fg); }
.phase__num { font-size: clamp(4rem, 7vw, 6.5rem); line-height: 0.85; font-weight: 800; font-style: italic; color: var(--accent); letter-spacing: -0.04em; }
.phase__title { font-size: clamp(1.75rem, 1.1rem + 1.3vw, 2.5rem); line-height: 1.05; font-weight: 300; letter-spacing: -0.025em; }
.phase__list { display: grid; gap: var(--space-2); }
.phase__list li { padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: var(--t-l); line-height: 1.38; font-weight: 300; color: var(--muted); }
.phase__list b { display: block; font-weight: 600; color: var(--fg); }
.js [data-phases]:not(.is-in) .phase__list li, .js [data-phases]:not(.is-in) .phase__num { opacity: 0; transform: translateY(18px); }
.js [data-phases] .phase__list li, .js [data-phases] .phase__num { transition: opacity var(--dur-moderate) var(--ease-enter), transform var(--dur-slow) var(--ease-enter); transition-delay: calc(var(--d, 0) * 70ms); }
.scope__posters { margin-top: var(--space-8); }

/* ---------- 03 Betrieb: the hosting counter ---------- */
.counter__wrap { container-type: inline-size; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.tier {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--card);
  background: var(--creme);
  color: var(--nacht);
}
.tier__count { font-size: var(--t-small); font-weight: 600; }
.tier__count span { font-weight: 400; color: var(--muted); }
.tier__name { font-size: clamp(2.25rem, 3.4vw, 3.25rem); line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.tier__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35em; font-size: clamp(2.5rem, 3.8vw, 3.75rem); line-height: 1; font-weight: 750; letter-spacing: -0.045em; }
.tier__unit { font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.tier--ask .tier__figure { font-weight: 250; color: var(--blau); }
.tier__fit { font-weight: 600; }
.tier__fit .text-link, .scene__facts dd .text-link { font-weight: 700; }
/* Own request button per hosting tier (booked with or without a website from us). */
.tier__ask { justify-self: start; align-self: end; margin-top: var(--space-1); }
.counter-on .tier { grid-template-rows: auto 1fr auto auto; }
.counter-on .tier__ask { grid-column: 1 / 6; grid-row: 4; }
.tier__sheet { display: grid; gap: var(--space-1); }
.tier__sheet > div { display: grid; gap: 2px; padding-top: var(--space-1); border-top: 1px solid var(--line); }
.tier__sheet dt { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
.tier__sheet dd { font-size: var(--t-small); line-height: 1.4; }
.counter__track { display: none; }

/* Pinned counter (js adds .counter-on): one tier at a time in poster size; name and price roll on to the next. */
.counter-on .counter__wrap { height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: calc(var(--nav-h) + var(--space-4)); padding-bottom: var(--space-5); }
.counter-on .tiers { position: relative; display: block; }
.counter-on .tier {
  position: absolute;
  inset: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: var(--gap);
  align-content: stretch;
  padding: 0;
  background: none;
  color: inherit;
  visibility: hidden;
}
.counter-on .tier.is-shown { visibility: visible; }
.counter-on .tier__count { grid-column: 1 / -1; }
.counter-on .tier__name { grid-column: 1 / 8; grid-row: 2; align-self: center; font-size: clamp(5rem, 13.5cqw, 13rem); line-height: 0.86; font-weight: 250; letter-spacing: -0.05em; overflow: clip; overflow-clip-margin: 0.1em; padding-bottom: 0.06em; }
.counter-on .tier--ask .tier__name { font-size: clamp(3.5rem, 7.4cqw, 7rem); }
.counter-on .tier__price { grid-column: 8 / 13; grid-row: 2; align-self: center; justify-self: end; flex-direction: column; align-items: flex-end; gap: var(--space-1); font-size: clamp(4.5rem, 12cqw, 11.5rem); line-height: 0.85; overflow: clip; overflow-clip-margin: 0.1em; }
.counter-on .tier--ask .tier__price { font-size: clamp(3rem, 6.4cqw, 6rem); }
.counter-on .tier__unit { font-size: var(--t-l); font-weight: 300; color: var(--fg); }
.counter-on .tier__fit { grid-column: 1 / 6; grid-row: 3; font-size: var(--t-l); line-height: 1.3; font-weight: 500; }
.counter-on .tier__sheet { grid-column: 6 / 13; grid-row: 3; align-self: end; width: 100%; max-width: 46rem; justify-self: end; }
.counter-on .tier__sheet > div { grid-template-columns: 8.5rem 1fr; column-gap: var(--space-2); }
.counter-on .tier__sheet dd { font-size: var(--t-l); line-height: 1.3; font-weight: 300; }
.counter-on .counter__track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-5); padding-top: var(--space-3); }
.counter__rail { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); border-radius: var(--round); }
.counter__dot { position: absolute; left: 0; top: -7px; width: 16px; height: 16px; border-radius: var(--round); background: var(--blau); will-change: transform; }
.counter__stop { font-size: var(--t-small); font-weight: 500; color: var(--muted); transition: color var(--dur-fast) linear; }
.counter__stop.is-active { color: var(--fg); font-weight: 700; }

/* Änderungspakete: the ring is five hours, each package fills its share. */
/* One square box per dial: ring and time share its centre; the time is sized from the box (cqi), so it stays inside the ring at every width. */

.addons { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.addons__title { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.04; font-weight: 300; letter-spacing: -0.025em; margin-bottom: var(--space-5); }
.addons__lead { max-width: 60ch; margin-bottom: var(--space-5); color: var(--muted); }
.addon { display: grid; align-content: start; gap: 4px; padding: var(--space-3) var(--space-4); border-radius: var(--card); background: var(--creme); color: var(--nacht); transition: transform var(--dur-moderate-out) var(--ease-exit); }
.addon:hover { transform: translateY(-4px); transition: transform var(--dur-moderate) var(--ease-enter); }
.addons__group { margin: var(--space-5) 0 var(--space-3); font-size: var(--t-small); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.addons__list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.addon__name { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.addon__text { font-size: var(--t-small); color: color-mix(in oklab, var(--nacht) 78%, var(--creme)); }

/* ---------- 04 Ablauf ---------- */
.route__track { position: relative; container-type: inline-size; }
.route__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); border-radius: var(--round); }
.route__fill { position: absolute; inset: 0; background: var(--gelb); transform-origin: 0 50%; transform: scaleX(var(--route, 1)); }
.route__dot { position: absolute; left: -9px; top: -8px; width: 18px; height: 18px; border-radius: var(--round); background: var(--gelb); transform: translateX(calc(var(--route, 1) * 100cqw)); }
.stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-top: var(--space-5); }
.station { display: grid; align-content: start; gap: var(--space-2); }
.station__num { font-size: clamp(4rem, 7vw, 6.5rem); line-height: 0.85; font-weight: 800; font-style: italic; color: var(--accent); letter-spacing: -0.04em; }
.station__title { font-size: var(--t-xl); line-height: 1.1; font-weight: 400; letter-spacing: -0.015em; }
.station__text { color: var(--muted); max-width: 34ch; }

/* ---------- 05 Websites ---------- */
.sites__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.sites__group { margin: var(--space-5) 0 var(--space-2); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.sites__grid + .sites__group { margin-top: var(--space-7); }
.site { display: grid; gap: var(--space-2); align-content: start; }
.site__frame { display: block; overflow: hidden; border-radius: var(--card); background: color-mix(in oklab, var(--nacht) 8%, var(--bg)); box-shadow: 0 0 0 1.5px var(--nacht); }
.site__frame img { width: 100%; height: auto; transform-origin: 50% 40%; transition: transform var(--dur-slow-out) var(--ease-exit); }
.site:hover .site__frame img { transform: scale(1.035); transition: transform var(--dur-slow) var(--ease-enter); }
.site__name { display: inline-flex; align-items: center; gap: 12px; margin-top: var(--space-2); font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.site__name em { color: var(--accent); }
.site__name .icon { width: 0.6em; height: 0.6em; transition: transform var(--dur-fast-out) var(--ease-exit); }
.site:hover .site__name .icon { transform: translate(4px, -4px); transition: transform var(--dur-fast) var(--ease-enter); }
.site__text { color: var(--muted); max-width: 52ch; }
.sites__all { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: var(--space-4); margin-top: var(--space-7); padding: var(--space-4) 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); container-type: inline-size; }
.sites__all-label { grid-column: 1 / -1; font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.sites__all-word { display: inline-flex; align-items: center; gap: 0.2em; font-size: calc(100cqw / 6.2); line-height: 0.9; font-weight: 200; letter-spacing: -0.045em; }
.sites__all-word .icon { width: 0.5em; height: 0.5em; transition: transform var(--dur-fast-out) var(--ease-exit); }
.sites__all:hover .sites__all-word, .sites__all:focus-visible .sites__all-word { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
.sites__all:hover .sites__all-word .icon { transform: translateX(0.1em); transition: transform var(--dur-fast) var(--ease-enter); }
.sites__all-text { align-self: end; justify-self: end; max-width: 22ch; text-align: right; color: var(--muted); }

/* ---------- 06 Fragen: questions in display size, the answer opens at once (a frequent action is not animated) ---------- */
.faq__list { border-top: 1px solid var(--fg); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-3); min-height: 88px; padding: var(--space-3) 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__q { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem); line-height: 1.12; font-weight: 300; letter-spacing: -0.02em; }
.qa[open] .qa__q { font-weight: 550; }
.qa summary:hover .qa__q { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
.qa__mark { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--round); }
.qa__mark::before, .qa__mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: currentColor; }
.qa__mark::after { transform: rotate(90deg); transition: transform var(--dur-fast) var(--ease-move); }
.qa[open] .qa__mark::after { transform: none; }
.qa[open] .qa__mark { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qa__a { padding: 0 0 var(--space-4); max-width: 62ch; color: var(--muted); font-size: var(--t-l); line-height: 1.45; font-weight: 300; }

/* ---------- Schluss ---------- */
.wd-close { --close-fit: 10.6; --close-fit-m: 7.4; }

/* ---------- Vergleich (#vergleich): the three website packages as a table on its own dark panel. The head row with the names
   stays under the navigation while the rows pass; groups, zebra bands and column rules make it read as a table. On a phone the
   three columns stay (an item stands on a shaded band above its three cells), so nothing is hidden behind a switch. ---------- */
/* No scroll-margin here: the browser, site.js (holdAnchor) and vergleich.js all place #vergleich at the same line (scroll-padding-top of the page); the padding gives the air. */
.compare { margin-top: var(--space-7); padding-top: var(--space-4); }
.compare__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.compare__head { display: grid; gap: var(--space-2); max-width: 46rem; margin-bottom: var(--space-5); }
.compare__title { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.05; font-weight: 300; letter-spacing: -0.025em; text-wrap: balance; }
.compare__intro { color: var(--muted); max-width: 52ch; }
.compare__panel { padding: var(--space-2) var(--space-5) var(--space-4); border-radius: var(--card); background: var(--bg); color: var(--fg); }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare__corner { width: 38%; }
.compare__table thead th {
  position: sticky; top: var(--nav-h); z-index: 2;
  padding: var(--space-2) var(--space-1) 14px; background: var(--bg);
  text-align: center; vertical-align: bottom; border-bottom: 2px solid var(--accent);
}
.compare__table thead th[data-paket], .compare__table td { border-left: 1px solid var(--line); }
.compare__name { display: block; font-size: var(--t-l); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.compare__price { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--muted); }
.compare__table tbody th[scope="row"] { padding: 16px var(--space-3) 16px var(--space-2); text-align: left; font-size: var(--t-body); line-height: 1.35; font-weight: 400; }
.compare__table td { padding: 16px var(--space-1); text-align: center; vertical-align: middle; }
.compare__table tbody tr:not(.compare__group) > * { border-bottom: 1px solid var(--line); }
.compare__table tbody tr:not(.compare__group):nth-child(even) > * { background: var(--soft); }
.compare__group th {
  padding: 14px var(--space-2); text-align: left; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in oklab, var(--fg) 14%, var(--bg)); border-bottom: 1px solid var(--line);
}
.compare__table tbody + tbody .compare__group th { border-top: var(--space-3) solid var(--bg); }
.compare__mark { display: inline-block; width: 24px; height: 24px; vertical-align: middle; color: var(--fg); }
.compare__mark--ja { color: var(--accent); }
.compare__mark--nein { color: var(--muted); opacity: 0.6; }
.compare__mark--dazu { color: var(--fg); }
.compare__value { font-size: var(--t-small); line-height: 1.3; font-weight: 600; }
/* The package a visitor came for (?paket= from the start page): head cell in yellow, the column below tinted. */
.compare__table thead th.is-chosen { background: var(--gelb); color: var(--nacht); }
.compare__table thead th.is-chosen .compare__price { color: var(--nacht); }
.compare__table tbody tr:not(.compare__group) td.is-chosen { background: color-mix(in oklab, var(--gelb) 16%, var(--bg)); }
.compare__table tbody tr:not(.compare__group):nth-child(even) td.is-chosen { background: color-mix(in oklab, var(--gelb) 20%, var(--soft)); }
.compare__legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
.compare__legend span { display: inline-flex; align-items: center; gap: 8px; }
.compare__legend .compare__mark { width: 20px; height: 20px; }
.compare__note { margin-top: var(--space-3); max-width: 62ch; font-size: var(--t-small); color: var(--muted); }
.compare__asks { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.compare__ask {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1px solid var(--fg); border-radius: var(--round); font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur-fast-out) var(--ease-exit), color var(--dur-fast-out) var(--ease-exit);
}
.compare__ask .icon { width: 18px; height: 18px; }
@media (hover: hover) {
  .compare__ask:hover { background: var(--fg); color: var(--bg); transition-duration: var(--dur-fast); transition-timing-function: var(--ease-enter); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .addons__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene__name { grid-column: 1 / -1; }
  .scene__price { grid-column: 1 / -1; justify-self: start; }
  .scene__for, .scene__say, .plan, .scene__facts { grid-column: 1 / -1; grid-row: auto; }
  .phases { grid-template-columns: 1fr; row-gap: var(--space-6); }
  .packs__extras { grid-column: 1 / -1; }
  /* Three tiers in two columns: the last one (Max) takes the whole row, so no hole stays open. */
  .tier:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); }
  .route__line { display: none; }
}

/* ---------- Phone: packages and tiers stand open in one column (piled cards hid most of each card while scrolling) ---------- */
@media (max-width: 640px) {
  .addons__list { grid-template-columns: 1fr; gap: var(--space-2); }
  .stage__tabs { display: none; }
  .scenes { gap: var(--space-2); }
  .scene { row-gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-4); scroll-margin-top: calc(var(--nav-h) + 16px); }
  .scene__head { grid-template-columns: 1fr auto; column-gap: var(--space-2); row-gap: 4px; }
  .scene__count { grid-column: 1 / -1; font-size: var(--t-label); }
  .scene__name { grid-column: 1; font-size: 2.25rem; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
  .scene__price, .scene__price--ask { grid-column: 2; justify-self: end; font-size: 2.25rem; line-height: 1; letter-spacing: -0.04em; }
  .scene__price--ask { font-size: 1.5rem; }
  .scene__for { font-size: 1.125rem; }
  .scene__say { font-size: 1.25rem; line-height: 1.32; }
  .scene__facts dd { font-size: 1rem; line-height: 1.45; }
  .scene__foot { flex-direction: column; align-items: flex-start; }
  .scene__foot .text-link { min-height: 48px; }

  .compare { margin-top: var(--space-7); }
  .compare__head { margin-bottom: var(--space-3); }
  .compare__title { font-size: 2rem; }
  .compare__panel { padding: var(--space-1) var(--space-1) var(--space-2); }
  .compare__table, .compare__table thead, .compare__table tbody { display: block; }
  .compare__table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .compare__corner { display: none; }
  .compare__table thead { position: sticky; top: var(--nav-h); z-index: 2; background: var(--bg); }
  .compare__table thead th { position: static; padding: 10px 4px; }
  .compare__table thead th:nth-child(2), .compare__table td:nth-of-type(1) { border-left: 0; }
  .compare__name { font-size: 0.9375rem; }
  .compare__price { font-size: 0.8125rem; }
  .compare__table tbody tr:not(.compare__group):nth-child(even) > * { background: none; }
  .compare__table tbody tr:not(.compare__group) > th[scope="row"] { grid-column: 1 / -1; padding: 12px var(--space-2) 10px; font-size: 1rem; background: var(--soft); border-bottom: 0; }
  .compare__table td { display: grid; place-items: center; min-height: 52px; padding: 8px 4px; }
  .compare__group th { grid-column: 1 / -1; padding: 12px var(--space-2); }
  .compare__table tbody + tbody .compare__group th { border-top-width: var(--space-2); }
  .compare__value { font-size: 0.875rem; }
  .compare__asks { display: grid; }
  .compare__ask { justify-content: center; }
  .packs__foot { margin-top: var(--space-6); }
  .packs__end .button { width: 100%; }

  .phase__list li { font-size: 1.0625rem; }
  .scene__facts { grid-template-columns: 1fr; }
  /* The four package cards slide over each other. Sticky, never animated on top/height: a card taller than the screen
     (--card-h from page.js) moves up to its own end first and only then holds, so the next card covers it. */
  .scenes-pile .scene {
    position: sticky;
    top: min(calc(var(--nav-h) + 8px), calc(100svh - var(--card-h, 100svh) - 8px));
    box-shadow: 0 -10px 24px -12px color-mix(in oklab, var(--nacht) 45%, transparent);
  }
  .scope__posters { margin-top: var(--space-6); }

  .tiers { grid-template-columns: 1fr; gap: var(--space-2); }
  .tier { grid-template-columns: 1fr auto; column-gap: var(--space-2); padding: var(--space-3); }
  .tier__sheet dd { font-size: 1rem; }
  .tier__count { grid-column: 1 / -1; font-size: var(--t-label); }
  .tier__name { grid-column: 1; font-size: 1.75rem; font-weight: 500; }
  .tier__price { grid-column: 2; justify-self: end; font-size: 1.75rem; }
  .tier__price .tier__unit { font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; }
  .tier__price .tier__per { display: none; }
  .tier--ask .tier__name { font-size: 1.375rem; }
  .tier--ask .tier__figure { font-size: 1.375rem; }
  .tier__fit, .tier__sheet { grid-column: 1 / -1; }
  .tier__sheet > div { grid-template-columns: 6.25rem 1fr; }
  .tier__fit::after { content: " Monatlich."; font-weight: 400; color: var(--muted); }
  .tier--ask .tier__fit::after { content: ""; }


  .stations { grid-template-columns: 1fr; row-gap: var(--space-5); padding-top: 0; }
  .station { grid-template-columns: auto 1fr; column-gap: var(--space-3); }
  .station__num { grid-row: 1 / 3; font-size: 3.5rem; }
  .station__title { font-size: 1.5rem; }
  .station__text { grid-column: 1 / -1; }

  .sites__grid { grid-template-columns: 1fr; row-gap: var(--space-6); }
  .site__frame { border-radius: var(--card); }
  .site__name { font-size: 2rem; }
  .sites__all { grid-template-columns: 1fr; margin-top: var(--space-6); }
  .sites__all-word { font-size: calc(100cqw / 5); }
  .sites__all-text { justify-self: start; text-align: left; margin-top: var(--space-2); }

  .qa summary { min-height: 72px; }
  .qa__q { font-size: 1.375rem; }
  .qa__a { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .scene .plan__item, .js .scene .scene__facts > div, .js [data-phases] .phase__list li, .js [data-phases] .phase__num { opacity: 1; transform: none; transition: none; }
  .addon, .site__frame img, .site__name .icon, .sites__all-word, .qa__q { transition: none; }
}

/* Sehr schmale Handys (bis 374 px, z. B. 320 px): Name und Preis eines Pakets untereinander. Nebeneinander ragte
   "Enterprise" mit "auf Anfrage" 36 px aus der Karte (gemessen bei 320 px, 2026-11-01). */
@media (max-width: 374px) {
  .scene__head { grid-template-columns: minmax(0, 1fr); }
  .scene__price, .scene__price--ask { grid-column: 1; justify-self: start; }
}
.care__all { max-width: 62ch; margin: var(--space-5) 0 var(--space-2); font-size: var(--t-body); line-height: 1.45; }
