/* Freiwillige Feuerwehr Muehlheim & Stetten | Joomla 6
   Child-Template: cassiopeia_cassiopeia_feuerwehr

   Farben, Schriften und Buttons bitte im Template-Stil festlegen.
   Diese Datei enthaelt nur zusaetzliche Layout- und Detailanpassungen.
*/

:root {
  --fw-border: #e3e8ec;
  --fw-radius: 0.75rem;
}

/* Bessere Tastaturbedienung */
a { text-underline-offset: 0.18em; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Header und Navigation: Farben kommen aus den Template-Einstellungen. */
.container-header {
  background-image: none;
  border-bottom: 4px solid #c8262d; /* Dekorative Feuerwehr-Akzentlinie */
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu > li > button {
  font-weight: 650;
}

/* Untermenues: nur Abgrenzung, keine Linkfarben ueberschreiben. */
.container-header .mod-menu .mm-collapse,
.container-header .mod-menu .dropdown-menu {
  border: 1px solid var(--fw-border);
  border-radius: 0.5rem;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.14);
}

/* Artikelbilder sollen nicht aus dem Layout herausragen. */
.com-content-article__body,
.com-content-category-blog { overflow-wrap: anywhere; }

.com-content-article__body img,
.blog-item img,
.item-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

/* Einfache Karten fuer Blog- und Beitragsuebersichten */
.blog-item {
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius);
  box-shadow: 0 4px 14px rgb(22 33 42 / 0.045);
}
.blog-item h2,
.blog-item h3 { margin-top: 0; }
.article-info { font-size: 0.92rem; }

/* Modulkaesten */
.card,
.sidebar-right .moduletable,
.sidebar-left .moduletable { border-radius: var(--fw-radius); }

.sidebar-right .moduletable,
.sidebar-left .moduletable {
  padding: 1.1rem;
  margin-bottom: 1rem;
}

/* Fusszeile: Grundfarbe kommt aus dem Template-Stil. */
.container-footer {
  background-image: none;
  border-top: 4px solid #c8262d;
}

/* Mobilansicht */
@media (max-width: 991.98px) {
  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span { padding-block: 0.55rem; }
  .blog-item { padding: 1rem; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* Feuerwehrdesign – Einsatz-Zähler */
.com-content-category .badge,
.com-content-category__children .badge,
.com-content-category .badge.bg-info {
    background-color: #c8262d !important;
    color: #ffffff !important;
    border-color: #c8262d !important;
}

/* Feuerwehr – kompaktes Header-Logo */
.container-header .navbar-brand img,
.container-header .brand-logo img,
.container-header .site-logo img {
    display: block;
    max-height: 150px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Weniger Abstand im Kopfbereich */
.container-header .navbar-brand,
.container-header .container-nav {
    margin-top: 0;
}

@media (max-width: 768px) {
    .container-header .navbar-brand img,
    .container-header .brand-logo img,
    .container-header .site-logo img {
        max-height: 90px;
    }
}


/* Feuerwehr – Startseite */

.fw-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #202830;
  margin-bottom: 40px;
}

.fw-hero-image {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
  object-position: center 55%;
}

.fw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 28, 35, .95),
    rgba(20, 28, 35, .08) 75%
  );
  pointer-events: none;
}

.fw-hero-content {
  position: absolute;
  z-index: 1;
  left: 5%;
  right: 5%;
  bottom: 7%;
  color: #fff;
}

.fw-hero-content h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  margin-bottom: 10px;
}

.fw-hero-content p {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.fw-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 7px;
  background: #c8262d;
  color: white !important;
  text-decoration: none;
  font-weight: 700;
}

.fw-button:hover {
  background: #991b21;
  color: white !important;
}

.fw-home-sections {
  margin: 35px 0;
}

.fw-home-sections h2 {
  margin-bottom: 24px;
}

.fw-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.fw-home-card {
  display: block;
  padding: 26px;
  background: #fff;
  border: 1px solid #e3e6e9;
  border-left: 4px solid #c8262d;
  border-radius: 12px;
  text-decoration: none;
  color: #202830;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fw-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.09);
  color: #202830;
}

.fw-home-card h3 {
  margin: 0 0 10px;
  color: #202830;
}

.fw-home-card p {
  color: #555;
  margin-bottom: 20px;
}

.fw-home-card span {
  color: #c8262d;
  font-weight: 700;
}

@media (max-width: 700px) {
  .fw-home-grid {
    grid-template-columns: 1fr;
  }

  .fw-hero-image {
    height: 390px;
  }

  .fw-hero-content h1 {
    font-size: 1.65rem;
  }
}

/* Feuerwehr – farbige iCal-Termine */

.simple-ical-widget {
  display: grid;
  gap: 10px;
  padding-left: 0;
}

.simple-ical-widget > li {
  list-style: none;
  border: 0;
  border-left: 6px solid #2563eb;
  border-radius: 9px;
  background: #edf4ff;
  padding: 12px 16px !important;
}

/* Allgemeine Probe: Rot */
.simple-ical-widget > li.fw-termin-probe {
  border-left-color: #c8262d;
  background: #fdebec;
}

/* Atemschutz: Gelb */
.simple-ical-widget > li.fw-termin-atemschutz {
  border-left-color: #e4b21d;
  background: #fff7d7;
}

/* Jugendfeuerwehr: Orange */
.simple-ical-widget > li.fw-termin-jugend {
  border-left-color: #F28C28;
  background: #FFF0DD;
}

/* DLK: Grün */
.simple-ical-widget > li.fw-termin-dlk {
  border-left-color: #238453;
  background: #eaf7ef;
}

/* Datumsangabe */
.simple-ical-widget .ical-date {
  display: block;
  color: #555;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Terminbezeichnung */
.simple-ical-widget .ical_summary {
  color: #202830;
  font-weight: 600;
}
