:root {
    --ffw-red-950: #3d0707;
    --ffw-red-900: #5d0a0a;
    --ffw-red-800: #811010;
    --ffw-red-700: #a71919;
    --ffw-red-600: #c92622;
    --ffw-red-100: #f9dfdc;
    --ffw-gold: #d3a637;
    --ffw-gold-light: #f3d887;
    --ffw-charcoal: #16191c;
    --ffw-slate: #343b40;
    --ffw-paper: #fffdfa;
    --ffw-paper-muted: #f4f1eb;
    --ffw-ink: #20262a;
    --ffw-shadow: 0 1.1rem 2.7rem rgb(24 8 8 / 24%);
}

body.cms-template-ffw {
    min-height: 100vh;
    margin: 0;
    color: var(--ffw-ink);
    background:
        linear-gradient(135deg, rgb(255 255 255 / 4%) 25%, transparent 25%) 0 0 / 2rem 2rem,
        linear-gradient(315deg, rgb(255 255 255 / 3%) 25%, transparent 25%) 0 0 / 2rem 2rem,
        var(--ffw-charcoal);
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.cms-template-ffw .ffw-site-shell {
    position: relative;
    min-height: 100vh;
    padding-bottom: var(--cms-footer-height, 44px);
}

.cms-template-ffw .ffw-masthead {
    position: relative;
    overflow: hidden;
    min-height: 14rem;
    color: #fff;
    border-bottom: .28rem solid var(--ffw-gold);
    background-color: var(--ffw-red-950);
    background-image:
        linear-gradient(90deg, rgb(22 8 8 / 96%) 0%, rgb(61 7 7 / 88%) 40%, rgb(61 7 7 / 28%) 76%, rgb(22 8 8 / 58%) 100%),
        url("../images/FFW/Einsatzfahrzeug-Team.jpg");
    background-position: center, center 42%;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 .5rem 1.4rem rgb(0 0 0 / 32%);
}

.cms-template-ffw .ffw-masthead::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(115deg, transparent 0 62%, rgb(255 255 255 / 7%) 62% 64%, transparent 64% 100%);
    pointer-events: none;
}

.cms-template-ffw .ffw-masthead-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 14rem;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    gap: 1.35rem;
}

.cms-template-ffw .ffw-emblem {
    display: flex;
    flex: 0 0 7.6rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 7.6rem;
    height: 8.7rem;
    color: #fff;
    border: .28rem solid #fff;
    border-radius: .35rem .35rem 2.8rem 2.8rem;
    background: linear-gradient(160deg, var(--ffw-red-600), var(--ffw-red-900));
    box-shadow: 0 .7rem 1.8rem rgb(0 0 0 / 38%);
    text-decoration: none;
    transform: rotate(-1deg);
    transition: transform .18s ease, box-shadow .18s ease;
}

.cms-template-ffw .ffw-emblem:hover,
.cms-template-ffw .ffw-emblem:focus {
    color: #fff;
    box-shadow: 0 .9rem 2rem rgb(0 0 0 / 46%);
    transform: translateY(-2px) rotate(0deg);
}

.cms-template-ffw .ffw-emblem-number {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
}

.cms-template-ffw .ffw-emblem-label {
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px solid rgb(255 255 255 / 55%);
    font-size: .83rem;
    font-weight: 800;
    letter-spacing: .2em;
}

.cms-template-ffw .ffw-masthead-copy {
    max-width: 44rem;
    padding: .9rem 1.2rem;
    border-left: .24rem solid var(--ffw-gold);
    background: linear-gradient(90deg, rgb(0 0 0 / 42%), transparent);
    text-shadow: 0 .15rem .35rem rgb(0 0 0 / 62%);
}

.cms-template-ffw .ffw-masthead-copy p {
    margin: 0;
    color: inherit;
}

