/*
 * FaireWolle – Archiv + Suchformular Styles
 * Version: 97.0
 * Gilt für: archive-firmen, [fw_search_form], [firmen_grid]
 */

/* ═══════════════════════════════════════════════════════════
   1. ARCHIV PAGE LAYOUT
   ═══════════════════════════════════════════════════════════ */

.archive-firmen .fw-main-wrapper {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,48px);
}

/* Hero-Bereich (Cover-Block darüber) */
.archive-firmen .page-header {
  padding: clamp(32px,4vw,56px) 0 clamp(24px,3vw,40px);
}
.archive-firmen .fw-main-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
  font-weight: 300 !important;
  color: #2a2520 !important;
  margin: 0 0 8px !important;
  line-height: 1.1 !important;
}
.archive-firmen .taxonomy-description {
  color: #6b5f54;
  font-size: 0.97rem;
  line-height: 1.7;
  max-width: 600px;
  margin-top: 8px;
}

/* Wrapper unter dem Hero */
.firmen-archive-wrapper {
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* ═══════════════════════════════════════════════════════════
   2. SUCHFORMULAR
   ═══════════════════════════════════════════════════════════ */

.fw-search-form {
  background: #fff;
  border: 1px solid #ede5d8;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(42,37,32,0.06);
}

/* ── Hauptzeile (alle Felder nebeneinander) ──────────────── */
.fw-search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

/* ── Einzelnes Feld ──────────────────────────────────────── */
.fw-search-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 160px;
}
.fw-search-field--wide { flex: 2; min-width: 200px; }
.fw-search-field--action { flex: 0 0 auto; min-width: unset; }

