/*
Theme Name: Feuerwehr Wolfurt
Theme URI: https://feuerwehr.wolfurt.at
Author: Feuerwehr Wolfurt
Author URI: https://feuerwehr.wolfurt.at
Description: Offizielles WordPress Theme der Feuerwehr Wolfurt – Vorarlberg. Entwickelt für Einsatzberichte, Tätigkeiten, Mannschaft und Ausrüstung.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: feuerwehr-wolfurt
Tags: fire-department, emergency, news, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, post-formats, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --fw-red:        #CC1A1A;
  --fw-red-dark:   #9E0E0E;
  --fw-red-light:  #E8302D;
  --fw-gold:       #E8A020;
  --fw-gold-light: #F5C040;

  /* Neutrals */
  --fw-black:      #0A0A0A;
  --fw-dark:       #141414;
  --fw-dark-2:     #1C1C1C;
  --fw-dark-3:     #252525;
  --fw-dark-4:     #2E2E2E;
  --fw-gray-dark:  #444444;
  --fw-gray:       #888888;
  --fw-gray-light: #BBBBBB;
  --fw-border:     #333333;
  --fw-off-white:  #F5F3F0;
  --fw-white:      #FFFFFF;

  /* Category Colors */
  --cat-einsatz:   #CC1A1A;
  --cat-uebung:    #1A6FCC;
  --cat-jugend:    #22AA55;
  --cat-veranst:   #CC8800;
  --cat-mannschaft:#7722CC;
  --cat-ausruestung:#448833;

  /* Typography */
  --font-display:  'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body:     'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container-max: 1200px;
  --sidebar-width: 320px;
  --header-height: 70px;
  --topbar-height: 40px;

  /* Effects */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.6);
  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:   12px;
  --transition:  0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fw-dark);
  background: var(--fw-off-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fw-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--fw-red-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--fw-dark);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  padding: var(--space-2xl) 0;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 968px) {
  .content-area {
    grid-template-columns: 1fr;
  }
  .sidebar { order: 2; }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--fw-dark);
  border-bottom: 1px solid var(--fw-border);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-notruf {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.notruf-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fw-gray-light);
}

.notruf-number {
  background: var(--fw-red);
  color: var(--fw-white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  min-width: 36px;
  text-align: center;
}

.notruf-number.police { background: #1A5FCC; }
.notruf-number.rescue { background: #CC7700; }

.topbar-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--fw-gray);
  transition: all var(--transition);
}

.topbar-social a:hover { background: var(--fw-red); color: var(--fw-white); }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--fw-dark-2);
  border-bottom: 3px solid var(--fw-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: var(--space-xl);
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

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

.site-title-group {}

.site-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fw-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.site-tagline {
  font-size: 0.65rem;
  color: var(--fw-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Navigation */
.main-navigation {
  flex: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  height: var(--header-height);
}

.nav-menu > li {
  position: relative;
  height: 100%;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fw-gray-light);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fw-red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--fw-white);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* Dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--fw-dark-3);
  border-top: 2px solid var(--fw-red);
  border-bottom: 2px solid var(--fw-red);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.sub-menu li a {
  display: block;
  padding: 0.6rem var(--space-lg);
  font-size: 0.8rem;
  color: var(--fw-gray-light);
  border-bottom: 1px solid var(--fw-border);
  transition: all var(--transition);
}

.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: var(--fw-red); color: var(--fw-white); padding-left: var(--space-xl); }

/* Nested sub-menu */
.sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: 2px solid var(--fw-red);
}

.sub-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  margin-left: auto;
  color: var(--fw-white);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fw-white);
  transition: all var(--transition);
}

/* Header search */
.header-search {
  flex-shrink: 0;
}

.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--fw-gray);
  border: 1px solid var(--fw-border);
  transition: all var(--transition);
}

.header-search-btn:hover { border-color: var(--fw-red); color: var(--fw-red); }
.header-search-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ============================================================
   HERO / FEATURED
   ============================================================ */
