/*
 * ChronoFlow – öffentliche Seiten (Landing, Anmeldung)
 *
 * Sachlich, ohne Metaphern: Weiß, Anthrazit, feine Linien; Markengelb
 * nur für die primäre Aktion. Source Sans 3 (OFL) liegt lokal.
 * Gilt nur unter body.cf; die App behält vorerst style.css.
 */

@font-face {
  font-family: "Source Sans 3";
  src: url("../vendor/source-sans-3/source-sans-3-latin-wght-normal.30164609c163.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../vendor/source-sans-3/source-sans-3-latin-ext-wght-normal.c6ba61588d7d.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* style.css setzt html auf 14px, grauen Grund und body auf 100 % Höhe. */
html:has(> body.cf) {
  font-size: 100%;
  background: #ffffff;
}
html:has(> body.cf--flaeche) {
  background: #f6f7f8;
}

.cf {
  --cf-text: #2f343a;     /* Grau statt Schwarz (29.09.2026) */
  --cf-text-2: #4b5259;
  --cf-text-3: #5d646c;
  --cf-linie: #e3e5e8;
  --cf-linie-2: #c9cdd2;
  --cf-flaeche: #f6f7f8;
  --cf-dunkel: #2f343a;
  --cf-gelb: #ffbb00;
  --cf-gelb-hover: #f2ae00;
  --cf-gelb-aktiv: #e3a300;
  --cf-rot: #b42318;

  height: auto;
  min-height: 100%;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--cf-text-2);
  background: #ffffff;
  caret-color: var(--cf-text);
}
.cf--flaeche {
  background: var(--cf-flaeche);
}

.cf ::selection {
  background: #ffe08a;
  color: var(--cf-text);
}
.cf a {
  color: var(--cf-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.cf a:hover {
  text-decoration-thickness: 2px;
}
.cf :focus-visible {
  outline: 2px solid var(--cf-text);
  outline-offset: 2px;
}
.cf h1,
.cf h2,
.cf h3 {
  color: var(--cf-text);
  text-wrap: balance;
}
.cf h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.cf p {
  text-wrap: pretty;
}

.cf-innen {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ============================================================ Kopf */

.cf-kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--cf-linie);
}
.cf-kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.cf-marke {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cf-marke img {
  display: block;
  width: auto;
}
.cf-logo-infralytics {
  height: 24px;
}
/* Die ChronoFlow-Datei hat mehr Weißraum; so stimmen die Schrifthöhen. */
.cf-logo-chronoflow {
  height: 32px;
}
.cf-trenner {
  width: 1px;
  height: 24px;
  background: var(--cf-linie-2);
}
.cf-kopf-aktionen {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cf a.cf-textlink {
  font-weight: 600;
  text-decoration: none;
}
.cf a.cf-textlink:hover {
  text-decoration: underline;
}

/* ========================================================= Buttons */

.cf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.cf a.cf-button {
  text-decoration: none;
}
.cf-button--primaer {
  color: var(--cf-text);
  background: var(--cf-gelb);
}
.cf-button--primaer:hover {
  background: var(--cf-gelb-hover);
}
.cf-button--primaer:active {
  background: var(--cf-gelb-aktiv);
}
.cf-button--kontur {
  color: var(--cf-text);
  background: #ffffff;
  border-color: var(--cf-linie-2);
}
.cf-button--kontur:hover {
  border-color: var(--cf-text);
}
.cf a.cf-button--kontur-hell {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.cf-button--kontur-hell:hover {
  border-color: #ffffff;
}
.cf-button--klein {
  height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}
.cf-button--breit {
  width: 100%;
}

/* ============================================================ Hero */

.cf-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}
.cf-hero-raster {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.cf-hero h1 span {
  display: block;
}
.cf-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.cf-lead {
  max-width: 34ch;
  margin-top: 20px;
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}
.cf-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.cf-datenbasis {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--cf-text-3);
}

/* Ohne Video ein flacher Rahmen; erhaben wird erst das echte Video. */
.cf-video {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cf-flaeche);
  border: 1px solid var(--cf-linie);
  border-radius: 12px;
}
.cf-video--aktiv {
  background: #000000;
  box-shadow:
    0 2px 6px rgba(22, 24, 27, 0.06),
    0 24px 48px -28px rgba(22, 24, 27, 0.35);
}
.cf-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}
.cf-video-platzhalter {
  padding: 24px;
  text-align: center;
  color: var(--cf-text-3);
}
.cf-video-titel {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cf-text);
}

/* ================================================ Gegenprobe (Band) */

.cf-band {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--cf-flaeche);
  border-block: 1px solid var(--cf-linie);
}
.cf-probe {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}
.cf-probe-text p {
  max-width: 44ch;
}
.cf-werte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.cf-werte > div {
  display: flex;
  flex-direction: column;
  padding: 4px 24px;
  border-left: 1px solid var(--cf-linie-2);
}
.cf-werte dt {
  font-weight: 600;
  color: var(--cf-text);
}
.cf-werte dd {
  margin: 0;
}
.cf-wert {
  order: -1;
  margin-bottom: 10px !important;
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--cf-text);
}
.cf-bezug {
  font-size: 0.95rem;
  color: var(--cf-text-3);
}

/* ======================================================= Funktionen */