/* ── Labels ──────────────────────────────────────────────── */
.fw-search-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9c8e82;
  display: flex;
  align-items: center;
  gap: 5px;
}
.fw-search-label i { color: #3a5c47; font-size: 0.72rem; }

/* ── Inputs + Selects ────────────────────────────────────── */
.fw-search-form input[type="text"],
.fw-search-form select {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem !important;
  color: #2a2520 !important;
  background: #f7f3ee !important;
  border: 1.5px solid #d6c9b4 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.fw-search-form input[type="text"]:focus,
.fw-search-form select:focus {
  border-color: #3a5c47 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(58,92,71,0.1) !important;
}
.fw-search-form input::placeholder { color: #9c8e82 !important; }

/* Select: Pfeil-Icon */
.fw-search-field:not(.fw-search-field--action) {
  position: relative;
}
.fw-search-form select {
  padding-right: 32px !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239c8e82'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 8px !important;
  cursor: pointer !important;
}

/* ── Submit-Button ───────────────────────────────────────── */
.fw-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: #3a5c47;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  height: 42px; /* Gleiche Höhe wie Inputs */
}
.fw-search-btn:hover { background: #4d7a5f; transform: translateY(-1px); }
.fw-search-btn i { font-size: 0.8rem; }

/* ── Erweiterte Filter ───────────────────────────────────── */
.fw-search-advanced {
  margin-top: 14px;
  border-top: 1px solid #ede5d8;
  padding-top: 14px;
}
.fw-search-advanced-toggle {
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b5f54;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fw-search-advanced-toggle::-webkit-details-marker { display: none; }
.fw-search-advanced-toggle:hover { color: #3a5c47; }
.fw-search-advanced-icon {
  transition: transform 0.2s;
  font-style: normal;
}
details[open] .fw-search-advanced-icon { transform: rotate(180deg); }

.fw-search-row--advanced {
  margin-top: 12px;
  padding: 14px;
  background: #f7f3ee;
  border-radius: 8px;
}

/* ── Footer (Reset + Chips) ──────────────────────────────── */
.fw-search-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ede5d8;
}
.fw-search-count {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: #6b5f54;
  font-weight: 500;
}
.fw-search-reset {
  margin-left: auto;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9c8e82;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.fw-search-reset:hover { color: #b85c38; text-decoration: none; }

/* Aktive Filter-Chips */
.fw-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.fw-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1.5px solid #d6c9b4;
  background: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: #6b5f54;
  text-decoration: none;
  transition: all 0.2s;
}
.fw-filter-chip:hover { border-color: #b85c38; color: #b85c38; text-decoration: none; }
.fw-filter-chip span { font-weight: 700; color: #9c8e82; }

/* ═══════════════════════════════════════════════════════════
   3. HERO COVER (Archiv-Seite)
   ═══════════════════════════════════════════════════════════ */

/* Archiv-Hero: eigene Höhe, kein min-height:80vh */
.archive-firmen .hero-cover.wp-block-cover,
.archive-firmen .wp-block-cover.hero-cover {
  min-height: 30vh !important;
  max-height: 360px !important;
}

/* Gradient stärker damit Text lesbar */
.archive-firmen .wp-block-cover .wp-block-cover__background,
.archive-firmen .wp-block-cover .has-background-dim {
  background: rgba(42,37,32,0.5) !important;
  opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════
   4. EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.fw-empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 20px;
  background: #fff;
  border: 1px solid #ede5d8;
  border-radius: 12px;
  margin: 32px 0;
}
.fw-empty-state h3 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 300 !important;
  color: #2a2520 !important;
  margin: 0 0 10px !important;
}
.fw-empty-state p {
  color: #9c8e82;
  font-size: 0.95rem;
  margin-bottom: 20px !important;
}
.fw-empty-state a {
  display: inline-block;
  padding: 11px 26px;
  background: #3a5c47;
  color: #fff !important;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s;
}
.fw-empty-state a:hover { background: #4d7a5f; }

/* ═══════════════════════════════════════════════════════════
   5. PAGINATION
   ═══════════════════════════════════════════════════════════ */
.fw-pagination {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  justify-content: center;
}
.fw-pagination .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.fw-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b5f54;
  border: 1px solid #ede5d8;
  background: #fff;
  text-decoration: none;
  transition: all 0.2s;
}
.fw-pagination .page-numbers:hover {
  border-color: #3a5c47;
  color: #3a5c47;
}
.fw-pagination .page-numbers.current {
  background: #3a5c47;
  color: #fff;
  border-color: #3a5c47;
}
.fw-pagination .page-numbers.dots {
  border: none;
  background: none;
  cursor: default;
}

/* ═══════════════════════════════════════════════════════════
   6. RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .fw-search-form {
    padding: 16px;
    border-radius: 10px;
  }
  .fw-search-row { gap: 10px; }
  .fw-search-field { min-width: 100%; flex: 1 1 100%; }
  .fw-search-field--wide { min-width: 100%; }
  .fw-search-field--action { width: 100%; }
  .fw-search-btn { width: 100%; justify-content: center; }
  .fw-search-row--advanced { padding: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   7. LEAFLET KARTE – Container-Fixes
   ═══════════════════════════════════════════════════════════ */

/* Karten-Container: immer sichtbare Höhe */
.fw-map-wrapper {
  position: relative;
  margin: 0 0 32px;
}

/* Leaflet braucht explizite Höhe auf dem Container-Div */
.fw-map-wrapper > div[id^="fw-map-"],
.fw-karte-map-wrap > div[id^="fw-map-"],
.fw-karte-map-wrap #fw-karte-container {
  width: 100% !important;
  display: block !important;
  min-height: 400px !important;
}

/* Leaflet-Tiles nicht durch overflow:hidden abschneiden */
.leaflet-container {
  width: 100% !important;
  font-family: var(--ff-b, 'Jost', sans-serif) !important;
}

/* Marker-Styling */
.fw-map-marker {
  background: none !important;
  border: none !important;
}

/* Popup-Styling */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(42,37,32,0.15) !important;
  font-family: var(--ff-b, 'Jost', sans-serif) !important;
}
.leaflet-popup-content {
  margin: 14px 16px !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}
.leaflet-popup-content strong {
  font-family: var(--fw-ff-display, 'Cormorant Garamond', serif) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
}

/* Filter-Dropdowns der Karte */
.fw-map-filters select {
  font-family: var(--ff-b, 'Jost', sans-serif) !important;
  font-size: 0.85rem !important;
  border: 1.5px solid #d6c9b4 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  background: #fff !important;
  color: #2a2520 !important;
  outline: none !important;
}
.fw-map-filters select:focus {
  border-color: #3a5c47 !important;
}
.fw-map-filters button {
  font-family: var(--ff-b, 'Jost', sans-serif) !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: 1.5px solid #d6c9b4 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #6b5f54 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}
.fw-map-filters button:hover {
  border-color: #3a5c47 !important;
  color: #3a5c47 !important;
}

/* Betriebe-Zähler */
#[id$="-count"] {
  font-family: var(--ff-b, 'Jost', sans-serif);
  font-size: 0.8rem;
  color: #6b5f54;
}

/* ═══════════════════════════════════════════════════════════
   8. KARTEN-FILTER (fw_karte Shortcode)
   ═══════════════════════════════════════════════════════════ */
.fw-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-end;
}
.fw-map-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}
.fw-map-filter-field--action {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: unset;
}
.fw-map-filter-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9c8e82;
}
.fw-map-select {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.88rem !important;
  color: #2a2520 !important;
  background: #fff !important;
  border: 1.5px solid #d6c9b4 !important;
  border-radius: 6px !important;
  padding: 9px 32px 9px 12px !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239c8e82'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 8px !important;
  transition: border-color 0.2s !important;
  cursor: pointer !important;
  width: 100% !important;
}
.fw-map-select:focus {
  border-color: #3a5c47 !important;
  box-shadow: 0 0 0 3px rgba(58,92,71,0.1) !important;
}
.fw-map-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: transparent;
  border: 1.5px solid #d6c9b4;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b5f54;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.fw-map-reset-btn:hover {
  border-color: #b85c38;
  color: #b85c38;
}
.fw-map-count {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: #9c8e82;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .fw-map-filter-field { min-width: 100%; flex: 1 1 100%; }
  .fw-map-filter-field--action { flex: 1 1 100%; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════════════
   9. STARTSEITE SUCHFORMULAR [fw_search_strip]
   ═══════════════════════════════════════════════════════════ */

.fw-search-strip {
  background: #3a5c47;
  padding: clamp(36px,5vw,56px) 0;
  width: 100%;
}
.fw-search-strip .fw-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px);
}

