:root {
  --ink: #23272b;
  --ink-soft: #545b62;
  --grey: #999999;
  --grey-light: #e9e9e7;
  --paper: #f6f6f4;
  --white: #ffffff;
  --red: #fd0100;
  --red-text: #c80000;
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-text); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: .6rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 16px; color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Kopf */
.site-header { background: var(--white); border-bottom: 1px solid var(--grey-light); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 96px;
}
.brand { display: inline-flex; line-height: 0; }
.brand img { width: 260px; max-width: 64vw; height: auto; }
.site-header nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; margin-left: 1.25rem;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a[aria-current="page"] { font-weight: 600; }

/* Startseite */
main { flex: 1; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
}
.hero::after {
  /* Schräge des „A“ aus dem Logo als ruhiges Flächenmotiv */
  content: "";
  position: absolute; inset: 0 0 0 auto; width: 46%;
  background: var(--paper);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.hero .wrap {
  position: relative; z-index: 1;
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 9vw, 112px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.25rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 14px; height: 12px; background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.02em; font-weight: 700;
  text-wrap: balance;
}
h1 .muted { color: var(--grey); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40em; margin: 0 0 1rem; }
.hero p { max-width: 40em; }


.progress {
  margin-top: 2rem; max-width: 420px;
  height: 6px; border-radius: 99px; background: var(--grey-light); overflow: hidden;
}
.progress span {
  display: block; height: 100%; width: 62%;
  background: repeating-linear-gradient(-55deg, var(--red) 0 10px, #ff4a40 10px 20px);
  border-radius: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .progress span { animation: stripes 1.6s linear infinite; background-size: 200% 100%; }
  @keyframes stripes { to { background-position: -48px 0; } }
}

/* Kontakt */
.contact { padding: clamp(48px, 7vw, 88px) 0; }
.contact h2 { font-size: 1.5rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.contact .intro { color: var(--ink-soft); margin: 0 0 2rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid rgba(35, 39, 43, .06); border-radius: var(--radius);
  padding: 26px 26px 24px; position: relative;
  box-shadow: 0 1px 2px rgba(35, 39, 43, .05), 0 10px 28px -10px rgba(35, 39, 43, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(35, 39, 43, .06), 0 18px 36px -12px rgba(35, 39, 43, .24);
}
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card::before {
  content: ""; position: absolute; left: 26px; top: 0; width: 36px; height: 3px; background: var(--red);
}
.card h3 {
  margin: 0 0 .6rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--grey);
}
.card p { margin: 0; }
.card .big { font-size: 1.2rem; font-weight: 600; }
.card .big a { color: var(--ink); text-decoration: none; }
.card .big a:hover { color: var(--red-text); text-decoration: underline; }
.card .small { color: var(--ink-soft); font-size: .95rem; margin-top: .35rem; }
.card .more { display: inline-block; margin-top: .75rem; font-size: .95rem; }

/* Rechtstexte */
.page { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.3rem; margin: 2.4rem 0 .6rem; letter-spacing: -.01em; }
.page h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
.page p, .page li { color: var(--ink-soft); }
.page strong { color: var(--ink); }
.page address { font-style: normal; color: var(--ink-soft); }
.page .stand { margin-top: 3rem; font-size: .9rem; }

/* Fuß */
.site-footer { background: var(--ink); color: #c9cdd1; font-size: .92rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 32px; padding-top: 28px; padding-bottom: 28px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links span { color: #9aa1a8; }

.nx-stamp {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px;
  border: 1px dashed rgba(255, 255, 255, .35); border-radius: 6px;
  font-family: var(--mono); font-size: .72rem; line-height: 1.35;
  color: #c9cdd1; text-decoration: none;
}
.site-footer a.nx-stamp:hover { text-decoration: none; border-color: rgba(255, 255, 255, .7); color: #fff; }
.nx-stamp .nx-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: #0a0a0a; border-radius: 4px; flex: none;
}
.nx-stamp svg { width: 15px; height: 16px; }
.nx-stamp strong { display: block; color: #fff; font-weight: 600; letter-spacing: .04em; }

/* Mobil */
@media (max-width: 860px) {
  .hero::after { width: 60%; opacity: .7; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 76px; }
  .site-header nav { display: none; }
  .brand img { width: 220px; }
  .hero::after { display: none; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header nav, .skip, .progress, .nx-stamp, .hero::after { display: none !important; }
  body { background: #fff; }
}