.hero-section {
  background: var(--fw-dark-2);
  border-bottom: 3px solid var(--fw-red);
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 80% 50%, rgba(204,26,26,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(204,26,26,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 380px;
}

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

.hero-featured {
  position: relative;
  overflow: hidden;
}

.hero-featured a { display: block; height: 100%; }

.hero-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform 0.4s ease;
}

.hero-featured:hover .hero-featured-img { transform: scale(1.03); }

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--fw-red);
  color: var(--fw-white);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.hero-title {
  color: var(--fw-white);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  margin-bottom: var(--space-sm);
}

.hero-title a { color: inherit; }

.hero-meta {
  font-size: 0.75rem;
  color: var(--fw-gray-light);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--fw-border);
  overflow: hidden;
}

.hero-secondary-item {
  flex: 1;
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--fw-border);
  transition: background var(--transition);
  text-decoration: none;
}

.hero-secondary-item:last-child { border-bottom: none; }
.hero-secondary-item:hover { background: rgba(204,26,26,0.08); }

.hero-secondary-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--fw-dark-4);
}

.hero-secondary-info {}

.hero-secondary-cat {
  font-size: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-red);
  margin-bottom: 4px;
}

.hero-secondary-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fw-white);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-secondary-date {
  font-size: 0.7rem;
  color: var(--fw-gray);
  font-family: var(--font-display);
}

/* ============================================================
   POST CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.post-card {
  background: var(--fw-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid #E0DEDA;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--fw-dark-4);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-cat {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--fw-red);
  color: var(--fw-white);
}

.post-card-cat.cat-uebung    { background: var(--cat-uebung); }
.post-card-cat.cat-jugend    { background: var(--cat-jugend); }
.post-card-cat.cat-veranst   { background: var(--cat-veranst); }
.post-card-cat.cat-mannschaft{ background: var(--cat-mannschaft); }

.post-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  color: var(--fw-gray);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.post-card-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fw-red); }

.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fw-dark);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--fw-red); }

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--fw-gray-dark);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid #E0DEDA;
  margin-top: auto;
}

.read-more-link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fw-red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.read-more-link:hover { gap: 8px; color: var(--fw-red-dark); }
.read-more-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; }

.post-card-comments {
  font-size: 0.72rem;
  color: var(--fw-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* List variant */
.post-list-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid #E0DEDA;
  text-decoration: none;
}

.post-list-item:first-child { padding-top: 0; }
.post-list-item:last-child { border-bottom: none; }

.post-list-thumb {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--fw-dark-4);
}

.post-list-body {}

.post-list-cat {
  font-size: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-red);
  margin-bottom: 3px;
}

.post-list-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fw-dark);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-item:hover .post-list-title { color: var(--fw-red); }

.post-list-date {
  font-size: 0.7rem;
  color: var(--fw-gray);
  font-family: var(--font-display);
}

/* ============================================================
   EINSATZ BADGE
   ============================================================ */
.einsatz-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--fw-red);
  color: var(--fw-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
}

.einsatz-badge .nr {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.einsatz-badge .label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.widget {
  background: var(--fw-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E0DEDA;
}

.widget-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--fw-dark-2);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-white);
  margin: 0;
}

.widget-icon {
  width: 16px;
  height: 16px;
  fill: var(--fw-red);
  flex-shrink: 0;
}

.widget-body {
  padding: var(--space-lg);
}

/* Notruf Widget */
.notruf-widget-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.notruf-widget-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--fw-off-white);
  border-radius: var(--radius-sm);
  border: 1px solid #E0DEDA;
}

.notruf-widget-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fw-red);
  line-height: 1;
}

.notruf-widget-number.police { color: #1A5FCC; }
.notruf-widget-number.rescue { color: #CC7700; }
.notruf-widget-number.mountain { color: #22AA55; }

.notruf-widget-label {
  font-size: 0.75rem;
  color: var(--fw-gray-dark);
  font-weight: 600;
  text-align: right;
}

.notruf-cta {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(204,26,26,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(204,26,26,0.2);
  font-size: 0.75rem;
  color: var(--fw-gray-dark);
  text-align: center;
}

/* Telegram Widget */
.telegram-widget {
  text-align: center;
}

.telegram-widget img { width: 100%; border-radius: var(--radius-sm); margin-bottom: var(--space-md); }

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: #229ED9;
  color: var(--fw-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--transition);
  text-decoration: none;
}

.telegram-link:hover { background: #1A8EC0; color: var(--fw-white); }

/* Recent posts sidebar */
.widget-recent-posts {}

/* Category list */
.cat-list { display: flex; flex-direction: column; }

.cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #E0DEDA;
  text-decoration: none;
}

.cat-list-item:last-child { border-bottom: none; }

.cat-list-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--fw-dark);
  font-weight: 500;
}

.cat-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fw-red);
  flex-shrink: 0;
}

