/*
 * Copied from agent-design-manual styles/friedrich.css (manual v0.1, repo commit e480ae0, 2026-11-05).
 * Do not edit here; update from the design manual repository instead.
 */

/*
 * Friedrich Verlag application UI â reference styles v0.1
 *
 * Brand colors and digital typeface: CD_Manual_08_24.pdf, August 2024.
 * Component sizes, spacing, and control patterns: proposed application
 * defaults; see DESIGN_MANUAL.md.
 *
 * Load approved Urbanist font files separately when available.
 */

:root {
  /* CD colors */
  --fv-red: #c30032;
  --fv-red-dark: #a8152b;
  --fv-anthracite: #292f3b;
  --fv-signal: #f8e500;
  --fv-lively-01: #b9c9c6;
  --fv-lively-02: #e8baa2;
  --fv-lively-03: #f7f4ef;
  --fv-white: #ffffff;

  /* Proposed application tokens */
  --fv-page: var(--fv-lively-03);
  --fv-surface: var(--fv-white);
  --fv-text: var(--fv-anthracite);
  --fv-border: #d4dfde; /* FV-Lebendig 01, 60%; CD p. 17 */
  --fv-radius: 10px;
  --fv-space-1: 0.25rem;
  --fv-space-2: 0.5rem;
  --fv-space-3: 0.75rem;
  --fv-space-4: 1rem;
  --fv-space-6: 1.5rem;
  --fv-space-8: 2rem;
}

.fv-app,
.fv-app *,
.fv-app *::before,
.fv-app *::after {
  box-sizing: border-box;
}

.fv-app {
  min-height: 100vh;
  margin: 0;
  background: var(--fv-page);
  color: var(--fv-text);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.fv-app button,
.fv-app input,
.fv-app select,
.fv-app textarea {
  font: inherit;
}

.fv-app a {
  color: var(--fv-red);
  text-underline-offset: 0.18em;
}

.fv-app :focus-visible {
  outline: 3px solid var(--fv-anthracite);
  outline-offset: 3px;
}

.fv-container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

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

.fv-header__inner {
  display: flex;
  align-items: center;
  min-height: 5rem;
  padding-block: var(--fv-space-4);
}

.fv-logo {
  display: block;
  width: auto;
  max-width: 12rem;
  max-height: 3.5rem;
  object-fit: contain;
}

.fv-main {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.fv-page-title {
  margin: 0 0 var(--fv-space-2);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.fv-lead {
  max-width: 65ch;
  margin: 0 0 var(--fv-space-8);
}

.fv-card {
  max-width: 48rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--fv-surface);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius);
}

.fv-card > :first-child,
.fv-notice > :first-child {
  margin-top: 0;
}

.fv-card > :last-child,
.fv-notice > :last-child {
  margin-bottom: 0;
}

.fv-form,
.fv-field {
  display: grid;
}

.fv-form {
  gap: var(--fv-space-6);
}

.fv-field {
  gap: var(--fv-space-2);
}

.fv-label {
  font-weight: 600;
}

.fv-hint {
  margin: 0;
  font-size: 0.875rem;
}

.fv-input,
.fv-select,
.fv-textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  color: var(--fv-text);
  background: var(--fv-white);
  border: 1px solid var(--fv-anthracite);
  border-radius: 6px;
}

.fv-textarea {
  min-height: 8rem;
  resize: vertical;
}

.fv-input[aria-invalid="true"],
.fv-select[aria-invalid="true"],
.fv-textarea[aria-invalid="true"] {
  border: 2px solid var(--fv-red);
}

.fv-error {
  margin: 0;
  color: var(--fv-anthracite);
  font-weight: 600;
}

.fv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fv-space-3);
}

.fv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--fv-radius);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.fv-button--primary {
  background: var(--fv-red);
  color: var(--fv-white);
}

.fv-button--primary:hover {
  background: var(--fv-red-dark);
}

.fv-button--secondary {
  background: var(--fv-white);
  color: var(--fv-anthracite);
  border-color: var(--fv-anthracite);
}

.fv-button--secondary:hover {
  background: var(--fv-lively-03);
}

.fv-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.fv-notice {
  padding: var(--fv-space-4);
  background: var(--fv-signal);
  color: var(--fv-anthracite);
  border-radius: var(--fv-radius);
}

.fv-skip-link {
  position: absolute;
  z-index: 10;
  top: -10rem;
  left: 1rem;
  padding: var(--fv-space-3) var(--fv-space-4);
  background: var(--fv-white);
  color: var(--fv-anthracite);
}

.fv-skip-link:focus {
  top: 1rem;
}

@media (max-width: 36rem) {
  .fv-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fv-actions .fv-button {
    width: 100%;
  }
}