.hp36 .hp40-hero {
  grid-template: "text crest" auto / minmax(0, 1fr) clamp(142px, 24vw, 308px);
  gap: clamp(20px, 5vw, 72px);
  align-items: center;
  padding: clamp(26px, 5vw, 68px);
  border-radius: 18px;
}
.hp40-hero > div { grid-area: text; min-width: 0; }
.hp40-hero .hp36-crest {
  grid-area: crest;
  place-self: center;
  width: 100%;
  max-width: 280px;
  padding: clamp(10px, 2vw, 23px);
  border: 1px solid #e4dccd;
  border-radius: 14px;
  background: #fbf7ee;
}
.hp40-hero .hp36-crest img { width: 100%; height: auto; }
body[data-view="farbe"] .hp36 .hp40-hero {
  background: linear-gradient(106deg, #fbf7ee 10%, #f5e8d4 100%);
  border-color: #e3d6c4;
}
body[data-view="farbe"] .hp40-hero :is(h1,p) { color: #20292a; }
.hp40-hero h1 { max-width: 17ch; }
.hp40-hero p { max-width: 46ch; }
.hp40-hero .hp36-actions { column-gap: 9px; row-gap: 8px; }
.hp36 .hp40-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.hp36 .hp40-doc-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 12px 18px;
  padding: clamp(12px, 2vw, 22px);
}
.hp40-doc-card .hp40-cover-preview { grid-row: 1 / 3; min-width: 0; }
.hp40-doc-card .hp36-actions { align-self: start; }
.hp40-cover-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e3d6c4;
  border-radius: 5px;
}
.hp40-cover-preview:hover img { border-color: var(--hp36-accent); }
.hp40-doc-card h3 { overflow-wrap: anywhere; }
.hp36 .hp36-section > h2 { padding-block: 4px; }
.hp36 .hp36-card { border-radius: 12px; }
@media(max-width: 850px) {
  .hp36 .hp40-document-grid { grid-template-columns: 1fr; }
}
@media(max-width: 580px) {
  .hp36 .hp40-hero {
    grid-template: "crest" auto "text" auto / minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }
  .hp40-hero .hp36-crest { width: 124px; padding: 8px; }
  .hp40-hero h1 { max-width: 20ch; }
  .hp36 .hp40-doc-card { grid-template-columns: 68px minmax(0, 1fr); gap: 8px 12px; }
}
@media(max-width: 380px) {
  .hp36 .hp40-doc-card .hp36-actions { grid-column: 1 / -1; }
  .hp40-doc-card .hp40-cover-preview { grid-row: auto; }
}
@media print {
  .hp36 .hp40-hero { background: #fff; }
  .hp40-doc-card { break-inside: avoid; }
}
