/* ==========================================================================
   tpl_feuerwehr – Joomla 6 Template
   Gestaltungsidee: Die Seite ist wie ein Löschfahrzeug aufgebaut.
   - Kopf in Feuerrot mit weißer Beschriftung
   - Konturmarkierung (weiße Segmentlinie) als Trenner unter dem Kopf
   - Heckwarnmarkierung (rot/weiß schräg) NUR für Notruf und Warnhinweise
   - Startseite: Fahrzeug hinter dem Rolltor der Wache
   Eigene Anpassungen bitte in media/templates/site/feuerwehr/css/user.css
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/Barlow-Italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Barlow-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Barlow-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */

:root {
  --fw-red: #b3121b;
  --fw-dark: #1f242b;
  --fw-red-deep: color-mix(in srgb, var(--fw-red) 78%, #000);
  --fw-red-soft: color-mix(in srgb, var(--fw-red) 9%, #fff);
  --fw-dark-2: color-mix(in srgb, var(--fw-dark) 88%, #fff);
  --fw-paper: #f4f5f4;
  --fw-white: #fff;
  --fw-steel: #6e7782;
  --fw-line: #dde0e3;
  --fw-signal: #f2b705;
  --fw-text: var(--fw-dark);

  --fw-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-font-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

  --fw-container: 1240px;
  --fw-gutter: clamp(16px, 4vw, 32px);
  --fw-radius: 4px;
  --fw-chamfer: 12px;

  /* Heckwarnmarkierung: rot/weiß, 45° */
  --fw-warn: repeating-linear-gradient(-45deg, var(--fw-red) 0 11px, var(--fw-white) 11px 22px);

  /* Bootstrap an das Template anbinden */
  --bs-body-font-family: var(--fw-font);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--fw-text);
  --bs-body-bg: var(--fw-paper);
  --bs-primary: var(--fw-red);
  --bs-primary-rgb: 179, 18, 27;
  --bs-link-color: var(--fw-red-deep);
  --bs-link-hover-color: var(--fw-red);
  --bs-border-color: var(--fw-line);
  --bs-border-radius: var(--fw-radius);
  --bs-heading-color: var(--fw-dark);
}

/* ---------- Basis ---------- */

body.fw {
  margin: 0;
  background: var(--fw-paper);
  color: var(--fw-text);
  font-family: var(--fw-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.fw *,
.fw *::before,
.fw *::after {
  box-sizing: border-box;
}

:where(.fw) :is(h1, h2, h3, h4, h5, h6) {
  margin: 0 0 .5em;
  color: var(--fw-dark);
  font-family: var(--fw-font-cond);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.005em;
}

:where(.fw) h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem); font-weight: 800; }
:where(.fw) h2 { font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.2rem); }
:where(.fw) h3 { font-size: 1.45rem; }
:where(.fw) h4 { font-size: 1.2rem; }
:where(.fw) :is(h5, h6) { font-size: 1.05rem; }

:where(.fw) :is(p, ul, ol, dl) {
  margin-top: 0;
  margin-bottom: 1.1em;
}

:where(.fw) a {
  color: var(--fw-red-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

:where(.fw) a:hover {
  color: var(--fw-red);
  text-decoration-thickness: 2px;
}

.fw :focus-visible {
  outline: 3px solid var(--fw-signal);
  outline-offset: 2px;
}

:where(.fw) img {
  max-width: 100%;
  height: auto;
}

:where(.fw) hr {
  height: 0;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--fw-line);
  opacity: 1;
}

:where(.fw) blockquote {
  margin: 1.5rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 4px solid var(--fw-red);
  font-size: 1.15rem;
}

.fw ::selection {
  background: var(--fw-red);
  color: #fff;
}

.fw-container {
  width: 100%;
  max-width: calc(var(--fw-container) + 2 * var(--fw-gutter));
  margin-inline: auto;
  padding-inline: var(--fw-gutter);
}

.fw-skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: .6rem 1rem;
  background: var(--fw-signal);
  color: var(--fw-dark) !important;
  font-weight: 700;
}

.fw-skip:focus {
  top: 1rem;
}

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

.fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .6rem 1.5rem .6rem 1.3rem;
  border: 0;
  background: var(--fw-red);
  color: #fff !important;
  font-family: var(--fw-font-cond);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--fw-chamfer)), calc(100% - var(--fw-chamfer)) 100%, 0 100%);
  cursor: pointer;
  transition: background-color .15s;
}

