/* ============================================================
   Göring Ratgeber – Visual-Module
   Stand: 2026-05-18
   Prefix: .goring-rb-*  (Ratgeber-Box, kollisionsfrei)
   Einbau: WordPress Customizer → Zusätzliches CSS
           ODER Child-Theme style.css
   Brand-Farben:
     Primär (Blau):       #2a6496
     Primär hell:         #e8f1fa
     Akzent Grün:         #388e3c
     Akzent Grün hell:    #e8f5e9
     Achtung Gelb:        #e6a817
     Achtung Gelb hell:   #fff8e1
     Risiko Rot (sparsam): #c0392b
     Risiko Rot hell:     #fdf6f6
     Sand/Background:     #f5f8fc
     Border-Grau:         #cfdcec
     Body-Schwarz:        #1a1a1a
     Body-Grau:           #555
   ============================================================ */


/* -- 1. 4-PHASEN-TIMELINE (Zeitstrahl-Cards) -- */

.goring-rb-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
  max-width: 100%;
}

@media (min-width: 560px) {
  .goring-rb-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.goring-rb-timeline-card {
  background: #ffffff;
  border: 1px solid #cfdcec;
  border-top: 4px solid #2a6496;
  border-radius: 6px;
  padding: 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: break-word;
}

.goring-rb-timeline-card__phase {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2a6496;
  font-weight: 700;
  margin-bottom: 4px;
}

.goring-rb-timeline-card__time {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 10px;
}

.goring-rb-timeline-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #2a6496;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.goring-rb-timeline-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
}

.goring-rb-timeline-card__list li {
  padding: 4px 0 4px 22px;
  position: relative;
  color: #1a1a1a;
}

.goring-rb-timeline-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 4px;
  color: #2a6496;
  font-weight: 700;
}


/* -- 2. SPARTEN-QUICK-CARDS (8 Karten Auf-einen-Blick) -- */

.goring-rb-sparten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0;
  max-width: 100%;
}

