/*
 * Farben, Radien und Schrift folgen der Rechnella-Produktseite
 * (c.hil Design System), damit beide Seiten zusammenpassen.
 * Keine Webfonts, keine fremden Server.
 */
:root {
  --cream: #f2e4d0;
  --cream-dark: #e8d5bc;
  --cream-light: #faf4ec;
  --black: #1a1a1a;
  --grey: #5c5c5c;
  --line: #ddd0bc;
  --line-soft: #ebe0d0;
  --white: #ffffff;
  --info-text: #31567a;

  --radius-btn: 6px;
  --radius-card: 12px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);

  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --page: 1120px;
  --pad-x: clamp(18px, 4vw, 32px);
  --section-y: clamp(48px, 7vw, 88px);
}

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

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

body {
  background: var(--cream-light);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

/* ── Kopf ── */
.site-header {
  background: var(--black);
  color: var(--cream);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  min-height: 60px;
  padding-block: 10px;
}

.site-logo {
  display: block;
  margin-right: auto;
}

.site-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: var(--radius-btn);
}

.site-nav a:hover { background: rgba(242, 228, 208, 0.14); }

.site-nav a[aria-current="page"] {
  background: var(--cream);
  color: var(--black);
}

/* ── Inhalt ── */
main { flex: 1; }

section { padding: var(--section-y) 0; }

section + section { border-top: 1px solid var(--line-soft); }

.label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.9em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  max-width: 30ch;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.5;
  color: #333;
  max-width: 40rem;
  margin-top: 1.25rem;
}

.prose p {
  max-width: 68ch;
  margin-top: 1rem;
}

.prose ul {
  max-width: 68ch;
  margin: 1rem 0 0 1.2rem;
}

.prose li { margin-top: 0.4rem; }

/* ── Hero ── */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.hero + section { border-top: 0; }

.hero .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 3rem;
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--cream-light);
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
}

.btn-secondary:hover { background: rgba(26, 26, 26, 0.07); }

.partner-line {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--grey);
}

/* ── Kette ── */
.chain {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 0.5rem 1.5rem;
}

.chain li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.25rem 0.75rem;
  padding: 0.95rem 0;
}

.chain li + li { border-top: 1px solid var(--line-soft); }

.chain .num {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
}

.chain strong {
  display: block;
  font-size: 1rem;
}

.chain span.who {
  display: block;
  font-size: 0.9375rem;
  color: var(--grey);
}

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

.cards:first-child { margin-top: 0; }

.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 2.6vw, 30px);
  color: var(--black);
  text-decoration: none;
}

a.card:hover { border-color: var(--black); }

.card .kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey);
}

.card p {
  font-size: 1rem;
  color: var(--grey);
  flex: 1;
}

.card .more { font-weight: 700; }

.card .tags {
  font-size: 0.875rem;
  color: var(--grey);
  flex: none;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
}

/* ── Zitat ── */
blockquote {
  border-left: 4px solid var(--black);
  padding-left: 1.5rem;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 40ch;
}

/* ── Kennzahlen ── */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.facts div {
  padding: 1.2rem 1.3rem;
  border-left: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  margin: -1px 0 0 -1px;
}

.facts dt {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.facts dd {
  font-size: 0.875rem;
  color: var(--grey);
}

.note {
  font-size: 0.875rem;
  color: var(--grey);
  margin-top: 1rem;
  max-width: 68ch;
}

/* ── Dunkles Abschlussband ── */
section.cta {
  background: var(--black);
  color: var(--cream);
  border-top: 0;
}

.cta .btn {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
}

.cta .btn:hover {
  background: var(--white);
  border-color: var(--white);
}

.cta .btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.cta .btn-secondary:hover {
  background: rgba(242, 228, 208, 0.14);
  border-color: var(--cream);
}

/* ── Rechtstexte ── */
.legal { max-width: 720px; }

.legal h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 2rem 0 0.5rem;
  max-width: none;
}

.legal p, .legal address, .legal ul {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal ul { padding-left: 1.4rem; }

.legal .divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.legal .box {
  background: var(--cream);
  border-left: 4px solid var(--black);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--grey);
  margin: 0.75rem 0;
}

/* ── Fuß ── */
.site-footer {
  background: var(--black);
  color: var(--cream-dark);
  font-size: 0.9375rem;
  padding: 28px 0;
}

.cta + .site-footer,
main:has(.cta:last-child) + .site-footer {
  border-top: 1px solid rgba(242, 228, 208, 0.22);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 22px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .site-logo img { height: 48px; }
}
