/* report-styles.css - Optimierte Stile für Berichte und Listen */

/* ===== Allgemeine Berichtsstile ===== */
.report-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.report-logo {
  max-height: 60px;
  margin-bottom: 15px;
}

.report-date {
  color: var(--light-text);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 10px;
}

.report-summary {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.summary-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}

.summary-stats .stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 15px 10px;
  background-color: white;
  border-radius: 6px;
  margin: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.summary-stats .stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--light-text);
}

/* ===== Detaillierte Berichtsstile ===== */
.report-details {
  margin-bottom: 30px;
}

.url-report {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.url-title {
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  word-break: break-all;
}

.url-stats {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.url-stats .stat-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin: 0 5px 5px 0;
}

.category-report {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}

.category-title {
  color: var(--text-color);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.category-stats {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* ===== Optimierte Listenstile ===== */
.passed-checks, .failed-checks {
  margin-bottom: 20px;
}

.passed-checks h6, .failed-checks h6 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-color);
}

.passed-checks ul, .failed-checks ul {
  list-style-position: inside;
  padding-left: 10px;
}

.passed-checks li, .failed-checks li {
  margin-bottom: 8px;
  line-height: 1.5;
  position: relative;
}

.passed-checks li {
  color: var(--success-color);
}

.passed-checks li::before {
  content: "✓";
  margin-right: 8px;
  font-weight: bold;
}

.failed-checks li {
  color: var(--error-color);
}

.failed-checks li::before {
  content: "✗";
  margin-right: 8px;
  font-weight: bold;
}

.failed-check-item {
  background-color: white;
  border-radius: 6px;
  padding: 12px;
  margin-top: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.failed-check-title {
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 5px;
}

.failed-check-description {
  color: var(--text-color);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.failed-check-recommendation {
  background-color: #f8f9fa;
  border-left: 3px solid var(--info-color);
  padding: 10px;
  margin-top: 10px;
  border-radius: 0 4px 4px 0;
}

.failed-check-recommendation h6 {
  color: var(--info-color);
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.recommendation-content {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* ===== Empfehlungen ===== */
.report-recommendations {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-recommendations ul {
  list-style-type: none;
  padding-left: 0;
}

.report-recommendations ul ul {
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.report-recommendations li {
  margin-bottom: 10px;
}

.priority-high {
  border-left: 4px solid var(--error-color);
  padding-left: 15px;
  margin-bottom: 20px;
}

.priority-medium {
  border-left: 4px solid var(--warning-color);
  padding-left: 15px;
  margin-bottom: 20px;
}

.priority-low {
  border-left: 4px solid var(--info-color);
  padding-left: 15px;
  margin-bottom: 20px;
}

/* ===== Ressourcen und Footer ===== */
.report-resources {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.report-resources ul {
  list-style-type: none;
  padding-left: 0;
}

.report-resources li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.report-resources li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.report-resources a {
  color: var(--primary-color);
  text-decoration: none;
}

.report-resources a:hover {
  text-decoration: underline;
}

.report-footer {
  text-align: center;
  color: var(--light-text);
  font-size: 0.9rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* ===== Barrierefreiheitserklärung ===== */
.statement-disclaimer {
  background-color: #fff3cd;
  border-left: 4px solid var(--warning-color);
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 0 4px 4px 0;
}

.statement-disclaimer p {
  margin: 0;
  color: #856404;
}

.statement-preview h2, 
.statement-preview h3, 
.statement-preview h4 {
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.statement-preview p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.statement-preview ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.statement-preview li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ===== PDF-Optimierungen ===== */
@media print {
  body {
    background-color: white;
    font-size: 12pt;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  header, footer, nav, .breadcrumbs, .button-group, #sidebar-toggle {
    display: none !important;
  }
  
  .section {
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
  }
  
  .report-header {
    text-align: center;
    margin-bottom: 20pt;
    padding-bottom: 10pt;
    border-bottom: 1pt solid #000;
  }
  
  .report-logo {
    max-height: 40pt;
  }
  
  .summary-stats .stat-item,
  .url-stats .stat-item {
    border: 1pt solid #ddd;
  }
  
  .url-report {
    page-break-inside: avoid;
    margin-bottom: 15pt;
    border: 1pt solid #ddd;
  }
  
  .category-report {
    page-break-inside: avoid;
  }
  
  .failed-check-item {
    border: 1pt solid #ddd;
  }
  
  .report-recommendations,
  .report-resources {
    page-break-inside: avoid;
    border: 1pt solid #ddd;
  }
  
  a {
    text-decoration: none;
    color: #000;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 90%;
    color: #555;
  }
}

/* ===== Responsive Anpassungen ===== */
@media (max-width: 768px) {
  .summary-stats,
  .url-stats {
    flex-direction: column;
  }
  
  .summary-stats .stat-item,
  .url-stats .stat-item {
    margin-bottom: 10px;
  }
  
  .report-header {
    padding: 15px;
  }
  
  .url-report,
  .category-report {
    padding: 15px;
  }
}

/* ===== Checklisten-Optimierungen ===== */
.checklist-item {
  background-color: white;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.checklist-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.checklist-checkbox {
  margin-right: 10px;
}

.checklist-label {
  font-weight: bold;
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text-color);
}

.checklist-description {
  margin-left: 25px;
  margin-bottom: 10px;
  color: var(--light-text);
}

.knowledge-link {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 25px;
}

.knowledge-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.checklist-actions {
  margin-top: 30px;
  text-align: center;
}

.checklist-actions .btn {
  margin: 0 5px;
}

/* ===== Button-Gruppen ===== */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.button-group .btn {
  flex: 1;
  min-width: 150px;
}

@media (max-width: 576px) {
  .button-group {
    flex-direction: column;
  }
  
  .button-group .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}
