/* Webfont: Inter eingebunden */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/*
Theme Name: Freiwillige Feuerwehr
Theme URI: https://example.com/
Author: Manuel Mayer by CloudNova.at
Author URI: https://cloudnova.at
Description: Modernes, helles WordPress-Theme für eine Freiwillige Feuerwehr Hofkirchen an der Trattnach mit Einsatzverwaltung.
Version: 1.2
Text Domain: ffw-theme
*/

:root {
    --ff-red: #c80000;
    --ff-red-dark: #a00000;
    --ff-bg: #f5f5f5;
    --ff-card: #ffffff;
    --ff-dark: #222222;
    --ff-grey: #777777;
    --ff-accent: #ffcc00;
    --ff-radius: 16px;
}

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

body {
    margin: 0;
    font-family:'Inter', sans-serif;
    background: var(--ff-bg);
    color: var(--ff-dark);
    line-height: 1.5;
}

/* Links global in Schwarz */
a {
    color: #000000;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #000000;
    text-decoration: underline;
}

/* Header & Navigation */

.site-header {
    background: var(--ff-card);
    border-bottom: 3px solid var(--ff-red);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.site-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ff-grey);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--ff-dark);
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: var(--ff-red);
    color: #ffffff;
}



/* Dropdown-Untermenüs */

.main-navigation li {
    position: relative;
}

.main-navigation ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.35rem;
    list-style: none;
    padding: 0.4rem 0.35rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
    z-index: 50;
}

.main-navigation ul.sub-menu a {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Anzeige bei Hover/Fokus */

.main-navigation li:hover > ul.sub-menu,
.main-navigation li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Auf kleineren Bildschirmen Untermenüs einfach untereinander anzeigen */

@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation ul.sub-menu {
        position: static;
        margin-top: 0;
        box-shadow: none;
        padding-left: 1.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}
/* Mobile Nav */

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
}



.header-image-wrapper {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
}

.header-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero */

.hero {
    position: relative;
    background-color: var(--ff-red-dark);
    color: #ffffff;
    padding: 4rem 1.75rem 4.25rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(200,0,0,0.7) 60%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2.25rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
}

.hero-title {
    font-size: clamp(2rem, 2.8vw, 2.6rem);
    margin: 0.75rem 0 0.25rem;
}

.hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 32rem;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s, color 0.2s;
}

.btn-primary {
    background: #ffffff;
    color: var(--ff-red);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--ff-red);
    border: 1px solid var(--ff-red);
}

.btn-outline:hover {
    background: var(--ff-red);
    color: #ffffff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    font-size: 0.9rem;
}

.hero-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0.9rem;
    border-radius: var(--ff-radius);
}

/* Layout */

.site-main {
    max-width: 1200px;
    margin: 2rem auto 3rem;
    padding: 0 1.25rem;
}

/* Cards & Sections */

.section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.4rem;
    margin: 0;
}

.section-subtitle {
    margin: 0;
    color: var(--ff-grey);
    font-size: 0.9rem;
}

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

.card {
    background: var(--ff-card);
    border-radius: var(--ff-radius);
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-thumb {
    margin: -1.25rem -1.25rem 0.75rem;
    border-radius: var(--ff-radius) var(--ff-radius) 0 0;
    overflow: hidden;
}

.card-thumb img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ff-grey);
}

.card-title {
    font-size: 1.05rem;
    margin: 0.25rem 0;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--ff-grey);
}

/* Einsatz-Labels */

.einsatz-label {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(200, 0, 0, 0.1);
    color: var(--ff-red);
    font-weight: 600;
}

.einsatz-meta {
    font-size: 0.85rem;
    color: var(--ff-grey);
}

/* Einsatz-Details-Liste */

.einsatz-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.einsatz-details-list li {
    margin-bottom: 0.25rem;
}

/* Einsatzstatistik */

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

.stat-card {
    background: var(--ff-card);
    border-radius: var(--ff-radius);
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ff-grey);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}



/* Einsatz-Layout: Details neben Text */

.einsatz-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.einsatz-main {
    min-width: 0;
}

