/**
 * SBV Base 0.3.0
 * Globale Accessibility- und Lesbarkeitsbasis für den vollständigen Relaunch.
 */
html {
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body.sbv-site {
  color: var(--sbv-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(.sbv-ui, .sbv-prose) {
  font-family: var(--sbv-font-body);
}

:where(.sbv-ui, .sbv-prose) :where(h1, h2, h3, h4, h5, h6) {
  color: var(--sbv-ink);
  font-family: var(--sbv-font-heading);
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.sbv-display {
  margin: 0;
  font-family: var(--sbv-font-heading);
  font-size: var(--sbv-text-4xl);
  font-weight: 700;
  line-height: var(--sbv-leading-tight);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.sbv-heading-1 { font-size: var(--sbv-text-4xl); line-height: var(--sbv-leading-tight); }
.sbv-heading-2 { font-size: var(--sbv-text-3xl); line-height: var(--sbv-leading-heading); }
.sbv-heading-3 { font-size: var(--sbv-text-2xl); line-height: var(--sbv-leading-heading); }

.sbv-lead {
  max-width: 42rem;
  margin-block: var(--sbv-space-4) 0;
  color: var(--sbv-text-muted);
  font-size: var(--sbv-text-lg);
  line-height: 1.6;
}

.sbv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sbv-space-2);
  margin: 0 0 var(--sbv-space-3);
  color: var(--sbv-gold-text);
  font-size: var(--sbv-text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.sbv-eyebrow::before {
  width: 2rem;
  height: .1875rem;
  border-radius: var(--sbv-radius-pill);
  background: var(--sbv-gold);
  content: "";
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sbv-focus);
  outline-offset: 3px;
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(.sbv-ui, .sbv-prose) a:not([class]) {
  color: currentColor;
  text-decoration-line: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

:where(.sbv-ui, .sbv-prose) a:not([class]):hover {
  text-decoration-thickness: .14em;
}

:where(img, svg, video) {
  max-width: 100%;
  height: auto;
}

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

.sbv-content-width {
  width: min(calc(100% - (2 * var(--sbv-gutter))), var(--sbv-content-width));
  margin-inline: auto;
}

.sbv-content-wide {
  width: min(calc(100% - (2 * var(--sbv-gutter))), var(--sbv-content-wide));
  margin-inline: auto;
}

.sbv-reading-width {
  width: min(100%, var(--sbv-reading-width));
}

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

.sbv-section--compact {
  padding-block: clamp(2.25rem, 1.6rem + 2vw, 4rem);
}

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

.sbv-section--dark {
  background: var(--sbv-surface-dark);
  color: var(--sbv-text-inverse);
}

.sbv-section--dark :where(h1, h2, h3, h4, h5, h6),
.sbv-section--dark .sbv-display {
  color: var(--sbv-text-inverse);
}

.sbv-stack > * { margin-block: 0; }
.sbv-stack > * + * { margin-top: var(--sbv-stack-space, var(--sbv-space-6)); }

.sbv-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sbv-cluster-gap, var(--sbv-space-4));
}

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

.sbv-prose {
  max-width: var(--sbv-reading-width);
  color: var(--sbv-text);
  font-size: var(--sbv-text-base);
  line-height: var(--sbv-leading-body);
}

.sbv-prose > *:first-child { margin-top: 0; }
.sbv-prose > *:last-child { margin-bottom: 0; }
.sbv-prose :where(p, ul, ol, blockquote) { margin-block: 0 1.25em; }
.sbv-prose :where(h2, h3, h4) { margin-block: 1.6em .55em; }
.sbv-prose h2 { font-size: var(--sbv-text-3xl); }
.sbv-prose h3 { font-size: var(--sbv-text-2xl); }
.sbv-prose h4 { font-size: var(--sbv-text-xl); }
.sbv-prose li + li { margin-top: .35em; }
.sbv-prose img { border-radius: var(--sbv-radius-md); }

@media (max-width: 64rem) {
  .sbv-grid {
    --sbv-grid-columns: 2;
  }
}

@media (max-width: 40rem) {
  .sbv-grid {
    --sbv-grid-columns: 1;
    --sbv-grid-gap: var(--sbv-space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid CanvasText;
  }
}

/* Release 0.10.1 – robust focus visibility on both light and dark SBV surfaces. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sbv-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.85), 0 0 0 5px rgba(16,39,47,.22);
}
@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid CanvasText;
    box-shadow: none;
  }
}