.fw-btn:hover {
  background: var(--fw-red-deep);
}

.fw-btn--white {
  background: #fff;
  color: var(--fw-red-deep) !important;
}

.fw-btn--white:hover {
  background: var(--fw-paper);
}

.fw-btn--ghost {
  clip-path: none;
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75);
}

.fw-btn--ghost:hover {
  background: rgba(0, 0, 0, .18);
}

.fw-btn--dark {
  background: var(--fw-dark);
}

.fw-btn--dark:hover {
  background: #000;
}

/* Bootstrap-Buttons im Template-Stil */
.fw .btn {
  --bs-btn-font-family: var(--fw-font-cond);
  --bs-btn-font-size: 1.1rem;
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: var(--fw-radius);
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-padding-y: .5rem;
}

.fw .btn-primary {
  --bs-btn-bg: var(--fw-red);
  --bs-btn-border-color: var(--fw-red);
  --bs-btn-hover-bg: var(--fw-red-deep);
  --bs-btn-hover-border-color: var(--fw-red-deep);
  --bs-btn-active-bg: var(--fw-red-deep);
  --bs-btn-active-border-color: var(--fw-red-deep);
  --bs-btn-disabled-bg: var(--fw-red);
  --bs-btn-disabled-border-color: var(--fw-red);
}

.fw .btn-secondary {
  --bs-btn-bg: var(--fw-dark);
  --bs-btn-border-color: var(--fw-dark);
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
}

.fw .form-control:focus,
.fw .form-select:focus {
  border-color: var(--fw-red);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--fw-red) 22%, transparent);
}

.fw .pagination {
  --bs-pagination-color: var(--fw-dark);
  --bs-pagination-hover-color: var(--fw-red);
  --bs-pagination-active-bg: var(--fw-red);
  --bs-pagination-active-border-color: var(--fw-red);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--fw-red) 25%, transparent);
  flex-wrap: wrap;
}

/* ---------- Notruf-Leiste ---------- */

.fw-alertbar {
  background: var(--fw-dark);
  color: #d6dade;
  font-size: .92rem;
}

.fw-alertbar__inner {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  min-height: 44px;
}

.fw-notruf {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0 1rem 0 calc(26px + .9rem);
  background: var(--fw-red);
  color: #fff !important;
  text-decoration: none !important;
  position: relative;
  white-space: nowrap;
}

.fw-notruf::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 26px;
  background: var(--fw-warn);
}

.fw-notruf__label {
  font-weight: 600;
}

.fw-notruf__nr {
  font-family: var(--fw-font-cond);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.fw-notruf:hover {
  background: var(--fw-red-deep);
}

.fw-ticker {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  color: #d6dade !important;
  text-decoration: none !important;
}

.fw-ticker__label {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.fw-ticker__label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: .5rem;
  border-radius: 50%;
  background: var(--fw-signal);
  vertical-align: .1em;
}

.fw-ticker__when {
  color: #9aa2ab;
  white-space: nowrap;
}

.fw-ticker__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-ticker:hover .fw-ticker__title {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.fw-alertbar__end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.fw-alertbar__end a {
  color: #d6dade;
}

.fw-alertbar__end a:hover {
  color: #fff;
}

.fw-alertbar__end .mod-menu,
.fw-alertbar__end ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-social {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--fw-radius);
  color: inherit;
  text-decoration: none;
}

.fw-social a:hover {
  background: rgba(255, 255, 255, .1);
}

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

.fw-header {
  position: relative;
  z-index: 100;
  background: var(--fw-red);
  color: #fff;
}

.has-sticky-header .fw-header {
  position: sticky;
  top: 0;
}

.fw-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 84px;
  transition: min-height .2s;
}

.fw-header.is-scrolled .fw-header__inner {
  min-height: 66px;
}

.fw-header.is-scrolled {
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
}

.fw-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #fff !important;
  text-decoration: none !important;
  flex-shrink: 0;
}

.fw-brand__mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.fw-brand__logo {
  display: block;
  width: auto;
  max-height: 60px;
}

.fw-header.is-scrolled .fw-brand__logo {
  max-height: 46px;
}

