/* ============================================
   Freiwillige Feuerwehr Döhlau - Custom Design
   Consolidated & Clean v2.0
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --fwd-red: #eb4947;
  --fwd-red-dark: #e61c19;
  --fwd-red-light: #f07573;
  --fwd-bg: #edece8;
  --fwd-white: #f7f6f3;
  --fwd-text: #333333;
  --fwd-text-light: #666666;
  --fwd-border: #dddddd;
  --fwd-shadow: 0 0 20px rgba(0,0,0,0.1);
  --fwd-radius: 4px;
  --fwd-transition: all 0.3s ease;
}

/* ---- Global ---- */
body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--fwd-text);
  background-color: var(--fwd-bg);
  background-image: url("/wp-content/uploads/feuerwehrmann-hintergrund.png");
  background-repeat: no-repeat;
  background-size: auto;
  background-attachment: fixed;
  background-position: right bottom;
}

h1, h2, h3, h4, h5, h6 { font-family: "Open Sans", sans-serif; }
h1 { font-weight: 800; }
h2 { font-weight: 600; }
h3, h4 { font-weight: 400; }
h5, h6 { font-weight: 600; }

a {
  color: var(--fwd-red);
  transition: var(--fwd-transition);
}
a:hover { color: var(--fwd-red-dark); }

/* ---- Boxed Layout ---- */
.site {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--fwd-white);
  box-shadow: var(--fwd-shadow);
}

/* ---- Header ---- */
.site-header {
  background: var(--fwd-white);
  padding: 0.6rem 0;
  box-shadow: 0 3px 3px rgba(0,0,0,0.05);
}

.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 15px;
}

.site-header .custom-logo {
  max-height: 100px !important;
  width: auto;
}

.site-header .custom-logo-link {
  margin-right: 20px;
  flex-shrink: 0;
}

.site-header .header-image.is-logo-image {
  max-height: 105px;
  width: auto;
  height: auto;
}

/* Hide text title when logo is shown */
.site-logo + .site-branding {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.site-description { display: none; }

/* ---- Navigation ---- */
.main-navigation {
  background: var(--fwd-white);
  border-bottom: 1px solid var(--fwd-border);
  flex: 1;
  text-align: right;
}

.main-navigation .main-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.main-navigation .main-nav ul li a {
  color: var(--fwd-text) !important;
  font-weight: 400;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 14px !important;
  line-height: 100px;
  transition: var(--fwd-transition);
  white-space: nowrap;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
  color: var(--fwd-red) !important;
}

/* Dropdown */
.main-navigation .main-nav ul ul {
  background: var(--fwd-white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  border: none;
  min-width: 240px;
}

.main-navigation .main-nav ul ul li a {
  font-size: 13px !important;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.6;
  padding: 10px 20px !important;
}

.main-navigation .main-nav ul ul li a:hover {
  background: var(--fwd-red);
  color: var(--fwd-white) !important;
}

.menu-toggle {
  color: var(--fwd-text);
  font-size: 1.5rem;
  padding: 10px;
}

/* ---- Mobile Header & Navigation ---- */
@media (max-width: 768px) {
  .site-header {
    padding: 0.4rem 0;
    box-shadow: none;
  }
  .main-navigation {
    border-bottom: none !important;
  }
  .site-header .inside-header {
    padding: 5px 12px;
    justify-content: space-between;
  }
  .site-header .custom-logo {
    max-height: 70px !important;
  }
  .site-header .custom-logo-link {
    margin-right: auto;
    padding-left: 0;
  }
  .menu-toggle {
    margin-left: auto;
    align-self: flex-end;
    margin-bottom: 8px;
    background: transparent !important;
  }
  .main-navigation .main-nav ul li a {
    font-size: 13px !important;
    line-height: 2.8;
    padding: 5px 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .site-header .custom-logo {
    max-height: 60px !important;
  }
}

/* ---- Mobile Page Headings & Content Grids ---- */
@media (max-width: 768px) {
  .entry-content h1,
  .page .inside-article h1,
  .page .entry-header h1 {
    font-size: 1.8rem;
  }
  .entry-content h2,
  .page .inside-article h2 {
    font-size: 1.5rem;
  }
  /* Force inline 2-column grids to single column on mobile */
  .entry-content > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 480px) {
  .entry-content h1,
  .page .inside-article h1,
  .page .entry-header h1 {
    font-size: 1.5rem;
  }
  .entry-content h2,
  .page .inside-article h2 {
    font-size: 1.25rem;
  }
}

/* ---- Breadcrumbs ---- */
.fwd-breadcrumbs {
  background: var(--fwd-red);
  padding: 12px 0;
  font-size: 0.85rem;
}

.fwd-breadcrumbs,
.fwd-breadcrumbs a,
.fwd-breadcrumbs span {
  color: var(--fwd-white) !important;
}

.fwd-breadcrumbs a:hover {
  color: rgba(255,255,255,0.8) !important;
}

#breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Content ---- */
.site-content { background: var(--fwd-white); }

.site-content .content-area { padding: 20px; }

.entry-title { color: var(--fwd-text); }
.entry-title a { color: var(--fwd-text); }
.entry-title a:hover { color: var(--fwd-red); }

/* ---- Hero Section (Homepage) ---- */
.fwd-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--fwd-white);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fwd-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("/wp-content/uploads/feuerwehrmann-hintergrund.png") center center / cover no-repeat;
  opacity: 0.15;
}

.fwd-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(15,52,96,0.88) 100%);
  z-index: 1;
}

