/*
 * Floorball Hallen – Widget-CSS
 * Design: FVBB-Stil (identische Variablen wie fvbb_tabelle-Shortcode)
 * (C) Floorball-facts.de
 */

/* ── Google Font (Fallback falls wp_enqueue_style nicht greift) ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600&display=swap');

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

.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);
}

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

/* Kopfzeile */
.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;
}

/* ── 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;
}

/* ── FOOTER / ADRESSE ── */
.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-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.fbh-location-icon {
  width: 28px; height: 28px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

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

.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-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; }

/* ── 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;
}

/* ── KENNUNG-BADGE ── */
.fbh-kennung-badge {
  margin-left: auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── IFF-BADGE (Hero-Overlay) ── */
.fbh-iff-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

/* ── META-TAGS (Kategorie, Grösse, Teilbarkeit) ── */
.fbh-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.fbh-meta-tag {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.5px;
  color: var(--text-sub);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  text-transform: uppercase;
}

/* ── WETTKAMPF-HINWEIS ── */
.fbh-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  background: var(--surface-alt);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.fbh-info-row svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--muted);
}

.fbh-info-wettkampf {
  border-left-color: var(--gold);
}

/* ── VERGABE-BLOCK ── */
.fbh-vergabe-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.fbh-vergabe-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fbh-vergabe-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sub);
}

.fbh-vergabe-name svg {
  width: 14px; height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.fbh-vergabe-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fbh-vergabe-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-sub);
  background: var(--surface-alt);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.fbh-vergabe-btn svg {
  width: 12px; height: 12px;
}

.fbh-vergabe-btn:hover {
  border-color: var(--muted);
  color: var(--text);
  text-decoration: none;
}

.fbh-vergabe-btn.fbh-btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.fbh-vergabe-btn.fbh-btn-primary:hover {
  background: #b80018;
  border-color: #b80018;
  color: #fff;
}

.fbh-vergabe-btn.fbh-btn-portal {
  border-color: var(--gold);
  color: var(--gold);
}

.fbh-vergabe-btn.fbh-btn-portal:hover {
  background: var(--gold);
  color: #fff;
}

/* ── FEATURE: Barrierefrei / Trib-Hinweis ── */
.fbh-feature-bf {
  border-color: #0070c0 !important;
  color: #0070c0 !important;
}

.fbh-feature-bf svg {
  color: #0070c0 !important;
}

.fbh-feature-hint {
  font-size: 10px;
  cursor: help;
  opacity: 0.7;
  margin-left: 2px;
}

.fbh-feature-trib-hint {
  font-size: 11px;
}

/* ── MUTED TEXT ── */
.fbh-muted {
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@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; }
}

@media (max-width: 380px) {
  .fbh-verein-name { font-size: 18px; }
  .fbh-halle-specs { grid-template-columns: repeat(2, 1fr); }
  .fbh-avail-day-label { font-size: 8px; }
}