.cat-list-count {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fw-gray);
  background: var(--fw-off-white);
  padding: 2px 7px;
  border-radius: 10px;
}

.cat-list-item:hover .cat-list-name { color: var(--fw-red); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--fw-border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-dark);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title-bar {
  width: 3px;
  height: 1em;
  background: var(--fw-red);
  border-radius: 1px;
  margin-right: 2px;
}

.section-more {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fw-red);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-header {
  background: var(--fw-dark-2);
  padding: var(--space-2xl) 0;
  border-bottom: 3px solid var(--fw-red);
  margin-bottom: var(--space-2xl);
}

.single-post-header-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fw-gray);
}

.single-breadcrumb a { color: var(--fw-gray); }
.single-breadcrumb a:hover { color: var(--fw-white); }
.single-breadcrumb span { color: var(--fw-red); }

.single-post-title {
  color: var(--fw-white);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  max-width: 780px;
  line-height: 1.2;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--fw-gray-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single-post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.single-post-meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--fw-red); }

/* Featured image */
.single-featured {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

/* Post content */
.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fw-dark);
  max-width: 720px;
}

.entry-content p { margin-bottom: var(--space-lg); }
.entry-content h2, .entry-content h3 { margin: var(--space-xl) 0 var(--space-md); }

.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: var(--space-sm); }

.entry-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

.entry-content a { color: var(--fw-red); text-decoration: underline; }

.entry-content blockquote {
  border-left: 4px solid var(--fw-red);
  padding: var(--space-md) var(--space-xl);
  background: var(--fw-off-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--fw-gray-dark);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fw-dark);
  border: 1px solid #E0DEDA;
  background: var(--fw-white);
  transition: all var(--transition);
  text-decoration: none;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--fw-dark);
  border-top: 3px solid var(--fw-red);
  color: var(--fw-gray-light);
}

.footer-main {
  padding: var(--space-3xl) 0 var(--space-2xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  text-decoration: none;
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0.9);
}

.footer-logo-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fw-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--fw-gray);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--fw-dark-3);
  color: var(--fw-gray);
  border: 1px solid var(--fw-border);
  transition: all var(--transition);
}

.footer-social a:hover { background: var(--fw-red); color: var(--fw-white); border-color: var(--fw-red); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-white);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--fw-border);
}

.footer-nav { display: flex; flex-direction: column; gap: 6px; }

.footer-nav a {
  font-size: 0.82rem;
  color: var(--fw-gray);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-nav a::before {
  content: '›';
  color: var(--fw-red);
  font-weight: 700;
}

.footer-nav a:hover { color: var(--fw-white); }

.footer-bottom {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--fw-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--fw-gray);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--fw-gray);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--fw-white); }

/* ============================================================
   BUTTONS – Pill-Style, luftig, nicht gequetscht
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition);
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.25;
  min-height: 44px;
}

.btn-primary {
  background: var(--fw-red);
  color: var(--fw-white);
  border: 2px solid var(--fw-red);
}

.btn-primary:hover {
  background: var(--fw-red-dark);
  border-color: var(--fw-red-dark);
  color: var(--fw-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(204,26,26,0.35);
}

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

.btn-outline:hover {
  background: var(--fw-red);
  color: var(--fw-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(204,26,26,0.25);
}

/* Button group (mehrere Buttons nebeneinander) */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 1.5rem 0;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: var(--space-sm);
}

.search-field {
  flex: 1;
  padding: 0.6rem var(--space-md);
  border: 1px solid #E0DEDA;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  background: var(--fw-off-white);
  transition: border-color var(--transition);
}

