/* =====================================================================
   TMH Aufarbeitung — site-specific CSS (aufarbeitung.css)
   Ergänzt tmh-base.css + tmh-components.css
   ===================================================================== */

/* ------------------------------------------------------------------
   Mutter-Banner
   ------------------------------------------------------------------ */
.mutter-banner {
  background: var(--c-ink);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.35rem 1rem;
  letter-spacing: 0.04em;
}
.mutter-banner a {
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 500;
}
.mutter-banner a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   Hero — SVG-Gradient (kein Fremdbild nötig)
   ------------------------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--c-ink) 0%, #0d2a4a 55%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  margin-top: 92px;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Ccircle cx='650' cy='80' r='320' fill='%23dd383220'/%3E%3Ccircle cx='100' cy='400' r='200' fill='%23324c9615'/%3E%3C/svg%3E") no-repeat center/cover;
  opacity: 0.6;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
  max-width: 720px;
}
.hero h1 em { color: var(--c-primary); font-style: normal; }
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cert {
  margin-top: 3.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cert-badge svg { flex-shrink: 0; }

/* ------------------------------------------------------------------
   Section Header shared
   ------------------------------------------------------------------ */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}
.section-lead {
  color: #555;
  line-height: 1.7;
  max-width: 640px;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------
   Leistungs-Karten (Teaser auf Index + Detail auf Unterseiten)
   ------------------------------------------------------------------ */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-color: var(--c-primary);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--c-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card-icon svg { color: #fff; }
.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
}
.service-card p { color: #555; line-height: 1.6; font-size: 0.95rem; margin: 0; }
.service-card .card-link {
  margin-top: auto;
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.service-card .card-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   Prozess-Strecke
   ------------------------------------------------------------------ */
.process-section { background: #f7f9fc; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 3rem;
  counter-reset: step-cnt;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary) 0%, #e5e7eb 100%);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  padding: 0 1rem 2rem;
  text-align: center;
  counter-increment: step-cnt;
}
.process-step-num {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 12px rgba(221,56,50,0.35);
}
.process-step h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.4rem;
}
.process-step p { font-size: 0.88rem; color: #666; line-height: 1.55; }

/* ------------------------------------------------------------------
   Zwei-Werke-Sektion
   ------------------------------------------------------------------ */
.werke-section { background: var(--c-ink); color: #fff; }
.werke-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 720px) { .werke-grid { grid-template-columns: 1fr; } }
.werk-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 2rem;
}
.werk-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.werk-card .werk-sub {
  color: var(--c-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.werk-card ul { list-style: none; padding: 0; margin: 0; }
.werk-card ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  display: flex;
  gap: 0.6rem;
}
.werk-card ul li::before { content: '→'; color: var(--c-primary); flex-shrink: 0; }
.werk-contact {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}
.werk-contact a { color: var(--c-primary); text-decoration: none; }

/* ------------------------------------------------------------------
   Lager / USP-Streifen
   ------------------------------------------------------------------ */
.usp-strip {
  background: var(--c-primary);
  color: #fff;
  padding: 2rem 0;
}
.usp-strip-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}
.usp-item { flex: 1; min-width: 140px; }
.usp-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.usp-label { font-size: 0.82rem; opacity: 0.9; margin-top: 0.25rem; line-height: 1.35; }

/* ------------------------------------------------------------------
   Detail-Seite: Komponenten-Karten (Schaden → Weg → Ergebnis)
   ------------------------------------------------------------------ */
.component-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.component-card-header {
  background: var(--c-ink);
  color: #fff;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.component-card-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}
.component-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 720px) {
  .component-card-body { grid-template-columns: 1fr; }
}
.cc-col {
  padding: 1.4rem 1.6rem;
  border-right: 1px solid #e5e7eb;
}
.cc-col:last-child { border-right: none; }
.cc-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 0.8rem;
}
.cc-col ul { list-style: none; padding: 0; margin: 0; }
.cc-col ul li {
  font-size: 0.9rem;
  color: #444;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 0.5rem;
}
.cc-col ul li::before { content: '·'; color: var(--c-primary); font-weight: 700; }

/* ------------------------------------------------------------------
   Ablauf-Seite
   ------------------------------------------------------------------ */
.ablauf-timeline { margin-top: 3rem; }
.ablauf-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
@media (max-width: 560px) {
  .ablauf-step { grid-template-columns: 60px 1fr; gap: 1rem; }
}
.ablauf-num {
  width: 80px;
  height: 80px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(221,56,50,0.3);
}
.ablauf-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}
.ablauf-content p { color: #555; line-height: 1.7; font-size: 0.97rem; }
.ablauf-xref {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--c-primary);
}
.ablauf-xref a { color: var(--c-primary); text-decoration: none; font-weight: 600; }
.ablauf-xref a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   Kontakt-Seite
   ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: 'Rubik', sans-serif;
  color: var(--c-ink);
  background: #fafafa;
  transition: border-color .2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.honeypot { display: none !important; }
.contact-locations { display: flex; flex-direction: column; gap: 1.5rem; }
.location-card {
  background: var(--c-ink);
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  padding: 1.6rem;
}
.location-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.location-card .loc-role {
  font-size: 0.78rem;
  color: var(--c-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.location-card p { font-size: 0.9rem; line-height: 1.7; }
.location-card a { color: var(--c-primary); text-decoration: none; }

/* ------------------------------------------------------------------
   Zertifikat-Sektion
   ------------------------------------------------------------------ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.cert-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--c-primary);
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.4rem;
}
.cert-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.3rem;
}
.cert-card p { font-size: 0.88rem; color: #666; margin: 0; line-height: 1.5; }

/* ------------------------------------------------------------------
   SVG inline hero background helper (Ablauf / Unterseiten)
   ------------------------------------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--c-ink) 0%, #0d2a4a 100%);
  padding: 4.5rem 0 3rem;
  margin-top: 92px;
  color: #fff;
}
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.7rem;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  line-height: 1.65;
  font-size: 1rem;
}

/* ------------------------------------------------------------------
   CTA Box
   ------------------------------------------------------------------ */
.cta-box {
  background: var(--c-primary);
  color: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}
.cta-box h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.cta-box p { font-size: 0.97rem; opacity: 0.9; margin-bottom: 1.5rem; }
.btn-white {
  background: #fff;
  color: var(--c-primary);
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background .2s;
}
.btn-white:hover { background: #f0f0f0; }

/* ------------------------------------------------------------------
   Lagerliste Teaser
   ------------------------------------------------------------------ */
.lager-box {
  background: #f0f4fa;
  border: 1px solid #d1dbed;
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lager-box p { margin: 0; color: #444; font-size: 0.95rem; line-height: 1.6; flex: 1; }
.lager-box strong { color: var(--c-ink); }

/* ------------------------------------------------------------------
   Form success/error states
   ------------------------------------------------------------------ */
.form-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 5px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  margin-top: 1rem;
  display: none;
}
.form-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 5px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  margin-top: 1rem;
  display: none;
}

/* ------------------------------------------------------------------
   Utility
   ------------------------------------------------------------------ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.bg-light { background: #f7f9fc; }
.bg-white { background: #fff; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