.fwd-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.fwd-hero-logo { margin-bottom: 15px; }

.fwd-hero-wappen {
  max-height: 100px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.fwd-hero .fwd-hero-badge {
  display: inline-block;
  background: var(--fwd-red);
  color: var(--fwd-white);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.fwd-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--fwd-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fwd-hero .fwd-hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.fwd-hero-desc {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.85;
  line-height: 1.7;
}

.fwd-hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Stats Bar (Homepage) ---- */
.fwd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--fwd-red);
  color: var(--fwd-white);
  text-align: center;
}

.fwd-stat-item {
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.fwd-stat-item:last-child { border-right: none; }

.fwd-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.fwd-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ---- Quick Access Cards (Homepage) ---- */
.fwd-quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.fwd-quick-card {
  background: var(--fwd-white);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: var(--fwd-transition);
  border: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--fwd-text);
  display: block;
}

.fwd-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  color: var(--fwd-text);
}

.fwd-quick-card .fwd-card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.fwd-quick-card h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--fwd-text);
}

.fwd-quick-card p {
  color: var(--fwd-text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Section Titles ---- */
.fwd-section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.fwd-section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fwd-text);
}

.fwd-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--fwd-red);
  margin: 15px auto 0;
  border-radius: 2px;
}

.fwd-section-subtitle {
  text-align: center;
  color: var(--fwd-text-light);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ---- Einsatz Cards ---- */
.fwd-einsatz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.fwd-einsatz-card {
  background: var(--fwd-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: var(--fwd-transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.fwd-einsatz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.fwd-einsatz-card .fwd-card-header {
  background: var(--fwd-red);
  color: var(--fwd-white);
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fwd-einsatz-card .fwd-card-body {
  padding: 20px;
}

.fwd-einsatz-card .fwd-card-body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.fwd-einsatz-card .fwd-card-body h2 a {
  color: var(--fwd-text);
  text-decoration: none;
}

.fwd-einsatz-card .fwd-card-body h2 a:hover { color: var(--fwd-red); }

.fwd-einsatz-card .fwd-card-excerpt {
  color: var(--fwd-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.fwd-einsatz-card .fwd-card-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fwd-einsatz-card .fwd-read-more {
  color: var(--fwd-red);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fwd-einsatz-card .fwd-read-more:hover { color: var(--fwd-red-dark); }

/* ---- Einsaetze section background ---- */
.fwd-section-einsaetze {
  background: #fafafa;
  padding: 50px 20px;
  max-width: 100%;
}

.fwd-section-einsaetze .fwd-einsatz-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.fwd-btn {
  display: inline-block;
  background: var(--fwd-red);
  color: var(--fwd-white);
  padding: 12px 28px;
  border-radius: var(--fwd-radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--fwd-transition);
  border: 2px solid var(--fwd-red);
}

.fwd-btn:hover {
  background: var(--fwd-red-dark);
  border-color: var(--fwd-red-dark);
  color: var(--fwd-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(235,73,71,0.3);
}

.fwd-btn-outline {
  background: transparent;
  color: var(--fwd-white);
  border: 2px solid var(--fwd-white);
}

.fwd-btn-outline:hover {
  background: var(--fwd-white);
  color: var(--fwd-red);
}

/* ---- CTA Section ---- */
.fwd-cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 60px 40px;
  text-align: center;
}

.fwd-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.fwd-cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}

.fwd-cta-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 30px;
}

.fwd-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Homepage Content Section ---- */
.fwd-homepage-content { padding: 40px 20px; }

.fwd-homepage-content .entry-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- Homepage Full-Width Sections ---- */
body.home .site {
  max-width: 100%;
  box-shadow: none;
  overflow-x: hidden;
}

body.home .site-content { display: block !important; padding: 0; }
body.home .site.grid-container { overflow: visible; overflow-x: hidden; }
body.home .inside-article { padding: 0; }
body.home .content-area { padding: 0; width: 100%; }
body.home #primary { margin: 0; padding: 0; }

.home .fwd-hero,
.home .fwd-stats,
.home .fwd-section,
.home .fwd-section-einsaetze,
.home .fwd-cta-section,
.home .fwd-homepage-content {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

/* ---- Category Archive ---- */
body.archive .page-header {
  background: var(--fwd-red) !important;
  color: #fff !important;
  padding: 20px !important;
  border-radius: var(--fwd-radius);
  margin-bottom: 30px;
}

body.archive .page-header .page-title { color: #fff !important; margin: 0; }

body.archive .page-header .archive-description {
  color: rgba(255,255,255,0.9) !important;
  margin: 5px 0 0;
}

/* ---- Single Post ---- */
.single .entry-header {
  border-bottom: 3px solid var(--fwd-red);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.single .entry-meta {
  color: var(--fwd-text-light);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.single .entry-content img {
  border-radius: var(--fwd-radius);
  max-width: 100%;
  height: auto;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--fwd-red) !important;
  color: var(--fwd-white);
  padding: 0 !important;
  margin-top: 0 !important;
}

.inside-site-info { display: none; }

.fwd-footer-top {
  background: #f5f5f5;
  color: var(--fwd-text);
  padding: 40px 20px;
}

.fwd-footer-top a { color: var(--fwd-text); }
.fwd-footer-top a:hover { color: var(--fwd-red); }

.fwd-footer-top h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--fwd-text);
}

.fwd-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.fwd-footer-col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.fwd-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fwd-footer-links li { padding: 4px 0; }
.fwd-footer-links li a { text-decoration: none; }

.fwd-footer-bottom {
  background: var(--fwd-red);
  color: var(--fwd-white);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
}

.fwd-footer-bottom a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.fwd-footer-bottom a:hover { color: var(--fwd-white); }

/* ---- Sidebar / Widgets ---- */
.widget {
  border: 1px solid var(--fwd-border);
  margin-bottom: 1.5rem;
  background: var(--fwd-white);
  border-radius: var(--fwd-radius);
  overflow: hidden;
}

.widget .widget-title {
  background: #f5f5f5;
  color: var(--fwd-text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--fwd-border);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

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

.widget ul li {
  padding: 8px 16px;
  border-bottom: 1px solid #f5f5f5;
}

.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--fwd-text); text-decoration: none; }
.widget ul li a:hover { color: var(--fwd-red); }

/* ---- Pagination ---- */
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid var(--fwd-border);
  border-radius: var(--fwd-radius);
  color: var(--fwd-text);
  text-decoration: none;
  transition: var(--fwd-transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--fwd-red);
  border-color: var(--fwd-red);
  color: var(--fwd-white);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

/* ---- Gallery ---- */
.fwd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  padding: 20px 0;
}

.fwd-gallery-item {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.fwd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* ---- Back to Top ---- */
.fwd-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--fwd-red);
  color: var(--fwd-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: var(--fwd-transition);
  z-index: 999;
}

.fwd-back-to-top.visible { opacity: 1; visibility: visible; }

.fwd-back-to-top:hover {
  background: var(--fwd-red-dark);
  color: var(--fwd-white);
  transform: translateY(-3px);
}

/* ---- Einsätze Archive Page ---- */

/* Hide default GeneratePress page-header on Einsätze category */
body.category-einsaetze .page-header { display: none !important; }

/* Hide body background image on Einsätze page */
body.category-einsaetze {
  background-image: none !important;
  background-color: var(--fwd-bg);
}

/* Make content area full-width on Einsätze category */
body.category-einsaetze .site-content .content-area {
  width: 100% !important;
  padding: 0 !important;
}

/* Hide GeneratePress sidebar on Einsätze category (we have our own) */
body.category-einsaetze #right-sidebar,
body.category-einsaetze #left-sidebar { display: none !important; }

/* Ensure site-content is full-width block */
body.category-einsaetze .site-content {
  display: block !important;
}

body.category-einsaetze .inside-article { padding: 0; }

.fwd-einsaetze-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 50px 30px;
  text-align: center;
}

.fwd-einsaetze-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.fwd-einsaetze-hero .fwd-einsaetze-hero-content > p {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0 0 25px;
}

.fwd-einsaetze-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.fwd-einsaetze-stat {
  text-align: center;
}

.fwd-einsaetze-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.fwd-einsaetze-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}

.fwd-einsaetze-page {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  background: var(--fwd-white);
}

.fwd-einsaetze-main .fwd-einsatz-grid {
  grid-template-columns: 1fr;
}

.fwd-einsaetze-pagination {
  margin-top: 30px;
  text-align: center;
}

.fwd-sidebar-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.fwd-sidebar-card-header {
  background: #333;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.fwd-sidebar-card-body {
  padding: 16px;
}

.fwd-einsatzart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #555;
}

.fwd-einsatzart-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fwd-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fwd-sidebar-links li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.fwd-sidebar-links li:last-child { border-bottom: none; }

.fwd-sidebar-links li a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

.fwd-sidebar-links li a:hover { color: var(--fwd-red); }

@media (max-width: 768px) {
  .fwd-einsaetze-page {
    grid-template-columns: 1fr;
  }
  .fwd-einsaetze-stats { gap: 20px; }
}

/* ---- General Archive Page (News, Jugendfeuerwehr, etc.) ---- */

/* Override GeneratePress defaults on archive pages */
body.archive .page-header { display: none !important; }

body.archive .site-content .content-area {
  width: 100% !important;
  padding: 0 !important;
}

body.archive #right-sidebar,
body.archive #left-sidebar { display: none !important; }

body.archive .site-content { display: block !important; }
body.archive .inside-article { padding: 0; }

body.archive {
  background-image: none !important;
  background-color: var(--fwd-bg);
}

.fwd-archive-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 45px 30px;
  text-align: center;
}

.fwd-archive-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.fwd-archive-hero .fwd-archive-hero-content > p {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0 0 20px;
}

.fwd-archive-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.fwd-archive-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 8px 20px;
  border-radius: 30px;
}