.search-field:focus { border-color: var(--fw-red); background: var(--fw-white); }

.search-submit {
  padding: 0.6rem var(--space-md);
  background: var(--fw-red);
  color: var(--fw-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.search-submit:hover { background: var(--fw-red-dark); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 968px) {
  .topbar .notruf-item:nth-child(n+3) { display: none; }

  .main-navigation { display: none; }
  .main-navigation.is-open { display: block; }

  .menu-toggle { display: flex; }

  .site-header .header-inner { flex-wrap: wrap; }

  .main-navigation.is-open {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fw-dark-2);
    overflow-y: auto;
    padding: var(--space-lg);
    z-index: 999;
  }

  .main-navigation.is-open .nav-menu {
    flex-direction: column;
    height: auto;
    gap: 0;
    align-items: stretch;
  }

  .main-navigation.is-open .nav-menu > li { height: auto; }
  .main-navigation.is-open .nav-menu > li > a { padding: var(--space-md) 0; border-bottom: 1px solid var(--fw-border); }
  .main-navigation.is-open .nav-menu > li > a::after { display: none; }

  .main-navigation.is-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: var(--space-lg);
    display: none;
  }

  .main-navigation.is-open .sub-menu.is-open { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-secondary { border-left: none; border-top: 1px solid var(--fw-border); }
  .posts-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GALLERY – WordPress [gallery] + Block Editor + WPBakery
   ============================================================ */

/* ── Classic [gallery] shortcode ─────────────────────────── */
.gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: var(--space-sm) !important;
  margin: var(--space-xl) 0 !important;
}

.gallery .gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  background: var(--fw-dark-4);
  position: relative;
}

/* Override WordPress default float/table layout */
.gallery-columns-2 .gallery-item { width: auto !important; float: none !important; }
.gallery-columns-3 .gallery-item { width: auto !important; float: none !important; }
.gallery-columns-4 .gallery-item { width: auto !important; float: none !important; }
.gallery-columns-6 .gallery-item { width: auto !important; float: none !important; }
.gallery-columns-9 .gallery-item { width: auto !important; float: none !important; }

.gallery-item a {
  display: block;
  height: 100%;
  width: 100%;
}

.gallery-item img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: var(--radius-sm) !important;
  transition: transform 0.35s ease !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.gallery-item:hover img { transform: scale(1.06) !important; }

/* Lightbox cursor hint */
.gallery-item a,
.entry-content a:has(img),
.wp-block-image a,
.blocks-gallery-item a,
.vc_single_image-wrapper a {
  cursor: zoom-in;
}

/* Caption below gallery items */
.gallery-caption,
.wp-caption-text {
  font-size: 0.75rem !important;
  color: var(--fw-gray) !important;
  text-align: center !important;
  padding: 4px 6px !important;
  line-height: 1.4 !important;
}

/* ── Block Editor gallery ─────────────────────────────────── */
.wp-block-gallery,
.wp-block-gallery .blocks-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: var(--space-sm) !important;
  margin: var(--space-xl) 0 !important;
}

.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery li {
  margin: 0 !important;
  display: block !important;
}

.wp-block-gallery figure { margin: 0 !important; }

.wp-block-gallery img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: var(--radius-sm) !important;
  transition: transform 0.35s ease !important;
}

.wp-block-gallery .blocks-gallery-item:hover img { transform: scale(1.06) !important; }

/* ── Block Editor single image ───────────────────────────── */
.wp-block-image {
  margin: var(--space-xl) 0 !important;
}