.fw-brand__text {
  display: flex;
  flex-direction: column;
}

.fw-brand__name {
  font-family: var(--fw-font-cond);
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .005em;
}

.fw-brand__sub {
  margin-top: .2rem;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  line-height: 1.2;
}

/* Konturmarkierung */
.fw-contour {
  height: 8px;
  background:
    repeating-linear-gradient(90deg, var(--fw-paper) 0 72px, transparent 72px 80px)
    0 1px / 100% 6px no-repeat,
    var(--fw-red-deep);
}

/* ---------- Navigation ---------- */

.fw-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.fw-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-nav__menu > ul,
.fw-nav__menu .mod-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
}

.fw-nav__menu li {
  position: relative;
}

.fw-nav__menu > ul > li > a,
.fw-nav__menu > ul > li > span,
.fw-nav__menu .mod-menu > li > a,
.fw-nav__menu .mod-menu > li > span {
  display: block;
  padding: .55rem .8rem;
  color: #fff;
  font-family: var(--fw-font-cond);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
}

.fw-nav__menu .mod-menu > li > a::after {
  content: "";
  position: absolute;
  right: .8rem;
  bottom: .2rem;
  left: .8rem;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s;
}

.fw-nav__menu .mod-menu > li > a:hover::after,
.fw-nav__menu .mod-menu > li.active > a::after,
.fw-nav__menu .mod-menu > li.current > a::after {
  transform: scaleX(1);
}

.fw-subtoggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* Untermenüs (Desktop) */
@media (min-width: 992px) {
  .fw-nav__menu .mod-menu__sub,
  .fw-nav__menu li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 250px;
    padding: .4rem 0;
    background: #fff;
    border-top: 4px solid var(--fw-dark);
    box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
  }

  .fw-nav__menu li li > ul {
    top: -.4rem;
    left: 100%;
  }

  .fw-nav__menu li:hover > ul,
  .fw-nav__menu li:focus-within > ul,
  .fw-nav__menu li.is-open > ul {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .fw-nav__menu li li a,
  .fw-nav__menu li li span {
    display: block;
    padding: .5rem 1.1rem;
    border-left: 4px solid transparent;
    color: var(--fw-dark);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
  }

  .fw-nav__menu li li a:hover,
  .fw-nav__menu li li.active > a {
    border-left-color: var(--fw-red);
    background: var(--fw-red-soft);
    color: var(--fw-red-deep);
  }

  .fw-nav__menu .mod-menu > li.parent > a,
  .fw-nav__menu .mod-menu > li.deeper > a {
    padding-right: 1.6rem;
  }

  .fw-nav__menu .mod-menu > li.parent > a::before,
  .fw-nav__menu .mod-menu > li.deeper > a::before {
    content: "";
    position: absolute;
    top: 50%;
    right: .7rem;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }
}

/* Suche im Kopf */
.fw-nav__search input[type="search"],
.fw-nav__search input[type="text"] {
  width: 190px;
  min-height: 40px;
  padding: .4rem .8rem;
  border: 0;
  border-radius: var(--fw-radius);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font: inherit;
  font-size: .95rem;
}

.fw-nav__search input::placeholder {
  color: rgba(255, 255, 255, .78);
}

.fw-nav__search input:focus {
  background: #fff;
  color: var(--fw-dark);
}

.fw-nav__search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.fw-nav__search .btn,
.fw-nav__search button {
  display: none;
}

