/*
 * Öffentliche Listmonk-Seiten in der Optik „Linie“ von ffb-lokal.de. Wird nach dem
 * Listmonk-eigenen style.css geladen und überschreibt es. Farben wie
 * web/src/styles/global.css; Schrift Instrument Sans (SIL OFL 1.1, Lizenz in
 * OFL-Instrument-Sans.txt), selbst gehostet wie auf der Website. Keine externen Ressourcen.
 */
@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --panel: #eceff3;
  --ink: #14233f;
  --ink-hover: #22365c;
  --muted: #566173;
  --rule: #cfd5de;
  --field: #8a94a5;
  --accent: #2b6d34;
  --accent-dark: #1f5226;
  --danger: #b3261e;
  --focus: #1a5fd0;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h2 {
  margin: 0 0 1rem 0;
  font-size: 1.75rem;
}

h3 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.125rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

label {
  color: var(--ink);
}

/* Inhaltsspalte wie .page auf der Website */
.ffb-page {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Kopf wie auf der Website: weiß, feine Linie unten, Wortmarke als Text */
.ffb-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.ffb-header .ffb-page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  min-height: 3.5rem;
}

.ffb-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.ffb-wordmark:hover {
  color: var(--ink);
}

.ffb-wordmark span {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.ffb-kicker {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
}

/* Listmonk-Inhalt: keine Karte, sondern Text auf Weiß wie die Website */
.container {
  max-width: 48rem;
  margin: 0 auto;
}

.wrap,
main.container.wrap {
  flex: 1;
  width: 100%;
  padding: 2rem 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wrap > section,
.wrap > form,
.wrap > h2,
.wrap > div {
  max-width: 36rem;
}

.section {
  margin-bottom: 2.5rem;
}

ul {
  padding-left: 1.5rem;
}

.lists {
  padding-left: 0;
}

.lists .description {
  color: var(--muted);
}

/* Schaltflächen wie .button auf der Website: Nachtblau, weiße Schrift */
.button,
button.button,
input[type="submit"].button {
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.button:hover,
button.button:hover,
input[type="submit"].button:hover {
  border-color: var(--ink-hover);
  background: var(--ink-hover);
  color: var(--paper);
}

/* Zweitrangig wie .button-quiet: weiß mit Rahmen */
.button.button-outline,
input[type="submit"].button.button-outline {
  background: var(--paper);
  border: 1px solid var(--field);
  color: var(--ink);
}

.button.button-outline:hover,
input[type="submit"].button.button-outline:hover {
  border-color: var(--ink);
  background: var(--panel);
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  min-height: 3rem;
  border: 1px solid var(--field);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}

input:focus {
  border-color: var(--ink);
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--ink);
}

.data-form {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.error {
  color: var(--danger);
  font-weight: 700;
}

/* Fuß wie auf der Website */
.ffb-footer {
  margin-top: 3rem;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9375rem;
}

.ffb-footer .ffb-page {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.ffb-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.ffb-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: underline;
}

.ffb-footer a:hover {
  color: var(--ink);
}

.ffb-footer p {
  margin: 0.5rem 0 0 0;
}

@media screen and (min-width: 640px) {
  .ffb-page {
    padding: 0 1.5rem;
  }

  .wrap,
  main.container.wrap {
    padding: 2.5rem 1.5rem;
  }

  h2 {
    font-size: 2.125rem;
  }
}

@media screen and (max-width: 650px) {
  .wrap,
  main.container.wrap {
    padding: 1.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