.wp-block-image img {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ── WPBakery single_image ───────────────────────────────── */
.vc_single_image-wrapper {
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: block;
}

.vc_single_image-wrapper img {
  transition: transform 0.35s ease !important;
}

.vc_single_image-wrapper:hover img { transform: scale(1.05) !important; }

/* ── Content images (not in gallery) ─────────────────────── */
.entry-content img:not(.emoji):not(.avatar),
.page-content img:not(.emoji) {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
}
/* Gallery images have own styles – no extra shadow */
.gallery-item img,
.wp-block-gallery img { box-shadow: none !important; }

.entry-content a:has(img) {
  display: inline-block;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.entry-content a:has(img) img {
  transition: transform 0.35s ease !important;
}

.entry-content a:has(img):hover img { transform: scale(1.04) !important; }

/* ============================================================
   FAHRZEUGE / EQUIPMENT CARDS
   ============================================================ */
.fahrzeug-card {
  background: var(--fw-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #E0DEDA;
  box-shadow: var(--shadow-sm);
}

.fahrzeug-card-header {
  background: var(--fw-dark-2);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fahrzeug-card-kfz {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-red);
}

.fahrzeug-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fw-white);
}

.fahrzeug-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.fahrzeug-card-specs {
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.spec-item {}
.spec-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fw-gray); font-family: var(--font-display); margin-bottom: 2px; }
.spec-value { font-size: 0.88rem; font-weight: 600; color: var(--fw-dark); }

/* ============================================================
   MANNSCHAFT / TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.75rem;
}

.team-card {
  text-align: center;
  background: var(--fw-white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem 1.1rem;
  border: 1px solid #E0DEDA;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.9rem;
  border: 3px solid var(--fw-red);
  background: var(--fw-off-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  display: block;
}

.team-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fw-dark);
  margin-bottom: 3px;
  line-height: 1.3;
}

.team-rank {
  font-size: 0.72rem;
  color: var(--fw-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
}

.team-function {
  font-size: 0.76rem;
  color: var(--fw-red);
  font-style: italic;
  margin-top: 3px;
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* WordPress core classes */
/* WordPress image alignment classes */
.alignleft {
  float: left;
  margin: 0.25rem 1.8rem 1rem 0;
  max-width: 45%;
  border-radius: var(--radius-md);
}
.alignright {
  float: right;
  margin: 0.25rem 0 1rem 1.8rem;
  max-width: 45%;
  border-radius: var(--radius-md);
}
.aligncenter {
  display: block;
  margin: 1rem auto;
  border-radius: var(--radius-md);
}

/* Clearfix for floated images */
.entry-content::after,
.page-content::after {
  content: '';
  display: table;
  clear: both;
}

.wp-caption {
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.wp-caption img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: 0 !important;
  box-shadow: none !important;
}
.wp-caption-text {
  font-size: 0.78rem;
  color: var(--fw-gray-dark);
  background: var(--fw-off-white);
  border: 1px solid #E0DEDA;
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0.4rem 0.75rem;
  margin: 0 !important;
  text-align: center;
}
.sticky { border-left: 4px solid var(--fw-red); padding-left: var(--space-md); }
.bypostauthor {}
.screen-reader-text { @extend .sr-only; }

/* Comments */
.comments-area {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 2px solid var(--fw-border);
}

.comment-list { list-style: none; padding: 0; }
.comment { padding: var(--space-lg) 0; border-bottom: 1px solid #E0DEDA; }
.comment-author .fn { font-weight: 700; }
.comment-metadata { font-size: 0.78rem; color: var(--fw-gray); margin-bottom: var(--space-sm); }
.comment-content { font-size: 0.9rem; }

/* ============================================================
   FEED LIST (Homepage post list – compact style)
   ============================================================ */

.post-list-feed {
  display: flex;
  flex-direction: column;
}

.feed-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid #E5E3DF;
  transition: background var(--transition);
}

.feed-item:first-child { padding-top: 0; }
.feed-item:last-child  { border-bottom: none; }

.feed-item-thumb {
  flex-shrink: 0;
  width: 145px;
  height: 109px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--fw-dark-4);
}

.feed-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feed-item:hover .feed-item-thumb img { transform: scale(1.06); }

.feed-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.feed-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-item-cat {
  display: inline-block;
  background: var(--fw-red);
  color: var(--fw-white);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}

