﻿/* ==============================================================================
   Autoprobleme & Motorschäden Master Database Stylesheet
   motorschadens-ankauf.de/autoprobleme/
   ============================================================================== */

:root {
  --fault-bg: #f8fafc;
  --fault-card-bg: #ffffff;
  --fault-border: #e2e8f0;
  --fault-primary: #0284c7;
  --fault-primary-hover: #0369a1;
  --fault-dark: #0f172a;
  --fault-critical: #dc2626;
  --fault-high: #ea580c;
  --fault-medium: #d97706;
  --fault-low: #2563eb;
  --fault-radius: 16px;
}

/* Master Hub Hero */
.faults-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0 45px;
  text-align: center;
  border-bottom: 1px solid #334155;
  position: relative;
  overflow: hidden;
}

.faults-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
}

.faults-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.faults-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.faults-hero h1 span {
  background: linear-gradient(135deg, #38bdf8 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faults-hero p {
  color: #94a3b8;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 820px;
  margin: 0 auto 30px;
  line-height: 1.65;
}

/* Master Live Search Bar */
.faults-search-box {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}

.faults-search-input {
  width: 100%;
  background: #0b1120;
  border: 2px solid #38bdf8;
  color: #ffffff;
  padding: 18px 24px 18px 56px;
  border-radius: 16px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
  transition: all 0.3s ease;
}

.faults-search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 8px 35px rgba(245, 158, 11, 0.35);
}

.faults-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #38bdf8;
  font-size: 22px;
}

/* Interactive Symptom Wizard Card */
.symptom-wizard-card {
  background: #ffffff;
  border: 1px solid var(--fault-border);
  border-radius: var(--fault-radius);
  padding: 30px;
  margin: 35px 0 45px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.symptom-wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.symptom-pills-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.symptom-pill {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.symptom-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.symptom-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Filter Controls Bar */
.faults-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  align-items: center;
}

.fault-select-filter {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.fault-select-filter:focus {
  border-color: #0284c7;
}

/* Fault Cards Grid */
.faults-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.fault-card {
  background: #ffffff;
  border: 1px solid var(--fault-border);
  border-radius: var(--fault-radius);
  padding: 24px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.fault-card:hover {
  border-color: #0284c7;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
}

.fault-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.fault-title-group h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.fault-alt-names {
  font-size: 13px;
  color: #64748b;
}

/* Severity Badges */
.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.severity-badge.critical {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.severity-badge.high {
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.severity-badge.medium {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.severity-badge.low {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Technical Details Expandable */
.fault-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin: 18px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .fault-details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-block h4 {
  font-size: 14px;
  color: #0f172a;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-block ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

/* Economic Matrix (Reparatur vs. Verkauf) */
.economic-matrix-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 18px;
  border-radius: 12px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.economic-text {
  flex: 1;
  min-width: 250px;
}

.economic-text h5 {
  font-size: 15px;
  color: #38bdf8;
  margin: 0 0 4px;
  font-weight: 800;
}

.economic-text p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.economic-cta-btn {
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.economic-cta-btn:hover {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Safety Warning Alert Banner */
.safety-alert-banner {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 15px 0 25px;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.safety-alert-banner strong {
  color: #7f1d1d;
}