/* Headline */
.fw-search-strip-head {
  text-align: center;
  margin-bottom: 24px;
}
.fw-search-strip-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  font-weight: 300 !important;
  color: #fff !important;
  margin: 0 0 8px !important;
  line-height: 1.15 !important;
}
.fw-search-strip-head h2 em { font-style: italic; color: rgba(255,255,255,0.75); }
.fw-search-strip-head p {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Formular-Container */
.fw-search-strip .fw-search-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── DESKTOP: alle Felder in einer Zeile, Label oben ── */
.fw-search-strip .fw-search-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: nowrap;        /* Desktop: keine Umbrüche */
}
.fw-search-strip .fw-search-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;             /* wichtig: overflow verhindern */
}
.fw-search-strip .fw-search-field--wide { flex: 2; }
.fw-search-strip .fw-search-field--action { flex: 0 0 auto; }

/* Labels */
.fw-search-strip .fw-search-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.fw-search-strip .fw-search-label i { color: rgba(255,255,255,0.7); }

/* Inputs + Selects */
.fw-search-strip .fw-search-form input[type="text"],
.fw-search-strip .fw-search-form select {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.88rem !important;
  background: rgba(255,255,255,0.95) !important;
  border: 1.5px solid transparent !important;
  border-radius: 6px !important;
  color: #2a2520 !important;
  padding: 10px 14px !important;
  width: 100% !important;
  outline: none !important;
  transition: all 0.2s !important;
  height: 42px !important;
  box-sizing: border-box !important;
}
.fw-search-strip .fw-search-form input:focus,
.fw-search-strip .fw-search-form select:focus {
  background: #fff !important;
  border-color: rgba(255,255,255,0.6) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15) !important;
}
.fw-search-strip .fw-search-form input::placeholder { color: #9c8e82 !important; }
.fw-search-strip .fw-search-form select option { color: #2a2520; background: #fff; }

/* Select Pfeil */
.fw-search-strip .fw-search-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b5f54'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 8px !important;
  padding-right: 28px !important;
}

/* Suchen-Button */
.fw-search-strip .fw-search-btn {
  height: 42px !important;
  padding: 0 20px !important;
  background: #2e4a38 !important;
  border: 1.5px solid rgba(255,255,255,0.15) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: background 0.2s !important;
}
.fw-search-strip .fw-search-btn:hover { background: #1e3228 !important; }

/* Footer + Reset */
.fw-search-strip .fw-search-footer {
  border-top-color: rgba(255,255,255,0.12) !important;
  margin-top: 10px !important;
  padding-top: 8px !important;
}
.fw-search-strip .fw-search-reset { color: rgba(255,255,255,0.4) !important; }
.fw-search-strip .fw-search-reset:hover { color: rgba(255,255,255,0.8) !important; }

/* Erweiterte Filter */
.fw-search-strip .fw-search-advanced { border-top-color: rgba(255,255,255,0.12) !important; margin-top: 12px; }
.fw-search-strip .fw-search-advanced-toggle { color: rgba(255,255,255,0.5) !important; }
.fw-search-strip .fw-search-row--advanced {
  background: rgba(0,0,0,0.18) !important;
  border-radius: 6px !important;
  padding: 12px !important;
  margin-top: 10px;
}

/* ── MOBILE: alles untereinander, volle Breite ── */
@media (max-width: 768px) {
  .fw-search-strip { padding: 28px 0; }
  .fw-search-strip-head { margin-bottom: 18px; }

  .fw-search-strip .fw-search-row {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: stretch !important;
  }
  /* Jedes Feld volle Breite */
  .fw-search-strip .fw-search-field,
  .fw-search-strip .fw-search-field--wide,
  .fw-search-strip .fw-search-field--action {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  /* Labels auf Mobile ausblenden – zu viel Platz */
  .fw-search-strip .fw-search-label { display: none !important; }
  /* Felder und Button gleiche volle Breite */
  .fw-search-strip .fw-search-form input[type="text"],
  .fw-search-strip .fw-search-form select {
    height: 46px !important;
    font-size: 1rem !important;
  }
  .fw-search-strip .fw-search-btn {
    width: 100% !important;
    height: 46px !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
  }
  /* Footer auf Mobile weg */
  .fw-search-strip .fw-search-footer { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   10. EINTRAGEN – FORMULAR TEASER + LAZY LOAD
   ═══════════════════════════════════════════════════════════ */
.fw-form-teaser {
  margin: clamp(40px,5vw,64px) 0;
}
.fw-form-teaser-inner {
  background: #fff;
  border: 1.5px solid #ede5d8;
  border-radius: 12px;
  padding: clamp(28px,4vw,48px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.fw-form-teaser-icon {
  font-size: 2.8rem;
  line-height: 1;
}
.fw-form-teaser-text h3 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  color: #2a2520 !important;
  margin: 0 0 8px !important;
}
.fw-form-teaser-text p {
  font-size: 0.88rem !important;
  color: #6b5f54 !important;
  margin: 0 0 6px !important;
  line-height: 1.6 !important;
}
.fw-form-start-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.fw-form-steps {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0;
  text-transform: none;
}

/* Loading Spinner */
.fw-form-loading {
  text-align: center;
  padding: 48px 20px;
  color: #9c8e82;
}
.fw-form-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ede5d8;
  border-top-color: #3a5c47;
  border-radius: 50%;
  animation: fw-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes fw-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .fw-form-teaser-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .fw-form-teaser-icon { justify-self: center; }
  .fw-form-start-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   11. MOBILE SUCHFORMULAR FIX (Startseite + Archiv)
   ═══════════════════════════════════════════════════════════ */

/* Auf dem green Strip: Container sauber */
.fw-search-strip {
  padding: 20px 0;
}
.fw-search-strip .fw-container {
  padding: 0 clamp(16px,4vw,48px);
}

/* Mobile: alle Felder untereinander, kein Überlapp */
@media (max-width: 768px) {
  /* Startseite Strip */
  .fw-search-strip .fw-search-form {
    padding: 0 !important;
  }
  .fw-search-strip .fw-search-row {
    flex-direction: column;
    gap: 8px;
  }
  .fw-search-strip .fw-search-field,
  .fw-search-strip .fw-search-field--wide,
  .fw-search-strip .fw-search-field--action {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }
  .fw-search-strip .fw-search-btn {
    width: 100% !important;
    justify-content: center !important;
    height: 44px !important;
  }
  /* Select-Pfeil-Icon auf Mobile noch sichtbar */
  .fw-search-strip .fw-search-form select {
    background-size: 7px !important;
    background-position: right 10px center !important;
  }
  /* Footer (Reset) auf Mobile verstecken – zu viel Platz */
  .fw-search-strip .fw-search-footer {
    display: none !important;
  }

  /* Archiv-Seite: gleiches Layout */
  .fw-search-form .fw-search-row {
    flex-direction: column;
    gap: 8px;
  }
  .fw-search-form .fw-search-field {
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }
  .fw-search-form .fw-search-field--action {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .fw-search-form .fw-search-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Sehr kleine Bildschirme */
@media (max-width: 400px) {
  .fw-search-strip .fw-search-form input[type="text"],
  .fw-search-strip .fw-search-form select {
    font-size: 0.85rem !important;
    padding: 10px 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   12. SEARCH STRIP MOBILE FIX + UNIVERSAL FORM RESET
   ═══════════════════════════════════════════════════════════ */

/* Stelle sicher dass die Row immer wrap macht */
.fw-search-row {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* Mobile: ALLES untereinander – override für both strip und standalone */
@media (max-width: 760px) {

  /* Strip: Felder 100% breit */
  .fw-search-strip .fw-search-row,
  .fw-search-form .fw-search-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .fw-search-strip .fw-search-field,
  .fw-search-strip .fw-search-field--wide,
  .fw-search-strip .fw-search-field--action,
  .fw-search-form .fw-search-field,
  .fw-search-form .fw-search-field--wide,
  .fw-search-form .fw-search-field--action {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    width: 100% !important;
  }

  /* Button volle Breite */
  .fw-search-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Footer (Reset + Chips) auf Mobile verstecken */
  .fw-search-strip .fw-search-footer {
    display: none !important;
  }

  /* Strip: etwas weniger Padding */
  .fw-search-strip {
    padding: 28px 0 !important;
  }
  .fw-search-strip-head {
    margin-bottom: 16px !important;
  }
  .fw-search-strip-head h2 {
    font-size: 1.4rem !important;
  }
}

/* Extra-klein */
@media (max-width: 380px) {
  .fw-search-strip .fw-search-form input[type="text"],
  .fw-search-strip .fw-search-form select,
  .fw-search-form input[type="text"],
  .fw-search-form select {
    font-size: 16px !important; /* verhindert iOS auto-zoom */
    padding: 10px 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   12. LEAFLET MARKER CLUSTER
   ═══════════════════════════════════════════════════════════ */

/* Cluster-Container: kein Standard-Background */
.fw-cluster-marker {
  background: none !important;
  border: none !important;
}

/* Cluster-Icon: grüner Kreis mit Zahl */
.fw-cluster-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #3a5c47;
  border: 3px solid #fff;
  box-shadow: 0 3px 14px rgba(42,37,32,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fw-cluster-marker:hover .fw-cluster-icon {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(42,37,32,0.35);
}

/* Größere Cluster: dunklerer Ton */
.leaflet-marker-icon.fw-cluster-marker[style*="width: 42"] .fw-cluster-icon,
.leaflet-marker-icon.fw-cluster-marker[style*="width: 48"] .fw-cluster-icon {
  background: #2e4a38;
  font-size: 0.9rem;
}

/* Standard MarkerCluster.Default.css Override */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(58,92,71,0.2) !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(58,92,71,0.7) !important;
  color: #fff !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 700 !important;
}

/* Einzel-Marker etwas kleiner auf Mobile */
@media (max-width: 600px) {
  .fw-map-marker > div {
    width: 30px !important;
    height: 30px !important;
  }
}

/* ── SEARCH STRIP: Events-Link ────────────────────────── */
.fw-search-strip-links {
  margin-top: 14px;
  text-align: center;
}
.fw-search-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
}
.fw-search-strip-link:hover {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.fw-search-strip-link i { font-size: 0.72rem; }
