/* UnfallWiki Informationsschreiben – Shared Styles
   CI: #B0172F (Rot), #25282C (Dunkel), #464648 (Grau), #667085 (Hellgrau)
   Fonts: Montserrat (Headlines), Inter (Body)
*/

:root {
  --ug-red: #B0172F;
  --ug-dark: #25282C;
  --ug-gray: #464648;
  --ug-gray-light: #667085;
  --ug-bg: #FAFAFA;
  --ug-white: #FFFFFF;
  --ug-border: #E5E7EB;
}

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

@page { size: A4; margin: 15mm 20mm; }

@media print {
  body { font-size: 10pt; }
  .no-print { display: none !important; }
  .page-break { page-break-before: always; }
  .card { break-inside: avoid; }
  header { position: static; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ug-dark);
  background: var(--ug-bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: var(--ug-dark); color: white; padding: 32px 0 28px; }
header::after { content: ''; display: block; height: 4px; background: var(--ug-red); }

.header-badge {
  display: inline-block;
  background: rgba(176,23,47,0.2);
  border: 1px solid rgba(176,23,47,0.4);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #F9A8B4;
  margin-bottom: 12px;
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

header h1 span { color: var(--ug-red); }

header .subtitle { font-size: 14px; color: #9CA3AF; max-width: 600px; }

.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 12px;
  color: #9CA3AF;
}

.header-meta span { display: flex; align-items: center; gap: 5px; }

/* Main */
main { padding: 28px 0 40px; }

/* Pain Box */
.pain-box {
  background: var(--ug-white);
  border: 2px solid var(--ug-red);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
}

.pain-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ug-red);
  margin-bottom: 10px;
}

.pain-box p { color: var(--ug-gray); margin-bottom: 8px; font-size: 14px; }
.pain-box p:last-child { margin-bottom: 0; }
.pain-box strong { color: var(--ug-dark); }

/* Section */
.section { margin-bottom: 32px; }

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ug-red);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  margin-bottom: 8px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ug-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ug-dark);
  margin-bottom: 8px;
  margin-top: 20px;
}

p { margin-bottom: 12px; color: var(--ug-gray); font-size: 14px; }

/* Card */
.card {
  background: var(--ug-white);
  border: 1px solid var(--ug-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 14px;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ug-dark);
  margin-bottom: 10px;
}

/* Highlight */
.highlight {
  background: #FEF2F2;
  border: 1px solid rgba(176,23,47,0.15);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.highlight-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ug-dark);
  margin-bottom: 6px;
}

.highlight p { font-size: 13px; margin-bottom: 4px; }
.highlight p:last-child { margin-bottom: 0; }

/* Urteil */
.urteil-ref {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--ug-white);
  border: 1px solid var(--ug-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0;
  font-size: 13px;
}

.urteil-ref .az {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--ug-red);
  white-space: nowrap;
  min-width: 130px;
  font-size: 13px;
}

.urteil-ref .desc { color: var(--ug-gray); line-height: 1.5; }

/* Checklist */
.checklist { list-style: none; margin: 12px 0; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ug-border);
  font-size: 13px;
  color: var(--ug-gray);
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--ug-dark);
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.checklist li strong { color: var(--ug-dark); }

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid var(--ug-border);
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead { background: var(--ug-dark); color: white; }

th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  text-align: left;
}

td { padding: 10px 14px; border-bottom: 1px solid var(--ug-border); color: var(--ug-gray); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #F9FAFB; }

/* Steps */
.steps { counter-reset: step; margin: 16px 0; }

.step {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--ug-red);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ug-dark);
  margin-bottom: 2px;
}

.step-content p { font-size: 13px; margin-bottom: 0; }

/* Blockquote */
blockquote {
  border-left: 3px solid var(--ug-red);
  padding: 12px 18px;
  margin: 16px 0;
  background: #F9FAFB;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--ug-gray);
  font-size: 13px;
}

blockquote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--ug-dark);
}

/* Anbieter-Push Box */
.anbieter-box {
  background: var(--ug-dark);
  color: white;
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0;
}

.anbieter-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
}

.anbieter-box p {
  color: #9CA3AF;
  font-size: 13px;
  margin-bottom: 6px;
}

.anbieter-box p:last-child { margin-bottom: 0; }
.anbieter-box strong { color: white; }

.anbieter-box a {
  color: var(--ug-red);
  text-decoration: none;
  font-weight: 600;
}

.anbieter-box a:hover { text-decoration: underline; }

/* Footer */
footer {
  background: var(--ug-dark);
  color: #9CA3AF;
  padding: 28px 0;
  font-size: 12px;
}

footer .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

footer .logo-text span { color: var(--ug-red); }
footer a { color: var(--ug-red); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

/* Print/Download Bar */
.action-bar {
  background: var(--ug-white);
  border-bottom: 1px solid var(--ug-border);
  padding: 8px 0;
  text-align: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  margin: 0 4px;
}

.action-btn-primary { background: var(--ug-red); color: white; }
.action-btn-secondary { background: var(--ug-dark); color: white; }
.action-btn:hover { opacity: 0.9; }

/* Responsive */
@media (max-width: 640px) {
  header h1 { font-size: 20px; }
  .header-meta { flex-direction: column; gap: 4px; }
  .urteil-ref { flex-direction: column; }
  .urteil-ref .az { min-width: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .def-grid { grid-template-columns: 1fr; }
  h2 { font-size: 18px; }
}

/* Definition Grid */
.def-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.def-item {
  background: var(--ug-white);
  border: 1px solid var(--ug-border);
  border-radius: 8px;
  padding: 14px;
}

.def-item .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ug-red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.def-item .text { font-size: 13px; color: var(--ug-gray); line-height: 1.6; }
