/* WRV Broadcast – Vereinsfinder (ab v1.3), Aufbau nach dem DRB-Vereinsfinder */
.vf-section { padding-top: var(--space-8); }
.vf-prose { margin-bottom: var(--space-6); }
.vf { position: relative; }
.vf-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Suchleiste */
.vf-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto auto;
  gap: var(--space-3) var(--space-4);
  align-items: end;
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(90deg, var(--color-surface) 0%, var(--color-surface) 70%, rgba(200, 164, 74, 0.16) 100%);
  border: 1px solid var(--color-border);
  border-bottom: 3px solid var(--color-accent);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.vf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vf-field > label, .vf-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-text-muted); white-space: nowrap;
}
.vf-field > label strong { color: var(--color-text); }
.vf-input { position: relative; }
.vf-input--icon .vf-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-text-faint); pointer-events: none; }
.vf-input--icon input { padding-left: 40px; }
.vf-controls input[type="search"], .vf-controls select {
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--color-bg-deep); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px;
}
.vf-controls input::placeholder { color: var(--color-text-faint); }
.vf-controls input:focus-visible, .vf-controls select:focus-visible { outline: 2px solid var(--color-primary-hover); outline-offset: 1px; }
.vf-controls input.is-invalid { border-color: var(--color-accent-hover); box-shadow: 0 0 0 2px rgba(201, 79, 79, 0.35); }
.vf-field--radius input[type="range"] { width: 100%; height: 44px; accent-color: var(--color-accent); background: transparent; }

.vf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; white-space: nowrap;
  background: var(--color-bg-deep); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
}
.vf-btn:hover { border-color: var(--color-primary-hover); background: var(--color-surface-2); }
.vf-btn:focus-visible, .vf-textbtn:focus-visible, .vf-item:focus-visible, .vf-iconbtn:focus-visible { outline: 2px solid var(--color-primary-hover); outline-offset: 2px; }
.vf-btn--icon { width: 44px; padding: 0; color: var(--color-accent-text); border-color: rgba(229, 115, 115, 0.5); }
.vf-textbtn { background: none; border: 0; padding: 4px 0; color: var(--color-primary-hover); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Vorschläge */
.vf-suggest {
  position: absolute; z-index: 1100; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); max-height: 320px; overflow: auto;
}
.vf-sug { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.vf-sug:last-child { border-bottom: 0; }
.vf-sug small { color: var(--color-text-muted); font-size: 12px; }
.vf-sug:hover, .vf-sug.is-focus { background: var(--color-surface-2); }

/* Karte + Treffer */
.vf-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.vf[data-state="results"] .vf-content { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); }
.vf-map-wrap { position: relative; min-height: 640px; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-deep); }
.vf-map { position: absolute; inset: 0; }
.vf-map-status {
  position: absolute; z-index: 600; top: 14px; left: 56px; max-width: calc(100% - 72px);
  padding: 8px 14px; background: #fff; color: #0E1D31; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.vf-map-status:empty { display: none; }
.vf-consent { position: absolute; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-6); text-align: center; color: var(--color-text-muted); background: radial-gradient(circle at 50% 40%, var(--color-surface) 0%, var(--color-bg-deep) 75%); }
.vf-consent p { max-width: 40ch; margin: 0; }
.vf-consent strong { color: var(--color-text); font-family: var(--font-display); font-size: 1.1rem; }
.vf-consent label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }

.vf-results { display: flex; flex-direction: column; min-height: 0; max-height: 640px; }
.vf-results[hidden] { display: none; }
.vf-results-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 2px var(--space-2); color: var(--color-text-muted); font-size: 13px; }
.vf-results-head strong { color: var(--color-text); font-family: var(--font-display); font-size: 1.1rem; margin-left: 4px; }
.vf-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.vf-item {
  padding: 12px 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.vf-item:hover { background: var(--color-surface-2); }
.vf-item.is-active { border-color: var(--color-gold); border-left: 4px solid var(--color-gold); background: linear-gradient(90deg, var(--color-surface-2), rgba(200, 164, 74, 0.12)); }
.vf-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.vf-item-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--color-text); overflow-wrap: anywhere; }
.vf-dist { flex: none; padding: 2px 8px; border-radius: 999px; background: rgba(178, 58, 58, 0.18); color: var(--color-accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.vf-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vf-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--color-bg-deep); color: var(--color-text-muted); font-size: 12px; font-weight: 600; }
.vf-badge--bez { background: #0E1D31; color: #fff; border: 1px solid var(--color-primary-dim); }
.vf-badge--bez[data-bez="1"] { background: var(--color-primary-dim); }
.vf-badge--bez[data-bez="2"] { background: var(--color-accent-dim); border-color: var(--color-accent-dim); }
.vf-badge--bez[data-bez="3"] { background: var(--color-surface-3); }
.vf-badge--bez[data-bez="4"] { background: #0E1D31; }
.vf-item-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-border); font-size: 13px; }
.vf-item-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text); font-weight: 600; text-decoration: none; }
.vf-item-contact a .vf-ico { width: 15px; height: 15px; color: var(--color-accent-text); }
.vf-item-contact a:hover { text-decoration: underline; }
.vf-item-more { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--color-bg-deep); }
.vf-empty { padding: var(--space-6); text-align: center; color: var(--color-text-muted); }