.feed-item-cat:hover           { background: var(--fw-red-dark); color: var(--fw-white); }
.feed-item-cat.cat-uebung      { background: var(--cat-uebung); }
.feed-item-cat.cat-uebung:hover{ background: #1558AA; }
.feed-item-cat.cat-jugend      { background: var(--cat-jugend); }
.feed-item-cat.cat-jugend:hover{ background: #189944; }
.feed-item-cat.cat-veranst     { background: var(--cat-veranst); }
.feed-item-cat.cat-veranst:hover{ background: #AA6600; }
.feed-item-cat.cat-mannschaft  { background: var(--cat-mannschaft); }
.feed-item-cat.cat-ausruestung { background: var(--cat-ausruestung); }

.feed-item-date {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--fw-gray);
  font-weight: 600;
}

.feed-item-einsatz-nr {
  color: var(--fw-gray);
  font-weight: 600;
}

.feed-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fw-dark);
  line-height: 1.3;
  margin: 0;
}

.feed-item-title a { color: inherit; }
.feed-item-title a:hover { color: var(--fw-red); }

.feed-item-excerpt {
  font-size: 0.85rem;
  color: var(--fw-gray-dark);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.feed-item-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fw-red);
  margin-top: 2px;
  transition: gap var(--transition);
}

.feed-item-more:hover { gap: 6px; color: var(--fw-red-dark); }

@media (max-width: 480px) {
  .feed-item-thumb { width: 90px !important; height: 68px !important; }
  .feed-item-title { font-size: .92rem; }
}

/* ============================================================
   CATEGORY FILTER TABS
   ============================================================ */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #E5E3DF;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fw-gray-dark);
  background: var(--fw-off-white);
  border: 1px solid #E0DEDA;
  text-decoration: none;
  transition: all var(--transition);
}

.cat-tab:hover, .cat-tab.is-active {
  background: var(--fw-dark-2);
  color: var(--fw-white);
  border-color: var(--fw-dark-2);
}

.cat-tab.cat-einsatz.is-active  { background: var(--cat-einsatz);  border-color: var(--cat-einsatz); }
.cat-tab.cat-uebung.is-active   { background: var(--cat-uebung);   border-color: var(--cat-uebung); }
.cat-tab.cat-jugend.is-active   { background: var(--cat-jugend);   border-color: var(--cat-jugend); }
.cat-tab.cat-veranst.is-active  { background: var(--cat-veranst);  border-color: var(--cat-veranst); }

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
  background: var(--fw-white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  border: 1px solid #E0DEDA;
}

.no-results h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fw-dark);
  margin-bottom: var(--space-sm);
}

.no-results p {
  color: var(--fw-gray-dark);
  font-size: .9rem;
  margin-bottom: var(--space-lg);
}

/* ============================================================
   CONTACT FORM (CF7 + native)
   ============================================================ */
.contact-form-wrapper {
  background: var(--fw-white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  border: 1px solid #E0DEDA;
  box-shadow: var(--shadow-sm);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 600px) {
  .contact-form-grid { grid-template-columns: 1fr; }
}

.contact-form-grid .fw-field-full {
  grid-column: 1 / -1;
}

.fw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fw-field label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fw-dark);
}

.fw-field label .required {
  color: var(--fw-red);
  margin-left: 2px;
}

.fw-field input[type="text"],
.fw-field input[type="email"],
.fw-field input[type="date"],
.fw-field input[type="tel"],
.fw-field textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #D8D5D0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fw-dark);
  background: var(--fw-off-white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.fw-field input:focus,
.fw-field textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--fw-red);
  background: var(--fw-white);
  box-shadow: 0 0 0 3px rgba(204,26,26,0.08);
}

.fw-field textarea,
.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.fw-field input.wpcf7-not-valid,
.fw-field textarea.wpcf7-not-valid {
  border-color: var(--fw-red);
}

.wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: var(--fw-red);
  margin-top: 3px;
}

.contact-form-submit {
  margin-top: var(--space-sm);
}

.wpcf7-submit,
.fw-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem var(--space-xl);
  background: var(--fw-red);
  color: var(--fw-white);
  border: 2px solid var(--fw-red);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.wpcf7-submit:hover,
.fw-submit-btn:hover {
  background: var(--fw-red-dark);
  border-color: var(--fw-red-dark);
}