.fwd-archive-count-num {
  font-size: 1.3rem;
  font-weight: 800;
}

.fwd-archive-count-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.fwd-archive-page {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  background: var(--fwd-white);
}

.fwd-archive-pagination {
  margin-top: 30px;
  text-align: center;
}

/* News Card Style */
.fwd-news-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fwd-news-card {
  display: flex;
  background: var(--fwd-white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--fwd-transition);
}

.fwd-news-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.fwd-news-card-date {
  background: var(--fwd-red);
  color: #fff;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  flex-shrink: 0;
}

.fwd-news-day {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.fwd-news-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.fwd-news-year {
  font-size: 0.7rem;
  opacity: 0.7;
}

.fwd-news-card-content {
  padding: 18px 20px;
  flex: 1;
}

.fwd-news-card-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
}

.fwd-news-card-content h2 a {
  color: var(--fwd-text);
  text-decoration: none;
}

.fwd-news-card-content h2 a:hover { color: var(--fwd-red); }

.fwd-news-excerpt {
  color: var(--fwd-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .fwd-archive-page {
    grid-template-columns: 1fr;
  }
  .fwd-news-card-date { min-width: 65px; padding: 12px 8px; }
  .fwd-news-day { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .fwd-news-card {
    flex-direction: column;
  }
  .fwd-news-card-date {
    flex-direction: row;
    gap: 8px;
    padding: 10px 16px;
  }
}

/* ---- Single Post Page (General - non-Einsatz) ---- */

body.single-post .site-content .content-area {
  width: 100% !important;
  padding: 0 !important;
}

body.single-post #right-sidebar,
body.single-post #left-sidebar { display: none !important; }

body.single-post .site-content { display: block !important; }
body.single-post .inside-article { padding: 0; }

body.single-post {
  background-image: none !important;
  background-color: var(--fwd-bg);
}

.fwd-single-post {
  max-width: 900px;
  margin: 0 auto;
  background: var(--fwd-white);
}

.fwd-post-detail-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 40px 30px;
  text-align: center;
}

.fwd-post-cat-badge {
  display: inline-block;
  background: var(--fwd-red);
  color: #fff !important;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-decoration: none;
}

.fwd-post-cat-badge:hover {
  background: var(--fwd-red-dark);
  color: #fff !important;
}

.fwd-post-detail-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}

