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

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; transition: color var(--transition); }
a:hover { color: var(--color-accent-text); }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--color-accent-text); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--color-on-dark); }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.skip { position: absolute; top: -6rem; left: var(--gutter); z-index: 10; padding: 0.6rem 1rem; background: var(--color-surface); }
.skip:focus { top: 0.5rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Raster: mobil einspaltig, ab 900 px zwölf Spalten. Jede Section setzt ihre Elemente selbst. */
.page { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; gap: var(--gap); }

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.section { padding-block: var(--section); border-top: 1px solid var(--color-border); }
.on-dark { background: var(--color-dark); color: var(--color-on-dark); border-top: 0; }
.on-dark a:hover { color: var(--color-accent-on-dark); }

/* Technische Abschnittskennzeichnung */
.label { display: block; margin-bottom: 1.25rem; color: var(--color-accent-text); font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.on-dark .label { color: var(--color-accent-on-dark); }

.display, .h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.display { font-size: var(--text-display); line-height: 0.98; letter-spacing: -0.015em; }
.h2 { font-size: var(--text-h2); line-height: 1; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; line-height: 1.1; }
.lead { font-size: var(--text-lead); line-height: 1.5; max-width: 62ch; }
.muted { color: var(--color-text-2); }
.on-dark .muted { color: var(--color-on-dark-2); }
.mono { font-family: var(--font-mono); font-size: var(--text-small); }
.note { color: var(--color-text-2); font-size: var(--text-small); }
.on-dark .note { color: var(--color-on-dark-2); }

.btn { display: inline-flex; align-items: center; gap: 0.75rem; min-height: var(--touch); padding: 0.7rem 1.4rem; border: 1px solid var(--color-dark); border-radius: var(--radius); background: var(--color-dark); color: var(--color-on-dark); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--transition), border-color var(--transition), color var(--transition); }
.btn:hover { background: var(--color-accent-text); border-color: var(--color-accent-text); color: var(--color-on-dark); }
.on-dark .btn { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-dark); }
.on-dark .btn:hover { background: var(--color-accent-on-dark); border-color: var(--color-accent-on-dark); color: var(--color-dark); }
.btn__arrow { font-weight: 400; }
.link-line { display: inline-flex; align-items: center; min-height: var(--touch); border-bottom: 1px solid currentColor; font-weight: 500; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; margin-top: 2.25rem; }

/* Geräteansichten: echte Screenshots in einem sachlichen Rahmen */
.device { display: block; border: 1px solid var(--color-dark); background: var(--color-surface); }
.device--phone { border-width: 7px; border-radius: 28px; overflow: hidden; }
.device--screen { border-width: 8px 8px 14px; border-radius: 6px; overflow: hidden; }
.device img { width: 100%; }

/* Rechtsseiten und Meldungen */
.narrow { max-width: 44rem; }
.narrow h1 { margin-bottom: 1rem; font-family: var(--font-display); font-size: var(--text-h2); line-height: 1; text-transform: uppercase; }
.narrow p { margin-bottom: 1rem; }