/* Popup */
.vf-pop { min-width: 220px; }
.vf-pop-head { display: flex; gap: 10px; align-items: flex-start; }
.vf-pop-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--color-text); }
.vf-pop-place { margin: 2px 0 0; color: var(--color-text-muted); font-size: 12px; }
.vf-pop-meta { margin: 8px 0 0; font-size: 12.5px; color: var(--color-text-muted); }
.vf-pop-meta a { color: var(--color-text); font-weight: 600; }
.vf-pop-actions { margin: 10px 0 0; }
.vf-pop-btn { display: inline-block; padding: 7px 12px; background: var(--color-accent); color: #fff !important; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; font-size: 12.5px; text-decoration: none; }
.vf-pop-btn:hover { background: var(--color-accent-hover); }
.vf-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 112px; height: 112px; padding: 8px; background: #fff; border-radius: var(--radius-md); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.vf-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vf-logo--s { width: 44px; height: 44px; padding: 3px; box-shadow: none; border: 1px solid #ddd; }

/* Vereinsseite */
.vf-detail[hidden], .vf-finder[hidden] { display: none; }
.vf-detail-top { display: flex; justify-content: flex-end; margin-bottom: var(--space-4); }
.vf-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); }
.vf-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-8); min-width: 0; }
.vf-card--map { padding: 0; overflow: hidden; position: relative; min-height: 480px; }
.vf-detail-map { position: absolute; inset: 0; }
.vf-card-head { display: flex; gap: var(--space-6); align-items: center; }
.vf-card-head .eyebrow { color: var(--color-accent-text); }
.vf-card-title { margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); line-height: 1.12; text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: break-word; hyphens: auto; }
.vf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-6) 0; }
.vf-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-deep); color: var(--color-accent-text); }
.vf-iconbtn:hover { border-color: var(--color-accent-text); background: var(--color-surface-2); }
.vf-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 28px; margin: 0; }
.vf-facts dt { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); padding-top: 2px; }
.vf-facts dd { margin: 0; color: var(--color-text); font-weight: 600; overflow-wrap: anywhere; }
.vf-facts a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-primary); text-underline-offset: 3px; }
.vf-org { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-6); padding: 10px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-deep); color: var(--color-text); font-weight: 600; text-decoration: none; }
.vf-org:hover { border-color: var(--color-primary-hover); }

/* Hinweisleiste unten */
.vf-note {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6); padding: var(--space-4) var(--space-6);
  background: var(--color-bg-deep); border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); border-radius: var(--radius-md);
  font-size: 14px; color: var(--color-text-muted);
}
.vf-note p { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text); }
.vf-note a { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text); font-weight: 700; text-decoration: none; }
.vf-note a:hover { text-decoration: underline; }
.vf-hint { margin-top: var(--space-4); font-size: 12px; color: var(--color-text-faint); }
.vf-hint a { color: var(--color-text-muted); text-decoration: underline; }

/* Standort-Dialog */
.vf-dialog { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: rgba(5, 12, 22, 0.72); }
.vf-dialog[hidden] { display: none; }
.vf-dialog-box { width: min(480px, 100%); padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent); border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.vf-dialog-box h2 { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: 1.25rem; }
.vf-dialog-box p { margin: 0; color: var(--color-text-muted); font-size: 14px; }
.vf-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }

.vf-noscript { columns: 2 320px; padding-left: 1.2em; }