@media (min-width: 560px) {
  .goring-rb-sparten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.goring-rb-sparte {
  background: #f5f8fc;
  border-left: 3px solid #2a6496;
  padding: 14px 16px;
  border-radius: 0 4px 4px 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.goring-rb-sparte--de {
  border-left-color: #e6a817;
  background: #fff8e1;
}

.goring-rb-sparte--es {
  border-left-color: #2a6496;
}

.goring-rb-sparte--kritisch {
  border-left-color: #c0392b;
  background: #fdf6f6;
}

.goring-rb-sparte__name {
  font-size: 13.5px;
  font-weight: 700;
  color: #2a6496;
  margin: 0 0 6px 0;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.goring-rb-sparte--kritisch .goring-rb-sparte__name {
  color: #c0392b;
}

.goring-rb-sparte--de .goring-rb-sparte__name {
  color: #b67a00;
}

.goring-rb-sparte__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: #ffffff;
  color: #555;
  border: 1px solid #cfdcec;
  white-space: nowrap;
}

.goring-rb-sparte__action {
  font-size: 13.5px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 0;
}


/* -- 3. DE ↔ ES VERGLEICHSBOX (zweispaltig) -- */

.goring-rb-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 28px 0;
  align-items: stretch;
  max-width: 100%;
}

.goring-rb-compare__side {
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 6px;
  min-width: 0;
  overflow-wrap: break-word;
}

.goring-rb-compare__side--de {
  background: #fff8e1;
  border-top: 4px solid #e6a817;
}

.goring-rb-compare__side--es {
  background: #e8f1fa;
  border-top: 4px solid #2a6496;
}

.goring-rb-compare__flag {
  display: inline-block;
  width: 22px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
}

.goring-rb-compare__flag--de {
  background: linear-gradient(to bottom, #000 0 33%, #d00 33% 66%, #ffce00 66% 100%);
}

.goring-rb-compare__flag--es {
  background: linear-gradient(to bottom, #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%);
}

.goring-rb-compare__label {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #555;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.goring-rb-compare__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #1a1a1a;
  line-height: 1.25;
}

.goring-rb-compare__body {
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a1a;
  margin: 0;
}

.goring-rb-compare__body p:last-child {
  margin-bottom: 0;
}


/* -- 4. PANNEN-CARD-GRID (Fehler → Lösung) -- */

.goring-rb-pannen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 28px 0;
  max-width: 100%;
}

.goring-rb-panne {
  background: #ffffff;
  border: 1px solid #cfdcec;
  border-radius: 6px;
  padding: 18px 20px;
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
}

.goring-rb-panne__nr {
  position: absolute;
  top: -10px;
  left: 18px;
  background: #2a6496;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goring-rb-panne__error,
.goring-rb-panne__solution {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.goring-rb-panne__error {
  color: #1a1a1a;
}

.goring-rb-panne__solution {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cfdcec;
  color: #1a1a1a;
}

.goring-rb-panne__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.goring-rb-panne__icon--error {
  background: #fdf6f6;
  color: #c0392b;
  border: 1.5px solid #c0392b;
}

.goring-rb-panne__icon--solution {
  background: #e8f5e9;
  color: #388e3c;
  border: 1.5px solid #388e3c;
}

.goring-rb-panne__text strong {
  color: #1a1a1a;
}


/* -- 5. PULL-QUOTE (hervorgehobene Kernaussage) -- */

.goring-rb-pull {
  position: relative;
  border-left: 6px solid #2a6496;
  padding: 22px 28px 22px 64px;
  margin: 32px 0;
  font-size: 18px;
  line-height: 1.5;
  color: #1a1a1a;
  font-weight: 500;
  background: linear-gradient(to right, #f5f8fc 0%, #ffffff 100%);
  font-style: normal;
  border-radius: 0 6px 6px 0;
}

.goring-rb-pull::before {
  content: "\201E";
  position: absolute;
  left: 18px;
  top: 4px;
  font-size: 56px;
  color: #2a6496;
  line-height: 1;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .goring-rb-pull {
    padding: 18px 18px 18px 46px;
    font-size: 16px;
  }
  .goring-rb-pull::before {
    left: 12px;
    top: 2px;
    font-size: 42px;
  }
}


/* -- 6. STICHTAG-BUBBLE (Inline) -- */

.goring-rb-stichtag {
  display: inline-block;
  background: #e8f1fa;
  color: #2a6496;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.92em;
  white-space: nowrap;
  letter-spacing: 0.2px;
}


/* -- 7. KEYFACT-ROW (3-spaltige Zahlen-Highlights) -- */

.goring-rb-keyfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 28px 0;
  background: #f5f8fc;
  border-radius: 6px;
  padding: 22px 0;
  max-width: 100%;
}

.goring-rb-keyfact {
  text-align: center;
  padding: 12px 18px;
  min-width: 0;
  overflow-wrap: break-word;
  border-left: 1px solid #cfdcec;
}

.goring-rb-keyfact:first-child {
  border-left: 0;
}

.goring-rb-keyfact__number {
  font-size: 32px;
  font-weight: 700;
  color: #2a6496;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.goring-rb-keyfact__label {
  font-size: 12.5px;
  color: #555;
  line-height: 1.35;
  display: block;
}


/* -- 8. PRINT-STABILISIERUNG -- */

@media print {
  .goring-rb-timeline,
  .goring-rb-sparten,
  .goring-rb-pannen,
  .goring-rb-keyfacts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .goring-rb-timeline-card,
  .goring-rb-sparte,
  .goring-rb-panne {
    page-break-inside: avoid;
    box-shadow: none;
  }
  .goring-rb-pull {
    background: #f5f8fc !important;
  }
}


/* -- 9. REDUCED-MOTION & FALLBACK -- */

@media (prefers-reduced-motion: reduce) {
  .goring-rb-timeline-card,
  .goring-rb-sparte,
  .goring-rb-panne {
    transition: none !important;
  }
}

/* Wenn das CSS NICHT geladen ist, müssen Inhalte trotzdem lesbar bleiben.
   Die Klassen-Container nutzen sinnvolle HTML-Struktur (Listen, Headlines),
   sodass sie auch ungestylt nicht zerfallen. */