.fwd-post-meta {
  font-size: 0.95rem;
  opacity: 0.8;
}

.fwd-post-detail-content {
  padding: 30px;
}

.fwd-post-detail-content .entry-content {
  line-height: 1.8;
  font-size: 1rem;
  color: var(--fwd-text);
}

.fwd-post-detail-content .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
}

.fwd-post-detail-content .entry-content img[style*="float"],
.fwd-post-detail-content .entry-content img.alignleft {
  margin: 5px 20px 15px 0;
  max-width: 50%;
}

.fwd-post-detail-content .entry-content img[style*="float"][style*="right"],
.fwd-post-detail-content .entry-content img.alignright {
  margin: 5px 0 15px 20px;
  max-width: 50%;
}

.fwd-post-detail-content .entry-content img.aligncenter {
  display: block;
  margin: 20px auto;
}

.fwd-post-detail-content .entry-content img.alignnone {
  display: block;
  margin: 15px 0;
}

.fwd-post-detail-content .entry-content p {
  margin-bottom: 1em;
}

.fwd-post-detail-footer {
  padding: 20px 30px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid #eee;
}

.fwd-post-nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .fwd-post-detail-header { padding: 25px 20px; }
  .fwd-post-detail-header h1 { font-size: 1.4rem; }
  .fwd-post-detail-content { padding: 20px; }
  .fwd-post-detail-footer { padding: 15px 20px 20px; }
}

