/* hauscloud.ch - template "hauscloud" for holzcloud-CMS.
   Look of the prototype "KI zuerst": indigo, wood, pills, 24 px cards, a soft radial wash.
   No JavaScript, nothing from another origin: every address starts with /t/ or /assets/.
   Light and dark follow the system (color-scheme and light-dark()); a switch that remembers the
   choice needs a script or a cookie and is not part of this template (assumption A-SCHEMA).

   Class contract (the same names in the views and in the checks):
   .site-header .site-nav .lang-switch .site-footer .hero .section .card .btn .btn--primary
   .btn--ghost .chip .muted .frame .faq */

/* --- font (OFL, licence file in fonts/LICENSE of the source tree) ---------------------- */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/t/fonts/hanken-grotesk-latin-400-normal.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/t/fonts/hanken-grotesk-latin-700-normal.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- tokens ---------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;
  --bg: light-dark(#e8ecf4, #07090f);
  --card: light-dark(#ffffff, #141824);
  --ink: light-dark(#111524, #eef1f7);
  --mute: light-dark(#4d566e, #a0a9c0);
  --line: light-dark(#d3d9e8, #272d40);
  --pri: light-dark(#3a51d4, #8298ff);
  --onPri: light-dark(#ffffff, #0c0e1a);
  --priSoft: light-dark(#e3e8fc, #1f2748);
  --priInk: light-dark(#2740b8, #b4c1ff);
  --wood: #c98b4f;
  --ok: light-dark(#12784a, #6fd3a1);
  --okSoft: light-dark(#dff3e8, #12301f);
  --warn: light-dark(#8a5a0c, #f0c070);
  --warnSoft: light-dark(#fbefd5, #3a2a0c);
  --err: light-dark(#a1281f, #ff9d92);
  --errSoft: light-dark(#fde7e4, #3c1512);
  --tint: color-mix(in oklab, var(--card) 55%, transparent);
  --r: 24px;
  --sh: 0 1px 2px light-dark(rgb(20 30 70 / 0.06), transparent), 0 14px 32px -22px light-dark(rgb(30 45 120 / 0.35), #000);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1080px;
  --wrap-wide: 1160px;
  --gap: clamp(16px, 3vw, 28px);
  --space-section: clamp(40px, 7vw, 88px);
}

/* --- base ------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  overflow-wrap: break-word;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 6% -8%, color-mix(in oklab, var(--pri) 24%, transparent), transparent 64%),
    radial-gradient(760px 480px at 96% 2%, color-mix(in oklab, #12a06a 16%, transparent), transparent 64%),
    radial-gradient(800px 520px at 60% 112%, color-mix(in oklab, #8b5cf6 14%, transparent), transparent 62%);
}
main { flex: 1; padding-bottom: clamp(24px, 4vw, 48px); }
img, svg, picture { max-width: 100%; }
img { height: auto; }
a { color: var(--priInk); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 3px; border-radius: 12px; }
main:focus { outline: none; }
::selection { background: var(--priSoft); color: var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
.wrap--media { max-width: var(--wrap-wide); }
mark { background: color-mix(in oklab, var(--wood) 38%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; hyphens: auto; }
h1 { font-size: clamp(30px, 5.2vw, 48px); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { color: var(--mute); font-size: clamp(17px, 2.2vw, 19px); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.pl { white-space: pre-line; }
.eyebrow { margin: 0 0 8px; color: var(--priInk); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

/* --- skip link ------------------------------------------------------------------------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--pri); color: var(--onPri); padding: 12px 20px; border-radius: 99px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 12px; }

/* --- buttons, chips, pills ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 99px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.btn--primary { background: var(--pri); color: var(--onPri); }
.btn--primary:hover { background: color-mix(in oklab, var(--pri) 88%, var(--ink)); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--pri); }
.chip { display: inline-block; padding: 2px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--priSoft); color: var(--priInk); white-space: nowrap; }
.chip--neu { background: var(--okSoft); color: var(--ok); }
.chip--behoben { background: var(--warnSoft); color: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); font-size: 14px; font-weight: 700; color: var(--priInk); text-decoration: none; text-wrap: balance; }
a.pill:hover { border-color: var(--pri); }

/* --- header and navigation ------------------------------------------------------------- */
.site-header { position: relative; z-index: 5; }
.header-row { position: relative; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; min-height: 48px; }
.logo-mark { width: 38px; height: 32px; flex: none; }
.logo-roof { stroke: var(--pri); }
.logo-house { fill: var(--pri); }
.logo-door { fill: var(--onPri); }

.nav-panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 4px 0 12px; }
.nav-toggle:checked ~ .nav-panel { display: flex; }
.site-nav ul, .lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-nav a, .site-nav li > span, .lang-switch a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav li > span { color: var(--mute); }
.site-nav a:hover, .lang-switch a:hover { background: var(--priSoft); }
.site-nav a[aria-current="page"], .lang-switch a[aria-current="true"] { background: var(--priSoft); color: var(--priInk); }
.lang-switch a { font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; justify-content: center; min-width: 48px; }
.lang-switch a[aria-current="true"] { font-weight: 700; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nav-actions .btn { flex: 1 1 180px; }

/* the burger: a real checkbox laid over its label, so it is reachable by keyboard and by tap */
.nav-toggle { position: absolute; inset-inline-end: clamp(16px, 4vw, 28px); top: max(16px, env(safe-area-inset-top)); width: 48px; height: 48px; margin: 0; opacity: 0; z-index: 2; cursor: pointer; }
.nav-burger { margin-inline-start: auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--card); box-shadow: var(--sh); color: var(--ink); }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.nav-burger span { position: relative; transition: background 0.15s; }
.nav-burger span::before, .nav-burger span::after { position: absolute; inset-inline-start: 0; transition: transform 0.15s, top 0.15s; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--pri); outline-offset: 3px; }

/* Tablet (820 to 1099 px): the three groups would not fit in one row with the long French and
   Italian labels, so the panel dissolves into the header row and wraps in two lines: logo and
   buttons above, navigation and languages below. From 1100 px everything sits in one row. */
@media (min-width: 820px) {
  .header-row { flex-wrap: wrap; justify-content: space-between; }
  .nav-toggle, .nav-burger { display: none; }
  .nav-panel { display: contents; }
  .nav-actions { order: 2; margin-inline-start: auto; flex-wrap: nowrap; }
  .nav-actions .btn { flex: none; min-height: 44px; padding: 0 20px; }
  .site-nav { order: 3; }
  .lang-switch { order: 4; margin-inline-start: auto; }
  .site-nav ul, .lang-switch ul { flex-direction: row; gap: 2px; }
  .site-nav a, .site-nav li > span, .lang-switch a { min-height: 44px; }
}
@media (min-width: 1100px) {
  .header-row { flex-wrap: nowrap; }
  .nav-panel { display: flex; flex: 1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; padding: 0; }
  .site-nav a, .site-nav li > span { padding: 0 12px; }
  .lang-switch a { min-width: 40px; padding: 0 8px; }
  .nav-actions .btn { padding: 0 18px; }
  .site-nav, .lang-switch, .nav-actions { order: 0; }
  .site-nav { margin-inline-end: auto; }
  .lang-switch, .nav-actions { margin-inline-start: 0; }
}

/* --- sections -------------------------------------------------------------------------- */
.section { padding: var(--space-section) 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.section--rule { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin: 0 auto clamp(24px, 4vw, 44px); text-align: center; }
.section-head .lead { margin: 14px auto 0; }
.section-head--left { margin-inline-start: 0; text-align: start; }
.section-head--left .lead { margin-inline-start: 0; }
.section-foot { margin-top: clamp(24px, 4vw, 40px); display: flex; justify-content: center; }

/* hero: the start page and the module pages */
.hero { padding: clamp(12px, 3vw, 32px) 0 clamp(28px, 5vw, 56px); }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-text h1 { margin-bottom: 16px; }
.hero-text .pill { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.hero-note { color: var(--mute); font-size: 14px; }
.hero-note p { margin: 0; }
.hero-media picture, .hero-media img { display: block; width: 100%; }
.hero-media .frame img { aspect-ratio: 16 / 9; }
.hero-media img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); box-shadow: var(--sh); background: var(--card); }
.hero--center .hero-text { max-width: 46rem; margin: 0 auto clamp(24px, 4vw, 44px); text-align: center; }
.hero--center .lead { margin-inline: auto; }
.hero--center .hero-actions { justify-content: center; }
.back-link { margin: 0 0 14px; font-weight: 700; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* figures and the trust line */
.stats ul:not(.trust) { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.stats ul:not(.trust) > li { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 20px 24px; display: flex; flex-direction: column; gap: 2px; }
.stats ul:not(.trust) strong { font-size: clamp(30px, 5vw, 44px); line-height: 1; letter-spacing: -0.035em; color: var(--priInk); }
.stats ul:not(.trust) span { color: var(--mute); }
.stats .trust { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px 24px; grid-template-columns: minmax(0, 1fr); color: var(--mute); }
@media (min-width: 640px) { .stats .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stats .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 820px) { .stats ul:not(.trust) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the check mark of lists and cards */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li, .trust li { position: relative; padding-inline-start: 32px; }
.checks li::before, .trust li::before, .card--check h3::before {
  content: "\2713";
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--priSoft); color: var(--priInk);
  font-size: 13px; font-weight: 700; line-height: 1;
}
.checks li::before, .trust li::before { position: absolute; inset-inline-start: 0; top: 1px; }
.card--check h3::before { margin-inline-end: 10px; vertical-align: 2px; }

/* --- cards and grids: 3, 2 and 1 columns at 1280, 820 and 390 px ------------------------ */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; color: var(--mute); }
.card h3 { margin: 0; }
.card picture, .card img { display: block; width: 100%; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--r) - 8px); }
a.card { color: var(--ink); text-decoration: none; height: 100%; border: 1px solid transparent; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--pri); transform: translateY(-2px); }
a.card strong { font-size: 18px; letter-spacing: -0.02em; }
a.card .muted { font-size: 15px; }
.cards--related > li { display: flex; }
.cards--related > li > a { width: 100%; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the three entrances */
.access > li:first-child { border-radius: var(--r); box-shadow: 0 0 0 2px color-mix(in oklab, var(--pri) 55%, transparent); }
.access .card { height: 100%; }
.access .card p { flex: 1; }
.access .btn { align-self: flex-start; margin-top: 8px; }

/* the showcase and the steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.steps li { counter-increment: step; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--pri); color: var(--onPri); font-size: 19px; font-weight: 700; margin-bottom: 6px; box-shadow: 0 8px 20px -10px var(--pri); }
.steps p { margin: 0; color: var(--mute); max-width: 26ch; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.chips li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.chips li::before { content: "\2713"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: var(--okSoft); color: var(--ok); font-weight: 700; }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- browser frame, phone, split rows --------------------------------------------------- */
.frame { margin: 0; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh), 0 30px 60px -38px light-dark(rgb(30 45 120 / 0.5), #000); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: light-dark(#eef1f8, #1b2030); border-bottom: 1px solid var(--line); }
.frame-bar i { display: block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.frame-bar i:nth-child(2) { background: #fbbf24; }
.frame-bar i:nth-child(3) { background: #4ade80; }
.frame-url { margin-inline-start: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 12px; border-radius: 8px; background: var(--card); color: var(--mute); font: 12px/1.4 var(--mono); }
.frame picture, .frame img { display: block; width: 100%; }
.frame img { aspect-ratio: 16 / 10; object-fit: cover; height: auto; }

.phone { margin: 0 auto; width: min(270px, 72vw); border-radius: 36px; overflow: hidden; background: var(--card); border: 6px solid light-dark(rgb(17 21 36 / 0.14), rgb(238 241 247 / 0.2)); box-shadow: var(--sh), 0 30px 60px -34px light-dark(rgb(30 45 120 / 0.5), #000); }
.phone picture, .phone img { display: block; width: 100%; }
.phone img { aspect-ratio: 1200 / 2580; object-fit: cover; height: auto; }

.split { padding: clamp(28px, 5vw, 64px) 0; }
.split-grid { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.split-text .eyebrow { margin-bottom: 10px; }
.split-text h2, .split-text h3 { margin-bottom: 14px; }
.split-text .lead { margin-bottom: 18px; }
.split-text .checks { margin-bottom: 20px; }
.split-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.split-media { min-width: 0; }
@media (min-width: 820px) {
  .split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .splits > .split:nth-child(even) .split-media { order: -1; }
}

/* the closing band and the free-of-charge panel */
.band { text-align: center; padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px); border-radius: calc(var(--r) + 8px); background:
    radial-gradient(520px 260px at 50% 120%, color-mix(in oklab, var(--pri) 20%, transparent), transparent 70%), var(--card);
  box-shadow: var(--sh); }
.band h2 { margin-bottom: 14px; }
.band .lead { margin: 0 auto; }
.band .hero-actions { justify-content: center; }
.band--primary { text-align: start; background: var(--pri); color: var(--onPri); display: grid; gap: clamp(24px, 5vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: center; box-shadow: 0 24px 50px -28px var(--pri); }
.band--primary .eyebrow, .band--primary .lead, .band--primary .muted { color: var(--onPri); }
.band--primary .lead { opacity: 0.92; margin: 0 0 20px; }
.band--primary .btn--primary { background: var(--onPri); color: var(--pri); }
.band--primary .btn--primary:hover { background: color-mix(in oklab, var(--onPri) 92%, var(--pri)); }
.band--primary .hero-actions { justify-content: flex-start; align-items: center; }
.price-card { background: color-mix(in oklab, var(--onPri) 14%, transparent); border: 1px solid color-mix(in oklab, var(--onPri) 28%, transparent); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); }
.price-card .checks li::before { background: color-mix(in oklab, var(--onPri) 22%, transparent); color: var(--onPri); }
.price { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price strong { font-size: clamp(36px, 6vw, 48px); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
@media (min-width: 820px) { .band--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- article pages (release, plain page) ------------------------------------------------ */
.article { padding-top: clamp(12px, 3vw, 32px); }
.article-head { margin-bottom: clamp(20px, 4vw, 36px); }
.article-head h1 { margin-bottom: 12px; }
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose :is(h2, h3) { margin: 1.6em 0 0.5em; }
.prose h2 { font-size: clamp(21px, 3vw, 26px); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: 0.3em; }
.prose img { border-radius: calc(var(--r) - 8px); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose :is(th, td) { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0; padding-inline-start: 18px; border-inline-start: 4px solid var(--wood); color: var(--mute); }
.prose code { font-family: var(--mono); font-size: 0.92em; background: var(--priSoft); border-radius: 6px; padding: 1px 6px; }
.back { margin-top: clamp(28px, 5vw, 48px); font-weight: 700; }
.entry-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.entry-nav .btn { flex-direction: column; align-items: flex-start; height: auto; padding-block: 10px; text-align: start; }

.highlights { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; max-width: 70ch; }
.highlights li { background: var(--card); border-radius: 20px; box-shadow: var(--sh); padding: 14px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (min-width: 640px) { .highlights li { flex-direction: row; align-items: baseline; gap: 14px; } }

/* a contact form or any other form the plugins bring inside the text of a page */
.prose form { display: grid; gap: 14px; max-width: 34rem; margin: 1em 0 2em; padding: clamp(18px, 3vw, 26px); background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.prose label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.prose :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), textarea, select) { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 14px; }
.prose textarea { min-height: 140px; resize: vertical; }
.prose :is(input, textarea, select):focus-visible { border-color: var(--pri); outline-offset: 2px; }
.prose button, .prose input[type="submit"] { justify-self: start; min-height: 48px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--pri); color: var(--onPri); font: inherit; font-weight: 700; cursor: pointer; }
.prose button:hover, .prose input[type="submit"]:hover { background: color-mix(in oklab, var(--pri) 88%, var(--ink)); }

/* --- prices ---------------------------------------------------------------------------- */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.tiers-head { margin: clamp(20px, 4vw, 36px) 0 0; }
.tiers-head:first-child { margin-top: 0; }
.tiers-head h2 { margin-bottom: 6px; }
.tiers-head p { margin: 0; color: var(--mute); max-width: 62ch; }
.tier { background: var(--card); border-radius: calc(var(--r) + 4px); box-shadow: var(--sh); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.tier--first { box-shadow: 0 0 0 2px color-mix(in oklab, var(--pri) 55%, transparent), var(--sh); }
.tier h3 { font-size: 21px; }
.tier .tagline { margin: 0; color: var(--mute); }
.tier-price { margin: 14px 0 8px; min-height: 40px; }
.tier-price strong { font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; }
.tier .checks { flex: 1; margin: 8px 0 12px; font-size: 15px; }
.tier .note { margin: 0 0 12px; font-size: 13px; color: var(--mute); }
.tier .btn { margin-top: auto; }
.soon { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 99px; background: var(--priSoft); color: var(--priInk); font-weight: 700; font-size: 14px; }
@media (min-width: 640px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiers-head { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .tiers { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tier { grid-column: span 2; } .tier--cloud { grid-column: span 3; } }

.business { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: clamp(20px, 3vw, 30px); max-width: 52rem; margin: 0 auto; }
.business h2 { font-size: 22px; margin-bottom: 6px; }
.business > p { color: var(--mute); }
.business .checks { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .business .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-note { max-width: 40rem; margin: 24px auto 0; text-align: center; font-size: 14px; color: var(--mute); }

/* questions that open without a script */
.faq { max-width: 46rem; margin: 0 auto; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.faq details { padding: 4px clamp(18px, 3vw, 28px); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 0; cursor: pointer; font-weight: 700; list-style: none; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--priSoft); color: var(--priInk); font-size: 19px; line-height: 1; transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin: 0 0 16px; color: var(--mute); max-width: 62ch; }

/* --- archives -------------------------------------------------------------------------- */
.archive { padding-top: clamp(12px, 3vw, 32px); }
.archive-head { max-width: 46rem; margin: 0 auto clamp(24px, 4vw, 44px); text-align: center; }
.archive-head h1 { margin-bottom: 14px; }
.archive-head .lead { margin-inline: auto; }
.archive-filter { margin: 0 0 20px; color: var(--mute); text-align: center; }
.archive-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.archive-entry { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.archive-entry h2 { font-size: 21px; margin: 0; }
.archive-entry h2 a { color: var(--ink); text-decoration: none; }
.archive-entry h2 a:hover { color: var(--priInk); text-decoration: underline; }
.archive-entry p { margin: 0; color: var(--mute); max-width: 70ch; }
.archive-entry .read { margin-top: 6px; font-weight: 700; }
[data-archive="module"] .archive-entry { position: relative; }
[data-archive="module"] .archive-entry:hover { box-shadow: 0 0 0 2px var(--pri); }
[data-archive="module"] .archive-entry h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
[data-archive="neuerungen"] .archive-entry { gap: 10px; }
.entry-meta { font-size: 15px; color: var(--mute); }
@media (min-width: 820px) { [data-archive="module"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { [data-archive="module"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.archive-peek { margin-top: clamp(40px, 7vw, 80px); }
.archive-aside { max-width: 46rem; margin: clamp(28px, 5vw, 48px) auto 0; padding: clamp(20px, 3vw, 28px); text-align: center; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.archive-aside p { margin: 0 0 16px; color: var(--mute); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 28px; color: var(--mute); }
.empty { max-width: 40rem; margin: 0 auto; padding: clamp(24px, 4vw, 40px); text-align: center; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); color: var(--mute); }

/* --- search, not found, gate, maintenance ------------------------------------------------ */
.notice-page { padding-top: clamp(24px, 5vw, 64px); max-width: 44rem; }
.notice-page h1 { margin-bottom: 14px; }
.notice-page .lead { margin-bottom: 24px; }
.search-form { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.search-form label { flex-basis: 100%; font-weight: 700; }
.search-form input[type="search"], .gate-form input[type="password"] { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 10px 18px; font: inherit; color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 99px; }
.search-form input:focus-visible, .gate-form input:focus-visible { border-color: var(--pri); }
.notice-links { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 700; }
.notice-links a { display: inline-flex; align-items: center; min-height: 44px; }
.search-count { color: var(--mute); }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
.search-result { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 20px 24px; }
.search-result a { font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
.search-result a:hover { color: var(--priInk); text-decoration: underline; }
.search-result p { margin: 6px 0 0; color: var(--mute); }
.gate-card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: clamp(22px, 4vw, 36px); }
.gate-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.gate-form .field { flex: 1 1 14rem; display: grid; gap: 6px; font-weight: 700; }
.alert { margin: 0 0 18px; padding: 12px 18px; border-radius: 16px; background: var(--errSoft); color: var(--err); font-weight: 700; }
.preview-banner { margin: 0; padding: 10px 16px; text-align: center; background: var(--warnSoft); color: var(--warn); font-weight: 700; }

/* --- footer ---------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 max(20px, env(safe-area-inset-bottom)); color: var(--mute); font-size: 15px; }
.footer-row { display: grid; gap: 20px; }
.footer-brand .logo { font-size: 19px; min-height: 40px; }
.footer-claim { margin: 8px 0 0; max-width: 34ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav { display: grid; gap: 4px; align-content: start; }
.footer-app { padding-top: 4px; }
.site-footer a, .site-footer li > span { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-bottom p { margin: 0; }
@media (min-width: 820px) { .footer-row { grid-template-columns: 1fr 1.6fr; align-items: start; } }

/* --- motion ---------------------------------------------------------------------------- */
/* The only motion are the short transitions of buttons, cards and the burger. Nothing fades in on
   load: content must be readable and measurable from the first frame. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  a.card:hover { transform: none; }
}

/* --- print: light ground, no navigation, questions open, link targets spelled out -------- */
@media print {
  :root { color-scheme: light; --bg: #fff; --card: #fff; --ink: #000; --mute: #333; --line: #bbb; --pri: #000; --priInk: #000; --priSoft: #fff; --tint: #fff; --sh: none; }
  body { display: block; background: #fff; color: #000; font-size: 12pt; }
  body::before, .skip-link, .nav-panel, .nav-toggle, .nav-burger, .hero-actions, .btn, .pager, .search-form, .section-foot { display: none !important; }
  .frame, .phone, .band, .tier, .card, .stats li, .archive-entry, .highlights li, .faq { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .band--primary { background: #fff; color: #000; }
  .band--primary .eyebrow, .band--primary .lead { color: #000; }
  .faq details > * { display: block; }
  .faq summary::after { display: none; }
  a { color: #000; }
  .prose a[href*="://"]::after, .hero-note a[href*="://"]::after, .site-footer a[href*="://"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .site-footer { border-top: 1px solid #000; }
}


/* --- the rebuilt hauscloud (0.2.0): panels, notes, plain text sections, plans ------------------ */
/* a card that carries a list next to a section's text */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; }
/* a note about what is not promised or measured: set apart, never hidden */
.notice { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--warnSoft); color: var(--warn); border-inline-start: 4px solid var(--warn); font-size: 15px; }
/* a section of a module page without a picture (stand, grenzen, daten, messung, ...) */
.section--text { padding: clamp(20px, 4vw, 40px) 0; }
.textblock { max-width: 46rem; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: clamp(20px, 3.5vw, 32px); }
.textblock h2 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 10px; }
.textblock .lead { font-size: 17px; margin: 0; max-width: none; }
.textblock .lead + .lead { margin-top: 12px; }
[data-kennung="stand"] .textblock, [data-kennung="grenzen"] .textblock { border-inline-start: 4px solid var(--wood); }
[data-kennung="messung"] .textblock { border-inline-start: 4px solid var(--pri); }
/* plans on the roadmap: a dot instead of a check, because nothing here exists yet */
.chips--plan li::before { content: "\2022"; background: var(--priSoft); color: var(--priInk); font-size: 18px; }
/* a mock-up wears its label in the bar of the frame; make that label readable */
.frame-url { color: var(--ink); }
/* arrows in links point the other way in a right-to-left language */
:dir(rtl) .split-link span[aria-hidden="true"], :dir(rtl) .back-link span[aria-hidden="true"], :dir(rtl) .back span[aria-hidden="true"], :dir(rtl) .read span[aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
