/*
 * Application-specific additions to friedrich.css. Uses only design-manual tokens.
 * Not covered by design manual v0.1; pending design review.
 */

/* Prefilled, locked customer ID: visibly distinct from editable inputs. */
.fv-app .fv-input[readonly] {
  background: var(--fv-lively-03);
}

/*
 * friedrich.css v0.1: ".fv-app a" outranks the button modifiers, turning link buttons red.
 * Restore the manual's action colors for <a> buttons until fixed upstream.
 */
.fv-app a.fv-button--primary {
  color: var(--fv-white);
}

.fv-app a.fv-button--secondary {
  color: var(--fv-anthracite);
}

.fv-required {
  font-weight: 400;
}

/*
 * Header logo. Sizes and the recolouring of the logo mark follow the live
 * website (fv-brand: 6rem mobile, 7rem otherwise; "svg g g path" in FV-Rot).
 * friedrich.css caps .fv-logo at 3.5rem height, which would render it smaller.
 */
.fv-header .fv-logo {
  width: 4rem;
  height: auto;
  max-width: none;
  max-height: none;
}

.fv-header .fv-logo g g path {
  fill: var(--fv-red);
}

@media (min-width: 48rem) {
  .fv-header .fv-logo {
    width: 5rem;
  }
}

/* Keep the footer at the bottom on short pages. */
body.fv-app {
  display: flex;
  flex-direction: column;
}

.fv-app .fv-main {
  flex: 1 0 auto;
}

.fv-footer {
  background: var(--fv-white);
  border-top: 1px solid var(--fv-border);
}

.fv-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fv-space-2) var(--fv-space-6);
  padding-block: var(--fv-space-4);
}

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

/* Intro text above the form: same measure as .fv-lead, but with several paragraphs and a list. */
.fv-intro {
  max-width: 65ch;
  margin: 0 0 var(--fv-space-8);
}

.fv-intro > :first-child {
  margin-top: 0;
}

.fv-intro > :last-child {
  margin-bottom: 0;
}

/* Explanatory part of a label, set in regular weight after the bold label text. */
.fv-label__detail {
  font-weight: 400;
}

/* .fv-field is display: grid, which would otherwise override the hidden attribute. */
.fv-field[hidden] {
  display: none;
}

/*
 * Calmer information box. Design manual v0.2 (section 2) allows FV-Signal,
 * FV-Lebendig 01 or FV-Lebendig 02 for information boxes; FV-Signal was too harsh here.
 */
.fv-notice--lively {
  background: var(--fv-lively-01);
}
