/*
 * Floorball Hallen – Widget-CSS v3
 * Design: FVBB-Stil
 * (C) Floorball-facts.de
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600&display=swap');

/* ── CSS-Reset im Scope ───────────────────────────────────────────── */
.fbh-wrap,
.fbh-wrap *,
.fbh-wrap *::before,
.fbh-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CSS-Variablen ────────────────────────────────────────────────── */
.fbh-wrap {
  --red:           #d0021b;
  --red-light:     rgba(208,2,27,0.08);
  --red-border:    rgba(208,2,27,0.3);
  --surface:       #ffffff;
  --surface-alt:   #f8f9fc;
  --border:        #e2e6ef;
  --border-strong: #cdd2de;
  --text:          #1a1d26;
  --text-sub:      #4a5168;
  --muted:         #8a92a8;
  --gold:          #c8860a;
  --shadow:        0 2px 12px rgba(30,40,80,0.07);
  --shadow-lg:     0 4px 24px rgba(30,40,80,0.10);

  font-family: 'Barlow', sans-serif;
  color: var(--text);
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* ── VEREINS-HEADER ───────────────────────────────────────────────── */
.fbh-verein-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--red);
  position: relative;
}

.fbh-verein-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--gold);
}

.fbh-verein-icon {
  width: 44px; height: 44px;
  background: var(--surface);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(208,2,27,0.25);
}

.fbh-verein-icon img {
  width: 34px; height: 34px;
  object-fit: contain; border-radius: 4px;
}

.fbh-verein-titles { flex: 1; }

.fbh-verein-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
}

.fbh-verein-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.fbh-hallen-badge {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* ── SECTION-LABEL ────────────────────────────────────────────────── */
.fbh-section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ── HALLEN-KARTE ─────────────────────────────────────────────────── */
.fbh-halle-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

/* ── HERO ─────────────────────────────────────────────────────────── */
.fbh-halle-hero {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.fbh-halle-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.fbh-halle-card:hover .fbh-halle-hero img {
  transform: scale(1.03);
}

.fbh-hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(90deg,
      rgba(208,2,27,0.03) 0, rgba(208,2,27,0.03) 1px,
      transparent 1px, transparent 56px),
    repeating-linear-gradient(0deg,
      rgba(208,2,27,0.03) 0, rgba(208,2,27,0.03) 1px,
      transparent 1px, transparent 56px),
    var(--surface-alt);
}

.fbh-court-svg { width: 300px; height: 158px; }

/* Typ-Badge */
.fbh-type-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  z-index: 5;
}

.fbh-type-badge.haupthalle {
  background: var(--red-light);
  border-color: var(--red-border);
  color: var(--red);
}

.fbh-type-badge.trainingshalle,
.fbh-type-badge.nebenhalle {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-sub);
  box-shadow: var(--shadow);
}

/* Kategorie-Badge (linke Seite) */
.fbh-kat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 5;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
}

/* IFF-Badge */
.fbh-iff-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #f59e0b;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 6;
  font-family: 'Barlow Condensed', sans-serif;
}

/* ── CONTENT ──────────────────────────────────────────────────────── */
.fbh-halle-content { padding: 20px; }

.fbh-halle-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.fbh-halle-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--red);
  opacity: 0.18;
  flex-shrink: 0;
  margin-top: -2px;
  letter-spacing: -1px;
}

.fbh-halle-titles { flex: 1; }

.fbh-halle-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}

.fbh-halle-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.fbh-halle-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── SPECS GRID ───────────────────────────────────────────────────── */
.fbh-halle-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.fbh-spec-item {
  background: var(--surface-alt);
  padding: 11px 14px;
}

.fbh-spec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.fbh-spec-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  line-height: 1;
}

