:root {
  --os-font-primary: "Montserrat", Arial, sans-serif;
  --os-color-bg: #ffffff;
  --os-color-text: #0f0f10;
  --os-color-graphite: #1f1f22;
  --os-color-muted: #6b6b70;
  --os-color-line: #e6e6e8;
  --os-color-accent: #e11f2e;
  --os-radius: 10px;
  --os-radius-sm: 6px;
  --os-page-margin: 22mm;
  --os-logo-primary: url("/assets/images/OBHOLZ%20SOLUTIONS_globe_only_transparent_black.png");
  --os-logo-wordmark: url("/assets/images/OBHOLZ%20SOLUTIONS_transparent_schwarz.png");
  --os-icon-phone: url("/assets/icons/icon-phone.png");
  --os-icon-mail: url("/assets/icons/icon-mail.png");
  --os-icon-pin: url("/assets/icons/icon-pin.png");
  --os-icon-globe: url("/assets/icons/icon-globe.png");
  --os-text-xs: 10px;
  --os-text-sm: 12px;
  --os-text-md: 14px;
  --os-text-lg: 18px;
  --os-text-xl: 28px;
  --os-text-xxl: 36px;
  --os-line-height: 1.45;
  --os-letter-wide: 0.16em;
  --os-letter-logo: 0.08em;
}

@page {
  size: A4;
  margin: var(--os-page-margin);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--os-font-primary);
  color: var(--os-color-text);
  background: var(--os-color-bg);
  line-height: var(--os-line-height);
}

.os-doc {
  max-width: 210mm;
  margin: 0 auto;
  padding: 0;
}

.os-header {
  display: grid;
  grid-template-columns: 1fr 230px;
  column-gap: 32px;
  align-items: start;
}

.os-company-line {
  font-size: var(--os-text-sm);
  color: var(--os-color-muted);
  margin-bottom: 22px;
}

.os-address {
  font-size: var(--os-text-md);
  line-height: 1.4;
}

.os-address strong {
  font-weight: 600;
}

.os-header__right {
  text-align: right;
}

.os-logo {
  width: 78px;
  height: 78px;
  margin-left: auto;
  background-image: var(--os-logo-primary);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.os-brand {
  text-align: right;
  margin-bottom: 10px;
}

.os-logo-claim,
.os-wordmark {
  font-size: var(--os-text-xs);
  letter-spacing: var(--os-letter-wide);
  text-transform: uppercase;
}

.os-logo-claim {
  color: var(--os-color-accent);
  margin-top: 6px;
}

.os-wordmark {
  color: var(--os-color-text);
  font-weight: 600;
  margin-top: 6px;
}

.os-wordmark--subline {
  font-size: var(--os-text-sm);
  color: var(--os-color-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-top: 2px;
}

.os-wordmark + .os-wordmark {
  margin-top: 2px;
}

.os-logo--framed {
  border: 1px solid var(--os-color-line);
  border-radius: var(--os-radius-sm);
  padding: 8px;
  width: 88px;
  height: 88px;
  background-size: 70px 70px;
}

.os-meta {
  margin-top: 16px;
  font-size: var(--os-text-sm);
}

.os-meta__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.os-meta__row span {
  color: var(--os-color-muted);
}

.os-meta__row strong {
  font-weight: 600;
}

.os-kicker {
  font-size: var(--os-text-xs);
  letter-spacing: var(--os-letter-wide);
  text-transform: uppercase;
  color: var(--os-color-muted);
}

.os-title {
  font-size: var(--os-text-xl);
  margin: 32px 0 8px;
  font-weight: 600;
}

.os-divider {
  height: 1px;
  background: var(--os-color-line);
  margin: 14px 0 22px;
}

.os-section {
  margin-top: 18px;
}

.os-section h3 {
  margin: 0 0 8px;
  font-size: var(--os-text-md);
  font-weight: 600;
}

.os-lead {
  font-size: var(--os-text-md);
  margin: 8px 0 14px;
}

.os-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--os-text-sm);
}

.os-table thead th {
  text-align: left;
  background: #f4f4f6;
  padding: 8px;
  font-weight: 600;
  border-top: 1px solid var(--os-color-line);
  border-bottom: 1px solid var(--os-color-line);
}

.os-table tbody td {
  padding: 10px 8px;
  vertical-align: top;
  border-bottom: 1px solid var(--os-color-line);
}

.os-table .num {
  text-align: right;
  white-space: nowrap;
}

.os-table .muted {
  color: var(--os-color-muted);
  font-size: var(--os-text-xs);
}

.os-totals {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: var(--os-text-sm);
}

.os-totals td {
  padding: 6px 8px;
}

.os-totals .label {
  text-align: right;
  color: var(--os-color-muted);
}

.os-totals .value {
  text-align: right;
  font-weight: 600;
}

.os-totals .grand {
  border-top: 1px solid var(--os-color-line);
  background: #f7f7f9;
}

.os-note {
  font-size: var(--os-text-sm);
  color: var(--os-color-muted);
  margin-top: 14px;
}

.os-footer {
  border-top: 1px solid var(--os-color-line);
  margin-top: 32px;
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  font-size: var(--os-text-xs);
  color: var(--os-color-muted);
}

.os-footer strong {
  color: var(--os-color-text);
  font-weight: 600;
}

.os-page-number {
  position: fixed;
  right: var(--os-page-margin);
  bottom: 12mm;
  font-size: var(--os-text-xs);
  color: var(--os-color-muted);
}

.os-signature {
  margin-top: 20px;
  font-size: var(--os-text-sm);
}

.os-signature .name {
  font-weight: 600;
}

.os-email-signature {
  border: 1px solid var(--os-color-line);
  border-radius: var(--os-radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  max-width: 520px;
}

.os-email-signature .sig-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.os-email-signature .sig-logo {
  width: 96px;
  height: 96px;
  border: 1px solid var(--os-color-line);
  border-radius: var(--os-radius-sm);
  background-image: var(--os-logo-primary);
  background-repeat: no-repeat;
  background-size: 70px 70px;
  background-position: center;
}

.os-email-signature .sig-logo-claim {
  font-size: var(--os-text-xs);
  letter-spacing: var(--os-letter-wide);
  text-transform: uppercase;
  color: var(--os-color-accent);
  text-align: center;
}

.os-email-signature .sig-label {
  font-size: var(--os-text-xs);
  letter-spacing: var(--os-letter-logo);
  text-transform: uppercase;
  color: var(--os-color-muted);
  margin-bottom: 4px;
}

.os-email-signature .sig-subline {
  font-size: var(--os-text-sm);
  color: var(--os-color-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.os-email-signature .sig-name {
  font-size: var(--os-text-lg);
  font-weight: 600;
  margin-bottom: 4px;
}

.os-email-signature .sig-claim {
  color: var(--os-color-accent);
  text-transform: uppercase;
  font-size: var(--os-text-xs);
  letter-spacing: var(--os-letter-wide);
  margin-top: 8px;
}

.os-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-size: var(--os-text-sm);
}

.os-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.os-icon.phone { background-image: var(--os-icon-phone); }
.os-icon.mail { background-image: var(--os-icon-mail); }
.os-icon.pin { background-image: var(--os-icon-pin); }
.os-icon.globe { background-image: var(--os-icon-globe); }

@media print {
  .os-page-number {
    position: fixed;
  }
}