.cf-abschnitt {
  padding: clamp(64px, 8vw, 112px) 0;
}
.cf-abschnitt-kopf {
  max-width: 640px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.cf-funktionen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cf-funktionen li {
  padding-top: 20px;
  border-top: 1px solid var(--cf-linie-2);
}
.cf-funktionen h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}
.cf-funktionen p {
  font-size: 1rem;
}
.cf-export {
  max-width: 60ch;
  margin-top: 48px;
  color: var(--cf-text-3);
}

/* ======================================================= Abschluss */

.cf-abschluss {
  padding: clamp(48px, 6vw, 72px) 0;
  color: #c5c9ce;
  background: var(--cf-dunkel);
}
.cf-abschluss h2,
.cf-abschluss a:not(.cf-button) {
  color: #ffffff;
}
.cf-abschluss-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
}
.cf-abschluss p {
  max-width: 52ch;
}
.cf-abschluss .cf-aktionen {
  margin-top: 0;
}
.cf-abschluss :focus-visible {
  outline-color: #ffffff;
}

.cf-fuss {
  padding: 28px 0 36px;
  font-size: 0.9rem;
  color: var(--cf-text-3);
}
.cf-fuss-innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
}
.cf-fuss-rechts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.cf .cf-fuss a {
  color: var(--cf-text-2);
}

/* ============================================== Textseiten (Rechtliches) */

.cf-text {
  max-width: calc(68ch + 2 * clamp(20px, 4vw, 40px));
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.cf-text h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.cf-text-stand {
  margin-top: 6px;
  color: var(--cf-text-3);
}
.cf .cf-text h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
}
.cf-text p + p,
.cf-text ul + p,
.cf-text p + ul {
  margin-top: 0.8em;
}
.cf-text ul {
  padding-left: 1.2em;
}
.cf-text li + li {
  margin-top: 0.5em;
}
.cf-text strong {
  font-weight: 600;
  color: var(--cf-text);
}
/* Offene Stellen des Entwurfs: auffällig, damit keine live geht. */
.cf-offen {
  padding: 0.05em 0.25em;
  color: var(--cf-text);
  background: #ffe08a;
  border-radius: 3px;
}

/* ======================================================= Anmeldung */

.cf-anmeldung {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 20px;
  min-height: calc(100vh - 73px - 88px);   /* Kopf und Fuß */
  padding: 48px 20px 72px;
}
.cf-formkarte {
  width: min(100%, 420px);
  padding: 36px 32px 32px;
  background: #ffffff;
  border: 1px solid var(--cf-linie);
  border-radius: 12px;
}
.cf-formkarte h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.cf-formkarte-lead {
  margin-top: 4px;
  color: var(--cf-text-3);
}
.cf-formkarte form {
  margin-top: 28px;
}
.cf-formkarte label {
  display: block;
  margin: 18px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cf-text);
}
.cf-formkarte form > label:first-of-type {
  margin-top: 0;
}
.cf-label-zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 6px;
}
.cf-formkarte .cf-label-zeile label {
  margin: 0;
}
.cf-label-zeile a {
  font-size: 0.9rem;
}
.cf-formkarte input[type="email"],
.cf-formkarte input[type="password"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--cf-text);
  background: #ffffff;
  border: 1px solid var(--cf-linie-2);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cf-formkarte input[type="email"]:hover,
.cf-formkarte input[type="password"]:hover {
  border-color: #9aa0a7;
}
.cf-formkarte input[type="email"]:focus-visible,
.cf-formkarte input[type="password"]:focus-visible {
  outline: none;
  border-color: var(--cf-text);
  box-shadow: 0 0 0 3px #ffd766;
}
.cf-formkarte input[aria-invalid="true"] {
  border-color: var(--cf-rot);
}
.cf-formkarte .cf-merken {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 400;
  color: var(--cf-text-2);
}
.cf-merken input {
  width: 16px;
  height: 16px;
  accent-color: var(--cf-text);
}
.cf-formkarte .cf-button {
  margin-top: 24px;
}
.cf-fehler {
  margin-top: 20px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--cf-rot);
  background: #fdf1f0;
  border: 1px solid #f1b8b2;
  border-radius: 8px;
}
.cf-anmeldung-hinweis {
  max-width: 420px;
  font-size: 0.95rem;
  text-align: center;
  color: var(--cf-text-3);
}

/* ========================================================= Schmal */

@media (max-width: 960px) {
  .cf-hero-raster,
  .cf-probe {
    grid-template-columns: minmax(0, 1fr);
  }
  .cf-funktionen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cf-kopf-innen {
    height: 60px;
  }
  .cf-logo-infralytics {
    height: 18px;
  }
  .cf-logo-chronoflow {
    height: 24px;
  }
  .cf-marke {
    gap: 10px;
  }
  /* Neben „Anmelden“ fehlt der Platz; die Anfrage steht im Hero. */
  .cf-kopf-aktionen:has(.cf-button) .cf-textlink {
    display: none;
  }
  .cf-werte {
    grid-template-columns: minmax(0, 1fr);
  }
  .cf-werte > div {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--cf-linie-2);
  }
  .cf-funktionen,
  .cf-abschluss-raster {
    grid-template-columns: minmax(0, 1fr);
  }
  .cf-anmeldung {
    align-content: start;
    min-height: 0;
    padding-top: 32px;
  }
  .cf-formkarte {
    padding: 28px 20px 24px;
  }
}