.einsatz-sidebar {
    background: var(--ff-card);
    border-radius: var(--ff-radius);
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Feuerwehrhaus-Galerie */

.feuerwehrhaus-gallery {
    margin-top: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Mitglieder-Werbe-Bereich */

.recruit-section {
    background: linear-gradient(135deg, var(--ff-red) 0%, var(--ff-red-dark) 40%, #111827 100%);
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
}

.recruit-section h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.recruit-section p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.recruit-list {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.recruit-list li {
    margin-bottom: 0.25rem;
}

.recruit-highlight {
    font-weight: 600;
}


/* Responsive Anpassungen */

@media (max-width: 900px) {
    .einsatz-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .recruit-section {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Single & Content */

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    margin: 0 0 0.2rem;
    font-size: 1.8rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--ff-grey);
}

.entry-content {
    background: var(--ff-card);
    padding: 1.5rem;
    border-radius: var(--ff-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.entry-thumb {
    margin-bottom: 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .entry-thumb img {
        height: 220px;
    }
}

/* Footer */

.site-footer {
    background: #111111;
    color: #cccccc;
    padding: 2rem 1.25rem 1.5rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-top: 0;
}

.footer-meta {
    color: #888888;
    font-size: 0.85rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding-top: 0.75rem;
    border-top: 1px solid #333333;
    font-size: 0.85rem;
    color: #888888;
}

/* Basic Responsive */

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        background: var(--ff-card);
        position: absolute;
        right: 1.25rem;
        top: 64px;
        padding: 0.75rem;
        border-radius: var(--ff-radius);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        min-width: 200px;
        z-index: 998;
    }

    .main-navigation ul.is-open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }
}

/* Forms / Inputs */

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #dddddd;
    font: inherit;
}



/* Fahrzeuge / Gerätschaften / Kommando */

.fahrzeug-spec-list,
.geraet-spec-list,
.kommando-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.fahrzeug-spec-list li,
.geraet-spec-list li,
.kommando-details-list li {
    margin-bottom: 0.25rem;
}

.kommando-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.kommando-card {
    background: var(--ff-card);
    border-radius: var(--ff-radius);
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    text-align: center;
}

.kommando-card img {
    border-radius: 999px;
    width: 96px;
    height: 96px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

/* Share-Buttons */

.share-buttons {
    margin-top: 1.5rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.share-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #eeeeee;
    text-decoration: none;
}

.share-buttons a:hover {
    background: #dddddd;
    text-decoration: none;
}


/* WordPress Helpers */

.aligncenter {
    margin: 0 auto;
    display: block;
}

.wp-post-image {
    border-radius: 12px;
}



/* Kontaktformular Jugendfeuerwehr */

.contact-panel-jugend {
    background: var(--ff-card);
    border-radius: var(--ff-radius);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    border-left: 4px solid var(--ff-accent);
}

.contact-panel-jugend h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-panel-jugend small {
    display: block;
    margin-bottom: 1rem;
    color: var(--ff-grey);
}

.contact-panel-jugend .form-row {
    margin-bottom: 0.75rem;
}

.contact-panel-jugend label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-panel-jugend .hint {
    font-size: 0.8rem;
    color: var(--ff-grey);
}

.jf-status-message {
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.jf-status-ok {
    background: #e5f7ea;
    color: #1b7a36;
}

.jf-status-error {
    background: #fbe9e9;
    color: #a12020;
}


/* Einsatzstatistik – Kopf & Jahreswahl */

.stats-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-year-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stats-year-form label {
    font-weight: 500;
}

.stats-year-form select {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #ffffff;
    font-size: 0.9rem;
}

/* Einsatzstatistik – Balkendiagramm */

.stats-bars {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-bar-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.stat-bar-label {
    white-space: nowrap;
}

.stat-bar-track {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    overflow: hidden;
}

.stat-bar-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    border-radius: inherit;
    transition: width 1.1s ease-out;
}

.stat-bar-brand {
    background: linear-gradient(90deg, #f97373, #dc2626);
}

.stat-bar-thl {
    background: linear-gradient(90deg, #60a5fa, #1d4ed8);
}

.stat-bar-sonstige {
    background: linear-gradient(90deg, #a3e635, #4d7c0f);
}

@media (max-width: 640px) {
    .stat-bar-row {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Einsatz-Filter auf Archivseite */

.einsatz-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.einsatz-filter-link {
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    font-size: 0.85rem;
    text-decoration: none;
    background: #ffffff;
}

.einsatz-filter-link:hover {
    border-color: rgba(0,0,0,0.35);
    background: #f3f4f6;
    text-decoration: none;
}

.einsatz-filter-link.is-active {
    border-color: var(--ff-red);
    background: rgba(239, 68, 68, 0.1);
}


.einsatz-filter-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.einsatz-year-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.einsatz-year-form select {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.18);
    background: #ffffff;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .einsatz-filter-wrap {
        align-items: flex-start;
    }
}


/* Notfall-Leiste über dem Hero */

 {
    background: linear-gradient(90deg, #b91c1c, #ef4444);
    color: #ffffff;
    padding: 0.35rem 1.25rem;
    font-size: 0.9rem;
}

 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.emergency-label {
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.emergency-number {
    font-weight: 700;
    font-size: 1rem;
}

.emergency-separator {
    opacity: 0.7;
}


/* Hero: Mehr über uns Button mit weißem Hintergrund */

.hero-actions .hero-about-btn {
    background: #ffffff;
    color: var(--ff-red-dark);
    border-color: #ffffff;
}

.hero-actions .hero-about-btn:hover {
    background: #f3f4f6;
    color: var(--ff-red-dark);
}

/* Aktives Mitglied werden – Formularlayout */

.section-members {
    margin-top: 2rem;
}

.section-members .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .section-members .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ffw-form .form-row {
    margin-bottom: 0.75rem;
}

.ffw-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.ffw-form input,
.ffw-form select,
.ffw-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font: inherit;
    background-color: #ffffff;
}

.ffw-form input:focus,
.ffw-form select:focus,
.ffw-form textarea:focus {
    outline: none;
    border-color: var(--ff-red, #dc2626);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.ffw-form textarea {
    min-height: 110px;
    resize: vertical;
}

.ffw-form-hint {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}


/* Unsere Sponsoren – Bereich */

.section-sponsors {
    background: #f9fafb;
    border-radius: var(--ff-radius, 12px);
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 2rem;
}

.section-sponsors .section-header {
    margin-bottom: 1.25rem;
}

.section-sponsors .section-subtitle {
    max-width: 640px;
}


/* targeted white last einsatz only */
/* disabled global hero link */
/* .hero a, */
/* .hero a:visited */ {
    color: #ffffff !important;
}

/* .hero a:hover */ {
    color: #ffffff !important;
    opacity: 0.85;
}


.hero .last-einsatz a:hover{opacity:.85;}


/* ✔ Nur 'Letzter Einsatz' im Hero weiß */
.hero .last-einsatz a,
.hero .last-einsatz a:visited {
    color:#ffffff !important;
}
.hero .last-einsatz a:hover {
    color:#ffffff !important;
    opacity:0.85;
}


/* Reset Fahrzeug-Linkfarbe wieder normal */
.hero .fahrzeuge a,
.hero .fahrzeuge a:visited {
    color: inherit !important;
}


/* Fahrzeuge im Hero weiß darstellen */
.hero a[href*="fahrzeug"],
.hero a[href*="fahrzeug"]:visited{
    color:#ffffff!important;
}
.hero a[href*="fahrzeug"]:hover{
    color:#ffffff!important;
    opacity:.85;
}


/* Zahl 'Einsätze dieses Jahres' im Hero deutlich größer darstellen */
.hero-stats .hero-einsatz-count {
    display: block;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero-stats .hero-einsatz-count {
        font-size: 1.7rem;
    }
}


/* Einsatzübersicht: 3 Einsätze nebeneinander, 9 pro Seite (Grid) */
.post-type-archive-einsatz .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .post-type-archive-einsatz .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .post-type-archive-einsatz .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Footer logo styling added by assistant */
.footer-logo{ max-height:60px; width:auto; display:inline-block; }



/* FFW: Search icon next to menu (Feuerwehrrot) */
.ffw-search { display: inline-block; vertical-align: middle; margin-left: 12px; }
.ffw-search form { display: flex; align-items: center; gap: 6px; }
.ffw-search input[type="search"] { padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; }
.ffw-search-btn { background: transparent; border: none; padding: 6px; cursor: pointer; color: #c8102e; display: inline-flex; align-items: center; justify-content: center; }
.ffw-search-btn svg { width: 18px; height: 18px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); padding:0; border:0; height:1px; width:1px; overflow:hidden; }
@media (max-width: 768px) {
  .ffw-search { margin-left: 8px; }
  .ffw-search input[type="search"] { width: 100px; }
}



/* Feuerwehrrot */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ffw-search .ffw-search-toggle svg { width: 20px; height: 20px; }
.ffw-search .screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); padding:0; border:0; height:1px; width:1px; overflow:hidden; }

/* Small screens: reduce width and keep input hidden until open */
@media (max-width: 768px) {
  .ffw-search.open .ffw-search-input { width: 130px; }
  .ffw-search { margin-left: 8px; }
}

/* When input focused - subtle shadow */
.ffw-search-input:focus { box-shadow: 0 0 0 3px rgba(200,16,46,0.08); border-color:#c8102e; }

/* Ensure form doesn't break layout if menu is flex/grid */
.ffw-search { order: 99; }



/* FFW: Search dropdown - input slides down below icon */
.ffw-search {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
}

.ffw-search-form {
  display: flex;
  align-items: center;
  position: relative;
}

/* Hidden input initially */
.ffw-search-input {
  position: absolute;
  top: 100%; /* appear below icon */
  left: 0;
  width: 200px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 
    opacity 200ms ease,
    transform 200ms ease;
  background: #fff;
  z-index: 20;
}

/* When open: visible + drop-down */
.ffw-search.open .ffw-search-input {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ffw-search-toggle {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #c8102e; /* Feuerwehrrot */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ffw-search-toggle svg {
  width: 20px; 
  height: 20px;
}

.screen-reader-text { 
  position: absolute !important; 
  clip: rect(1px, 1px, 1px, 1px); 
  padding:0; border:0; height:1px; width:1px; overflow:hidden; 
}

@media (max-width: 768px) {
  .ffw-search-input {
    width: 160px;
  }
}

/* Focus styling */
.ffw-search-input:focus {
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
  border-color:#c8102e;
}



/* === Improved dropdown & mobile styles added by assistant === */
.nav-menu, .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li { position: relative; }
.nav-menu li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #fff;
}
.nav-menu li:hover > ul,
.nav-menu li:focus-within > ul {
  display: block;
}
.nav-menu li a { display: block; padding: 10px 15px; text-decoration: none; }
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open { display: block; }
  .menu-toggle { display: inline-block; cursor: pointer; padding: 10px; }
}



/* Assistant: Aktuelles 3-column layout */
.section.aktuelles .card-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (max-width: 900px) {
  .section.aktuelles .card-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .section.aktuelles .card-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
}



/* Assistant: Ensure blog/index and archive lists show 3 columns */
.home .card-grid,
.blog .card-grid,
.archive .card-grid,
.page-for-posts .card-grid,
.section.blog .card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

/* Keep Aktuelles (front page) responsive — still uses card-grid but show as 2 columns on wide screens if needed */
.section.aktuelles .card-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (max-width: 900px) {
  .home .card-grid,
  .blog .card-grid,
  .archive .card-grid,
  .page-for-posts .card-grid,
  .section.blog .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .section.aktuelles .card-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .home .card-grid,
  .blog .card-grid,
  .archive .card-grid,
  .page-for-posts .card-grid,
  .section.blog .card-grid,
  .section.aktuelles .card-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
}




/* Aktuelles: 2 columns (side-by-side) */
.section.aktuelles .card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 32px;
}
.section.aktuelles .card-grid .card {
    max-width: 100% !important;
    width: 100% !important;
}
@media (max-width: 900px) {
  .section.aktuelles .card-grid { grid-template-columns: 1fr !important; }
}

.section.aktuelles .card-grid .card {
    max-width: 100% !important;
    width: 100% !important;
}



/* Specific mobile fix for Letzte Einsätze section */
@media (max-width: 768px) {
  .section.einsaetze .card-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
  }
  .section.einsaetze .card-grid .card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}



/* Jugend-Sektion exakt an Feuerwehr-Sektion angleichen */
.section.jugend .card-grid.jugend-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.section.jugend .card-grid.jugend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .section.jugend .card-grid.jugend-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
}


/* Aktuelles aus der Jugend - section styles */
.section.jugend .card-grid,
.jugend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .section.jugend .card-grid,
  .jugend-grid { grid-template-columns: 1fr !important; }
}



/* === FINAL COMBINED OVERRIDES: width + image crop for "Aktuelles aus der Jugend" === */

/* Force the Jugend section container to match Aktuelles width and centering */
.section.jugend, .home .section.jugend {
  width: 100% !important;
  box-sizing: border-box !important;
}
.section.jugend .card-grid,
.card-grid.jugend-grid,
.home .section.jugend .card-grid {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 32px !important;
  align-items: start !important;
}

/* Ensure cards fill their columns */
.section.jugend .card,
.card-grid.jugend-grid .card,
.section.jugend article.card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Force image container and cropping to match Feuerwehr */
.section.jugend .card-thumb,
.card-grid.jugend-grid .card-thumb,
.section.jugend .card .card-thumb {
  height: 260px !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  display: block !important;
  position: relative !important;
}

.section.jugend .card-thumb img,
.card-grid.jugend-grid .card-thumb img,
.section.jugend .card .card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  -o-object-fit: cover !important;
}

/* If theme wraps cards with extra containers, force them to same width */
.section.jugend .container,
.section.jugend .wrap,
.section.jugend .section-inner,
.section.jugend .inner,
.section.jugend .content-area {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Override any inline widths on cards */
.card[style], .card[data-max-width], .card-grid .card {
  max-width: none !important;
}

/* Mobile: single column */
@media (max-width: 900px) {
  .section.jugend .card-grid,
  .card-grid.jugend-grid,
  .section.aktuelles .card-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .section.jugend .card-thumb,
  .section.jugend .card-thumb img {
    height: 200px !important;
  }
}
/* Additional safety: ensure Feuerwehr and Jugend share same utilities */
.section.aktuelles .card-grid, .section.jugend .card-grid { box-sizing: border-box !important; }



/* === Uniform card body heights: make excerpt areas equal height === */

/* Ensure grid items stretch and cards fill column */
.card-grid, .card-grid.jugend-grid {
  align-items: stretch;
}

/* Make each card a flex column so we can make body grow */
.card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* Card thumb stays at top, content grows to fill space */
.card .card-thumb {
  flex: 0 0 auto !important;
}
.card .card-content, .card .card-body, .card .card-text {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

/* Push the excerpt to the bottom so cards align */
.card .card-excerpt {
  margin-top: auto !important;
}

/* Ensure buttons/metadata don't push cards unevenly */
.card .card-meta, .card .card-title {
  flex: 0 0 auto !important;
}

/* In case cards had fixed max-widths, ensure they stretch */
.card-grid .card {
  max-width: 100% !important;
}

/* Small screens: keep single column but still equal heights */
@media (max-width: 900px) {
  .card { height: auto !important; }
  .card .card-content, .card .card-body { flex: 0 0 auto !important; }
}



/* Mobile: Jugend-Beiträge einspaltig */
@media (max-width: 900px) {
    .section.jugend .card-grid,
    .card-grid.jugend-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }
    .section.jugend .card {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
    }
}



/* === Preview-size fix: ensure Aktuelles and Jugend thumbnails same height and behavior === */
/* Force both sections to use the same thumbnail height */
.section.aktuelles .card-thumb,
.section.aktuelles .card-thumb img,
.section.jugend .card-thumb,
.section.jugend .card-thumb img {
    height: 220px !important;
    max-height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* In case thumbnails are inside anchors or wrappers */
.section.aktuelles .card-thumb a,
.section.jugend .card-thumb a {
    display: block !important;
    height: 220px !important;
    overflow: hidden !important;
}

/* Ensure no thumbnail container has extra padding/margin affecting visual size */
.section.aktuelles .card-thumb, .section.jugend .card-thumb {
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
}

/* safety: remove inline height from images */
.section.aktuelles .card-thumb img[height],
.section.jugend .card-thumb img[height] { height: auto !important; }



/* === FIX: Entfernt weißen Rahmen um Vorschaubilder === */
.card-thumb,
.card-thumb a,
.card-thumb img {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Verhindert zusätzlichen Innenabstand durch Links */
.card-thumb a {
    display: block !important;
    line-height: 0 !important;
}

/* Sicherstellen, dass Border-Radius korrekt greift */
.card-thumb {
    overflow: hidden !important;
    border-radius: 16px !important;
}



/* === FINAL FIX: Kein weißer Rahmen bei Jugend-Vorschaubildern === */
.section.jugend .card-thumb {
    height: 220px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: transparent !important;
}

.section.jugend .card-thumb a {
    display: block !important;
    height: 100% !important;
}

.section.jugend .card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

.section.jugend .card-thumb,
.section.jugend .card-thumb * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}



/* =================================================
   FINAL MOBILE FIX – Jugend-Beiträge untereinander
   ================================================= */

@media (max-width: 900px) {

  .home .section.jugend .card-grid,
  .home .section.jugend .jugend-grid,
  .section.jugend .card-grid,
  .section.jugend .jugend-grid {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 20px !important;
      width: 100% !important;
  }

  .section.jugend .card {
      width: 100% !important;
      max-width: 100% !important;
      flex: none !important;
  }

  .section.jugend .card-grid {
      flex-direction: column !important;
  }
}



/* =========================================
   Textlängen begrenzen (FINAL)
   ========================================= */

/* Titel: max. 2 Zeilen */
.card-title,
.card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vorschautext: max. 3 Zeilen */
.card-excerpt,
.card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==============================
   MOBILE OPTIMIERUNG (Standard A)
   ============================== */

/* Tablet */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn,
    button,
    input[type="submit"] {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    header,
    .site-header {
        padding: 0.5rem 1rem;
    }

    footer .footer-inner,
    footer .footer-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .section {
        padding: 1.5rem 1rem;
    }
}

/* ==============================
   MOBILE FIX – ALLES UNTEREINANDER
   ============================== */
@media (max-width: 768px) {
    .card-grid,
    .jugend-grid,
    .einsatz-grid,
    .card-grid.jugend-grid,
    .card-grid.einsatz-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================
   MOBILE FINAL FIX – GRID + FLEX ZWINGEN
   ===================================== */
@media (max-width: 768px) {

    /* Grid-Container */
    .card-grid,
    .jugend-grid,
    .einsatz-grid,
    .posts-grid,
    .grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* Flex-Container */
    .cards,
    .posts,
    .entries {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Einzelne Karten */
    .card,
    article,
    .post,
    .entry {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =====================================
   MOBILE NUCLEAR FIX – 1 SPALTE ERZWINGEN
   ===================================== */
@media (max-width: 768px) {

    /* ALLE möglichen Wrapper */
    body * {
        box-sizing: border-box;
    }

    main,
    section,
    .container,
    .wrapper,
    .content {
        display: block !important;
    }

    /* Beiträge / Karten */
    article,
    .post,
    .entry,
    .card {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Eltern von Beiträgen */
    article.parent,
    .posts,
    .entries,
    .cards,
    .grid,
    .card-grid,
    .jugend-grid,
    .einsatz-grid {
        display: block !important;
    }
}

/* ==============================
   MOBILE FINAL FIX – CARD GRID
   ============================== */
@media (max-width: 768px) {
    body .site-main .card-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Footer: Impressum & Datenschutz Links weiß */
.footer-legal a {
    color: #ffffff;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Einsatz-Galerie Fullwidth */
.ffw-galerie,
.einsatz-galerie-fullwidth {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .ffw-galerie,
    .einsatz-galerie-fullwidth {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================
   FFW v8: bessere Lesbarkeit im Beitragsbereich
   ========================================================== */
.entry-content .ffw-readable-text,
.einsatz-main .ffw-readable-text {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: clamp(1.35rem, 3vw, 2.4rem);
    margin-top: 1.1rem;
    box-shadow: 0 16px 34px rgba(0,0,0,0.07);
    color: #202020;
    line-height: 1.78;
    font-size: 1.08rem;
}

.entry-content .ffw-readable-text::before,
.einsatz-main .ffw-readable-text::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    right: 1.05rem;
    width: clamp(76px, 12vw, 128px);
    height: clamp(76px, 12vw, 128px);
    background-image: url('assets/images/ffw-wappen-watermark-color.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
}

.entry-content .ffw-readable-text > *,
.einsatz-main .ffw-readable-text > * {
    position: relative;
    z-index: 1;
}

.entry-content .ffw-readable-text p,
.einsatz-main .ffw-readable-text p {
    margin-bottom: 1.05em;
}

.entry-content .ffw-readable-text h2,
.entry-content .ffw-readable-text h3,
.einsatz-main .ffw-readable-text h2,
.einsatz-main .ffw-readable-text h3 {
    margin-top: 1.45em;
    margin-bottom: 0.55em;
    line-height: 1.25;
}

html[data-ffw-article-size="small"] .ffw-readable-text { font-size: 0.98rem; }
html[data-ffw-article-size="normal"] .ffw-readable-text { font-size: 1.08rem; }
html[data-ffw-article-size="large"] .ffw-readable-text { font-size: 1.22rem; }
html[data-ffw-article-size="xlarge"] .ffw-readable-text { font-size: 1.36rem; }

.ffw-article-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.15rem 0 0.25rem;
    padding: 0.85rem 1rem;
    background: #f3f3f3;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
}

.ffw-font-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: #333;
}

.ffw-font-tools button,
.ffw-pdf-button {
    border: 1px solid rgba(0,0,0,0.14);
    background: #ffffff;
    color: #222;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ffw-font-tools button:hover,
.ffw-pdf-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.ffw-font-tools button[aria-pressed="true"] {
    background: #c80000;
    border-color: #c80000;
    color: #fff;
}

.ffw-pdf-button {
    background: #111;
    color: #fff;
    border-color: #111;
}

.site-footer,
.site-footer p,
.site-footer .footer-meta,
.site-footer .footer-copy,
.site-footer .footer-legal,
.site-footer .footer-legal a {
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .entry-content .ffw-readable-text,
    .einsatz-main .ffw-readable-text {
        padding: 1.2rem;
        border-radius: 14px;
    }
    .entry-content .ffw-readable-text::before,
    .einsatz-main .ffw-readable-text::before {
        width: 74px;
        height: 74px;
        opacity: 0.10;
    }
    .ffw-article-tools {
        align-items: stretch;
    }
    .ffw-font-tools,
    .ffw-pdf-button {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    @page { size: A4; margin: 14mm; }
    body {
        background: #fff !important;
        color: #111 !important;
        font-family: Georgia, "Times New Roman", serif !important;
    }
    .site-header,
    .site-footer,
    .main-navigation,
    .share-buttons,
    .ffw-article-tools,
    .hero,
    .ffw-search,
    aside:not(.einsatz-sidebar) {
        display: none !important;
    }
    main,
    article,
    .entry-content,
    .einsatz-layout,
    .einsatz-main {
        max-width: none !important;
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    .entry-header {
        border-bottom: 3px solid #c80000 !important;
        margin-bottom: 8mm !important;
        padding-bottom: 5mm !important;
    }
    .entry-title {
        font-size: 28pt !important;
        line-height: 1.15 !important;
        margin: 0 0 3mm !important;
        color: #111 !important;
    }
    .entry-meta,
    .card-meta {
        color: #555 !important;
        font-size: 10.5pt !important;
    }
    .entry-thumb img {
        width: 100% !important;
        max-height: 95mm !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin-bottom: 8mm !important;
    }
    .ffw-readable-text {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        border-radius: 10px !important;
        padding: 10mm !important;
        font-size: 12pt !important;
        line-height: 1.65 !important;
        background: #fff !important;
        page-break-inside: auto !important;
    }
    .ffw-readable-text::before {
        opacity: 0.08 !important;
        width: 32mm !important;
        height: 32mm !important;
        top: 8mm !important;
        right: 8mm !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .einsatz-sidebar {
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        padding: 6mm !important;
        margin-top: 7mm !important;
        background: #fafafa !important;
        color: #111 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    a[href]::after { content: "" !important; }
}

/* ==========================================================
   FFW v9: Premium-Einsatzbericht als PDF (nur Einsatzseiten)
   ========================================================== */
.ffw-pdf-report-cover {
    display: none;
}

@media print {
    @page { size: A4; margin: 12mm; }

    .single-einsatz .entry-header,
    .single-einsatz .entry-thumb,
    .single-einsatz .share-buttons,
    .single-einsatz hr,
    .single-einsatz .ffw-article-tools {
        display: none !important;
    }

    .single-einsatz .ffw-pdf-report-cover {
        display: block !important;
        page-break-after: always;
        color: #111 !important;
        font-family: Arial, Helvetica, sans-serif !important;
    }

    .ffw-pdf-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12mm;
        border-bottom: 2.4mm solid #c80000;
        padding-bottom: 5mm;
        margin-bottom: 7mm;
    }

    .ffw-pdf-brand {
        display: flex;
        align-items: center;
        gap: 4mm;
    }

    .ffw-pdf-brand img {
        width: 18mm;
        height: 18mm;
        object-fit: contain;
    }

    .ffw-pdf-brand strong {
        display: block;
        font-size: 12pt;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .ffw-pdf-brand span,
    .ffw-pdf-docno span {
        display: block;
        color: #666 !important;
        font-size: 8.8pt;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }

    .ffw-pdf-docno {
        text-align: right;
        border-left: 1px solid #ddd;
        padding-left: 7mm;
        white-space: nowrap;
    }

    .ffw-pdf-docno strong {
        display: block;
        margin-top: 1.5mm;
        font-size: 13pt;
    }

    .ffw-pdf-hero {
        position: relative;
        overflow: hidden;
        min-height: 92mm;
        border-radius: 5mm;
        background: linear-gradient(135deg, #181818, #3a0000) !important;
        box-shadow: 0 6mm 16mm rgba(0,0,0,0.16);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ffw-pdf-hero > img:not(.ffw-pdf-wappen) {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.82;
    }

    .ffw-pdf-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(0,0,0,0.88), rgba(0,0,0,0.48), rgba(0,0,0,0.12)) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ffw-pdf-hero-overlay {
        position: relative;
        z-index: 2;
        max-width: 122mm;
        padding: 16mm 14mm;
        color: #fff !important;
    }

    .ffw-pdf-kicker {
        display: inline-block;
        padding: 2.2mm 4mm;
        background: #c80000 !important;
        border-radius: 999px;
        color: #fff !important;
        font-size: 9pt;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ffw-pdf-hero h1 {
        margin: 6mm 0 3mm;
        color: #fff !important;
        font-size: 30pt !important;
        line-height: 1.05 !important;
        letter-spacing: -0.03em;
    }

    .ffw-pdf-hero p {
        margin: 0;
        color: rgba(255,255,255,0.88) !important;
        font-size: 11pt;
        line-height: 1.55;
    }

    .ffw-pdf-wappen {
        position: absolute;
        right: 9mm;
        top: 9mm;
        z-index: 3;
        width: 30mm !important;
        height: 30mm !important;
        object-fit: contain;
        opacity: 0.9;
        filter: drop-shadow(0 2mm 4mm rgba(0,0,0,0.35));
    }

    .ffw-pdf-facts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3mm;
        margin: 7mm 0;
    }

    .ffw-pdf-facts div {
        background: #f4f4f4 !important;
        border-left: 1.4mm solid #c80000;
        border-radius: 2.5mm;
        padding: 4mm;
        min-height: 18mm;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ffw-pdf-facts span {
        display: block;
        color: #777 !important;
        font-size: 8pt;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 1.8mm;
    }

    .ffw-pdf-facts strong {
        display: block;
        color: #111 !important;
        font-size: 11pt;
        line-height: 1.25;
    }

    .ffw-pdf-intro-row {
        display: grid;
        grid-template-columns: 1fr 34mm;
        gap: 8mm;
        align-items: end;
        border-top: 1px solid #ddd;
        padding-top: 6mm;
        margin-top: 8mm;
    }

    .ffw-pdf-intro-row h2 {
        margin: 0 0 2mm;
        font-size: 18pt;
        letter-spacing: -0.02em;
        color: #111 !important;
    }

    .ffw-pdf-intro-row p {
        margin: 0;
        color: #555 !important;
        font-size: 10.5pt;
        line-height: 1.55;
    }

    .ffw-pdf-qr {
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 3mm;
        padding: 3mm;
        background: #fff !important;
    }

    .ffw-pdf-qr img {
        width: 27mm !important;
        height: 27mm !important;
        display: block;
        margin: 0 auto 1.5mm;
    }

    .ffw-pdf-qr span {
        display: block;
        color: #555 !important;
        font-size: 7.5pt;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .single-einsatz .einsatz-layout {
        display: block !important;
    }

    .single-einsatz .einsatz-main::before {
        content: "Einsatzbericht";
        display: block;
        font-family: Arial, Helvetica, sans-serif !important;
        color: #c80000 !important;
        font-size: 9pt;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        border-bottom: 1px solid #ddd;
        padding-bottom: 3mm;
        margin-bottom: 6mm;
    }

    .single-einsatz .ffw-readable-text {
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        font-family: Georgia, "Times New Roman", serif !important;
        font-size: 12.2pt !important;
        line-height: 1.72 !important;
        color: #111 !important;
    }

    .single-einsatz .ffw-readable-text::before {
        display: none !important;
    }

    .single-einsatz .ffw-readable-text p:first-of-type::first-letter {
        float: left;
        font-size: 42pt;
        line-height: 0.9;
        padding-right: 2mm;
        color: #c80000 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-weight: 800;
    }

    .single-einsatz .einsatz-sidebar {
        margin-top: 8mm !important;
        border: 1px solid #ddd !important;
        border-radius: 3mm !important;
        padding: 5mm !important;
        background: #f7f7f7 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        page-break-inside: avoid;
    }

    .single-einsatz .einsatz-sidebar .section-title {
        color: #111 !important;
        border-bottom: 1px solid #ddd;
        padding-bottom: 2mm;
        margin-bottom: 3mm !important;
    }
}

/* FFW v10: PDF-Download-Zähler und Einsatzbericht-PDF-Archiv */
.ffw-pdf-download-count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 0.85rem;
    border: 1px solid rgba(120, 120, 120, 0.22);
    border-radius: 999px;
    color: #555;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.ffw-pdf-archive-page {
    max-width: 1180px;
    margin: 0 auto;
}

.ffw-pdf-archive-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: clamp(1.6rem, 4vw, 3rem);
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #121212 0%, #2a0000 55%, #b40000 100%);
    box-shadow: 0 24px 60px rgba(0,0,0,0.16);
}

.ffw-pdf-archive-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 34px solid rgba(255,255,255,0.08);
}

.ffw-pdf-archive-kicker {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ffw-pdf-archive-hero .section-title {
    margin: 0.75rem 0 0.5rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1;
}

.ffw-pdf-archive-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,0.86);
    font-size: 1.08rem;
}

.ffw-pdf-archive-seal {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    font-size: 2.1rem;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.ffw-pdf-archive-filter {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.ffw-pdf-archive-filter label {
    font-weight: 800;
    color: #333;
}

.ffw-pdf-archive-filter select {
    min-width: 150px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}

.ffw-pdf-archive-list {
    display: grid;
    gap: 1rem;
}

.ffw-pdf-archive-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1.15rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,0.06);
}

.ffw-pdf-archive-date {
    display: grid;
    place-items: center;
    min-height: 84px;
    border-radius: 18px;
    background: #f5f5f5;
    border-left: 5px solid #c80000;
}

.ffw-pdf-archive-date strong {
    color: #111;
    font-size: 1.45rem;
    line-height: 1;
}

.ffw-pdf-archive-date span {
    color: #777;
    font-weight: 800;
}

.ffw-pdf-archive-content h2 {
    margin: 0.35rem 0 0.35rem;
    font-size: 1.25rem;
    line-height: 1.2;
}

.ffw-pdf-archive-content h2 a {
    color: inherit;
    text-decoration: none;
}

.ffw-pdf-archive-content p {
    margin: 0 0 0.35rem;
    color: #555;
}

.ffw-pdf-archive-content small {
    color: #777;
    font-weight: 800;
}

.ffw-pdf-archive-actions .ffw-pdf-button {
    white-space: nowrap;
    text-decoration: none;
}

@media (max-width: 760px) {
    .ffw-pdf-archive-hero,
    .ffw-pdf-archive-item {
        grid-template-columns: 1fr;
    }
    .ffw-pdf-archive-seal {
        display: none;
    }
    .ffw-pdf-archive-actions .ffw-pdf-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


/* ==========================================================
   FFW v12: Einsatzbericht-PDF als Premium-Onepager (1 Seite)
   ========================================================== */
@media print {
    @page { size: A4 portrait; margin: 9mm; }

    html, body {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: hidden !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * { visibility: hidden !important; }

    .single-einsatz .ffw-pdf-report-cover,
    .single-einsatz .ffw-pdf-report-cover * {
        visibility: visible !important;
    }

    .single-einsatz .ffw-pdf-report-cover {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        width: auto !important;
        height: auto !important;
        max-height: 279mm !important;
        overflow: hidden !important;
        page-break-after: avoid !important;
        page-break-before: avoid !important;
        break-after: avoid !important;
        break-before: avoid !important;
        color: #111 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        background: #fff !important;
        z-index: 999999 !important;
    }

    .single-einsatz article,
    .single-einsatz .entry-content,
    .single-einsatz .einsatz-layout,
    .single-einsatz .einsatz-main,
    .single-einsatz .ffw-readable-text,
    .single-einsatz .einsatz-sidebar,
    .single-einsatz header,
    .single-einsatz footer,
    .single-einsatz nav,
    .single-einsatz .site-header,
    .single-einsatz .site-footer,
    .single-einsatz .entry-header,
    .single-einsatz .entry-thumb,
    .single-einsatz .share-buttons,
    .single-einsatz .ffw-article-tools {
        display: none !important;
    }

    .ffw-pdf-topbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8mm !important;
        border-bottom: 2mm solid #c80000 !important;
        padding-bottom: 3.5mm !important;
        margin-bottom: 4.5mm !important;
    }

    .ffw-pdf-brand { display: flex !important; align-items: center !important; gap: 3mm !important; }
    .ffw-pdf-brand img { width: 14mm !important; height: 14mm !important; object-fit: contain !important; }
    .ffw-pdf-brand strong { display: block !important; font-size: 10.5pt !important; letter-spacing: .02em !important; text-transform: uppercase !important; color:#111 !important; }
    .ffw-pdf-brand span,
    .ffw-pdf-docno span { display: block !important; color: #666 !important; font-size: 7.2pt !important; text-transform: uppercase !important; letter-spacing: .12em !important; }
    .ffw-pdf-docno { text-align: right !important; border-left: 1px solid #ddd !important; padding-left: 5mm !important; white-space: nowrap !important; }
    .ffw-pdf-docno strong { display: block !important; margin-top: 1mm !important; font-size: 10.5pt !important; color:#111 !important; }

    .ffw-pdf-hero {
        position: relative !important;
        height: 88mm !important;
        min-height: 0 !important;
        overflow: hidden !important;
        border-radius: 4mm !important;
        background: linear-gradient(135deg, #181818, #3a0000) !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
    }

    .ffw-pdf-hero > img:not(.ffw-pdf-wappen) {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        opacity: .84 !important;
    }

    .ffw-pdf-hero::after {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.48), rgba(0,0,0,.08)) !important;
    }

    .ffw-pdf-hero-overlay {
        position: relative !important;
        z-index: 2 !important;
        max-width: 125mm !important;
        padding: 12mm 11mm !important;
        color: #fff !important;
    }

    .ffw-pdf-kicker {
        display: inline-block !important;
        padding: 1.8mm 3.4mm !important;
        background: #c80000 !important;
        border-radius: 999px !important;
        color: #fff !important;
        font-size: 8pt !important;
        font-weight: 800 !important;
        letter-spacing: .12em !important;
        text-transform: uppercase !important;
    }

    .ffw-pdf-hero h1 {
        margin: 5mm 0 2.5mm !important;
        color: #fff !important;
        font-size: 25pt !important;
        line-height: 1.04 !important;
        letter-spacing: -.03em !important;
        max-height: 56mm !important;
        overflow: hidden !important;
    }

    .ffw-pdf-hero p {
        margin: 0 !important;
        color: rgba(255,255,255,.88) !important;
        font-size: 9.2pt !important;
        line-height: 1.35 !important;
    }

    .ffw-pdf-wappen {
        position: absolute !important;
        right: 7mm !important;
        top: 7mm !important;
        z-index: 3 !important;
        width: 25mm !important;
        height: 25mm !important;
        object-fit: contain !important;
        opacity: .76 !important;
        filter: drop-shadow(0 1.4mm 3mm rgba(0,0,0,.35)) !important;
    }

    .ffw-pdf-facts {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2.5mm !important;
        margin: 5mm 0 !important;
        page-break-inside: avoid !important;
    }

    .ffw-pdf-facts div {
        background: #f3f3f3 !important;
        border-left: 1.2mm solid #c80000 !important;
        border-radius: 2mm !important;
        padding: 3mm !important;
        min-height: 14mm !important;
        overflow: hidden !important;
    }

    .ffw-pdf-facts span {
        display: block !important;
        color: #777 !important;
        font-size: 6.8pt !important;
        text-transform: uppercase !important;
        letter-spacing: .12em !important;
        margin-bottom: 1mm !important;
    }

    .ffw-pdf-facts strong {
        display: block !important;
        color: #111 !important;
        font-size: 9.3pt !important;
        line-height: 1.18 !important;
        max-height: 12mm !important;
        overflow: hidden !important;
    }

    .ffw-pdf-intro-row {
        display: grid !important;
        grid-template-columns: 1fr 36mm !important;
        gap: 6mm !important;
        align-items: end !important;
        border-top: 1px solid #ddd !important;
        padding-top: 4.5mm !important;
        margin-top: 4.5mm !important;
        page-break-inside: avoid !important;
    }

    .ffw-pdf-intro-row h2 {
        margin: 0 0 1.5mm !important;
        font-size: 15pt !important;
        letter-spacing: -.02em !important;
        color: #111 !important;
    }

    .ffw-pdf-intro-row p {
        margin: 0 !important;
        color: #444 !important;
        font-size: 9.2pt !important;
        line-height: 1.42 !important;
        max-height: 36mm !important;
        overflow: hidden !important;
    }

    .ffw-pdf-qr {
        text-align: center !important;
        border: 1px solid #ddd !important;
        border-radius: 3mm !important;
        padding: 2.5mm !important;
        background: #fff !important;
    }

    .ffw-pdf-qr img {
        width: 25mm !important;
        height: 25mm !important;
        display: block !important;
        margin: 0 auto 1.2mm !important;
    }

    .ffw-pdf-qr span {
        display: block !important;
        color: #444 !important;
        font-size: 6.5pt !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
        letter-spacing: .05em !important;
    }

    a[href]::after { content: "" !important; }
}


/* FFW v15: Werkzeuge bei Einsatzseiten in die Einsatzdetails-Spalte verschoben */
.single-einsatz .einsatz-sidebar-tools {
    margin-bottom: 1rem;
}

.single-einsatz .einsatz-sidebar-tools .ffw-article-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.9rem;
    border-radius: 16px;
}

.single-einsatz .einsatz-sidebar-tools .ffw-font-tools {
    justify-content: center;
    flex-wrap: wrap;
}

.single-einsatz .einsatz-sidebar-tools .ffw-font-tools span {
    width: 100%;
    text-align: center;
    font-weight: 800;
    color: #444;
}

.single-einsatz .einsatz-sidebar-tools .ffw-pdf-button,
.single-einsatz .einsatz-sidebar-tools .ffw-pdf-download-count {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.ffw-pdf-button:hover,
.ffw-pdf-button:focus,
.ffw-pdf-button:focus-visible {
    color: #c80000 !important;
    background: #ffffff !important;
    border-color: #c80000 !important;
    text-decoration: none !important;
}

@media (max-width: 900px) {
    .single-einsatz .einsatz-sidebar-tools .ffw-article-tools {
        margin-top: 0.5rem;
    }
}

/* ==========================================================
   FFW v16: Mobile-Optimierung Einsätze
   Ziel: Desktop bleibt unverändert, mobile Einsatzansicht sauber stapeln
   ========================================================== */
@media (max-width: 768px) {
    body.single-einsatz .section,
    body.single-einsatz main,
    body.single-einsatz .container,
    body.single-einsatz .content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.single-einsatz article,
    body.single-einsatz .entry-content,
    body.single-einsatz .einsatz-layout,
    body.single-einsatz .einsatz-main,
    body.single-einsatz .einsatz-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-einsatz .entry-content {
        padding: 1rem !important;
        border-radius: 14px !important;
        overflow: visible !important;
    }

    body.single-einsatz .entry-title {
        font-size: clamp(1.45rem, 7vw, 2rem) !important;
        line-height: 1.15 !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.single-einsatz .entry-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: .25rem .45rem !important;
        line-height: 1.5 !important;
    }

    body.single-einsatz .entry-thumb {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 14px !important;
    }

    body.single-einsatz .entry-thumb img {
        height: auto !important;
        max-height: 260px !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    body.single-einsatz .einsatz-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    body.single-einsatz .einsatz-sidebar {
        order: -1 !important;
        padding: 1rem !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 22px rgba(0,0,0,.06) !important;
    }

    body.single-einsatz .einsatz-sidebar-tools {
        margin-bottom: .85rem !important;
    }

    body.single-einsatz .ffw-article-tools {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: .65rem !important;
        margin: 0 0 .9rem !important;
        padding: .75rem !important;
        border-radius: 12px !important;
    }

    body.single-einsatz .ffw-font-tools {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: .4rem !important;
    }

    body.single-einsatz .ffw-font-tools button {
        width: auto !important;
        min-width: 44px !important;
        flex: 0 0 auto !important;
        padding: .46rem .7rem !important;
    }

    body.single-einsatz .ffw-pdf-button {
        display: flex !important;
        width: 100% !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: .72rem 1rem !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    body.single-einsatz .ffw-pdf-button:hover,
    body.single-einsatz .ffw-pdf-button:focus {
        color: #c80000 !important;
        background: #ffffff !important;
        border-color: #c80000 !important;
    }

    body.single-einsatz .einsatz-details-list {
        padding-left: 0 !important;
        margin: .75rem 0 0 !important;
        list-style: none !important;
    }

    body.single-einsatz .einsatz-details-list li {
        display: block !important;
        padding: .62rem 0 !important;
        border-bottom: 1px solid rgba(0,0,0,.08) !important;
        line-height: 1.45 !important;
        overflow-wrap: anywhere !important;
    }

    body.single-einsatz .einsatz-details-list li:last-child {
        border-bottom: 0 !important;
    }

    body.single-einsatz .ffw-readable-text {
        margin-top: 0 !important;
        padding: 1.05rem !important;
        border-radius: 14px !important;
        font-size: 1rem !important;
        line-height: 1.68 !important;
        overflow-wrap: anywhere !important;
    }

    body.single-einsatz .ffw-readable-text::before {
        width: 58px !important;
        height: 58px !important;
        top: .65rem !important;
        right: .65rem !important;
        opacity: .08 !important;
    }

    body.single-einsatz .ffw-readable-text img,
    body.single-einsatz .einsatz-main img,
    body.single-einsatz .entry-content img {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 420px) {
    body.single-einsatz .entry-content {
        padding: .75rem !important;
    }

    body.single-einsatz .einsatz-sidebar,
    body.single-einsatz .ffw-readable-text {
        padding: .9rem !important;
    }

    body.single-einsatz .ffw-font-tools span {
        width: 100% !important;
        text-align: center !important;
    }
}


/* ==========================================================
   FFW v17: Mobile/Einsatzseite Fix
   Entfernt sichtbare PDF-Druckblöcke aus der normalen Ansicht und stabilisiert mobile Einsatzseiten.
   ========================================================== */
body.single-einsatz .ffw-pdf-report-cover {
    display: none !important;
    visibility: hidden !important;
}
body.single-einsatz:not(.ffw-print-view) .ffw-pdf-report-cover,
body.single-einsatz:not(.ffw-print-view) .ffw-pdf-report-cover * {
    display: none !important;
    visibility: hidden !important;
}
@media screen and (max-width: 768px) {
    body.single-einsatz .entry-header {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    body.single-einsatz .entry-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.single-einsatz .share-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: .45rem !important;
        align-items: center !important;
    }
}