.cms-template-ffw .ffw-kicker {
    margin-bottom: .35rem !important;
    color: var(--ffw-gold-light) !important;
    font-size: .78rem !important;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.cms-template-ffw .ffw-site-title {
    max-width: 38rem;
    font-size: clamp(2rem, 4.2vw, 3.55rem) !important;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.025em;
}

.cms-template-ffw .ffw-tagline {
    margin-top: .65rem !important;
    color: rgb(255 255 255 / 92%) !important;
    font-size: clamp(.92rem, 1.8vw, 1.15rem) !important;
    font-weight: 700;
    letter-spacing: .08em;
}

.cms-template-ffw .cms-sticky-nav-container {
    min-height: 3.75rem;
}

.cms-template-ffw .cms-top-bar,
.cms-template-ffw .cms-top-bar ul,
.cms-template-ffw .top-bar,
.cms-template-ffw .top-bar ul {
    color: #fff;
    background: rgb(22 25 28 / 98%);
}

.cms-template-ffw .cms-top-bar {
    min-height: 3.75rem;
    padding-right: max(1rem, calc((100vw - 75rem) / 2));
    padding-left: max(1rem, calc((100vw - 75rem) / 2));
    border-bottom: .18rem solid var(--ffw-red-600);
    box-shadow: 0 .4rem 1.05rem rgb(0 0 0 / 32%);
}

.cms-template-ffw .cms-brand {
    color: #fff;
    font-weight: 900;
}

.cms-template-ffw .cms-top-bar a,
.cms-template-ffw .cms-top-bar button,
.cms-template-ffw .top-bar .menu li > a[role="button"] {
    color: #fff;
}

.cms-template-ffw .cms-top-bar .menu > li > a,
.cms-template-ffw .cms-top-bar .menu > li > .button.clear,
.cms-template-ffw .cms-top-bar .menu > li > .cms-logout-form > .button.clear {
    position: relative;
    margin: 0;
    padding: 1.2rem .82rem 1rem;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent !important;
    box-shadow: none;
    font-weight: 800;
    line-height: 1;
    transform: none;
}

@media screen and (min-width: 40em) {
    .cms-template-ffw .cms-top-bar .menu > li > .cms-user-label.button.clear {
        height: 3.2rem;
        padding-top: .8rem;
        padding-bottom: .8rem;
    }
}

/*
 * Foundation schaltet die Navigation bereits ab 40em auf die breite
 * Darstellung um. Bei vielen Seiten- und Verwaltungslinks reicht eine
 * typische Tabletbreite dafür noch nicht aus. Titel, Seitennavigation und
 * Benutzeraktionen erhalten dort deshalb eigene, sauber umbrechende Zeilen.
 */
@media screen and (min-width: 40em) and (max-width: 79.9375em) {
    .cms-template-ffw .cms-sticky-nav-container {
        min-height: 0;
    }

    .cms-template-ffw .cms-top-bar {
        display: block;
        height: auto !important;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .cms-template-ffw .cms-top-bar-title,
    .cms-template-ffw #responsive-menu,
    .cms-template-ffw #responsive-menu .top-bar-left,
    .cms-template-ffw #responsive-menu .top-bar-right {
        width: 100%;
    }

    .cms-template-ffw .cms-top-bar-title {
        min-height: 3.25rem;
    }

    .cms-template-ffw #responsive-menu {
        display: block !important;
    }

    .cms-template-ffw #responsive-menu .menu {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
    }

    .cms-template-ffw #responsive-menu .top-bar-left > .menu {
        border-top: 1px solid rgb(255 255 255 / 12%);
    }

    .cms-template-ffw #responsive-menu .top-bar-right > .menu {
        justify-content: flex-end;
        border-top: 1px solid rgb(255 255 255 / 12%);
    }

    .cms-template-ffw .cms-top-bar .menu > li > a,
    .cms-template-ffw .cms-top-bar .menu > li > .button.clear,
    .cms-template-ffw .cms-top-bar .menu > li > .cms-logout-form > .button.clear {
        padding-right: .7rem;
        padding-left: .7rem;
        font-size: .93rem;
    }
}

