/*
 * Design-System der Feuerwehr Gummersbach
 * ---------------------------------------
 * Gemeinsame Werte und Bausteine für alle Templates. Neue Seiten bitte aus
 * diesen Bausteinen bauen statt eigene Farben, Größen oder style="" zu setzen.
 *
 *   Werte:     var(--fwg-…) unten in :root
 *   Titel:     h1.entry-title, .entry-content h2 / .fwg-titel
 *   Kästen:    .info-container > .info-box | .info-box-person   (dunkel, gelbe Überschrift)
 *              .fwg-kasten                                      (weiß, für graue Seitenfläche)
 *   Buttons:   .fwg-btn.fwg-btn--gelb | .fwg-btn--dunkel
 *   Bilder:    .fwg-bild-voll (volle Breite), .fwg-bild-rechts (Text links, Bild rechts)
 *   Zahlen:    .fwg-zahl, .fwg-zahl--klein (große Kennzahlen in Kästen)
 */

:root {
  /* Farben */
  --fwg-rot: #b31218;
  --fwg-gelb: #efc415;
  --fwg-gelb-dunkel: #d6ad0b;
  --fwg-grau-dunkel: #3a3a3a;
  --fwg-grau-tiefer: #2c2c2c;
  --fwg-grau-hell: #f6f6f6;
  --fwg-linie: #d9d9d9;
  --fwg-text: #000;
  --fwg-text-gedaempft: #555;
  --fwg-text-auf-dunkel: #fff;
  --fwg-link: #1269b0;

  /* Schrift */
  --fwg-schrift: "Open Sans", sans-serif;
  --fwg-text-groesse: 15px;
  --fwg-text-zeile: 1.6;
  --fwg-text-klein: 13px;
  --fwg-h1: 20px;
  --fwg-h2: 18px;
  --fwg-h3: 19.5px;
  --fwg-titel-gewicht: 500;

  /* Abstände und Formen */
  --fwg-abstand: 10px;
  --fwg-abstand-gross: 15px;
  --fwg-abstand-abschnitt: 30px;
  --fwg-breite: 1080px;
  --fwg-radius: 4px;
}

/* ---- Grundschrift ------------------------------------------------------- */

body,
button,
input,
select,
textarea {
  font-size: var(--fwg-text-groesse);
}
.entry-content { line-height: var(--fwg-text-zeile); }
.entry-content h3 { font-size: var(--fwg-h3); }
article.post .entry-header .entry-meta,
article.page .entry-header .entry-meta { font-size: var(--fwg-text-klein); }

/* ---- Titel ---------------------------------------------------------------- */

.fwg-titel {
  color: var(--fwg-rot) !important;
  font-family: var(--fwg-schrift);
  font-size: var(--fwg-h2);
  font-weight: var(--fwg-titel-gewicht);
  line-height: 1.6;
  margin: 0;
}

/* Abschnittstitel direkt über einer Kastenreihe ("Fakten", "Kontakt" …) */
.entry-content h2.fwg-titel--kasten,
.fwg-titel--kasten {
  margin-bottom: 0;
}

/* ---- Kästen ------------------------------------------------------------- */

.info-container + .info-container { margin-top: var(--fwg-abstand); }

.fwg-kasten {
  background: #fff;
  padding: var(--fwg-abstand-gross);
}

/* Große Kennzahlen in Kästen, z. B. Mitgliederzahl */
.fwg-zahl {
  font-size: 4rem;
  line-height: 1.1;
}
.fwg-zahl--klein { font-size: 3rem; }

/* ---- Buttons ------------------------------------------------------------ */

.fwg-btn {
  display: inline-block;
  border: 0;
  border-radius: var(--fwg-radius);
  cursor: pointer;
  font: 600 var(--fwg-text-groesse)/1.2 var(--fwg-schrift);
  padding: 11px 18px;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease;
}
.fwg-btn:disabled { opacity: .6; cursor: wait; }

.fwg-btn--gelb,
.entry-content a.fwg-btn--gelb,
.entry-content a.fwg-btn--gelb:visited { background: var(--fwg-gelb); color: var(--fwg-grau-tiefer); }
.fwg-btn--gelb:hover,
.entry-content a.fwg-btn--gelb:hover { background: var(--fwg-gelb-dunkel); color: var(--fwg-grau-tiefer); }

.fwg-btn--dunkel,
.entry-content a.fwg-btn--dunkel,
.entry-content a.fwg-btn--dunkel:visited { background: var(--fwg-grau-dunkel); color: var(--fwg-text-auf-dunkel); }
.fwg-btn--dunkel:hover,
.entry-content a.fwg-btn--dunkel:hover { background: var(--fwg-rot); color: var(--fwg-text-auf-dunkel); }

/* ---- Bilder ------------------------------------------------------------- */

.fwg-bild-voll {
  display: block;
  width: 100%;
  height: auto;
}

/* Template "Image on right": Text links, Beitragsbild rechts */
.entry-content.fwg-bild-rechts {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: var(--fwg-abstand-gross);
}
.fwg-bild-rechts > * {
  flex: 1 1 0;
  min-width: 300px;
}

/* Beitragsbild in Listen (vantage_entry_thumbnail) */
.fwg-vorschaubild {
  width: 100%;
  height: 25vw;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Startseiten-Bild unter dem Menü */
.fwg-startbild {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Kopfbereich -------------------------------------------------------- */

/* Kopf immer auf Inhaltsbreite – auch auf Archivseiten, die den Inhalt volle Breite machen */
#masthead .hgroup.full-container { max-width: var(--fwg-breite) !important; }
.fwg-social {
  padding: var(--fwg-abstand);
  font-size: 23px;
}

/* ---- Einsatzberichte ---------------------------------------------------- */

.fwg-einsatz-ort { font-size: 1.6rem; }
.fwg-einsatz-einheiten { margin-top: 0; }

/* ---- Formulare ---------------------------------------------------------- */

.fwg-feld-label {
  display: block;
  font-weight: 600;
  margin: var(--fwg-abstand-gross) 0 5px;
}
.fwg-feld {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #bdbdbd;
  border-radius: var(--fwg-radius);
  background: #fff;
  color: var(--fwg-text);
  font: 16px/1.4 var(--fwg-schrift);
  box-shadow: none;
}
.fwg-feld:focus {
  border-color: var(--fwg-grau-dunkel);
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 196, 21, .55);
}
.fwg-feld:disabled { background: #ececec; color: #8a8a8a; cursor: not-allowed; }
.fwg-feld-fehler {
  display: none;
  margin-top: 5px;
  color: var(--fwg-rot);
  font-weight: 600;
}
.fwg-feld-hinweis {
  color: var(--fwg-text-gedaempft);
  font-size: var(--fwg-text-klein);
  margin: 5px 0 var(--fwg-abstand-gross) !important;
}