/* ---- Single Einsatz Detail Page ---- */

/* Einsatz-specific styles (layout overrides inherited from general single-post above) */
.fwd-single-einsatz {
  max-width: 900px;
  margin: 0 auto;
  background: var(--fwd-white);
}

.fwd-einsatz-detail-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 40px 30px;
  text-align: center;
}

.fwd-einsatz-badge {
  display: inline-block;
  background: var(--fwd-red);
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.fwd-einsatz-detail-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}

.fwd-einsatz-meta {
  font-size: 0.95rem;
  opacity: 0.8;
}

.fwd-einsatz-detail-content {
  padding: 30px;
}

.fwd-einsatz-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.fwd-einsatz-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--fwd-red);
}

.fwd-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.fwd-info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fwd-text-light);
  margin-bottom: 2px;
}

.fwd-info-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fwd-text);
}

.fwd-einsatz-bericht {
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--fwd-text);
}

.fwd-einsatz-bericht h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fwd-red);
  display: inline-block;
}

.fwd-einsatz-weitere {
  background: #f8f9fa;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 25px;
  border-left: 3px solid #f0ad4e;
}

.fwd-einsatz-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.fwd-einsatz-detail-footer {
  padding: 20px 30px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid #eee;
}

.fwd-einsatz-nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.fwd-nav-link {
  color: var(--fwd-text-light);
  text-decoration: none;
  font-size: 0.85rem;
}

