/*
  Qwerk – eine einzige CSS-Datei.
  Keine externen Schriften, keine Importe, keine Skripte: nur Systemschriften und Dateien dieser Seite.
  Farben stehen als Variablen oben; Hell/Dunkel folgt der Einstellung des Geräts.
*/
:root {
  color-scheme: light dark;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #14213a;
  --muted: #455369;
  --line: #d3dbe6;
  --brand: #14304f;
  --on-brand: #ffffff;
  --link: #0b5d8f;
  --accent: #0a7a6a;
  --focus: #1a5fd0;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520;
    --surface: #152130;
    --ink: #e8eef6;
    --muted: #a8b5c7;
    --line: #2a3b50;
    --brand: #7fd6c2;
    --on-brand: #06202a;
    --link: #8cc8f5;
    --accent: #5fd0b4;
    --focus: #8cc8f5;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  hyphens: manual;
  overflow-wrap: break-word;
}

/* Produktnamen nie mitten im Wort umbrechen */
.nb {
  white-space: nowrap;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

/* Kopf */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 8px;
}

.nav-list,
.foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 550;
}

/* Inhalt */
main {
  padding-bottom: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 3vw, 2rem);
}

.hero-art {
  display: none;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
  }

  .hero-art {
    display: block;
    padding-right: 2rem;
  }

  .hero-art img {
    display: block;
    width: 13rem;
    height: 13rem;
    border-radius: 2.5rem;
  }
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 5.5vw + 0.5rem, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw + 0.8rem, 1.9rem);
  font-weight: 750;
}

h3 {
  font-size: 1.4rem;
  font-weight: 750;
}

.lead {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.25rem);
  text-wrap: pretty;
}

section {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.section-intro {
  max-width: 42rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p,
.card ul {
  margin: 0;
}

.tag::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.tag {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card ul {
  padding-left: 1.2rem;
}

.card li + li {
  margin-top: 0.4rem;
}

.card .who {
  color: var(--muted);
}

.card .who strong {
  color: var(--ink);
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.btn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.6rem;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.btn::after {
  content: "→";
}

.btn .host {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Ablauf */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.steps li {
  counter-increment: schritt;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.6rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 50%;
  font-weight: 750;
}

.steps h3 {
  font-size: 1.15rem;
}

.steps p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Hinweise */
.notes {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.notes li {
  position: relative;
  padding-left: 1.6rem;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
}

.notes strong {
  display: block;
}

/* Unterer Bereich: links Hinweise, rechts Kontakt und Über Qwerk (schmal: untereinander) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.25rem) 2rem;
  align-items: start;
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.split section {
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.panel {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel h2 {
  font-size: 1.35rem;
}

.panel p {
  margin: 0.6rem 0 0;
}

/* Rechtstexte */
.legal {
  max-width: 46rem;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  hyphens: auto;
}

.legal h1 {
  max-width: none;
  font-size: clamp(1.9rem, 4vw + 0.5rem, 2.6rem);
}

.legal .sub {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.legal section {
  margin-top: 2rem;
}

.legal h2 {
  font-size: 1.35rem;
}

.legal p,
.legal address {
  margin: 0.6rem 0 0;
  font-style: normal;
}

.legal ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.legal .stand {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Fuß */
.site-footer {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer p {
  margin: 0.5rem 0 0;
}

.site-footer .small {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .btn {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}

@media print {
  .skip,
  .site-header nav,
  .btn::after {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