/* Menü-Schalter (mobil) */
.fw-navtoggle {
  display: none;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  padding: .55rem .85rem;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: var(--fw-radius);
  background: transparent;
  color: #fff;
  font-family: var(--fw-font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.fw-navtoggle__bars,
.fw-navtoggle__bars::before,
.fw-navtoggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.fw-navtoggle__bars {
  position: relative;
}

.fw-navtoggle__bars::before,
.fw-navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.fw-navtoggle__bars::before { top: -6px; }
.fw-navtoggle__bars::after { top: 6px; }

.fw-nav-open .fw-navtoggle__bars { background: transparent; }
.fw-nav-open .fw-navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.fw-nav-open .fw-navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .fw-header__inner {
    min-height: 70px;
    gap: 1rem;
  }

  .fw-navtoggle {
    display: inline-flex;
  }

  .fw-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: .75rem var(--fw-gutter) 1.5rem;
    background: var(--fw-dark);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .5);
  }

  .fw-nav-open .fw-nav {
    display: flex;
  }

  .fw-nav__menu .mod-menu,
  .fw-nav__menu > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .fw-nav__menu li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .fw-nav__menu li > a,
  .fw-nav__menu li > span {
    flex: 1;
    display: block;
    padding: .8rem 0;
    color: #fff;
    font-family: var(--fw-font-cond);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
  }

  .fw-nav__menu .mod-menu > li > a::after {
    display: none;
  }

  .fw-nav__menu li.active > a,
  .fw-nav__menu li.current > a {
    color: #fff;
    box-shadow: inset 4px 0 0 var(--fw-red);
    padding-left: .9rem;
  }

  .fw-subtoggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
  }

  .fw-subtoggle::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
  }

  .fw-nav__menu li.is-open > .fw-subtoggle::before {
    margin-top: 4px;
    transform: rotate(-135deg);
  }

  .fw-nav__menu li > ul {
    display: none;
    flex-basis: 100%;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, .15);
    margin-bottom: .5rem;
  }

  .fw-nav__menu li.is-open > ul {
    display: block;
  }

  .fw-nav__menu li li {
    border-bottom: 0;
  }

  .fw-nav__menu li li > a {
    padding: .55rem 0;
    font-family: var(--fw-font);
    font-size: 1.02rem;
    font-weight: 500;
    color: #d6dade;
  }

  .fw-nav__search {
    margin-top: 1rem;
  }

  .fw-nav__search input[type="search"],
  .fw-nav__search input[type="text"] {
    width: 100%;
    min-height: 46px;
  }
}

/* ---------- Startseiten-Bühne ---------- */

.fw-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 7vw, 6rem);
  background: var(--fw-red);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(24px, 4vw, 56px)), 0 100%);
  overflow: hidden;
}

.fw-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.fw-hero__title {
  margin: 0 0 1.25rem;
  color: #fff;
  font-family: var(--fw-font-cond);
  font-size: clamp(3.1rem, 1.6rem + 6.2vw, 7rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.015em;
}

.fw-hero__lead {
  max-width: 44ch;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
}

.fw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* Rolltor der Wache */
.fw-door {
  position: relative;
  padding: 16px 16px 0;
  background: var(--fw-dark);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.fw-door::before {
  /* Torsturz mit Konturlinie */
  content: "";
  position: absolute;
  top: 6px;
  right: 16px;
  left: 16px;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 34px, transparent 34px 40px);
}

.fw-door__opening {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 3.3;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 255, 255, .1), transparent 70%),
    linear-gradient(180deg, #0d1014 0%, #171b21 65%, #2a3038 100%);
}

.fw-door__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fw-door__truck {
  position: relative;
  width: 84%;
  margin-bottom: 4%;
}

.fw-truck__beacon {
  fill: #2c5fd6;
}

.fw-door__shutter {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  height: 24%;
  background:
    linear-gradient(180deg, transparent calc(100% - 14px), #8b9198 calc(100% - 14px), #8b9198 calc(100% - 10px), #5c6269 calc(100% - 10px)),
    repeating-linear-gradient(180deg, #cfd3d7 0 11px, #b4b9bf 11px 13px, #e2e5e8 13px 14px);
  box-shadow: 0 10px 18px -6px rgba(0, 0, 0, .55);
}

.fw-door__shutter::after {
  /* Griff */
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 54px;
  height: 5px;
  margin-left: -27px;
  border-radius: 3px;
  background: #3a3f45;
}

/* Der eine Bewegungsmoment: Tor öffnet, Blaulicht blitzt dreimal */
@media (prefers-reduced-motion: no-preference) {
  .fw-door__shutter {
    animation: fw-door-open 1.6s cubic-bezier(.6, 0, .2, 1) .35s both;
  }

  .fw-truck__beacon {
    animation: fw-beacon .42s steps(1) 1.9s 6;
  }

  .fw-truck__beacon--r {
    animation-delay: 2.11s;
  }
}

@keyframes fw-door-open {
  from { height: calc(100% - 16px); }
  to { height: 24%; }
}

@keyframes fw-beacon {
  0% { fill: #6ea2ff; filter: drop-shadow(0 0 10px #4d8bff); }
  50% { fill: #2c5fd6; filter: none; }
}

/* Typenschild mit Eckdaten */
.fw-plate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .14);
}

.fw-plate__row {
  padding: .9rem 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, .25);
}

.fw-plate__row:last-child {
  border-right: 0;
}

.fw-plate dt {
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  font-weight: 500;
}

.fw-plate dd {
  margin: 0;
  color: #fff;
  font-family: var(--fw-font-cond);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}

.fw-banner {
  background: var(--fw-dark);
}

/* ---------- Inhaltsbereich ---------- */

.fw-breadcrumbs {
  padding-top: 1.25rem;
  font-size: .92rem;
}

.fw-breadcrumbs .breadcrumb {
  margin: 0;
  --bs-breadcrumb-divider-color: var(--fw-steel);
  --bs-breadcrumb-item-active-color: var(--fw-steel);
}

.fw-breadcrumbs a {
  color: var(--fw-dark);
}

.fw-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 992px) {
  .fw-main.has-right { grid-template-columns: minmax(0, 1fr) 320px; }
  .fw-main.has-left { grid-template-columns: 270px minmax(0, 1fr); }
  .fw-main.has-left.has-right { grid-template-columns: 250px minmax(0, 1fr) 300px; }
}