.fbh-unit {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.fbh-spec-item.fbh-accent .fbh-spec-value { color: var(--red); }

/* ── BESCHREIBUNG ─────────────────────────────────────────────────── */
.fbh-halle-description {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
}

/* ── BELEGUNGSSTREIFEN ────────────────────────────────────────────── */
.fbh-avail-strip {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.fbh-avail-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fbh-avail-day-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fbh-avail-bar {
  width: 100%;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid;
  transition: filter 0.15s;
}

.fbh-avail-bar.belegt { background: var(--red-light);          border-color: var(--red-border);          color: var(--red); }
.fbh-avail-bar.frei   { background: rgba(40,180,100,0.08);     border-color: rgba(40,180,100,0.25);      color: #2aaa60; }
.fbh-avail-bar.teilw  { background: rgba(200,134,10,0.09);     border-color: rgba(200,134,10,0.25);      color: var(--gold); }
.fbh-avail-bar.kein   { background: var(--surface-alt);        border-color: var(--border);              color: var(--muted); }

/* ── FEATURE-TAGS ─────────────────────────────────────────────────── */
.fbh-features-wrap { margin-bottom: 16px; }

.fbh-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fbh-feature-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  transition: border-color 0.15s, color 0.15s;
}

.fbh-feature-tag:hover {
  border-color: var(--red-border);
  color: var(--red);
}

.fbh-feature-tag svg {
  width: 12px; height: 12px;
  color: var(--red);
  flex-shrink: 0;
}

/* ── EINRICHTUNGSANZAHLEN ─────────────────────────────────────────── */
.fbh-einrichtungen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.fbh-einr-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text-sub);
}

/* ── FOOTER ───────────────────────────────────────────────────────── */
.fbh-halle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.fbh-location-text {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

.fbh-location-text strong {
  color: var(--text);
  font-weight: 600;
  display: block;
}

.fbh-footer-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.fbh-route-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.fbh-route-btn:hover {
  border-color: var(--red-border);
  color: var(--red);
  box-shadow: 0 2px 8px rgba(208,2,27,0.12);
}

.fbh-route-btn svg { width: 13px; height: 13px; }

.fbh-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.fbh-portal-btn:hover {
  border-color: var(--red-border);
  color: var(--red);
}

/* ── POWERED-BY FOOTER ────────────────────────────────────────────── */
.fbh-powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.fbh-powered-by a { display: flex; align-items: center; }
.fbh-powered-by img { height: 18px; width: auto; object-fit: contain; opacity: 0.8; }
.fbh-powered-by span { font-size: 10px; color: var(--muted); letter-spacing: 0.4px; }

/* ── KEIN INHALT ──────────────────────────────────────────────────── */
.fbh-no-hallen {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

/* ══════════════════════════════════════════════════════════════════
   EINZELANSICHT (single-halle)
   ══════════════════════════════════════════════════════════════════ */

/* Hero höher für Google Map */
.fbhs-single .fbh-halle-hero.fbhs-hero-tall {
  height: 320px;
}

.fbhs-map-container {
  width: 100%;
  height: 100%;
}

/* Badges über iframe sicherstellen */
.fbhs-single .fbh-type-badge { z-index: 10; }

.fbhs-kat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 10;
  font-family: 'Barlow Condensed', sans-serif;
}

.fbhs-iff-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 10;
  font-family: 'Barlow Condensed', sans-serif;
}

/* Specs: 4 Spalten auf größeren Screens */
.fbhs-specs-extended { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 600px) {
  .fbhs-specs-extended { grid-template-columns: repeat(4, 1fr); }
}

/* Barrierefreiheit-Badge */
.fbhs-bf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.fbhs-bf-badge {
  background: rgba(40,180,100,0.1);
  border: 1px solid rgba(40,180,100,0.3);
  color: #2aaa60;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.fbhs-bf-text {
  font-size: 12px;
  color: var(--text-sub);
}

