/* Nur für /clavium. Eigene Datei mit eigener Kennung (CLAVIUM_VERSION in
   tools/build_pages.py), damit main.css und die Kennung aller anderen Seiten
   unberührt bleiben. Farben, Schriften und Radien kommen aus main.css (:root).

   Die Seite ist mit Absicht ruhiger als die Leistungsseiten: eine schmale,
   mittige Textspalte, ein Gedanke und ein Bild je Abschnitt, Blau als einzige
   Akzentfarbe, keine Figur und keine Schmuckformen. Die Bilder sind echte
   Bildschirmfotos des Programms. */

/* ---------- Kopf ---------- */

.cl-hero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 6vw, 88px); }
.cl-hero__text {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 1.8vw, 24px);
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.cl-hero__icon { width: clamp(72px, 7vw, 96px); height: auto; }
.cl-h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: var(--stretch);
  font-size: clamp(4rem, 12.5vw, 10rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.cl-hero__lead {
  max-width: 34rem;
  font-size: clamp(1.1875rem, 1.9vw, 1.625rem);
  line-height: 1.4;
  text-wrap: balance;
}

.cl-get {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
/* Blau statt Tomate: die Seite hat genau eine Akzentfarbe. */
.cl-get .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cl-get .btn:hover svg { transform: translateY(2px); }

.cl-small { color: var(--muted); font-size: 0.875rem; line-height: 1.5; text-wrap: balance; }
.cl-note { margin-top: 18px; text-align: center; }

/* ---------- Bildschirmfotos ---------- */

.cl-shot {
  max-width: 1120px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: clamp(8px, 1.1vw, 14px);
  background: var(--white);
  overflow: hidden;
}
.cl-shot img { width: 100%; height: auto; }
.cl-shot--hero { margin-top: clamp(40px, 5.5vw, 80px); }
.cl-shot--night { background: #1c1c1e; }
.dark .cl-shot { border-color: var(--ink-3); }

/* Zwei kleinere Bilder nebeneinander, jedes mit einem Satz darunter. */
.cl-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(16px, 2.4vw, 32px);
  max-width: 1120px;
  margin: clamp(16px, 2.4vw, 32px) auto 0;
}
.cl-fig { display: grid; gap: 14px; align-content: start; }
.cl-fig figcaption { max-width: 30rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; text-wrap: pretty; }
.dark .cl-fig figcaption { color: var(--muted-dark); }

/* ---------- Abschnitte ---------- */

.cl-text {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 1.8vw, 24px);
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.cl-feature .cl-text { margin-bottom: clamp(36px, 5vw, 72px); }
.h2.cl-h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 0.98; }
.cl-more { color: var(--muted); text-wrap: pretty; }
.dark .cl-more, .dark .cl-small { color: var(--muted-dark); }
.cl-h3 {
  font-family: var(--font-head);
  font-weight: 750;
  font-stretch: 105%;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.cl-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  display: inline-block;
  padding-block: 3px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}
.cl-link::after { content: "\00a0›"; }
.cl-link:hover { text-decoration-color: currentColor; }
.cl-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }

/* Drei Sätze unter dem Bild, als Text und nicht als Karten. */
.cl-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 56px);
  max-width: 1120px;
  margin: clamp(32px, 4.5vw, 64px) auto 0;
}
.cl-facts li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.cl-facts p { color: var(--muted); font-size: 1rem; text-wrap: pretty; }
.dark .cl-facts li { border-color: var(--ink-3); }
.dark .cl-facts p { color: var(--muted-dark); }
.cl-pair + .cl-facts, .cl-facts + .cl-pair { margin-top: clamp(32px, 4.5vw, 64px); }
.cl-after { margin-top: clamp(28px, 4vw, 48px); text-align: center; }

/* Einrichtung in drei Schritten: Ziffern in der Schrift, keine Kreise. */
.cl-setup {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: clamp(32px, 4.5vw, 64px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink-3);
}
.cl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(24px, 4vw, 56px);
  counter-reset: schritt;
}
.cl-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; counter-increment: schritt; }
.cl-steps li::before {
  content: counter(schritt);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--sky);
}
.cl-setup .cl-small { max-width: 46rem; text-wrap: pretty; }