.fw-content {
  min-width: 0;
  outline: none;
}

.fw-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.fw-band {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Joomla-Inhalte */
.fw .page-header h1,
.fw .page-header h2 {
  margin-bottom: .6rem;
}

.fw .com-content-article__body,
.fw .item-page > [itemprop="articleBody"] {
  max-width: 72ch;
}

.fw .com-content-article__body p:first-child,
.fw .fw-lead {
  font-size: 1.2rem;
  line-height: 1.55;
}

.fw dl.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.1rem;
  margin: 0 0 1.25rem;
  color: var(--fw-steel);
  font-size: .9rem;
}

.fw dl.article-info dt {
  display: none;
}

.fw dl.article-info dd {
  margin: 0;
}

.fw .blog-item,
.fw .blog-featured .blog-item {
  height: 100%;
  margin-bottom: 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background: #fff;
  border: 1px solid var(--fw-line);
  border-top: 4px solid var(--fw-red);
  border-radius: var(--fw-radius);
}

.fw .blog-item .item-image,
.fw .blog-item figure {
  margin: calc(-1 * clamp(1.1rem, 2.5vw, 1.6rem)) calc(-1 * clamp(1.1rem, 2.5vw, 1.6rem)) 1.1rem;
}

.fw .blog-item .item-image img,
.fw .blog-item figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.fw .blog-item h2 {
  font-size: 1.6rem;
}

.fw .blog-item h2 a {
  color: var(--fw-dark);
  text-decoration: none;
}

.fw .blog-item h2 a:hover {
  color: var(--fw-red);
}

.fw .readmore {
  margin-bottom: 0;
}

.fw table:not([class]) ,
.fw .table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  background: #fff;
}

.fw table:not([class]) th,
.fw table:not([class]) td {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--fw-line);
  text-align: left;
}

.fw table:not([class]) thead th {
  border-bottom: 2px solid var(--fw-dark);
  font-family: var(--fw-font-cond);
  font-size: 1.05rem;
}

.fw .alert {
  border-radius: var(--fw-radius);
}

/* ---------- Modul-Tafeln ---------- */

.fw-card {
  background: #fff;
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
}

.fw .fw-card__title {
  margin: 0;
  padding: 1rem 1.25rem .85rem 1rem;
  border-bottom: 1px solid var(--fw-line);
  border-left: 5px solid var(--fw-red);
  font-size: 1.35rem;
}

.fw-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.fw-card__body > :last-child {
  margin-bottom: 0;
}