/* Vergabe */
.fbhs-vergabe {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.fbhs-vergabe-text {
  font-size: 13px;
  color: var(--text-sub);
}

/* Footer: Adresse links, Buttons rechts */
.fbhs-footer {
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

@media (min-width: 480px) {
  .fbhs-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.fbhs-address-block {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

.fbhs-address-block strong {
  color: var(--text);
  font-weight: 600;
  display: block;
}

/* Header-Actions (Vereinswebsite + Zurück-Link) */
.fbhs-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}

.fbhs-back-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.fbhs-back-link:hover { color: var(--red); }

.fbhs-detail-card { margin-bottom: 12px; }

/* ── RESPONSIVE (Listenansicht + Einzelansicht) ───────────────────── */
@media (max-width: 520px) {
  .fbh-halle-specs { grid-template-columns: repeat(2, 1fr); }
  .fbh-hallen-badge { display: none; }
  .fbh-halle-name { font-size: 17px; }
  .fbh-halle-content { padding: 14px; }
  .fbhs-specs-extended { grid-template-columns: repeat(2, 1fr); }
  .fbhs-single .fbh-halle-hero.fbhs-hero-tall { height: 220px; }
}

@media (max-width: 380px) {
  .fbh-verein-name { font-size: 18px; }
  .fbh-avail-day-label { font-size: 8px; }
}

/* ── SUCHMASKE ────────────────────────────────────────────────────── */
.fbh-search-form {
  margin-bottom: 20px;
}

.fbh-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.fbh-search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}

.fbh-search-field--sm  { flex: 0 0 160px; }
.fbh-search-field--btn { flex: 0 0 auto; }

.fbh-search-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.fbh-search-input,
.fbh-search-select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fbh-search-input:focus,
.fbh-search-select:focus {
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px var(--red-light);
}

.fbh-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.fbh-search-btn:hover { background: #b5011a; }

.fbh-search-btn svg {
  width: 14px; height: 14px;
}

.fbh-search-hint {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0 0;
}

.fbh-results-header {
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .fbh-search-field,
  .fbh-search-field--sm { flex: 1 1 100%; }
  .fbh-search-field--btn { flex: 1 1 100%; }
  .fbh-search-btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════
   SUCHMASKE
   ══════════════════════════════════════════════════════════════════ */

.fbh-search-wrap {
  margin-bottom: 20px;
}

.fbh-search-form {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.fbh-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.fbh-search-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 140px;
}

.fbh-search-text { flex: 2; min-width: 200px; }

.fbh-search-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}

.fbh-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fbh-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.fbh-search-btn:hover {
  background: #a80016;
}

.fbh-search-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.fbh-search-reset {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.fbh-search-reset:hover {
  color: var(--red);
}

/* Ergebnis-Info */
.fbh-search-result-info {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.fbh-result-count {
  color: var(--text-sub);
  font-weight: 500;
}

.fbh-result-none {
  color: var(--muted);
}

.fbh-result-none a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

/* Responsive Suchmaske */
@media (max-width: 520px) {
  .fbh-search-row { flex-direction: column; }
  .fbh-search-field { min-width: 100%; }
  .fbh-search-text  { min-width: 100%; }
  .fbh-search-actions { width: 100%; }
  .fbh-search-btn { flex: 1; justify-content: center; }
}

/* ── ERGEBNISLISTE (Such-Modus) ────────────────────────────────────── */

.fbh-result-header {
  margin: 4px 0 12px;
  font-size: 12px;
}

.fbh-result-count {
  color: var(--text-sub);
  font-weight: 600;
}

.fbh-result-none { color: var(--muted); }
.fbh-result-none a { color: var(--red); text-decoration: none; font-weight: 600; }

.fbh-result-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.fbh-result-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.fbh-result-item:last-child { border-bottom: none; }

.fbh-result-link {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}

.fbh-result-link:hover { background: var(--surface-alt); }

.fbh-result-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--text);
  flex-shrink: 0;
}

.fbh-result-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.fbh-result-addr {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.fbh-iff-inline {
  margin-right: 12px;
  background: #f59e0b;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .fbh-result-addr { display: none; }
  .fbh-result-link { gap: 4px; }
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATOR-HEADER
   ══════════════════════════════════════════════════════════════ */

.fbh-nav-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--red);
  position: relative;
}

.fbh-nav-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--gold);
}

.fbh-nav-icon {
  width: 44px; height: 44px;
  background: var(--surface);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(208,2,27,0.20);
}

.fbh-nav-icon svg {
  width: 22px; height: 22px;
  color: var(--red);
}

.fbh-nav-titles { flex: 1; min-width: 0; }

.fbh-nav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fbh-nav-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Detailseite: Zurück/Suche-Links */
.fbhs-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.fbhs-nav-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.fbhs-nav-link:hover { opacity: 0.7; }

@media (max-width: 480px) {
  .fbh-nav-title { font-size: 17px; }
  .fbh-nav-sub   { font-size: 10px; }
  .fbh-nav-icon  { width: 36px; height: 36px; }
  .fbh-nav-icon svg { width: 18px; height: 18px; }
}

/* ══════════════════════════════════════════════════════════════
   SUCHMASKE
   ══════════════════════════════════════════════════════════════ */

.fbh-search-wrap {
  margin-bottom: 20px;
}

.fbh-search-form {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Zeilen ───────────────────────────────────────────────── */

.fbh-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.fbh-search-row:last-child { margin-bottom: 0; }

/* ── Einzelne Felder ─────────────────────────────────────── */

.fbh-search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 140px;
}

.fbh-search-text { flex: 2 1 220px; }

.fbh-search-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

/* Freitext-Wrapper mit Lupe */
.fbh-search-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.fbh-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

/* Inputs & Selects */
.fbh-search-input,
.fbh-search-select {
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

/* Freitextfeld: linker Abstand für Lupe */
.fbh-search-input { padding-left: 34px !important; }
.fbh-search-input--num { padding-left: 10px; text-align: left; }

.fbh-search-input:focus,
.fbh-search-select:focus  { border-color: var(--red); }

.fbh-search-input::placeholder { color: var(--muted); }

/* Select-Pfeil */
.fbh-search-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a92a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* ── Zeile 2: kompakte Felder ────────────────────────────── */

/* Zeile 2: immer als 2-Spalten-Grid (Desktop mehr, Mobile 2) */
.fbh-search-row--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.fbh-search-field--narrow {
  /* im Grid: keine flex-Angaben nötig */
  flex: unset;
  min-width: 0;
  max-width: none;
}

.fbh-search-field--check {
  flex: unset;
  justify-content: flex-end;
  padding-bottom: 2px;
}

@media (max-width: 480px) {
  /* Zeile 2: fix 2-spaltig */
  .fbh-search-row--compact {
    grid-template-columns: 1fr 1fr;
  }
}

.fbh-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  height: 38px;
  white-space: nowrap;
}

.fbh-check-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

/* ── Ausstattung: aufklappbar ────────────────────────────── */

.fbh-search-details {
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

.fbh-search-details-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  user-select: none;
}

.fbh-search-details-toggle::-webkit-details-marker { display: none; }

.fbh-search-details-toggle svg {
  width: 14px; height: 14px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.fbh-search-details[open] .fbh-search-details-toggle svg {
  transform: rotate(180deg);
}

.fbh-feat-count {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.fbh-search-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 4px 12px;
  padding-bottom: 10px;
}

/* ── Suchen-Button am Ende ───────────────────────────────── */

.fbh-search-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.fbh-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 20px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.fbh-search-btn:hover { background: #a80016; }

.fbh-search-btn svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.fbh-search-reset {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.fbh-search-reset:hover { color: var(--red); }

/* ── Ergebnis-Info ───────────────────────────────────────── */

.fbh-search-result-info {
  margin-top: 10px;
  font-size: 12px;
}

.fbh-result-header {
  margin: 4px 0 12px;
  font-size: 12px;
}

.fbh-result-count { color: var(--text-sub); font-weight: 600; }
.fbh-result-none  { color: var(--muted); }
.fbh-result-none a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE SUCHMASKE
   ══════════════════════════════════════════════════════════════ */

/* Tablet: 2 Spalten für Dropdowns */
@media (max-width: 700px) {
  .fbh-search-field       { flex: 1 1 calc(50% - 4px); }
  .fbh-search-text        { flex: 1 1 100%; }
}

/* Mobile: Dropdowns + Freitext 1-spaltig, Zeile 2 bleibt 2-spaltig via Grid */
@media (max-width: 480px) {
  .fbh-search-form { padding: 12px; }

  .fbh-search-field,
  .fbh-search-text { flex: 1 1 100%; }

  .fbh-search-row--compact { grid-template-columns: 1fr 1fr; }

  .fbh-search-btn  { flex: 1; justify-content: center; height: 44px; font-size: 15px; }

  .fbh-search-feat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Logo 25px – alle Stellen */
.fbh-powered-by img,
.fbh-powered-by-left img { height: 25px !important; width: auto; }

/* ══════════════════════════════════════════════════════════════
   FOOTER: Logo + Version
   ══════════════════════════════════════════════════════════════ */

.fbh-powered-by--nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.fbh-powered-by-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fbh-powered-by-left a { display: flex; align-items: center; }

.fbh-powered-by img,
.fbh-powered-by-left img {
  height: 25px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.fbh-powered-by-left span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.fbh-powered-by-version {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   KENNDATEN-BLOCK (Detailseite)
   ══════════════════════════════════════════════════════════════ */

.fbhs-kenndaten {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.fbhs-kenndaten-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 8px;
}

.fbhs-kenndaten-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
}

.fbhs-kenndaten-item dt {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.fbhs-kenndaten-item dt::after { content: ':'; }

.fbhs-kenndaten-item dd {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   VEREINSBELEGUNG
   ══════════════════════════════════════════════════════════════ */

.fbh-belegung-wrap {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
}

.fbh-belegung-wrap .fbh-section-label { margin-bottom: 8px; }