.wpcf7-response-output {
  margin-top: var(--space-md) !important;
  padding: var(--space-sm) var(--space-md) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.85rem !important;
  border-left: 4px solid var(--fw-red) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

.wpcf7-mail-sent-ok  { background: rgba(34,170,85,.08) !important; border-color: #22AA55 !important; color: #166633 !important; }
.wpcf7-validation-errors { background: rgba(204,26,26,.06) !important; }

/* Contact info box */
.contact-info-box {
  background: var(--fw-dark-2);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  color: var(--fw-gray-light);
}

.contact-info-box h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-white);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--fw-border);
}

.contact-info-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
}

.contact-info-row:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--fw-red);
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   BARRIEREFREIHEIT (WCAG 2.1 AA)
   ============================================================ */

/* ── Skip Navigation Link ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 100000;
  padding: var(--space-sm) var(--space-lg);
  background: var(--fw-red);
  color: var(--fw-white) !important;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 0.2s ease;
  white-space: nowrap;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--fw-white);
  outline-offset: 2px;
}

/* ── Focus Styles – sichtbar für Tastaturnutzer ─────────── */
:focus-visible {
  outline: 3px solid var(--fw-red) !important;
  outline-offset: 3px !important;
  border-radius: var(--radius-sm) !important;
}

/* Interaktive Elemente: mind. 44×44px Klickfläche (WCAG 2.5.5) */
.nav-menu > li > a,
.topbar-social a,
.header-search-btn,
.menu-toggle,
.fw-lb-close,
.fw-lb-prev,
.fw-lb-next {
  min-height: 44px;
  min-width: 44px;
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gallery-item img,
  .feed-item-thumb img,
  .wp-block-gallery img,
  .vc_single_image-wrapper img { transition: none !important; }
}

/* ── High Contrast Mode ──────────────────────────────────── */
@media (forced-colors: active) {
  .notruf-number,
  .feed-item-cat,
  .post-card-cat { forced-color-adjust: none; }
  :focus-visible { outline: 3px solid ButtonText !important; }
}

/* ── Screen reader only utility ─────────────────────────── */
.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Text sizing – respects user preferences ─────────────── */
html { font-size: clamp(15px, 1vw + 10px, 17px); }

/* ── Link underlines in body text ───────────────────────── */
.entry-content a:not([class]),
.page-content a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.entry-content a:not([class]):hover,
.page-content a:not([class]):hover {
  text-decoration-thickness: 2px;
}

/* ── Color contrast boost ───────────────────────────────── */
/* Gray text on white bg needs min 4.5:1 ratio */
.feed-item-date,
.post-card-meta,
.single-post-meta { color: #666666; } /* 5.7:1 on white */

/* ── ARIA states ─────────────────────────────────────────── */
[aria-current="page"] > a,
.nav-menu > li > a[aria-current="page"] {
  color: var(--fw-white) !important;
}
.nav-menu > li > a[aria-current="page"]::after {
  transform: scaleX(1) !important;
}

/* Dropdown arrow rotation when expanded */
.nav-menu > li > a[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}
.nav-chevron {
  transition: transform 0.2s ease;
  margin-left: 4px;
  opacity: 0.6;
  vertical-align: middle;
}

/* ============================================================
   FONTAWESOME ICONS IN NAVIGATION
   ============================================================ */

/* Icon spacing in nav items */
.nav-menu a i,
.sub-menu a i {
  width: 1.1em;
  text-align: center;
  font-size: 0.85em;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.nav-menu > li > a i { color: var(--fw-red); }
.sub-menu a i { color: var(--fw-gray); }
.nav-menu > li:hover > a i,
.sub-menu li:hover > a i { opacity: 1; }

/* ── FA in Sidebar widget titles ───────────────────────────── */
.widget-header .fa,
.widget-header .fa-solid,
.widget-header .fa-regular {
  color: var(--fw-red);
  font-size: 0.85rem;
  margin-right: 6px;
}

/* ── FA in buttons ───────────────────────────────────────── */
.btn i, .fw-submit-btn i, .read-more-link i {
  font-size: 0.85em;
}

/* ============================================================
   EASTER EGG 🚒
   ============================================================ */
#fw-easter-egg {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99998;
  background: var(--fw-dark-2);
  border: 2px solid var(--fw-red);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-md) var(--space-xl);
  text-align: center;
  width: min(400px, 90vw);
  transition: bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

#fw-easter-egg.is-visible { bottom: 0; }

#fw-easter-egg .egg-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--space-sm);
  animation: fw-truck-drive 3s ease-in-out infinite;
  display: block;
}