/* ---------- Was noch dabei ist ---------- */

.cl-also { display: grid; gap: clamp(32px, 4.5vw, 64px); }
.cl-also .cl-h2 { text-align: center; }
.cl-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 96px);
  max-width: 1120px;
  margin-inline: auto;
}
.cl-list > div { padding-block: 22px; border-top: 1px solid var(--line); }
.cl-list dt { font-family: var(--font-head); font-weight: 750; font-stretch: 105%; font-size: 1.125rem; }
.cl-list dd { margin-top: 6px; color: var(--muted); }
/* Nur Code im Fliesstext. Der dunkle Block .code hat seine eigenen Farben. */
.cl-list dd code, .cl-install p code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--white);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.cl-install p code { background: var(--paper-2); }

/* ---------- Herunterladen ---------- */

.cl-install {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 96px);
  max-width: 1120px;
  margin: clamp(40px, 5.5vw, 80px) auto 0;
}
.cl-install > div { display: grid; gap: 10px; align-content: start; padding-block: 24px; border-top: 1px solid var(--line); }
.cl-install p { color: var(--muted); }
.cl-install__wide { grid-column: 1 / -1; }
.cl-install__wide > p { max-width: 46rem; }
.cl-install .code { margin: 6px 0; max-width: 46rem; }

.cl-open { padding-top: 0; }

@media (max-width: 1000px) and (min-width: 761px) { .cl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cl-facts, .cl-list, .cl-install, .cl-pair, .cl-steps { grid-template-columns: minmax(0, 1fr); }
  .cl-get { flex-direction: column; align-self: stretch; width: 100%; max-width: 22rem; }
  .cl-big, .cl-shot--hero { margin-inline: calc(var(--gutter) * -0.5); }
}

/* ---------- Bewegung ----------
   Hängt wie überall an .motion (boot.js setzt die Klasse nur ohne
   prefers-reduced-motion und ohne „Animationen aus“). Ohne die Klasse und
   ohne JavaScript steht alles sofort da. Zwei Bewegungen, beide enden:
   der Kopf steigt beim Laden einmal auf, und jedes Bild kommt mit dem
   Scrollen an seinen Platz. Die Überschriften der Abschnitte bewegt main.js
   (.section .h2) wie auf allen anderen Seiten. */

@keyframes cl-rise { from { opacity: 0; translate: 0 22px; } }
@keyframes cl-arrive { from { opacity: 0.25; translate: 0 48px; scale: 0.965; } }

.motion .cl-hero__text > * { animation: cl-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .cl-hero__text > :nth-child(2) { animation-delay: 0.06s; }
.motion .cl-hero__text > :nth-child(3) { animation-delay: 0.12s; }
.motion .cl-hero__text > :nth-child(4) { animation-delay: 0.18s; }
.motion .cl-hero__text > :nth-child(5) { animation-delay: 0.24s; }
.motion .cl-shot--hero { animation: cl-rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@supports (animation-timeline: view()) {
  .motion .cl-big {
    animation: cl-arrive linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

@media print {
  .cl-shot, .cl-hero__text > * { animation: none !important; }
}

/* ---------- Hinweis auf der Startseite ----------
   index.html lädt diese Datei ebenfalls (eigene ?v=-Angabe dort, von Hand
   mitzuziehen). Eine Farbfläche wie die übrigen der Startseite, darin Text
   und das Hauptfenster. */

.cl-home { padding-top: 0; }
.cl-teaser {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 52px);
  border-radius: clamp(24px, 3vw, 44px);
  background: var(--sky);
}
.cl-teaser__text .h2 { margin-top: 18px; }
.cl-teaser__text .lead { margin-top: 18px; max-width: 30em; }
.cl-teaser__text p:not(.label):not(.lead) { margin-top: 12px; max-width: 34em; }
.cl-teaser__text .btn { margin-top: 26px; }
.cl-teaser__text .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cl-teaser__shot { display: block; max-width: none; margin: 0; border-color: transparent; }
@media (max-width: 940px) {
  .cl-teaser { grid-template-columns: minmax(0, 1fr); }
}