.fwd-nav-link:hover { color: var(--fwd-red); }

@media (max-width: 600px) {
  .fwd-einsatz-info-grid {
    grid-template-columns: 1fr;
  }
  .fwd-einsatz-detail-header { padding: 25px 20px; }
  .fwd-einsatz-detail-header h1 { font-size: 1.4rem; }
  .fwd-einsatz-detail-content { padding: 20px; }
  .fwd-einsatz-detail-footer { padding: 15px 20px 20px; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fwd-animate {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.fwd-animate-delay-1 { animation-delay: 0.1s; }
.fwd-animate-delay-2 { animation-delay: 0.2s; }
.fwd-animate-delay-3 { animation-delay: 0.3s; }
.fwd-animate-delay-4 { animation-delay: 0.4s; }

/* ---- Responsive Tables (Pages like Termine) ---- */
@media (max-width: 600px) {
  .entry-content table,
  .fwd-post-detail-content table {
    display: block;
    width: 100% !important;
  }
  .entry-content table thead,
  .fwd-post-detail-content table thead {
    display: none;
  }
  .entry-content table tbody,
  .entry-content table tr,
  .fwd-post-detail-content table tbody,
  .fwd-post-detail-content table tr {
    display: block;
    width: 100%;
  }
  .entry-content table tr,
  .fwd-post-detail-content table tr {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff !important;
  }
  .entry-content table td,
  .fwd-post-detail-content table td {
    display: block;
    padding: 8px 12px !important;
    border-bottom: 1px solid #f0f0f0;
    text-align: left !important;
  }
  .entry-content table td:last-child,
  .fwd-post-detail-content table td:last-child {
    border-bottom: none;
  }
  .entry-content table td:first-child,
  .fwd-post-detail-content table td:first-child {
    background: #f8f9fa;
    font-weight: 600;
  }
}

/* ---- Gallery Page ---- */

body.page-template-page-galerie .site-content .content-area {
  width: 100% !important;
  padding: 0 !important;
}
body.page-template-page-galerie #right-sidebar,
body.page-template-page-galerie #left-sidebar { display: none !important; }
body.page-template-page-galerie .site-content { display: block !important; }
body.page-template-page-galerie .inside-article { padding: 0; }
body.page-template-page-galerie {
  background-image: none !important;
  background-color: var(--fwd-bg);
}
body.page-template-page-galerie .page-header { display: none !important; }

.fwd-gallery-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 45px 30px;
  text-align: center;
}
.fwd-gallery-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.fwd-gallery-hero p {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0 0 15px;
}
.fwd-gallery-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}
.fwd-gallery-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
}
.fwd-gallery-stat strong {
  font-weight: 800;
}
.fwd-gallery-stat-sep { opacity: 0.5; }