@keyframes fw-truck-drive {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25%       { transform: translateX(6px) rotate(1deg); }
  75%       { transform: translateX(-6px) rotate(-1deg); }
}

#fw-easter-egg .egg-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-red);
  margin-bottom: 4px;
}

#fw-easter-egg .egg-text {
  font-size: 0.82rem;
  color: var(--fw-gray-light);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

#fw-easter-egg .egg-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--fw-gray);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}

#fw-easter-egg .egg-close:hover { background: var(--fw-red); color: var(--fw-white); }

#fw-easter-egg .egg-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--fw-red);
  line-height: 1;
}

#fw-easter-egg .egg-number-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-gray);
  margin-bottom: var(--space-sm);
}


/* ============================================================
   POST NAVIGATION (Vorheriger / Nächster Beitrag)
   ============================================================ */
.post-navigation {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #E0DEDA;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.post-nav-prev,
.post-nav-next {
  flex: 1;
  min-width: 0;
}

.post-nav-next { text-align: right; }

.post-nav-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-gray);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-nav-next .post-nav-label {
  justify-content: flex-end;
}

.post-nav-title a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fw-dark);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-title a:hover { color: var(--fw-red); }

/* ============================================================
   WPBakery / Page Builder overrides
   ============================================================ */

/* Remove extra margins/padding from vc rows in content */
.entry-content .vc_row,
.page-content .vc_row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* vc_btn – give WPBakery buttons the pill style */
.vc_general.vc_btn3 {
  border-radius: 24px !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  padding: 0.65rem 1.5rem !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.vc_btn3.vc_btn3-color-juicy-pink,
.vc_btn3.vc_btn3-color-red {
  background-color: var(--fw-red) !important;
  border-color: var(--fw-red) !important;
  color: #fff !important;
}

.vc_btn3.vc_btn3-color-juicy-pink:hover,
.vc_btn3.vc_btn3-color-red:hover {
  background-color: var(--fw-red-dark) !important;
  border-color: var(--fw-red-dark) !important;
}

.vc_btn3.vc_btn3-style-outline {
  background: transparent !important;
  color: var(--fw-red) !important;
  border: 2px solid var(--fw-red) !important;
}

.vc_btn3.vc_btn3-style-outline:hover {
  background: var(--fw-red) !important;
  color: #fff !important;
}

/* vc_single_image */
.vc_single_image-img {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ============================================================
   SECTION HEADER refinements
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #E0DEDA;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.section-title-bar {
  width: 3px;
  height: 1.1em;
  background: var(--fw-red);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ============================================================
   MOBILE @media (max-width: 480px) — feed thumb fix
   ============================================================ */

/* ============================================================
   ANKÜNDIGUNGS-BANNER
   ============================================================ */
.fw-banner {
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.fw-banner.is-hidden {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  border: none;
}

.fw-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  min-height: 44px;
}

.fw-banner-content {
  flex: 1;
  text-align: center;
}

.fw-banner-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.fw-banner-content a:hover { opacity: 0.85; }

.fw-banner-content i,
.fw-banner-content .fa-solid,
.fw-banner-content .fa-regular {
  margin-right: 5px;
}

.fw-banner-content strong { font-weight: 700; }

.fw-banner-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition);
  padding: 0;
}

.fw-banner-close:hover { background: rgba(0,0,0,0.3); }

/* ── Customizer live preview ─────────────────────────────── */
.fw-banner[data-close-id] { display: flex; }

/* ============================================================
   FONTAWESOME IN WIDGET-HEADERN
   ============================================================ */
.widget-icon-fa {
  font-size: 0.85rem;
  color: var(--fw-red);
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  margin-right: 2px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Telegram button with FA icon */
.telegram-link i {
  font-size: 0.9em;
}

/* Print */
@media print {
  .site-header, .topbar, .sidebar, .site-footer, .fw-banner { display: none; }
  .content-area { grid-template-columns: 1fr; }
  #fw-easter-egg { display: none; }
}

