/* =========================================================
   IBM Plex Sans (lokal)
   ========================================================= */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans/IBMPlexSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans/IBMPlexSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans/IBMPlexSans-SemiBold.woff2") format("woff2");
}

/* =========================================================
   Base
   ========================================================= */

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

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

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;        /* FIX wie gewünscht */
  line-height: 1.6;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #171717;
  background: #ffffff;
}

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

/* Links: Default ohne Unterstreichung, nur bei Hover/Focus */
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.22em;
  transition: opacity 140ms ease, text-decoration-thickness 140ms ease;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}

/* =========================================================
   Layout tokens
   ========================================================= */

:root {
  --page-max: 1120px;
  --gutter: 2rem;

  --measure-body: 74ch;
  --measure-lead: 50ch;
  --measure-h1: 74ch;

  --space-1: 0.75rem;
  --space-2: 1.25rem;
  --space-3: 2rem;
  --space-4: 3rem;
  --space-5: 4.5rem;
}

/* Container */
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  padding-top: 1.6rem;
  padding-bottom: 0;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
}

.brand {
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================================
   Main
   ========================================================= */

main { padding: var(--space-4) 0; }

.content { max-width: var(--measure-body); }

/* Home */
.hero h1 {
  max-width: var(--measure-h1);
  margin: 0;
  font-size: clamp(2.7rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  max-width: var(--measure-lead);
  margin: var(--space-3) 0 var(--space-4);
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 400;
  opacity: 0.95;
}

/* Default pages */
.h1 {
  max-width: var(--measure-h1);
  margin: 0 0 var(--space-3);
  font-size: clamp(2.1rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  hyphens: none;
}

/* Text formatting */
.text p { margin: 0 0 var(--space-2); }
.text p:last-child { margin-bottom: 0; }

.text ul { margin: 0 0 var(--space-2); padding-left: 1.2rem; }
.text li { margin: 0 0 0.4rem; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: var(--space-3) 0 var(--space-4);
  margin-top: var(--space-4);
  border-top: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
}

.footer-inner {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.footer-text { margin: 0; }

.footer-nav {
  display: flex;
  gap: 1rem;
}

/* =========================================================
   Accessibility
   ========================================================= */

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 860px) {
  :root { --gutter: 1.25rem; }

  .site-header .wrap { gap: 1rem; }
  .nav { margin-left: 0; }

  .lead { font-size: 1.35rem; }
}