.fwd-gallery-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  background: var(--fwd-white);
}

/* Filter Buttons */
.fwd-gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  justify-content: center;
}
.fwd-filter-btn {
  background: #f0f0f0;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--fwd-transition);
  font-family: inherit;
}
.fwd-filter-btn:hover { background: #ddd; }
.fwd-filter-btn.active {
  background: var(--fwd-red);
  color: #fff;
}

/* Album Cards Grid */
.fwd-album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.fwd-album-card {
  background: var(--fwd-white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fwd-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--fwd-transition);
}
.fwd-album-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  color: var(--fwd-text);
}
.fwd-album-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.fwd-album-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fwd-album-card:hover .fwd-album-card-img img {
  transform: scale(1.05);
}
.fwd-album-card-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.fwd-album-card-info {
  padding: 14px 16px;
}
.fwd-album-card-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fwd-text-light);
}
.fwd-album-card-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Single Album View */
.fwd-album-header {
  margin-bottom: 25px;
}
.fwd-album-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 15px 0 5px;
}
.fwd-album-meta {
  color: var(--fwd-text-light);
  font-size: 0.9rem;
}
.fwd-btn-sm {
  display: inline-block;
  background: var(--fwd-bg);
  color: var(--fwd-text) !important;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}
.fwd-btn-sm:hover {
  background: var(--fwd-red);
  color: #fff !important;
}

/* Album Image Grid */
.fwd-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.fwd-album-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}
.fwd-album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.fwd-album-thumb:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.fwd-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
}
.fwd-lightbox.active { display: flex; align-items: center; justify-content: center; }
.fwd-lightbox-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
}
.fwd-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  z-index: 2;
  text-align: center;
}
.fwd-lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.fwd-lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 10px;
}
.fwd-lightbox-close,
.fwd-lightbox-prev,
.fwd-lightbox-next {
  position: absolute;
  z-index: 3;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  padding: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.fwd-lightbox-close:hover,
.fwd-lightbox-prev:hover,
.fwd-lightbox-next:hover { opacity: 1; }
.fwd-lightbox-close { top: 15px; right: 20px; font-size: 2rem; }
.fwd-lightbox-prev { left: 15px; top: 50%; transform: translateY(-50%); }
.fwd-lightbox-next { right: 15px; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
  .fwd-album-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .fwd-album-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .fwd-lightbox-prev { left: 5px; }
  .fwd-lightbox-next { right: 5px; }
}

@media (max-width: 480px) {
  .fwd-album-cards { grid-template-columns: 1fr; }
  .fwd-album-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 768px) {
  .fwd-hero { padding: 50px 20px; min-height: 400px; }
  .fwd-hero h1 { font-size: 1.8rem; }

  .fwd-quick-access {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 15px;
  }
  .fwd-quick-card { padding: 20px 16px; }

  .fwd-einsatz-grid { grid-template-columns: 1fr; }

  .fwd-stats { grid-template-columns: 1fr 1fr; }
  .fwd-stat-item { padding: 20px 15px; }
  .fwd-stat-item:nth-child(2) { border-right: none; }

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

  .fwd-cta-section { padding: 40px 20px; }
  .fwd-cta-content h2 { font-size: 1.5rem; }
}

/* ---- Responsive: Phone ---- */
@media (max-width: 480px) {
  .fwd-hero h1 { font-size: 1.5rem; }
  .fwd-quick-access { grid-template-columns: 1fr; }
  .fwd-stats { grid-template-columns: 1fr; }
  .fwd-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
}

/* ---- Print ---- */
@media print {
  .fwd-hero, .fwd-back-to-top, .main-navigation, .site-footer { display: none; }
  body { background: white; }
  .site { box-shadow: none; max-width: 100%; }
}
