/* GRID.Whisper - only what exists on the landing page alone. Tokens, header, footer, form
   and link preview live in base.css, the family look (typeface, stage, main button, footer)
   in grid.css; both are loaded by every page.

   SINCE BA-289 (22.10.2026) THE PAGE LOOKS LIKE GRID.DROP: a navy stage with a large
   headline, the key facts band, sections with a large heading and a lead on the right,
   cards with symbols and numbers, question boxes and a closing band. The difference to
   GRID.Drop is deliberate and decided by TBRU: the form stays on the landing page, inside
   the stage, directly under the headline. GRID.Drop sends visitors to /app instead.

   MOTION ONLY ONCE: the headline lines rise when the page is built, nothing loops at rest.
   GRID.Drop lets its grid drift and its button glow forever; on this page a running loop
   at rest is limited to the one call of the create button (pruefe/rauchtest.mjs measures
   style recalculations and layouts in five seconds of rest). */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* -------------------------------------------------------------------- Buehne */

.buehne-innen {
  max-width: var(--seite);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--rand) clamp(2.5rem, 5vw, 4rem);
}

.buehne-kopf {
  display: grid;
  gap: 1rem 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

@media (min-width: 62rem) {
  .buehne-kopf {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  }
}

/* SIZE BY COLUMN, not by window: the longest word must fit the text column. Hyphenation is
   the emergency exit for very narrow windows, not the plan (same rule as GRID.Drop). */
.held-titel {
  margin: 0;
  color: var(--buehne-text);
  font-size: clamp(2.05rem, 0.6rem + 6vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  overflow-wrap: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

@media (min-width: 62rem) {
  .held-titel {
    font-size: clamp(2.6rem, 0.4rem + 3.4vw, 3.8rem);
  }
}

.held-titel .zeile {
  display: block;
}

.held-titel .akzent,
.schluss h2 .akzent {
  color: var(--buehne-akzent);
}

.buehne-fuehrung {
  margin: 0;
  max-width: 36rem;
  color: var(--buehne-fliess);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
}

/* The tool on the stage: the card brings its own surface, so its text must not inherit the
   white of the stage. */
.buehne-start .werkbank {
  width: 100%;
  max-width: none;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  color: var(--fliesstext);
}

/* Without JavaScript the explanation sits where the tool would be, as a card. */
.buehne-innen > noscript .stufe {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-karte);
  background: var(--werkbank);
  color: var(--fliesstext);
}

/* ------------------------------------------------------------------ Eckdaten */

.eckdaten {
  list-style: none;
  max-width: var(--seite);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 48rem) {
  .eckdaten {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.eckdaten li {
  padding: 1.4rem var(--rand) 1.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.eckdaten li:last-child {
  border-right: 0;
}

.eckdaten strong {
  display: block;
  color: var(--buehne-text);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eckdaten span {
  display: block;
  margin-top: 0.35rem;
  color: var(--buehne-fliess);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.abschnitt {
  max-width: var(--seite);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--rand) 0;
}

.abschnitt-kopf {
  display: grid;
  gap: 1rem 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 62rem) {
  .abschnitt-kopf {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.abschnitt-kopf h2 {
  margin: 0;
  color: var(--ueberschrift);
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  line-height: 1.02;
}

.abschnitt-fuehrung {
  margin: 0;
  max-width: 34rem;
  color: var(--fliesstext);
  font-size: 1.05rem;
}

.abschnitt-schluss {
  max-width: var(--lesespalte);
  margin: 1.5rem 0 0;
  color: var(--fliesstext);
}

/* ------------------------------------------------------------------- Schritte */

.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 52rem) {
  .schritte {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.karte {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  background-color: var(--werkbank);
  box-shadow: var(--tiefe);
}

/* The hover line of GRID.Drop: orange (stays in the browser) to blue (goes to the server). */
.karte::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--schluessel), var(--aktion));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--takt-ruhig) var(--verlauf);
}

@media (hover: hover) {
  .karte:hover::after {
    transform: scaleX(1);
  }
}

.schritt-titel {
  display: block;
  margin: 1.1rem 0 0.5rem;
  color: var(--ueberschrift);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.karte p {
  margin: 0;
  color: var(--fliesstext);
}

.nummer {
  position: absolute;
  right: 1.25rem;
  top: 1rem;
  color: var(--feldrand);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.symbol {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background-color: var(--tm-accent-2-soft);
}

.symbol svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--orange-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.symbol.blau {
  background-color: var(--tm-accent-soft);
}

.symbol.blau svg {
  stroke: var(--blau-text);
}

/* ------------------------------------------------------------------- Zusagen */

/* What protects the link and what does not, side by side and the same size. The top edge
   carries the colour: blue for what the service does, orange for the limits. */
.zusagen {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48rem) {
  .zusagen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.zusage {
  min-width: 0;
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid var(--linie);
  border-top: 4px solid var(--aktion);
  border-radius: var(--radius-karte);
  background-color: var(--werkbank);
  box-shadow: var(--tiefe);
}

.zusage-grenze {
  border-top-color: var(--schluessel);
}

.zusage h3 {
  margin: 0 0 0.75rem;
  color: var(--blau-text);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zusage-grenze h3 {
  color: var(--orange-text);
}

.zusage ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--fliesstext);
}

.zusage li {
  margin: 0.45rem 0;
}

.zusage li::marker {
  color: var(--feldrand);
}

/* -------------------------------------------------------------------- Einsatz */

.einsatz {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 52rem) {
  .einsatz {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.einsatz li {
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--schluessel);
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--tm-surface-2);
}

.einsatz strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ueberschrift);
  font-size: 1.05rem;
  font-weight: 900;
}

.einsatz span {
  color: var(--fliesstext);
}

/* 44 px high like every other control on this page (lebenszyklus.mjs measures it at 390 px);
   the underline is drawn as text decoration so it stays under the words, not under the box. */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.25rem;
  color: var(--orange-text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.textlink .pfeil {
  transition: transform var(--takt-schnell) var(--verlauf);
}

@media (hover: hover) {
  .textlink:hover .pfeil {
    transform: translateX(4px);
  }
}

/* --------------------------------------------------------------------- Fragen */

.frage {
  margin: 0 0 0.9rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  background-color: var(--werkbank);
  transition: border-color var(--takt-schnell) var(--verlauf);
}

.frage:hover {
  border-color: var(--feldrand);
}

.frage > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  color: var(--ueberschrift);
  font-size: 1.05rem;
  font-weight: 900;
}

.frage > summary::-webkit-details-marker {
  display: none;
}

.frage > summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-color: var(--tm-accent-2-soft);
  color: var(--orange-text);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform var(--takt-ruhig) var(--verlauf);
}

.frage[open] > summary::after {
  transform: rotate(45deg);
}

.frage > p {
  margin: 0.9rem 0 0;
  max-width: var(--lesespalte);
  color: var(--fliesstext);
}

/* ---------------------------------------------------------------- Schlussband */

.schlussband {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background-color: var(--buehne);
}

.schluss {
  max-width: var(--seite);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--rand);
  display: grid;
  gap: 1.75rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 52rem) {
  .schluss {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.schluss h2 {
  margin: 0;
  color: var(--buehne-text);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

/* -------------------------------------------------------------------- Bewegung */

@keyframes held-zeile {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Once, while the page is built; nothing here repeats. */
@media (prefers-reduced-motion: no-preference) {
  .held-titel .zeile {
    animation: held-zeile 0.9s var(--verlauf) 1 both;
  }

  .held-titel .zeile:nth-child(2) {
    animation-delay: 0.12s;
  }

  .held-titel .zeile:nth-child(3) {
    animation-delay: 0.24s;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .karte {
    transition: transform var(--takt-ruhig) var(--verlauf), border-color var(--takt-ruhig) var(--verlauf);
  }

  .karte:hover {
    transform: translateY(-4px);
    border-color: var(--feldrand);
  }
}

@media (max-width: 34rem) {
  .eckdaten li {
    padding: 1.1rem 1rem 1.2rem;
  }

  .eckdaten li:nth-child(2n) {
    border-right: 0;
  }

  .eckdaten li:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (forced-colors: active) {
  .zusage,
  .karte,
  .einsatz li,
  .frage {
    border: 2px solid CanvasText;
  }
}

/* ------------------------------------------------------------ BA-607 additions */

/* Server location in the trust block: label and sentence on one line where it fits. */
.standort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin: 1.25rem 0 0;
  color: var(--fliesstext);
}

.standort .kennz {
  margin: 0;
  color: var(--nebentext);
}

/* GRID.Pass as its own section: the box is wider and the button sits under the text. */
#grid-pass .upsell {
  max-width: var(--lesespalte);
  padding: 1.5rem 1.5rem 1.4rem;
}

#grid-pass .upsell-titel {
  font-size: 1.35rem;
}

.upsell-knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* The API access form: two fields side by side from tablet width, the rest full width. */
.anfrage {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  max-width: 46rem;
}

@media (min-width: 48rem) {
  .anfrage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.anfrage-breit {
  grid-column: 1 / -1;
}

.anfrage-feld {
  display: block;
  min-width: 0;
}

.anfrage-feld .kennz {
  margin-bottom: 0.35rem;
  color: var(--nebentext);
}

.anfrage-feld input,
.anfrage-feld textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  background: var(--feld);
  color: var(--ueberschrift);
  border: 1px solid var(--feldrand);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-family: var(--font);
  font-size: 15px;
}

.anfrage-feld textarea {
  resize: vertical;
}

.anfrage .klein {
  margin: 0;
  color: var(--nebentext);
}

.anfrage .klein a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blau-text);
}

/* The field for bots: not rendered and out of the tab order, but present in the markup, where
   a form-filling bot finds it. A person never sees it, so it needs no 44 px target. */
.anfrage-honig {
  display: none;
}

/* The comparison: a real table. On a phone it scrolls inside its frame, the page does not. */
.vergleich-rahmen {
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  background-color: var(--werkbank);
}

.vergleich {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  color: var(--fliesstext);
  font-size: 0.95rem;
}

.vergleich caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vergleich th,
.vergleich td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
}

.vergleich tbody tr:last-child th,
.vergleich tbody tr:last-child td {
  border-bottom: 0;
}

.vergleich thead th {
  color: var(--ueberschrift);
  font-weight: 800;
}

.vergleich tbody th {
  color: var(--ueberschrift);
  font-weight: 700;
}

.vergleich .vergleich-eigen {
  background-color: var(--tm-surface-2);
  color: var(--ueberschrift);
  font-weight: 700;
}

.vergleich-hinweis {
  margin: 0.75rem 0 0;
  color: var(--nebentext);
}

/* The not-found page: the stage only, a little less tall. */
.nicht-gefunden .buehne-innen p .knopf {
  display: inline-flex;
  align-items: center;
}
