/* ==========================================================================
   baz · base.css — Reset, Typografie, Grundelemente, Utilities
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.is-locked { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: var(--lh-head); letter-spacing: var(--tr-head); }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
::selection { background: var(--baz-sun); color: var(--n-900); }
[hidden] { display: none !important; }

/* Fokus — sichtbar, markenkonform */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus-visible { outline: none; }

/* Typo-Hierarchie */
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--text-brand); margin: 0 0 var(--s-4); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 1.6em; height: 1.5px; background: currentColor; opacity: .6; }
.h1, .page-title { font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-tight); letter-spacing: var(--tr-tight); }
.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-head); letter-spacing: var(--tr-tight); }
.h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.h5 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--s-2); }
.mega-title { font-size: var(--fs-display); font-weight: 800; line-height: var(--lh-mega); letter-spacing: -.06em; }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--n-800); max-width: 38em; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
strong { font-weight: 600; }

/* Layout-Basis */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.app { position: relative; min-height: 70vh; padding-top: var(--header-h); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.btn-row--center { justify-content: center; }

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 999; background: var(--n-900); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-pill); transition: top var(--t-fast); text-decoration: none; }
.skip:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.linklike { color: var(--text); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; font-size: inherit; }
.linklike:hover { color: var(--action); }
code, .code { font-family: inherit; font-weight: 600; background: var(--n-0); border: 1.5px dashed var(--baz-cinnamon-300); color: var(--action); padding: .1em .55em; border-radius: var(--r-xs); letter-spacing: .06em; }
.code { cursor: copy; transition: background var(--t-fast); }
.code:hover { background: var(--baz-sun-200); }

/* Scroll-Fortschritt */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; background: var(--action); transform-origin: 0 50%; transform: scaleX(0); z-index: calc(var(--z-header) + 1); pointer-events: none; }