.cms-template-ffw .cms-top-bar .menu > li > a::after,
.cms-template-ffw .cms-top-bar .menu > li > .button.clear::after,
.cms-template-ffw .cms-top-bar .menu > li > .cms-logout-form > .button.clear::after {
    position: absolute;
    right: .78rem;
    bottom: .55rem;
    left: .78rem;
    height: 2px;
    content: "";
    background: var(--ffw-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.cms-template-ffw .cms-top-bar .menu > li > a:hover,
.cms-template-ffw .cms-top-bar .menu > li > a:focus,
.cms-template-ffw .cms-top-bar .menu > li > .button.clear:hover,
.cms-template-ffw .cms-top-bar .menu > li > .button.clear:focus,
.cms-template-ffw .cms-top-bar .menu > li > .cms-logout-form > .button.clear:hover,
.cms-template-ffw .cms-top-bar .menu > li > .cms-logout-form > .button.clear:focus,
.cms-template-ffw .cms-top-bar .menu > li.is-active > a {
    color: var(--ffw-gold-light) !important;
    background: rgb(255 255 255 / 7%) !important;
    box-shadow: none;
    transform: none;
}

.cms-template-ffw .cms-top-bar .menu > li > a:hover::after,
.cms-template-ffw .cms-top-bar .menu > li > a:focus::after,
.cms-template-ffw .cms-top-bar .menu > li > .button.clear:hover::after,
.cms-template-ffw .cms-top-bar .menu > li > .button.clear:focus::after,
.cms-template-ffw .cms-top-bar .menu > li > .cms-logout-form > .button.clear:hover::after,
.cms-template-ffw .cms-top-bar .menu > li > .cms-logout-form > .button.clear:focus::after,
.cms-template-ffw .cms-top-bar .menu > li.is-active > a::after {
    transform: scaleX(1);
}

.cms-template-ffw .dropdown.menu .is-dropdown-submenu-parent > a::after {
    border-top-color: var(--ffw-gold);
}

.cms-template-ffw .is-dropdown-submenu {
    border: 1px solid rgb(211 166 55 / 48%);
    background: var(--ffw-charcoal);
    box-shadow: 0 .8rem 1.6rem rgb(0 0 0 / 30%);
}

.cms-template-ffw .menu-icon::after {
    background: #fff;
    box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
}

.cms-template-ffw .ffw-page-stage {
    padding: 2.1rem 0 2.9rem;
}

.cms-template-ffw .cms-main {
    padding-top: 0;
    padding-bottom: 0;
}

.cms-template-ffw .cms-content-box,
.cms-template-ffw .cms-boundary-box,
.cms-template-ffw .card,
.cms-template-ffw .callout {
    border: 1px solid rgb(93 10 10 / 14%);
    border-radius: .36rem;
    background: rgb(255 253 250 / 97%);
    box-shadow: var(--ffw-shadow);
}

.cms-template-ffw .cms-content-box {
    position: relative;
    overflow: hidden;
    padding: clamp(1.2rem, 3vw, 2.15rem);
}

.cms-template-ffw .cms-content-box::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: .3rem;
    content: "";
    background: linear-gradient(90deg, var(--ffw-red-900), var(--ffw-red-600) 65%, var(--ffw-gold));
}

.cms-template-ffw h1,
.cms-template-ffw h2,
.cms-template-ffw h3,
.cms-template-ffw h4,
.cms-template-ffw h5,
.cms-template-ffw h6,
.cms-template-ffw .accordion-title {
    color: var(--ffw-red-900);
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-weight: 900;
    line-height: 1.18;
}

.cms-template-ffw h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.cms-template-ffw h2 {
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
}

.cms-template-ffw h3 {
    font-size: clamp(1.25rem, 2.7vw, 1.8rem);
}

.cms-template-ffw p,
.cms-template-ffw li {
    line-height: 1.68;
}

.cms-template-ffw a:not(.button):not(.cms-brand):not(.ffw-emblem) {
    color: var(--ffw-red-700);
    text-decoration-thickness: .08em;
    text-underline-offset: .15em;
}

.cms-template-ffw a:not(.button):not(.cms-brand):not(.ffw-emblem):hover,
.cms-template-ffw a:not(.button):not(.cms-brand):not(.ffw-emblem):focus {
    color: var(--ffw-red-950);
}

.cms-template-ffw .button,
.cms-template-ffw button.button,
.cms-template-ffw input[type="submit"],
.cms-template-ffw input[type="button"] {
    border: 0;
    border-radius: .22rem;
    color: #fff;
    background: var(--ffw-red-700);
    box-shadow: 0 .25rem .55rem rgb(93 10 10 / 24%);
    font-weight: 800;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.cms-template-ffw .button:hover,
.cms-template-ffw .button:focus,
.cms-template-ffw button.button:hover,
.cms-template-ffw button.button:focus,
.cms-template-ffw input[type="submit"]:hover,
.cms-template-ffw input[type="submit"]:focus,
.cms-template-ffw input[type="button"]:hover,
.cms-template-ffw input[type="button"]:focus {
    color: #fff;
    background: var(--ffw-red-950);
    box-shadow: 0 .4rem .8rem rgb(61 7 7 / 32%);
    transform: translateY(-1px);
}

.cms-template-ffw .button.success {
    background: var(--ffw-slate);
}

.cms-template-ffw .button.secondary {
    color: var(--ffw-charcoal);
    background: var(--ffw-gold-light);
}

.cms-template-ffw .callout.primary,
.cms-template-ffw .callout.success {
    color: var(--ffw-ink);
    border-color: rgb(167 25 25 / 24%);
    background: rgb(249 223 220 / 97%);
}

.cms-template-ffw input[type="text"],
.cms-template-ffw input[type="email"],
.cms-template-ffw input[type="password"],
.cms-template-ffw input[type="number"],
.cms-template-ffw input[type="date"],
.cms-template-ffw input[type="time"],
.cms-template-ffw input[type="url"],
.cms-template-ffw select,
.cms-template-ffw textarea {
    min-height: 2.75rem;
    border: 1px solid rgb(52 59 64 / 32%);
    border-radius: .2rem;
    color: var(--ffw-ink);
    background: #fff;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 5%);
}

.cms-template-ffw input:focus,
.cms-template-ffw select:focus,
.cms-template-ffw textarea:focus {
    border-color: var(--ffw-red-600);
    outline: 3px solid rgb(201 38 34 / 16%);
    box-shadow: none;
}

.cms-template-ffw table {
    overflow: hidden;
    border: 1px solid rgb(52 59 64 / 18%);
    border-radius: .3rem;
    background: var(--ffw-paper);
}

.cms-template-ffw thead,
.cms-template-ffw table thead tr {
    color: #fff;
    background: var(--ffw-red-900);
}

.cms-template-ffw tbody tr:nth-child(even) {
    background: var(--ffw-paper-muted);
}

.cms-template-ffw .accordion-title {
    color: var(--ffw-red-900);
    background: var(--ffw-paper);
}

.cms-template-ffw .accordion-title:hover,
.cms-template-ffw .accordion-title:focus {
    background: var(--ffw-red-100);
}

.cms-template-ffw .ffw-hero-photo {
    display: block;
    width: 100%;
    max-height: 31rem;
    border: .32rem solid #fff;
    border-radius: .3rem;
    box-shadow: 0 .55rem 1.4rem rgb(0 0 0 / 24%);
    object-fit: cover;
    object-position: center;
}

.cms-template-ffw .ffw-eyebrow {
    margin-bottom: .35rem;
    color: var(--ffw-red-700);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cms-template-ffw .ffw-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: .8rem;
    margin: 1.25rem 0;
}

.cms-template-ffw .ffw-fact {
    padding: 1rem;
    border-left: .28rem solid var(--ffw-red-600);
    background: var(--ffw-paper-muted);
}

.cms-template-ffw .ffw-fact strong {
    display: block;
    color: var(--ffw-red-900);
    font-size: 1.38rem;
}

.cms-template-ffw .ffw-timeline {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.cms-template-ffw .ffw-timeline li {
    position: relative;
    margin-left: .7rem;
    padding: 0 0 1.25rem 1.7rem;
    border-left: .2rem solid var(--ffw-gold);
}

.cms-template-ffw .ffw-timeline li::before {
    position: absolute;
    top: .15rem;
    left: -.58rem;
    width: .95rem;
    height: .95rem;
    content: "";
    border: .18rem solid #fff;
    border-radius: 50%;
    background: var(--ffw-red-600);
    box-shadow: 0 0 0 .12rem var(--ffw-red-600);
}

.cms-template-ffw .ffw-timeline time {
    display: block;
    margin-bottom: .15rem;
    color: var(--ffw-red-800);
    font-weight: 900;
}

.cms-template-ffw .ffw-roster-grid,
.cms-template-ffw .ffw-album-grid,
.cms-template-ffw .ffw-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.cms-template-ffw .ffw-roster-card,
.cms-template-ffw .ffw-album-card,
.cms-template-ffw .ffw-contact-card {
    padding: 1rem;
    border: 1px solid rgb(52 59 64 / 15%);
    border-radius: .28rem;
    background: var(--ffw-paper-muted);
}

.cms-template-ffw .ffw-roster-card h3,
.cms-template-ffw .ffw-album-card h3,
.cms-template-ffw .ffw-contact-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
}

.cms-template-ffw .ffw-roster-card ul,
.cms-template-ffw .ffw-album-card ul {
    margin-bottom: 0;
}

.cms-template-ffw .ffw-archive-image {
    width: 100%;
    border-radius: .25rem;
    box-shadow: 0 .35rem .9rem rgb(0 0 0 / 20%);
}

.cms-template-ffw .ffw-legacy-note {
    padding: .9rem 1rem;
    border-left: .3rem solid var(--ffw-gold);
    background: #fff8dc;
}

.cms-template-ffw .cms-footer {
    color: rgb(255 255 255 / 88%);
    border-top: .22rem solid var(--ffw-red-600);
    background: var(--ffw-charcoal);
    box-shadow: 0 -.35rem 1rem rgb(0 0 0 / 24%);
}

.cms-template-ffw .cms-footer a {
    color: var(--ffw-gold-light) !important;
}

.cms-template-ffw :focus-visible {
    outline: 3px solid var(--ffw-gold);
    outline-offset: 3px;
}

@media screen and (max-width: 39.9375em) {
    .cms-template-ffw .ffw-masthead {
        min-height: 9.2rem;
        background-position: center, 64% center;
    }

    .cms-template-ffw .ffw-masthead-inner {
        min-height: 9.2rem;
        padding: .85rem 1rem;
        gap: .8rem;
    }

    .cms-template-ffw .ffw-emblem {
        flex-basis: 4.8rem;
        width: 4.8rem;
        height: 5.5rem;
        border-width: .2rem;
        border-radius: .25rem .25rem 1.8rem 1.8rem;
    }

    .cms-template-ffw .ffw-emblem-number {
        font-size: 1.55rem;
    }

    .cms-template-ffw .ffw-emblem-label {
        font-size: .66rem;
    }

    .cms-template-ffw .ffw-masthead-copy {
        padding: .55rem .7rem;
    }

    .cms-template-ffw .ffw-kicker {
        display: none;
    }

    .cms-template-ffw .ffw-site-title {
        font-size: 1.45rem !important;
        line-height: 1.12;
    }

    .cms-template-ffw .ffw-tagline {
        margin-top: .28rem !important;
        font-size: .7rem !important;
        letter-spacing: .02em;
    }

    .cms-template-ffw .cms-top-bar {
        min-height: 3.5rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .cms-template-ffw .cms-brand-desktop {
        display: none;
    }

    .cms-template-ffw #responsive-menu {
        width: 100%;
    }

    .cms-template-ffw .cms-top-bar .vertical.menu > li > a,
    .cms-template-ffw .cms-top-bar .vertical.menu > li > .button.clear,
    .cms-template-ffw .cms-top-bar .vertical.menu > li > .cms-logout-form > .button.clear {
        width: 100%;
        padding: .9rem .7rem;
        border-bottom: 1px solid rgb(255 255 255 / 10%);
        text-align: left;
    }

    .cms-template-ffw .cms-top-bar .vertical.menu > li > .cms-user-label.button.clear {
        height: 2.8rem;
        padding-top: .6rem;
        padding-bottom: .6rem;
    }

    .cms-template-ffw .ffw-page-stage {
        padding: 1rem 0 1.8rem;
    }

    .cms-template-ffw .cms-main {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .cms-template-ffw .cms-content-box {
        padding: 1.15rem;
    }

    .cms-template-ffw .ffw-roster-grid,
    .cms-template-ffw .ffw-album-grid,
    .cms-template-ffw .ffw-contact-grid {
        grid-template-columns: 1fr;
    }
}

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

@media print {
    .cms-template-ffw .ffw-masthead,
    .cms-template-ffw .cms-sticky-nav-container,
    .cms-template-ffw .cms-footer {
        display: none !important;
    }

    .cms-template-ffw .ffw-page-stage,
    .cms-template-ffw .cms-main {
        padding: 0;
    }

    .cms-template-ffw .cms-content-box,
    .cms-template-ffw .card,
    .cms-template-ffw .callout {
        border: 1px solid #bbb;
        box-shadow: none;
    }
}