.fw-card__body .mod-menu,
.fw-card__body ul.mod-list,
.fw-card__body ul.latestnews,
.fw-card__body ul.mostread {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-card__body .mod-menu li a,
.fw-card__body ul.mod-list li a,
.fw-card__body ul.latestnews li a,
.fw-card__body ul.mostread li a {
  display: block;
  padding: .55rem 0;
  border-bottom: 1px solid var(--fw-line);
  color: var(--fw-dark);
  text-decoration: none;
}

.fw-card__body ul li:last-child > a,
.fw-card__body ul.mod-list li:last-child > a {
  border-bottom: 0;
}

.fw-card__body .mod-menu li a:hover,
.fw-card__body .mod-menu li.active > a {
  color: var(--fw-red);
}

.fw-card__body .mod-menu__sub {
  padding-left: 1rem;
  list-style: none;
}

/* Varianten über Modulklasse */
.fw-card.fw-card--red {
  background: var(--fw-red);
  border-color: var(--fw-red);
  color: #fff;
}

.fw-card.fw-card--red .fw-card__title {
  border-bottom-color: rgba(255, 255, 255, .25);
  border-left-color: #fff;
  color: #fff;
}

.fw-card.fw-card--red a {
  color: #fff;
}

.fw-card.fw-card--dark {
  background: var(--fw-dark);
  border-color: var(--fw-dark);
  color: #d6dade;
}

.fw-card.fw-card--dark .fw-card__title {
  border-bottom-color: rgba(255, 255, 255, .12);
  color: #fff;
}

.fw-card.fw-card--dark a {
  color: #fff;
}

.fw-card.fw-card--plain {
  background: transparent;
  border: 0;
}

.fw-card.fw-card--plain .fw-card__title {
  padding-left: .85rem;
  border-bottom: 0;
}

.fw-card.fw-card--plain .fw-card__body {
  padding: .75rem 0 0;
}

/* ---------- Bausteine für Beiträge ---------- */

/* Warnhinweis mit Heckwarnmarkierung, z. B. Unwetterwarnung */
.fw-callout {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem 1.1rem calc(22px + 1.25rem);
  background: #fff;
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  overflow: hidden;
}

.fw-callout::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22px;
  background: var(--fw-warn);
}

.fw-callout > :last-child {
  margin-bottom: 0;
}

.fw-callout strong:first-child {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--fw-font-cond);
  font-size: 1.25rem;
}

/* Hinweis ohne Warncharakter */
.fw-note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--fw-dark);
  background: #fff;
}

/* Fahrzeug-Steckbrief: <dl class="fw-specs"> */
.fw-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  margin: 1.5rem 0;
  border: 1px solid var(--fw-line);
  background: #fff;
}

.fw-specs dt,
.fw-specs dd {
  margin: 0;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--fw-line);
}

.fw-specs dt {
  background: var(--fw-paper);
  color: var(--fw-steel);
  font-weight: 600;
}

.fw-specs dd {
  font-weight: 600;
}

.fw-specs dt:last-of-type,
.fw-specs dd:last-of-type {
  border-bottom: 0;
}

/* Funkrufname / Fahrzeugkennung: <span class="fw-callsign">HLF 20</span> */
.fw-callsign {
  display: inline-block;
  padding: .1rem .55rem;
  border: 2px solid var(--fw-dark);
  border-radius: 3px;
  background: #fff;
  font-family: var(--fw-font-cond);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.fw-footer {
  margin-top: auto;
  background: var(--fw-dark);
  color: #c3c9cf;
  font-size: .98rem;
}

.fw-footer::before {
  content: "";
  display: block;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, var(--fw-paper) 0 72px, transparent 72px 80px)
    0 1px / 100% 6px no-repeat,
    var(--fw-red);
}

.fw-footer a {
  color: #fff;
}

.fw-footer a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.fw-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(220px, .8fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.fw-footer__name {
  margin-bottom: .6rem;
  color: #fff;
  font-family: var(--fw-font-cond);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.fw-footer address {
  margin-bottom: 1rem;
  font-style: normal;
}

.fw-footer__contact {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.fw-footer__contact li {
  margin-bottom: .3rem;
}

.fw-footer__contact .fa-solid {
  width: 1.2em;
  color: #8f98a1;
}

.fw-footer__hint {
  color: #8f98a1;
  font-size: .88rem;
}

.fw-footer__modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
}

.fw .fw-plain__title {
  margin-bottom: .75rem;
  color: #fff;
  font-size: 1.2rem;
}

.fw-footer .fw-plain ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-footer .fw-plain li {
  margin-bottom: .35rem;
}

.fw-footer .fw-plain a {
  color: #c3c9cf;
  text-decoration: none;
}

.fw-footer .fw-plain a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Notruf-Kachel mit Warnmarkierung als Rahmen */
.fw-footer__emergency {
  display: flex;
  flex-direction: column;
  align-self: start;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 10px solid transparent;
  border-image: var(--fw-warn) 10;
  background: var(--fw-red);
  color: #fff !important;
  text-decoration: none !important;
}

.fw-footer__emergency-label {
  font-weight: 600;
}

.fw-footer__emergency-nr {
  font-family: var(--fw-font-cond);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: .95;
}

.fw-footer__emergency-text {
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
}

.fw-footer__emergency:hover {
  background: var(--fw-red-deep);
}

.fw-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .88rem;
}

.fw-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  min-height: 60px;
  padding-block: .75rem;
}

