/* ==========================================================================
   FOCUS Gruppe · Basis
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: contain; /* Sicherheitsnetz: Logos werden nie verzerrt */
}

b,
strong {
  font-weight: var(--fw-medium); /* keine synthetischen Fettschnitte */
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--color-heading);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--fs-h1);
  color: var(--color-accent);
}

h2 {
  font-size: var(--fs-h2);
}

h2 {
  color: var(--color-text-strong);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-subheading);
  color: var(--color-text-strong);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-subheading);
  color: var(--color-text-strong);
  letter-spacing: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-1) var(--ease-out);
}

a:hover {
  color: var(--focus-red);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

dl,
dd {
  margin: 0;
}

blockquote,
figure {
  margin: 0;
}

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--color-line);
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus {
  outline: none;
}

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

::selection {
  background: var(--focus-red-tint-20);
  color: var(--focus-grey-7);
}

[hidden] {
  display: none !important; /* verbindlich gegenüber Komponentenregeln */
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-m);
  background: var(--focus-grey-7);
  color: #fff;
  font-weight: var(--fw-regular);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-1) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: var(--section-y-tight);
}

.section--surface {
  background: var(--color-surface);
}

.section + .section:not(.section--surface) {
  padding-top: 0;
}

.section.section--surface + .section {
  padding-top: var(--section-y);
}

.stack > * + * {
  margin-top: var(--stack, 1.25rem);
}

/* --- Textbausteine ------------------------------------------------------ */
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: var(--fw-regular);
  color: var(--color-text);
}

.intro {
  max-width: 44rem;
  font-size: calc(var(--fs-body) * 1.06);
}

.muted {
  color: var(--color-text-muted);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.6;
}

.caption {
  font-size: var(--fs-caption);
  line-height: 1.5;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-label);
}

.measure {
  max-width: 40rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}

.section-head__text {
  max-width: 46rem;
}

.section-head__text > p {
  margin-top: 0.75rem;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

/* Prosa für Rechtsseiten */
.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 3rem;
  font-size: var(--fs-h3);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2rem;
  font-size: var(--fs-h4);
}

.prose p,
.prose ul,
.prose dl {
  margin-top: 0.875rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose li::marker {
  color: var(--focus-red);
}

/* --- Bewegung ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
