/* =========================================================
   REFERENZKARTE — eigenständiges, ruhiges Vertriebsdokument
   Bewusst schlicht gehalten: die Karte wird verschickt und
   als PDF gedruckt, nicht gescrollt wie eine Website.
   ========================================================= */

.rk {
  --c-bg: #FFFFFF;
  --c-soft: #F7F8FA;
  --c-dark: #0E1116;
  --c-line: #E4E7EC;
  --c-line-2: #D0D5DD;
  --c-text: #101828;
  --c-accent: #FFC91F;
  --c-accent-soft: #FFF6D6;
  --r: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px -6px rgba(16,24,40,.10);

  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.rk * { min-width: 0; box-sizing: border-box; }
.rk img { max-width: 100%; height: auto; }
.rk-wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

.rk h1, .rk h2, .rk h3 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin: 0;
  text-wrap: balance;
}
.rk p { margin: 0; overflow-wrap: break-word; text-wrap: pretty; }

/* ---- Interner Warnhinweis ---- */
.rk-intern-banner {
  background: var(--c-dark); color: #fff;
  font-size: 13px; font-weight: 600;
  text-align: center; padding: 10px 18px;
}

/* ---- Kopf ---- */
.rk-head {
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
}
.rk-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 12px; padding-bottom: 12px;
}
.rk-logo img { height: 46px; width: auto; display: block; }
.rk-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.rk-nav a {
  font-size: 14px; font-weight: 600; color: var(--c-text);
  text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.rk-nav a:hover { border-bottom-color: var(--c-accent); }

/* ---- Hero ---- */
.rk-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); }
.rk-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-text);
  background: var(--c-accent-soft);
  border: 1px solid #F5D97B;
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.rk-hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.08; }
.rk-mark {
  background: linear-gradient(to top, var(--c-accent) 32%, transparent 32%);
  border-radius: 2px;
}
.rk-lead { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.6; margin-top: 16px; max-width: 62ch; }
.rk-stand { font-size: 13px; color: var(--c-text); opacity: .6; margin-top: 14px; }

/* ---- Bereich ---- */
.rk-bereich { padding: clamp(26px, 3.5vw, 44px) 0; border-top: 1px solid var(--c-line); }
.rk-bereich__kopf { margin-bottom: 22px; position: relative; }
.rk-bereich__kopf h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.rk-bereich__kopf p { font-size: 15.5px; margin-top: 6px; opacity: .78; max-width: 60ch; }
.rk-anzahl {
  position: absolute; top: 2px; right: 0;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--c-line-2); border-radius: 999px;
  padding: 4px 11px; white-space: nowrap;
}

/* ---- Projektkarte ---- */
.rk-karte {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.6vw, 30px);
  margin-bottom: 16px;
  break-inside: avoid;
}
.rk-karte__kopf {
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}
.rk-karte__kopf h3 { font-size: clamp(18px, 2.1vw, 22px); font-weight: 800; }
.rk-meta { font-size: 13.5px; opacity: .7; margin-top: 5px; }

.rk-karte__body {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
}
.rk-block h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 9px;
}
.rk-block p { font-size: 14.5px; line-height: 1.55; }
.rk-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rk-block li {
  font-size: 14.5px; line-height: 1.5;
  padding-left: 18px; position: relative;
}
.rk-block li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
}

/* Ergebnis-Spalte */
.rk-block--ergebnis {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 16px 18px;
}
.rk-zahl {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800; letter-spacing: -0.035em;
  line-height: 1; margin: 0 0 6px;
}
.rk-einheit { font-size: 15px; font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.rk-ergebnis { font-size: 14px; line-height: 1.5; }
.rk-link {
  display: inline-block; margin-top: 12px;
  font-size: 13.5px; font-weight: 700;
  color: var(--c-text); text-decoration: none;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 1px;
}

.rk-todo { opacity: .45; font-style: italic; }
.rk-hinweis {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--c-line-2);
  font-size: 12.5px; opacity: .6;
}

/* ---- Abschluss ---- */
.rk-cta {
  background: var(--c-dark); color: #fff;
  border-radius: var(--r);
  padding: clamp(28px, 4vw, 44px);
  margin: clamp(28px, 4vw, 48px) 0;
  text-align: center;
  break-inside: avoid;
}
.rk-cta h2 { color: #fff; font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; }
.rk-cta p { color: rgba(255,255,255,.82); margin-top: 10px; font-size: 15.5px; }
.rk-btn {
  display: inline-block; margin-top: 20px;
  background: var(--c-accent); color: var(--c-text);
  font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 10px;
  text-decoration: none;
}

.rk-foot {
  border-top: 1px solid var(--c-line);
  padding: 22px 0 40px;
  font-size: 13.5px; opacity: .75;
  display: grid; gap: 4px;
}
.rk-foot a { color: var(--c-text); }

/* ---- Mobil ---- */
@media (max-width: 860px) {
  .rk-karte__body { grid-template-columns: 1fr 1fr; }
  .rk-block--ergebnis { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .rk-wrap { padding: 0 16px; }
  .rk-head__inner { gap: 12px; }
  .rk-logo img { height: 38px; }
  .rk-nav { gap: 14px; }
  .rk-nav a { font-size: 13px; }
  .rk-karte__body { grid-template-columns: 1fr; gap: 18px; }
  .rk-anzahl { position: static; display: inline-block; margin-top: 10px; }
  .rk-bereich__kopf { margin-bottom: 18px; }
}

/* ---- Druck / PDF ---- */
@media print {
  .rk-head, .rk-nav, .rk-intern-banner { display: none !important; }
  .rk { background: #fff; }
  .rk-wrap { max-width: none; padding: 0 12mm; }
  .rk-hero { padding: 0 0 10mm; }
  .rk-karte {
    box-shadow: none;
    border: 1px solid #C9CFD8;
    page-break-inside: avoid;
    margin-bottom: 6mm;
  }
  .rk-bereich { page-break-inside: auto; padding: 6mm 0; }
  .rk-cta { background: #fff; color: #101828; border: 1.5px solid #101828; }
  .rk-cta h2 { color: #101828; }
  .rk-cta p { color: #101828; }
  .rk-btn { border: 1px solid #101828; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; font-weight: 400; }
}