/* Leaflet im WRV-Look */
.vf .leaflet-container { background: #0E1D31; font-family: var(--font-body); }
.vf .leaflet-tooltip { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: #0E1D31; border-radius: var(--radius-sm); }

/* Tablet */
@media (max-width: 1100px) {
  .vf[data-state="results"] .vf-content { grid-template-columns: minmax(0, 1fr); }
  .vf-results { max-height: none; }
  .vf-list { overflow: visible; }
  .vf-map-wrap { min-height: 520px; }
}
@media (max-width: 1100px) and (min-width: 721px) {
}
/* Handy */
@media (max-width: 720px) {
  .vf-map-wrap { min-height: 420px; }
  .vf-map-status { left: 52px; font-size: 12px; }
  .vf-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .vf-card { padding: var(--space-5); }
  .vf-card-head { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .vf-logo { width: 96px; height: 96px; }
  .vf-facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .vf-facts dd { margin-bottom: 10px; }
  .vf-card--map { min-height: 340px; }
  .vf-note { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
}

/* Eingabefeld mit Lupe: Abstand gegen die allgemeinen Formularstile absichern */
.vf-controls .vf-input--icon input[type="search"] { padding-left: 42px; }
/* Popup auf weißem Grund: dunkle Schrift für ausreichenden Kontrast */
.vf .leaflet-popup-content-wrapper, .vf .leaflet-popup-tip { background: #fff; color: #152A45; }
.vf .vf-pop-title { color: #152A45; }
.vf .vf-pop-place, .vf .vf-pop-meta { color: #4A5B70; }
.vf .vf-pop-meta a { color: #1E3A5F; text-decoration: underline; }
.vf .vf-pop-meta a:hover { color: #B23A3A; }

/* ---------- v1.3.1: größer, Ortssuche zuerst ---------- */
.vf-section .container { max-width: 1480px; }
.vf-controls { display: block; padding: var(--space-6) var(--space-8); }
.vf-controls-title { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); color: var(--color-text); }
.vf-main { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: var(--space-4); align-items: end; }
.vf-sub { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: var(--space-4); align-items: end; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.vf-main input[type="search"], .vf-main select { height: 60px; font-size: 18px; }
.vf-controls .vf-main .vf-input--icon input[type="search"] { padding-left: 48px; }
.vf-main .vf-input--icon .vf-ico { width: 22px; height: 22px; left: 14px; }
.vf-main .vf-field > label { font-size: 13px; }
.vf-go { height: 60px; padding: 0 28px; font-size: 16px; white-space: nowrap; }
.vf-btnrow { display: flex; gap: var(--space-2); }
.vf-sub .vf-btn { height: 44px; }
.vf #vf-reset { color: var(--color-text); border-color: var(--color-border); }

.vf-content { margin-top: var(--space-5); }
.vf[data-state="results"] .vf-content { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: var(--space-5); }
.vf-map-wrap { min-height: min(78vh, 760px); }
.vf-results { max-height: min(78vh, 760px); }
.vf-results-head { padding-bottom: var(--space-3); }
.vf-results-title { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--color-text); text-transform: none; letter-spacing: 0; }
.vf-results-title strong { font-size: 1.6rem; margin: 0 4px 0 0; color: var(--color-gold); }
.vf-list { gap: 10px; }
.vf-item { padding: 16px 18px; }
.vf-item-name { font-size: 17px; }
.vf-dist { font-size: 14px; padding: 3px 10px; }
.vf-badge { font-size: 13px; padding: 3px 10px; }
.vf-item-contact { font-size: 14.5px; }
.vf-fallback { margin: 0 0 4px; padding: 12px 14px; border-left: 3px solid var(--color-gold); background: rgba(200, 164, 74, 0.1); color: var(--color-text); font-size: 15px; border-radius: var(--radius-sm); }

@media (max-width: 1100px) {
  .vf-controls { padding: var(--space-5); }
  .vf-sub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vf-field--btns { grid-column: 1 / -1; }
  .vf-field--btns .vf-label { display: none; }
  .vf[data-state="results"] .vf-content { grid-template-columns: minmax(0, 1fr); }
  .vf[data-state="results"] .vf-results { order: -1; }
  .vf-results { max-height: none; scroll-margin-top: 90px; }
  .vf-map-wrap { min-height: 560px; }
}
@media (max-width: 720px) {
  .vf-controls { padding: var(--space-4); }
  .vf-main, .vf-sub { grid-template-columns: minmax(0, 1fr); }
  .vf-field--go .vf-label { display: none; }
  .vf-go { width: 100%; }
  .vf-btnrow .vf-btn { flex: 1; }
  .vf-map-wrap { min-height: 440px; }
  .vf-results-title { font-size: 1.05rem; }
}
.vf-results-head { align-items: flex-start; } .vf-results-head .vf-textbtn { white-space: nowrap; flex: none; margin-top: 4px; }