.fw-footer__bottom-inner p {
  margin: 0;
}

.fw-footer__bottom .mod-menu,
.fw-footer__bottom ul:not(.fw-social) {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-footer__bottom .mod-menu a {
  color: #c3c9cf;
  text-decoration: none;
}

.fw-footer__bottom .mod-menu a:hover {
  color: #fff;
}

.fw-footer__bottom .fw-social {
  margin-left: auto;
}

/* Nach oben */
.fw-totop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--fw-red);
  color: #fff !important;
  text-decoration: none !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.fw-totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- Fehler- und Offline-Seite ---------- */

.fw-errorpage,
.fw-offlinepage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.fw-error,
.fw-offline {
  flex: 1;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.fw-error__code {
  margin: 0;
  color: var(--fw-red);
  font-family: var(--fw-font-cond);
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  font-weight: 800;
  line-height: .85;
}

.fw .fw-error__title {
  margin: 1rem 0 .5rem;
}

.fw-error__text {
  max-width: 52ch;
  color: var(--fw-steel);
  font-size: 1.15rem;
}

.fw-error__debug {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--fw-line);
  font-size: .85rem;
  overflow: auto;
}

.fw-error__emergency {
  padding: 1rem 0;
  background: var(--fw-dark);
  color: #fff;
  font-weight: 600;
}

.fw-offline__form {
  max-width: 420px;
  margin-top: 2rem;
}

.fw-component {
  padding: 1.5rem;
}

/* ---------- Einsatz-Komponente an das Template anpassen ---------- */

.fw .ein {
  --ein-accent: var(--fw-red);
  --ein-text: var(--fw-dark);
  --ein-muted: var(--fw-steel);
  --ein-border: var(--fw-line);
  --ein-surface: var(--fw-paper);
  --ein-radius: 6px;
  --ein-shadow: none;
}

.fw .ein .ein-title,
.fw .ein .ein-hero__title,
.fw .ein .ein-card__title,
.fw .ein .ein-kpi__value,
.fw .ein .ein-date__d,
.fw .ein .ein-fact dd,
.fw .ein .ein-report h2 {
  font-family: var(--fw-font-cond);
}

.fw .ein .ein-card__title {
  font-size: 1.3rem;
}

.fw .ein .ein-kpi__value {
  font-size: 2rem;
}

/* ---------- Responsive ---------- */

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

  .fw-door {
    max-width: 560px;
  }

  .fw-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fw-footer__modules {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 767.98px) {
  .fw-alertbar__end {
    display: none;
  }

  .fw-ticker__when {
    display: none;
  }

  .fw-brand__sub {
    display: none;
  }

  .fw-plate__row {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
  }

  .fw-plate {
    grid-template-columns: 1fr 1fr;
  }

  .fw-plate__row:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .25);
  }

  .fw-footer__grid {
    grid-template-columns: 1fr;
  }

  .fw-footer__bottom .fw-social {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .fw-notruf__label {
    display: none;
  }

  .fw-navtoggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fw *,
  .fw *::before,
  .fw *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Druck ---------- */

@media print {
  .fw-alertbar,
  .fw-nav,
  .fw-navtoggle,
  .fw-hero,
  .fw-sidebar,
  .fw-footer__modules,
  .fw-totop {
    display: none !important;
  }

  .fw-header {
    position: static !important;
    background: none;
    color: #000;
  }

  .fw-brand {
    color: #000 !important;
  }

  .fw-contour {
    height: 3px;
    background: #000;
  }

  .fw-footer {
    background: none;
    color: #000;
  }
}
